ec31e0d0bf13798d109ff798c1f22a0ab391e7f9
[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 _0x3d6d=['STRING','name','setDataValue','join','getDataValue','crudPermissions','BOOLEAN','sequelize'];(function(_0x3077c6,_0x281fab){var _0x156d56=function(_0x196a4c){while(--_0x196a4c){_0x3077c6['push'](_0x3077c6['shift']());}};_0x156d56(++_0x281fab);}(_0x3d6d,0x1cf));var _0xd3d6=function(_0x599318,_0x319486){_0x599318=_0x599318-0x0;var _0x7b06fa=_0x3d6d[_0x599318];return _0x7b06fa;};'use strict';var Sequelize=require(_0xd3d6('0x0'));module['exports']={'name':{'type':Sequelize[_0xd3d6('0x1')],'allowNull':![],'unique':_0xd3d6('0x2')},'crudPermissions':{'type':Sequelize[_0xd3d6('0x1')],'set':function(_0x101b9b){this[_0xd3d6('0x3')]('crudPermissions',_0x101b9b?_0x101b9b[_0xd3d6('0x4')](''):[]);},'get':function(){return this[_0xd3d6('0x5')](_0xd3d6('0x6'))?this['getDataValue']('crudPermissions')['split'](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0xd3d6('0x1')],'allowNull':!![]},'privacyEnabled':{'type':Sequelize[_0xd3d6('0x7')],'defaultValue':![]},'downloadAttachments':{'type':Sequelize[_0xd3d6('0x7')],'defaultValue':!![]},'downloadCallySquareRecordings':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadContactManagerLists':{'type':Sequelize[_0xd3d6('0x7')],'defaultValue':!![]},'downloadJscriptySessions':{'type':Sequelize[_0xd3d6('0x7')],'defaultValue':!![]},'downloadOmnichannelInteractions':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadScreenRecordings':{'type':Sequelize[_0xd3d6('0x7')],'defaultValue':!![]},'downloadVoiceRecordings':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}};