c9e58c6e0491476a861127f531982ae55407be96
[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 _0x2dd3=['getDataValue','split','exports','STRING','INTEGER','BOOLEAN','setDataValue','crudPermissions','join'];(function(_0x15ddc9,_0x209223){var _0x2fc9e8=function(_0x2d5e5f){while(--_0x2d5e5f){_0x15ddc9['push'](_0x15ddc9['shift']());}};_0x2fc9e8(++_0x209223);}(_0x2dd3,0x6e));var _0x32dd=function(_0x27ec4b,_0x1dafae){_0x27ec4b=_0x27ec4b-0x0;var _0x4c2c6a=_0x2dd3[_0x27ec4b];return _0x4c2c6a;};'use strict';var Sequelize=require('sequelize');module[_0x32dd('0x0')]={'name':{'type':Sequelize[_0x32dd('0x1')],'allowNull':![]},'category':{'type':Sequelize[_0x32dd('0x1')],'allowNull':![]},'sectionId':{'type':Sequelize[_0x32dd('0x2')],'allowNull':![]},'enabled':{'type':Sequelize[_0x32dd('0x3')],'defaultValue':null},'autoAssociation':{'type':Sequelize[_0x32dd('0x3')],'defaultValue':null},'crudPermissions':{'type':Sequelize['STRING'],'set':function(_0x36e50d){this[_0x32dd('0x4')](_0x32dd('0x5'),_0x36e50d?_0x36e50d[_0x32dd('0x6')](''):[]);},'get':function(){return this[_0x32dd('0x7')](_0x32dd('0x5'))?this[_0x32dd('0x7')](_0x32dd('0x5'))[_0x32dd('0x8')](''):[];}}};