09e03a27a9cb078e28d13fef137f60530e44eba1
[motion2.git] / server / api / userProfile / userProfile.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 _0x3351=['exports','STRING','name','setDataValue','join','getDataValue','crudPermissions','split','sequelize'];(function(_0x1fe9d8,_0x1b8bca){var _0xc894d7=function(_0x1bb97c){while(--_0x1bb97c){_0x1fe9d8['push'](_0x1fe9d8['shift']());}};_0xc894d7(++_0x1b8bca);}(_0x3351,0x116));var _0x1335=function(_0x550d12,_0x5384bd){_0x550d12=_0x550d12-0x0;var _0x12103d=_0x3351[_0x550d12];return _0x12103d;};'use strict';var Sequelize=require(_0x1335('0x0'));module[_0x1335('0x1')]={'name':{'type':Sequelize[_0x1335('0x2')],'allowNull':![],'unique':_0x1335('0x3')},'crudPermissions':{'type':Sequelize[_0x1335('0x2')],'set':function(_0x198028){this[_0x1335('0x4')]('crudPermissions',_0x198028?_0x198028[_0x1335('0x5')](''):[]);},'get':function(){return this[_0x1335('0x6')](_0x1335('0x7'))?this['getDataValue'](_0x1335('0x7'))[_0x1335('0x8')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize['STRING'],'allowNull':!![]}};