2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2021-10-26 12:33:06 +00:00
|
|
|
ObjectManager::Attribute.add(
|
|
|
|
force: true,
|
|
|
|
object: 'Ticket',
|
|
|
|
name: 'number',
|
|
|
|
display: '#',
|
|
|
|
data_type: 'input',
|
|
|
|
data_option: {
|
|
|
|
type: 'text',
|
|
|
|
readonly: 1,
|
|
|
|
null: true,
|
|
|
|
maxlength: 60,
|
|
|
|
width: '68px',
|
|
|
|
},
|
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
create_top: {},
|
|
|
|
edit: {},
|
|
|
|
},
|
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 5,
|
|
|
|
)
|
|
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Title'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
2021-10-26 12:33:06 +00:00
|
|
|
position: 8,
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Customer'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
2021-11-15 15:58:19 +00:00
|
|
|
placeholder: __('Enter Person or Organization/Company'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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
|
|
|
)
|
2021-10-26 12:33:06 +00:00
|
|
|
|
|
|
|
ObjectManager::Attribute.add(
|
|
|
|
force: true,
|
|
|
|
object: 'Ticket',
|
|
|
|
name: 'organization_id',
|
|
|
|
display: 'Organization',
|
|
|
|
data_type: 'autocompletion_ajax',
|
|
|
|
data_option: {
|
|
|
|
relation: 'Organization',
|
|
|
|
autocapitalize: false,
|
|
|
|
multiple: false,
|
|
|
|
null: true,
|
|
|
|
translate: false,
|
|
|
|
permission: ['ticket.agent'],
|
|
|
|
readonly: 1,
|
|
|
|
},
|
|
|
|
editable: false,
|
|
|
|
active: true,
|
|
|
|
screens: {
|
|
|
|
create_top: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
edit: {},
|
|
|
|
},
|
|
|
|
to_create: false,
|
|
|
|
to_migrate: false,
|
|
|
|
to_delete: false,
|
|
|
|
position: 12,
|
|
|
|
)
|
|
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Type'),
|
2018-12-19 17:31:51 +00:00
|
|
|
data_type: 'select',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2018-12-19 17:31:51 +00:00
|
|
|
default: '',
|
|
|
|
options: {
|
2021-11-15 15:58:19 +00:00
|
|
|
'Incident' => __('Incident'),
|
|
|
|
'Problem' => __('Problem'),
|
|
|
|
'Request for Change' => __('Request for Change'),
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Group'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Owner'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('State'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Pending till'),
|
2018-12-19 17:31:51 +00:00
|
|
|
data_type: 'datetime',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2021-08-25 12:24:42 +00:00
|
|
|
future: true,
|
|
|
|
past: false,
|
|
|
|
diff: 24,
|
|
|
|
null: true,
|
|
|
|
translate: true,
|
|
|
|
permission: %w[ticket.agent],
|
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
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Priority'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Tags'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Type'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Visibility'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('To'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2022-01-25 09:11:47 +00:00
|
|
|
display: __('CC'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Text'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Login'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2022-01-25 09:11:47 +00:00
|
|
|
display: __('First name'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
2021-12-03 13:09:11 +00:00
|
|
|
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-' => {
|
2021-12-03 13:09:11 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
invite_agent: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
2021-12-03 13:09:11 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
invite_customer: {
|
|
|
|
'-all-' => {
|
2021-12-03 13:09:11 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
2021-12-03 13:09:11 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
2021-12-03 13:09:11 +00:00
|
|
|
null: true,
|
2021-08-25 12:24:42 +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: 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',
|
2022-01-25 09:11:47 +00:00
|
|
|
display: __('Last name'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
2021-12-03 13:09:11 +00:00
|
|
|
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-' => {
|
2021-12-03 13:09:11 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
invite_agent: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
2021-12-03 13:09:11 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
invite_customer: {
|
|
|
|
'-all-' => {
|
2021-12-03 13:09:11 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
2021-12-03 13:09:11 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
2021-12-03 13:09:11 +00:00
|
|
|
null: true,
|
2021-08-25 12:24:42 +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: 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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Email'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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-' => {
|
2021-12-03 13:09:11 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
invite_agent: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
2021-12-03 13:09:11 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
invite_customer: {
|
|
|
|
'-all-' => {
|
2021-12-03 13:09:11 +00:00
|
|
|
null: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
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
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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: 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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Web'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Phone'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Mobile'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Fax'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Organization'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Department'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Street'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Zip'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('City'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Country'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Address'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Password'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('VIP'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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: {
|
2021-08-25 12:24:42 +00:00
|
|
|
edit: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
create: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +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: 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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Note'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
2021-11-15 15:58:19 +00:00
|
|
|
note: __('Notes are visible to agents only, never to customers.'),
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Permissions'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Active'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Name'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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: {
|
2021-08-25 12:24:42 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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: 'Organization',
|
|
|
|
name: 'shared',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Shared organization'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
2022-01-25 09:11:47 +00:00
|
|
|
note: __("Customers in the organization can view each other's 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: {
|
2021-08-25 12:24:42 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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: 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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Domain based assignment'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
2022-01-25 09:11:47 +00:00
|
|
|
note: __('Assign users based on user 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: {
|
2021-08-25 12:24:42 +00:00
|
|
|
edit: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
create: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +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: 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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Domain'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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: {
|
2021-08-25 12:24:42 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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: 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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Note'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
2021-11-15 15:58:19 +00:00
|
|
|
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: {
|
2021-08-25 12:24:42 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +00:00
|
|
|
create: {
|
|
|
|
'-all-' => {
|
|
|
|
null: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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: 'Organization',
|
|
|
|
name: 'active',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Active'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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: {
|
2021-08-25 12:24:42 +00:00
|
|
|
edit: {
|
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
create: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
|
|
|
null: false,
|
|
|
|
},
|
|
|
|
},
|
2021-08-25 12:24:42 +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: 'Group',
|
|
|
|
name: 'name',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Name'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Assignment Timeout'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
2021-11-15 15:58:19 +00:00
|
|
|
note: __('Assignment timeout in minutes if assigned agent is not working on it. Ticket will be shown as unassigend.'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Follow-up possible'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
2021-11-15 15:58:19 +00:00
|
|
|
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-' => {
|
2021-11-16 12:14:22 +00:00
|
|
|
null: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
2021-11-16 12:14:22 +00:00
|
|
|
null: false,
|
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: 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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Assign Follow-Ups'),
|
2018-12-19 17:31:51 +00:00
|
|
|
data_type: 'select',
|
2017-04-26 11:28:32 +00:00
|
|
|
data_option: {
|
2021-11-16 12:14:22 +00:00
|
|
|
default: 'true',
|
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
|
|
|
null: false,
|
2021-11-15 15:58:19 +00:00
|
|
|
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-' => {
|
2021-11-16 12:14:22 +00:00
|
|
|
null: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
edit: {
|
2017-04-26 11:28:32 +00:00
|
|
|
'-all-' => {
|
2021-11-16 12:14:22 +00:00
|
|
|
null: false,
|
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: 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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Email'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Signature'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Note'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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,
|
2021-11-15 15:58:19 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
display: __('Active'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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
|
|
|
)
|