60106a7fa106adb9760e80a577c642258274f04d
[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 _0xb205=['sequelize','exports','STRING','INTEGER','setDataValue','crudPermissions','getDataValue','split'];(function(_0x39fa69,_0x4994b9){var _0x3460ce=function(_0x160686){while(--_0x160686){_0x39fa69['push'](_0x39fa69['shift']());}};_0x3460ce(++_0x4994b9);}(_0xb205,0xf0));var _0x5b20=function(_0x51b9ff,_0x3bac01){_0x51b9ff=_0x51b9ff-0x0;var _0x41581c=_0xb205[_0x51b9ff];return _0x41581c;};'use strict';var Sequelize=require(_0x5b20('0x0'));module[_0x5b20('0x1')]={'name':{'type':Sequelize[_0x5b20('0x2')],'allowNull':![]},'category':{'type':Sequelize[_0x5b20('0x2')],'allowNull':![]},'sectionId':{'type':Sequelize[_0x5b20('0x3')],'allowNull':![]},'enabled':{'type':Sequelize['BOOLEAN'],'defaultValue':null},'autoAssociation':{'type':Sequelize['BOOLEAN'],'defaultValue':null},'crudPermissions':{'type':Sequelize[_0x5b20('0x2')],'set':function(_0x573200){this[_0x5b20('0x4')](_0x5b20('0x5'),_0x573200?_0x573200['join'](''):[]);},'get':function(){return this[_0x5b20('0x6')](_0x5b20('0x5'))?this[_0x5b20('0x6')]('crudPermissions')[_0x5b20('0x7')](''):[];}}};