20200806122951_cti_user_profile.rb 633 B

123456789101112131415161718192021
  1. class CtiUserProfile < ActiveRecord::Migration[5.2]
  2. def change
  3. # return if it's a new setup
  4. return if !Setting.exists?(name: 'system_init_done')
  5. Setting.create_if_not_exists(
  6. title: 'cti customer last activity',
  7. name: 'cti_customer_last_activity',
  8. area: 'Integration::Cti',
  9. description: 'Defines the range in seconds of customer activity to trigger the user profile dialog on call.',
  10. options: {},
  11. state: 30.days,
  12. preferences: {
  13. prio: 2,
  14. permission: ['admin.integration'],
  15. },
  16. frontend: false,
  17. )
  18. end
  19. end