Built motion from commit (unavailable).|2.5.26
[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 _0x8fe4=['sequelize','exports','STRING','BOOLEAN','setDataValue','crudPermissions','join','split'];(function(_0x48010f,_0x41a6e2){var _0x598b25=function(_0x36f9cc){while(--_0x36f9cc){_0x48010f['push'](_0x48010f['shift']());}};_0x598b25(++_0x41a6e2);}(_0x8fe4,0x170));var _0x48fe=function(_0x90c8e7,_0x3c4a17){_0x90c8e7=_0x90c8e7-0x0;var _0x47953f=_0x8fe4[_0x90c8e7];return _0x47953f;};'use strict';var Sequelize=require(_0x48fe('0x0'));module[_0x48fe('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'category':{'type':Sequelize[_0x48fe('0x2')],'allowNull':![]},'sectionId':{'type':Sequelize['INTEGER'],'allowNull':![]},'enabled':{'type':Sequelize['BOOLEAN'],'defaultValue':null},'autoAssociation':{'type':Sequelize[_0x48fe('0x3')],'defaultValue':null},'crudPermissions':{'type':Sequelize[_0x48fe('0x2')],'set':function(_0x3cc016){this[_0x48fe('0x4')](_0x48fe('0x5'),_0x3cc016?_0x3cc016[_0x48fe('0x6')](''):[]);},'get':function(){return this['getDataValue']('crudPermissions')?this['getDataValue']('crudPermissions')[_0x48fe('0x7')](''):[];}}};