20200806122951_cti_user_profile.rb 710 B

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