Built motion from commit 5ae82ce5.|2.6.7
[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 _0x1c9a=['sequelize','STRING','INTEGER','BOOLEAN','setDataValue','crudPermissions','join','split'];(function(_0x4089d1,_0x10c140){var _0x1b4aee=function(_0x77412a){while(--_0x77412a){_0x4089d1['push'](_0x4089d1['shift']());}};_0x1b4aee(++_0x10c140);}(_0x1c9a,0x98));var _0xa1c9=function(_0x30f181,_0x228bc0){_0x30f181=_0x30f181-0x0;var _0x151fa5=_0x1c9a[_0x30f181];return _0x151fa5;};'use strict';var Sequelize=require(_0xa1c9('0x0'));module['exports']={'name':{'type':Sequelize[_0xa1c9('0x1')],'allowNull':![]},'category':{'type':Sequelize['STRING'],'allowNull':![]},'sectionId':{'type':Sequelize[_0xa1c9('0x2')],'allowNull':![]},'enabled':{'type':Sequelize[_0xa1c9('0x3')],'defaultValue':null},'autoAssociation':{'type':Sequelize[_0xa1c9('0x3')],'defaultValue':null},'crudPermissions':{'type':Sequelize['STRING'],'set':function(_0x21c0fc){this[_0xa1c9('0x4')](_0xa1c9('0x5'),_0x21c0fc?_0x21c0fc[_0xa1c9('0x6')](''):[]);},'get':function(){return this['getDataValue'](_0xa1c9('0x5'))?this['getDataValue'](_0xa1c9('0x5'))[_0xa1c9('0x7')](''):[];}}};