22 lines
633 B
Ruby
22 lines
633 B
Ruby
|
class CtiUserProfile < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
|
||
|
# return if it's a new setup
|
||
|
return if !Setting.exists?(name: 'system_init_done')
|
||
|
|
||
|
Setting.create_if_not_exists(
|
||
|
title: 'cti customer last activity',
|
||
|
name: 'cti_customer_last_activity',
|
||
|
area: 'Integration::Cti',
|
||
|
description: 'Defines the range in seconds of customer activity to trigger the user profile dialog on call.',
|
||
|
options: {},
|
||
|
state: 30.days,
|
||
|
preferences: {
|
||
|
prio: 2,
|
||
|
permission: ['admin.integration'],
|
||
|
},
|
||
|
frontend: false,
|
||
|
)
|
||
|
end
|
||
|
end
|