7d9d418931a54dbce730e8db410898a3a98bebea
[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 _0x97ed=['exports','INTEGER','BOOLEAN','STRING','setDataValue','crudPermissions','getDataValue','sequelize'];(function(_0x10d405,_0x28d136){var _0x12bd98=function(_0x3b6cc3){while(--_0x3b6cc3){_0x10d405['push'](_0x10d405['shift']());}};_0x12bd98(++_0x28d136);}(_0x97ed,0x1e7));var _0xd97e=function(_0xa148b7,_0x2f3eb2){_0xa148b7=_0xa148b7-0x0;var _0x51efd3=_0x97ed[_0xa148b7];return _0x51efd3;};'use strict';var Sequelize=require(_0xd97e('0x0'));module[_0xd97e('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'category':{'type':Sequelize['STRING'],'allowNull':![]},'sectionId':{'type':Sequelize[_0xd97e('0x2')],'allowNull':![]},'enabled':{'type':Sequelize[_0xd97e('0x3')],'defaultValue':null},'autoAssociation':{'type':Sequelize['BOOLEAN'],'defaultValue':null},'crudPermissions':{'type':Sequelize[_0xd97e('0x4')],'set':function(_0x27b80c){this[_0xd97e('0x5')](_0xd97e('0x6'),_0x27b80c?_0x27b80c['join'](''):[]);},'get':function(){return this[_0xd97e('0x7')](_0xd97e('0x6'))?this['getDataValue'](_0xd97e('0x6'))['split'](''):[];}}};