4df7b0d383266f1abe0d54100a0f1ccb9a69bbee
[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 _0x1472=['STRING','setDataValue','crudPermissions','join','getDataValue','split','sequelize','exports','name'];(function(_0x6569a8,_0x53bf5c){var _0x44f32a=function(_0x2299a8){while(--_0x2299a8){_0x6569a8['push'](_0x6569a8['shift']());}};_0x44f32a(++_0x53bf5c);}(_0x1472,0x1b6));var _0x2147=function(_0x4dbba7,_0x34d6d1){_0x4dbba7=_0x4dbba7-0x0;var _0x43ef83=_0x1472[_0x4dbba7];return _0x43ef83;};'use strict';var Sequelize=require(_0x2147('0x0'));module[_0x2147('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x2147('0x2')},'crudPermissions':{'type':Sequelize[_0x2147('0x3')],'set':function(_0x37dbf1){this[_0x2147('0x4')](_0x2147('0x5'),_0x37dbf1?_0x37dbf1[_0x2147('0x6')](''):[]);},'get':function(){return this['getDataValue'](_0x2147('0x5'))?this[_0x2147('0x7')](_0x2147('0x5'))[_0x2147('0x8')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x2147('0x3')],'allowNull':!![]}};