Built motion from commit 52c8a02d.|2.6.29
[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 _0xda3f=['join','getDataValue','crudPermissions','split','exports','STRING','BOOLEAN','setDataValue'];(function(_0x246e35,_0x586dff){var _0x4895ef=function(_0x2b45fc){while(--_0x2b45fc){_0x246e35['push'](_0x246e35['shift']());}};_0x4895ef(++_0x586dff);}(_0xda3f,0xec));var _0xfda3=function(_0xd969c8,_0x2cd994){_0xd969c8=_0xd969c8-0x0;var _0x2c508e=_0xda3f[_0xd969c8];return _0x2c508e;};'use strict';var Sequelize=require('sequelize');module[_0xfda3('0x0')]={'name':{'type':Sequelize[_0xfda3('0x1')],'allowNull':![]},'category':{'type':Sequelize['STRING'],'allowNull':![]},'sectionId':{'type':Sequelize['INTEGER'],'allowNull':![]},'enabled':{'type':Sequelize['BOOLEAN'],'defaultValue':null},'autoAssociation':{'type':Sequelize[_0xfda3('0x2')],'defaultValue':null},'crudPermissions':{'type':Sequelize['STRING'],'set':function(_0x36dc71){this[_0xfda3('0x3')]('crudPermissions',_0x36dc71?_0x36dc71[_0xfda3('0x4')](''):[]);},'get':function(){return this[_0xfda3('0x5')]('crudPermissions')?this['getDataValue'](_0xfda3('0x6'))[_0xfda3('0x7')](''):[];}}};