2c3a619f565930a271b6039d241be229aacda1cc
[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 _0x8d2b=['split','sequelize','exports','STRING','setDataValue','crudPermissions','join','getDataValue'];(function(_0x4d35c7,_0xb930e0){var _0x595121=function(_0x501d32){while(--_0x501d32){_0x4d35c7['push'](_0x4d35c7['shift']());}};_0x595121(++_0xb930e0);}(_0x8d2b,0x1c9));var _0xb8d2=function(_0x19b84f,_0x48765e){_0x19b84f=_0x19b84f-0x0;var _0x18067b=_0x8d2b[_0x19b84f];return _0x18067b;};'use strict';var Sequelize=require(_0xb8d2('0x0'));module[_0xb8d2('0x1')]={'name':{'type':Sequelize[_0xb8d2('0x2')],'allowNull':![],'unique':'name'},'crudPermissions':{'type':Sequelize[_0xb8d2('0x2')],'set':function(_0x13edaa){this[_0xb8d2('0x3')](_0xb8d2('0x4'),_0x13edaa?_0x13edaa[_0xb8d2('0x5')](''):[]);},'get':function(){return this[_0xb8d2('0x6')]('crudPermissions')?this[_0xb8d2('0x6')](_0xb8d2('0x4'))[_0xb8d2('0x7')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0xb8d2('0x2')],'allowNull':!![]}};