1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x0776=['BOOLEAN','setDataValue','crudPermissions','join','split','sequelize','STRING','INTEGER'];(function(_0x4394b6,_0x12357f){var _0x360244=function(_0x5689a1){while(--_0x5689a1){_0x4394b6['push'](_0x4394b6['shift']());}};_0x360244(++_0x12357f);}(_0x0776,0xad));var _0x6077=function(_0x5ccdac,_0x5ba9b1){_0x5ccdac=_0x5ccdac-0x0;var _0x38961c=_0x0776[_0x5ccdac];return _0x38961c;};'use strict';var Sequelize=require(_0x6077('0x0'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![]},'category':{'type':Sequelize[_0x6077('0x1')],'allowNull':![]},'sectionId':{'type':Sequelize[_0x6077('0x2')],'allowNull':![]},'enabled':{'type':Sequelize['BOOLEAN'],'defaultValue':null},'autoAssociation':{'type':Sequelize[_0x6077('0x3')],'defaultValue':null},'crudPermissions':{'type':Sequelize[_0x6077('0x1')],'set':function(_0x360b30){this[_0x6077('0x4')](_0x6077('0x5'),_0x360b30?_0x360b30[_0x6077('0x6')](''):[]);},'get':function(){return this['getDataValue']('crudPermissions')?this['getDataValue']('crudPermissions')[_0x6077('0x7')](''):[];}}};