96b07f84d467bdaf648d3f6f3274c32a459fb687
[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 _0x07c0=['INTEGER','BOOLEAN','setDataValue','crudPermissions','join','getDataValue','split','sequelize','exports'];(function(_0x166934,_0x1d0a4c){var _0x16f386=function(_0x49d0a3){while(--_0x49d0a3){_0x166934['push'](_0x166934['shift']());}};_0x16f386(++_0x1d0a4c);}(_0x07c0,0x18a));var _0x007c=function(_0x49e66,_0x43f4b9){_0x49e66=_0x49e66-0x0;var _0x545549=_0x07c0[_0x49e66];return _0x545549;};'use strict';var Sequelize=require(_0x007c('0x0'));module[_0x007c('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'category':{'type':Sequelize['STRING'],'allowNull':![]},'sectionId':{'type':Sequelize[_0x007c('0x2')],'allowNull':![]},'enabled':{'type':Sequelize[_0x007c('0x3')],'defaultValue':null},'autoAssociation':{'type':Sequelize[_0x007c('0x3')],'defaultValue':null},'crudPermissions':{'type':Sequelize['STRING'],'set':function(_0x124c3e){this[_0x007c('0x4')](_0x007c('0x5'),_0x124c3e?_0x124c3e[_0x007c('0x6')](''):[]);},'get':function(){return this['getDataValue']('crudPermissions')?this[_0x007c('0x7')](_0x007c('0x5'))[_0x007c('0x8')](''):[];}}};