2022-01-06 01:26:15 +00:00
|
|
|
const rules = {
|
2023-07-20 15:30:26 +00:00
|
|
|
user: {
|
|
|
|
static: [],
|
|
|
|
},
|
2022-01-06 01:26:15 +00:00
|
|
|
|
2024-01-29 11:48:20 +00:00
|
|
|
supervisor: {
|
|
|
|
static: [
|
|
|
|
"menu-users:view",
|
|
|
|
"user-view:show",
|
2024-01-30 12:50:37 +00:00
|
|
|
"user-modal:editQueues",
|
|
|
|
'dashboard-view:show',
|
2024-02-05 15:29:49 +00:00
|
|
|
'ticket-report:show',
|
|
|
|
'tickets-manager:showall'
|
2024-01-29 11:48:20 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
|
2023-07-20 15:30:26 +00:00
|
|
|
admin: {
|
|
|
|
static: [
|
2024-02-01 20:16:56 +00:00
|
|
|
'show-icon-add-queue',
|
2023-07-20 15:30:26 +00:00
|
|
|
'show-icon-edit-whatsapp',
|
|
|
|
'show-icon-edit-queue',
|
2024-01-29 11:48:20 +00:00
|
|
|
'menu-users:view',
|
2023-07-20 15:30:26 +00:00
|
|
|
'drawer-admin-items:view',
|
|
|
|
'tickets-manager:showall',
|
|
|
|
'user-modal:editProfile',
|
|
|
|
'user-modal:editQueues',
|
|
|
|
'ticket-options:deleteTicket',
|
|
|
|
'contacts-page:deleteContact',
|
|
|
|
'contacts-page:import-csv-contacts',
|
|
|
|
'connections-view:show',
|
|
|
|
'dashboard-view:show',
|
|
|
|
'queues-view:show',
|
|
|
|
'user-view:show',
|
|
|
|
'ticket-report:show',
|
2024-02-01 20:16:56 +00:00
|
|
|
'btn-add-user'
|
2023-07-20 15:30:26 +00:00
|
|
|
],
|
|
|
|
},
|
2022-01-13 10:05:08 +00:00
|
|
|
|
2023-07-20 15:30:26 +00:00
|
|
|
master: {
|
|
|
|
static: [
|
2024-01-29 11:48:20 +00:00
|
|
|
'menu-users:view',
|
2023-07-20 15:30:26 +00:00
|
|
|
'url-remote-session:show',
|
|
|
|
'show-icon-edit-whatsapp',
|
|
|
|
'show-icon-add-queue',
|
|
|
|
'show-icon-edit-queue',
|
|
|
|
'show-icon-delete-queue',
|
|
|
|
'space-disk-info:show',
|
|
|
|
'drawer-admin-items:view',
|
|
|
|
'tickets-manager:showall',
|
|
|
|
'user-modal:editProfile',
|
|
|
|
'user-modal:editQueues',
|
|
|
|
'ticket-options:deleteTicket',
|
|
|
|
'contacts-page:deleteContact',
|
|
|
|
'contacts-page:import-contacts',
|
|
|
|
'contacts-page:import-csv-contacts',
|
|
|
|
'connections-view:show',
|
|
|
|
'dashboard-view:show',
|
|
|
|
'queues-view:show',
|
|
|
|
'user-view:show',
|
|
|
|
'settings-view:show',
|
|
|
|
'btn-add-user',
|
|
|
|
'icon-remove-user',
|
|
|
|
'btn-add-whatsapp',
|
|
|
|
'btn-remove-whatsapp',
|
|
|
|
'ticket-report:show',
|
|
|
|
'connection-button:show',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
2022-06-15 23:36:21 +00:00
|
|
|
|
2023-07-20 15:30:26 +00:00
|
|
|
export default rules
|