bc7980bec0a772801908f3d10058db1ad0292546
[motion2.git] / server / api / userProfileSection / userProfileSection.attributes.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x52b2=['BOOLEAN','setDataValue','crudPermissions','join','getDataValue','split','sequelize','exports','STRING','INTEGER'];(function(_0x38a19e,_0x36f6d2){var _0x449275=function(_0x2fc9c8){while(--_0x2fc9c8){_0x38a19e['push'](_0x38a19e['shift']());}};_0x449275(++_0x36f6d2);}(_0x52b2,0x11e));var _0x252b=function(_0x53c145,_0x481583){_0x53c145=_0x53c145-0x0;var _0x3fbd8f=_0x52b2[_0x53c145];return _0x3fbd8f;};'use strict';var Sequelize=require(_0x252b('0x0'));module[_0x252b('0x1')]={'name':{'type':Sequelize[_0x252b('0x2')],'allowNull':![]},'category':{'type':Sequelize[_0x252b('0x2')],'allowNull':![]},'sectionId':{'type':Sequelize[_0x252b('0x3')],'allowNull':![]},'enabled':{'type':Sequelize[_0x252b('0x4')],'defaultValue':null},'autoAssociation':{'type':Sequelize['BOOLEAN'],'defaultValue':null},'crudPermissions':{'type':Sequelize[_0x252b('0x2')],'set':function(_0x35fe82){this[_0x252b('0x5')](_0x252b('0x6'),_0x35fe82?_0x35fe82[_0x252b('0x7')](''):[]);},'get':function(){return this['getDataValue'](_0x252b('0x6'))?this[_0x252b('0x8')](_0x252b('0x6'))[_0x252b('0x9')](''):[];}}};