karma_activities.rb 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Karma::Activity.create_or_update(
  2. name: 'ticket create',
  3. description: 'You have created a ticket',
  4. score: 10,
  5. once_ttl: 60,
  6. )
  7. Karma::Activity.create_or_update(
  8. name: 'ticket close',
  9. description: 'You have closed a ticket',
  10. score: 5,
  11. once_ttl: 60,
  12. )
  13. Karma::Activity.create_or_update(
  14. name: 'ticket answer 1h',
  15. description: 'You have answered a ticket within 1h',
  16. score: 25,
  17. once_ttl: 60,
  18. )
  19. Karma::Activity.create_or_update(
  20. name: 'ticket answer 2h',
  21. description: 'You have answered a ticket within 2h',
  22. score: 20,
  23. once_ttl: 60,
  24. )
  25. Karma::Activity.create_or_update(
  26. name: 'ticket answer 12h',
  27. description: 'You have answered a ticket within 12h',
  28. score: 10,
  29. once_ttl: 60,
  30. )
  31. Karma::Activity.create_or_update(
  32. name: 'ticket answer 24h',
  33. description: 'You have answered a ticket within 24h',
  34. score: 5,
  35. once_ttl: 60,
  36. )
  37. Karma::Activity.create_or_update(
  38. name: 'ticket pending state',
  39. description: 'Usage of advanced features',
  40. score: 2,
  41. once_ttl: 60,
  42. )
  43. Karma::Activity.create_or_update(
  44. name: 'ticket escalated',
  45. description: 'You have escalated tickets',
  46. score: -5,
  47. once_ttl: 60 * 60 * 24,
  48. )
  49. Karma::Activity.create_or_update(
  50. name: 'ticket reminder overdue (+2 days)',
  51. description: 'You have tickets that are over 2 days overdue',
  52. score: -5,
  53. once_ttl: 60 * 60 * 24,
  54. )
  55. Karma::Activity.create_or_update(
  56. name: 'text module',
  57. description: 'Usage of advanced features',
  58. score: 4,
  59. once_ttl: 60 * 30,
  60. )
  61. Karma::Activity.create_or_update(
  62. name: 'tagging',
  63. description: 'Usage of advanced features',
  64. score: 4,
  65. once_ttl: 60 * 60 * 4,
  66. )