20240213214825_whatsapp_support.rb 610 B

1234567891011121314151617181920212223
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class WhatsappSupport < ActiveRecord::Migration[7.0]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Permission.create_if_not_exists(
  7. name: 'admin.channel_whatsapp',
  8. note: 'Manage %s',
  9. preferences: {
  10. translations: ['Channel - WhatsApp']
  11. },
  12. )
  13. Ticket::Article::Type.create_if_not_exists(
  14. name: 'whatsapp message',
  15. communication: true,
  16. updated_by_id: 1,
  17. created_by_id: 1,
  18. )
  19. end
  20. end