e828999da17c9b5eb516f040c0c5e53105bafa1d
[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 _0x749c=['join','getDataValue','sequelize','exports','STRING','name','setDataValue','crudPermissions'];(function(_0x599f41,_0x4db732){var _0x2e4d58=function(_0x14c882){while(--_0x14c882){_0x599f41['push'](_0x599f41['shift']());}};_0x2e4d58(++_0x4db732);}(_0x749c,0x17a));var _0xc749=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0x749c[_0x4565bf];return _0x5610ba;};'use strict';var Sequelize=require(_0xc749('0x0'));module[_0xc749('0x1')]={'name':{'type':Sequelize[_0xc749('0x2')],'allowNull':![],'unique':_0xc749('0x3')},'crudPermissions':{'type':Sequelize['STRING'],'set':function(_0x23f03a){this[_0xc749('0x4')](_0xc749('0x5'),_0x23f03a?_0x23f03a[_0xc749('0x6')](''):[]);},'get':function(){return this[_0xc749('0x7')](_0xc749('0x5'))?this['getDataValue'](_0xc749('0x5'))['split'](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0xc749('0x2')],'allowNull':!![]}};