karma_activities.rb 1.9 KB

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