b3f28758f07e9fd285a726212f4d1edfb1cb4e43
[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 _0x142c=['crudPermissions','join','getDataValue','sequelize','exports','STRING','name','setDataValue'];(function(_0x57645b,_0x25f73a){var _0xe82f00=function(_0x526b4){while(--_0x526b4){_0x57645b['push'](_0x57645b['shift']());}};_0xe82f00(++_0x25f73a);}(_0x142c,0x163));var _0xc142=function(_0x5b5317,_0x2a49c4){_0x5b5317=_0x5b5317-0x0;var _0x3a212a=_0x142c[_0x5b5317];return _0x3a212a;};'use strict';var Sequelize=require(_0xc142('0x0'));module[_0xc142('0x1')]={'name':{'type':Sequelize[_0xc142('0x2')],'allowNull':![],'unique':_0xc142('0x3')},'crudPermissions':{'type':Sequelize[_0xc142('0x2')],'set':function(_0x3996b4){this[_0xc142('0x4')](_0xc142('0x5'),_0x3996b4?_0x3996b4[_0xc142('0x6')](''):[]);},'get':function(){return this['getDataValue']('crudPermissions')?this[_0xc142('0x7')]('crudPermissions')['split'](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0xc142('0x2')],'allowNull':!![]}};