2017-04-26 11:28:32 +00:00
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Ticket',
|
|
|
|
name: 'title',
|
|
|
|
display: 'Title',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
2017-04-26 11:28:32 +00:00
|
|
|
maxlength: 200,
|
2018-12-19 17:31:51 +00:00
|
|
|
null: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
translate: false,
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create_top: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 15,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Ticket',
|
|
|
|
name: 'customer_id',
|
|
|
|
display: 'Customer',
|
|
|
|
data_type: 'user_autocompletion',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
relation: 'User',
|
2017-04-26 11:28:32 +00:00
|
|
|
autocapitalize: false,
|
2018-12-19 17:31:51 +00:00
|
|
|
multiple: false,
|
|
|
|
guess: true,
|
|
|
|
null: false,
|
|
|
|
limit: 200,
|
|
|
|
placeholder: 'Enter Person or Organization/Company',
|
|
|
|
minLengt: 2,
|
|
|
|
translate: false,
|
|
|
|
permission: ['ticket.agent'],
|
|
|
|
},
|
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create_top: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 10,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Ticket',
|
|
|
|
name: 'type',
|
|
|
|
display: 'Type',
|
|
|
|
data_type: 'select',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
default: '',
|
|
|
|
options: {
|
|
|
|
'Incident' => 'Incident',
|
|
|
|
'Problem' => 'Problem',
|
2017-04-26 11:28:32 +00:00
|
|
|
'Request for Change' => 'Request for Change',
|
|
|
|
},
|
|
|
|
nulloption: true,
|
2018-12-19 17:31:51 +00:00
|
|
|
multiple: false,
|
|
|
|
null: true,
|
|
|
|
translate: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: true,
|
|
|
|
active: false,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create_middle: {
|
|
|
|
'-all-' => {
|
2018-12-19 17:31:51 +00:00
|
|
|
null: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'column',
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'ticket.agent' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 20,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Ticket',
|
|
|
|
name: 'group_id',
|
|
|
|
display: 'Group',
|
|
|
|
data_type: 'select',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
default: '',
|
|
|
|
relation: 'Group',
|
|
|
|
relation_condition: { access: 'full' },
|
|
|
|
nulloption: true,
|
|
|
|
multiple: false,
|
|
|
|
null: false,
|
|
|
|
translate: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
only_shown_if_selectable: true,
|
2018-12-19 17:31:51 +00:00
|
|
|
permission: ['ticket.agent', 'ticket.customer'],
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create_middle: {
|
|
|
|
'-all-' => {
|
2018-12-19 17:31:51 +00:00
|
|
|
null: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'column',
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'ticket.agent' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 25,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Ticket',
|
|
|
|
name: 'owner_id',
|
|
|
|
display: 'Owner',
|
|
|
|
data_type: 'select',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
default: '',
|
|
|
|
relation: 'User',
|
2017-04-26 11:28:32 +00:00
|
|
|
relation_condition: { roles: 'Agent' },
|
2018-12-19 17:31:51 +00:00
|
|
|
nulloption: true,
|
|
|
|
multiple: false,
|
|
|
|
null: true,
|
|
|
|
translate: false,
|
|
|
|
permission: ['ticket.agent'],
|
|
|
|
},
|
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create_middle: {
|
|
|
|
'-all-' => {
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'column',
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 30,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Ticket',
|
|
|
|
name: 'state_id',
|
|
|
|
display: 'State',
|
|
|
|
data_type: 'select',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
relation: 'TicketState',
|
2017-04-26 11:28:32 +00:00
|
|
|
nulloption: true,
|
2018-12-19 17:31:51 +00:00
|
|
|
multiple: false,
|
|
|
|
null: false,
|
|
|
|
default: Ticket::State.find_by(default_follow_up: true).id,
|
|
|
|
translate: true,
|
|
|
|
filter: Ticket::State.by_category(:viewable).pluck(:id),
|
|
|
|
},
|
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create_middle: {
|
2018-12-19 17:31:51 +00:00
|
|
|
'ticket.agent' => {
|
|
|
|
null: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'column',
|
2018-12-19 17:31:51 +00:00
|
|
|
filter: Ticket::State.by_category(:viewable_agent_new).pluck(:id),
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
'ticket.customer' => {
|
|
|
|
item_class: 'column',
|
|
|
|
nulloption: false,
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
|
|
|
filter: Ticket::State.by_category(:viewable_customer_new).pluck(:id),
|
|
|
|
default: Ticket::State.find_by(default_create: true).id,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
|
|
|
'ticket.agent' => {
|
2017-04-26 11:28:32 +00:00
|
|
|
nulloption: false,
|
2018-12-19 17:31:51 +00:00
|
|
|
null: false,
|
|
|
|
filter: Ticket::State.by_category(:viewable_agent_edit).pluck(:id),
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
'ticket.customer' => {
|
|
|
|
nulloption: false,
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
|
|
|
filter: Ticket::State.by_category(:viewable_customer_edit).pluck(:id),
|
|
|
|
default: Ticket::State.find_by(default_follow_up: true).id,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 40,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Ticket',
|
|
|
|
name: 'pending_time',
|
|
|
|
display: 'Pending till',
|
|
|
|
data_type: 'datetime',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
future: true,
|
|
|
|
past: false,
|
|
|
|
diff: 24,
|
|
|
|
null: true,
|
|
|
|
translate: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
required_if: {
|
|
|
|
state_id: Ticket::State.by_category(:pending).pluck(:id),
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
shown_if: {
|
2017-04-26 11:28:32 +00:00
|
|
|
state_id: Ticket::State.by_category(:pending).pluck(:id),
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create_middle: {
|
|
|
|
'-all-' => {
|
2018-12-19 17:31:51 +00:00
|
|
|
null: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'column',
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 41,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Ticket',
|
|
|
|
name: 'priority_id',
|
|
|
|
display: 'Priority',
|
|
|
|
data_type: 'select',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
relation: 'TicketPriority',
|
2017-04-26 11:28:32 +00:00
|
|
|
nulloption: false,
|
2018-12-19 17:31:51 +00:00
|
|
|
multiple: false,
|
|
|
|
null: false,
|
|
|
|
default: Ticket::Priority.find_by(default_create: true).id,
|
|
|
|
translate: true,
|
|
|
|
},
|
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create_middle: {
|
|
|
|
'ticket.agent' => {
|
2018-12-19 17:31:51 +00:00
|
|
|
null: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'column',
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'ticket.agent' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 80,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Ticket',
|
|
|
|
name: 'tags',
|
|
|
|
display: 'Tags',
|
|
|
|
data_type: 'tag',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
translate: false,
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create_bottom: {
|
|
|
|
'ticket.agent' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 900,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'TicketArticle',
|
|
|
|
name: 'type_id',
|
|
|
|
display: 'Type',
|
|
|
|
data_type: 'select',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
relation: 'TicketArticleType',
|
2017-04-26 11:28:32 +00:00
|
|
|
nulloption: false,
|
2018-12-19 17:31:51 +00:00
|
|
|
multiple: false,
|
|
|
|
null: false,
|
|
|
|
default: Ticket::Article::Type.lookup(name: 'note').id,
|
|
|
|
translate: true,
|
|
|
|
},
|
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create_middle: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'ticket.agent' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 100,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'TicketArticle',
|
|
|
|
name: 'internal',
|
|
|
|
display: 'Visibility',
|
|
|
|
data_type: 'select',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
options: {
|
2017-11-23 08:09:44 +00:00
|
|
|
true: 'internal',
|
|
|
|
false: 'public'
|
|
|
|
},
|
2017-04-26 11:28:32 +00:00
|
|
|
nulloption: false,
|
2018-12-19 17:31:51 +00:00
|
|
|
multiple: false,
|
|
|
|
null: true,
|
|
|
|
default: false,
|
|
|
|
translate: true,
|
|
|
|
},
|
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create_middle: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'ticket.agent' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 200,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'TicketArticle',
|
|
|
|
name: 'to',
|
|
|
|
display: 'To',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
2017-04-26 11:28:32 +00:00
|
|
|
maxlength: 1000,
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create_middle: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'ticket.agent' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 300,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'TicketArticle',
|
|
|
|
name: 'cc',
|
|
|
|
display: 'Cc',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
2017-04-26 11:28:32 +00:00
|
|
|
maxlength: 1000,
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
create_top: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
create_middle: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'ticket.agent' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 400,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'TicketArticle',
|
|
|
|
name: 'body',
|
|
|
|
display: 'Text',
|
|
|
|
data_type: 'richtext',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'richtext',
|
2019-08-16 06:47:32 +00:00
|
|
|
maxlength: 150_000,
|
2018-12-19 17:31:51 +00:00
|
|
|
upload: true,
|
|
|
|
rows: 8,
|
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create_top: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 600,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'login',
|
|
|
|
display: 'Login',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
|
|
|
maxlength: 100,
|
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
autocapitalize: false,
|
2018-12-19 17:31:51 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
invite_customer: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {},
|
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 100,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'firstname',
|
|
|
|
display: 'Firstname',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
|
|
|
maxlength: 150,
|
|
|
|
null: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
invite_agent: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
invite_customer: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 200,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'lastname',
|
|
|
|
display: 'Lastname',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
|
|
|
maxlength: 150,
|
|
|
|
null: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
invite_agent: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
invite_customer: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 300,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'email',
|
|
|
|
display: 'Email',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'email',
|
|
|
|
maxlength: 150,
|
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
invite_agent: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
invite_customer: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
2017-07-14 09:57:34 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 400,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'web',
|
|
|
|
display: 'Web',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'url',
|
|
|
|
maxlength: 250,
|
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
invite_customer: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 500,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'phone',
|
|
|
|
display: 'Phone',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'tel',
|
|
|
|
maxlength: 100,
|
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
invite_customer: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 600,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'mobile',
|
|
|
|
display: 'Mobile',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'tel',
|
|
|
|
maxlength: 100,
|
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
invite_customer: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 700,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'fax',
|
|
|
|
display: 'Fax',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'tel',
|
|
|
|
maxlength: 100,
|
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
invite_customer: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 800,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'organization_id',
|
|
|
|
display: 'Organization',
|
|
|
|
data_type: 'autocompletion_ajax',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
multiple: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
nulloption: true,
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
|
|
|
relation: 'Organization',
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
invite_customer: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 900,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'department',
|
|
|
|
display: 'Department',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
|
|
|
maxlength: 200,
|
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: true,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
invite_customer: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1000,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'street',
|
|
|
|
display: 'Street',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
2017-04-26 11:28:32 +00:00
|
|
|
maxlength: 100,
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: true,
|
|
|
|
active: false,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
invite_customer: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1100,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'zip',
|
|
|
|
display: 'Zip',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
|
|
|
maxlength: 100,
|
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: true,
|
|
|
|
active: false,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
invite_customer: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1200,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'city',
|
|
|
|
display: 'City',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
|
|
|
maxlength: 100,
|
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: true,
|
|
|
|
active: false,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
invite_customer: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1300,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
2018-11-08 12:53:41 +00:00
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'country',
|
|
|
|
display: 'Country',
|
|
|
|
data_type: 'input',
|
2018-11-08 12:53:41 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
|
|
|
maxlength: 100,
|
|
|
|
null: true,
|
2018-11-08 12:53:41 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: true,
|
|
|
|
active: false,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {},
|
2018-11-08 12:53:41 +00:00
|
|
|
invite_customer: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2018-11-08 12:53:41 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2018-11-08 12:53:41 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1325,
|
2018-11-08 12:53:41 +00:00
|
|
|
)
|
|
|
|
|
2017-04-26 11:28:32 +00:00
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'address',
|
|
|
|
display: 'Address',
|
|
|
|
data_type: 'textarea',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
|
|
|
maxlength: 500,
|
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: true,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
invite_customer: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1350,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'password',
|
|
|
|
display: 'Password',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'password',
|
|
|
|
maxlength: 100,
|
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
autocomplete: 'new-password',
|
2018-12-19 17:31:51 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
invite_agent: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
invite_customer: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'admin.user' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {}
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1400,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'vip',
|
|
|
|
display: 'VIP',
|
|
|
|
data_type: 'boolean',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
|
|
|
default: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
2018-12-19 17:31:51 +00:00
|
|
|
options: {
|
2017-04-26 11:28:32 +00:00
|
|
|
false: 'no',
|
2018-12-19 17:31:51 +00:00
|
|
|
true: 'yes',
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
translate: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
permission: ['admin.user', 'ticket.agent'],
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
edit: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
view: {
|
|
|
|
'-all-' => {
|
|
|
|
shown: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1490,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'note',
|
|
|
|
display: 'Note',
|
|
|
|
data_type: 'richtext',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
2017-10-02 18:28:27 +00:00
|
|
|
maxlength: 5000,
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
|
|
|
note: 'Notes are visible to agents only, never to customers.',
|
|
|
|
},
|
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
invite_customer: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1500,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'role_ids',
|
|
|
|
display: 'Permissions',
|
|
|
|
data_type: 'user_permission',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
null: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'checkbox',
|
|
|
|
permission: ['admin.user'],
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
2018-12-19 17:31:51 +00:00
|
|
|
null: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
default: [Role.lookup(name: 'Agent').id],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
invite_customer: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1600,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'User',
|
|
|
|
name: 'active',
|
|
|
|
display: 'Active',
|
|
|
|
data_type: 'active',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
|
|
|
default: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
permission: ['admin.user', 'ticket.agent'],
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
signup: {},
|
|
|
|
invite_agent: {},
|
2017-04-26 11:28:32 +00:00
|
|
|
invite_customer: {},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1800,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Organization',
|
|
|
|
name: 'name',
|
|
|
|
display: 'Name',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
|
|
|
maxlength: 150,
|
|
|
|
null: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
edit: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
view: {
|
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 200,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Organization',
|
|
|
|
name: 'shared',
|
|
|
|
display: 'Shared organization',
|
|
|
|
data_type: 'boolean',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
|
|
|
default: true,
|
|
|
|
note: 'Customers in the organization can view each other items.',
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
2018-12-19 17:31:51 +00:00
|
|
|
options: {
|
|
|
|
true: 'yes',
|
2017-04-26 11:28:32 +00:00
|
|
|
false: 'no',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
translate: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
permission: ['admin.organization'],
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
edit: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
view: {
|
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1400,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Organization',
|
|
|
|
name: 'domain_assignment',
|
|
|
|
display: 'Domain based assignment',
|
|
|
|
data_type: 'boolean',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
|
|
|
default: false,
|
|
|
|
note: 'Assign Users based on users domain.',
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
2018-12-19 17:31:51 +00:00
|
|
|
options: {
|
|
|
|
true: 'yes',
|
2017-04-26 11:28:32 +00:00
|
|
|
false: 'no',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
translate: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
permission: ['admin.organization'],
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
edit: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
view: {
|
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1410,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Organization',
|
|
|
|
name: 'domain',
|
|
|
|
display: 'Domain',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
|
|
|
maxlength: 150,
|
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
item_class: 'formGroup--halfSize',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
edit: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
view: {
|
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1420,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Organization',
|
|
|
|
name: 'note',
|
|
|
|
display: 'Note',
|
|
|
|
data_type: 'richtext',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
2017-10-02 18:28:27 +00:00
|
|
|
maxlength: 5000,
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
|
|
|
note: 'Notes are visible to agents only, never to customers.',
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
edit: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
view: {
|
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1500,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Organization',
|
|
|
|
name: 'active',
|
|
|
|
display: 'Active',
|
|
|
|
data_type: 'active',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
|
|
|
default: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
permission: ['admin.organization'],
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
edit: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
view: {
|
|
|
|
'-all-' => {
|
|
|
|
shown: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1800,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Group',
|
|
|
|
name: 'name',
|
|
|
|
display: 'Name',
|
|
|
|
data_type: 'input',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
2017-04-26 11:28:32 +00:00
|
|
|
maxlength: 150,
|
2018-12-19 17:31:51 +00:00
|
|
|
null: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 200,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Group',
|
|
|
|
name: 'assignment_timeout',
|
|
|
|
display: 'Assignment Timeout',
|
|
|
|
data_type: 'integer',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
|
|
|
maxlength: 150,
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
|
|
|
note: 'Assignment timeout in minutes if assigned agent is not working on it. Ticket will be shown as unassigend.',
|
|
|
|
min: 0,
|
|
|
|
max: 999_999,
|
|
|
|
},
|
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 300,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Group',
|
|
|
|
name: 'follow_up_possible',
|
|
|
|
display: 'Follow up possible',
|
|
|
|
data_type: 'select',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
default: 'yes',
|
|
|
|
options: {
|
|
|
|
yes: 'yes',
|
2017-04-26 11:28:32 +00:00
|
|
|
new_ticket: 'do not reopen Ticket but create new Ticket'
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
null: false,
|
|
|
|
note: 'Follow up for closed ticket possible or not.',
|
2017-04-26 11:28:32 +00:00
|
|
|
translate: true
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 400,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Group',
|
|
|
|
name: 'follow_up_assignment',
|
|
|
|
display: 'Assign Follow Ups',
|
|
|
|
data_type: 'select',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
default: 'yes',
|
|
|
|
options: {
|
|
|
|
true: 'yes',
|
2017-04-26 11:28:32 +00:00
|
|
|
false: 'no',
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
null: false,
|
|
|
|
note: 'Assign follow up to latest agent again.',
|
2017-04-26 11:28:32 +00:00
|
|
|
translate: true
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 500,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Group',
|
|
|
|
name: 'email_address_id',
|
|
|
|
display: 'Email',
|
|
|
|
data_type: 'select',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
default: '',
|
|
|
|
multiple: false,
|
|
|
|
null: true,
|
|
|
|
relation: 'EmailAddress',
|
2017-04-26 11:28:32 +00:00
|
|
|
nulloption: true,
|
|
|
|
do_not_log: true,
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 600,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Group',
|
|
|
|
name: 'signature_id',
|
|
|
|
display: 'Signature',
|
|
|
|
data_type: 'select',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
default: '',
|
|
|
|
multiple: false,
|
|
|
|
null: true,
|
|
|
|
relation: 'Signature',
|
2017-04-26 11:28:32 +00:00
|
|
|
nulloption: true,
|
|
|
|
do_not_log: true,
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 600,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Group',
|
|
|
|
name: 'note',
|
|
|
|
display: 'Note',
|
|
|
|
data_type: 'richtext',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
type: 'text',
|
2017-04-26 11:28:32 +00:00
|
|
|
maxlength: 250,
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
|
|
|
note: 'Notes are visible to agents only, never to customers.',
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1500,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
2018-12-19 17:31:51 +00:00
|
|
|
force: true,
|
|
|
|
object: 'Group',
|
|
|
|
name: 'active',
|
|
|
|
display: 'Active',
|
|
|
|
data_type: 'active',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
|
|
|
default: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
permission: ['admin.group'],
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
2017-04-26 11:28:32 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-': {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
view: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
shown: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 1800,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|