8aa86d52d86704876795778d177dce52939452a0
[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 _0x4f82=['exports','STRING','BOOLEAN','setDataValue','crudPermissions','join','getDataValue','split','sequelize'];(function(_0x7f677f,_0x5f2c1c){var _0x5acea1=function(_0x21e95e){while(--_0x21e95e){_0x7f677f['push'](_0x7f677f['shift']());}};_0x5acea1(++_0x5f2c1c);}(_0x4f82,0xbc));var _0x24f8=function(_0x4ae625,_0xf396d0){_0x4ae625=_0x4ae625-0x0;var _0x31accf=_0x4f82[_0x4ae625];return _0x31accf;};'use strict';var Sequelize=require(_0x24f8('0x0'));module[_0x24f8('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'category':{'type':Sequelize[_0x24f8('0x2')],'allowNull':![]},'sectionId':{'type':Sequelize['INTEGER'],'allowNull':![]},'enabled':{'type':Sequelize[_0x24f8('0x3')],'defaultValue':null},'autoAssociation':{'type':Sequelize['BOOLEAN'],'defaultValue':null},'crudPermissions':{'type':Sequelize[_0x24f8('0x2')],'set':function(_0x555fab){this[_0x24f8('0x4')](_0x24f8('0x5'),_0x555fab?_0x555fab[_0x24f8('0x6')](''):[]);},'get':function(){return this[_0x24f8('0x7')]('crudPermissions')?this[_0x24f8('0x7')](_0x24f8('0x5'))[_0x24f8('0x8')](''):[];}}};