Built motion from commit 8356fca3.|2.6.19
[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 _0x2e88=['split','BOOLEAN','sequelize','STRING','name','setDataValue','crudPermissions','join','getDataValue'];(function(_0x31cc4b,_0x2c2bf0){var _0x2b9fb2=function(_0x260fe3){while(--_0x260fe3){_0x31cc4b['push'](_0x31cc4b['shift']());}};_0x2b9fb2(++_0x2c2bf0);}(_0x2e88,0x1c4));var _0x82e8=function(_0x3e0b8f,_0x1cddeb){_0x3e0b8f=_0x3e0b8f-0x0;var _0x22f742=_0x2e88[_0x3e0b8f];return _0x22f742;};'use strict';var Sequelize=require(_0x82e8('0x0'));module['exports']={'name':{'type':Sequelize[_0x82e8('0x1')],'allowNull':![],'unique':_0x82e8('0x2')},'crudPermissions':{'type':Sequelize[_0x82e8('0x1')],'set':function(_0xfd1e22){this[_0x82e8('0x3')](_0x82e8('0x4'),_0xfd1e22?_0xfd1e22[_0x82e8('0x5')](''):[]);},'get':function(){return this['getDataValue']('crudPermissions')?this[_0x82e8('0x6')](_0x82e8('0x4'))[_0x82e8('0x7')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize['STRING'],'allowNull':!![]},'privacyEnabled':{'type':Sequelize[_0x82e8('0x8')],'defaultValue':![]},'downloadAttachments':{'type':Sequelize[_0x82e8('0x8')],'defaultValue':!![]},'downloadCallySquareRecordings':{'type':Sequelize[_0x82e8('0x8')],'defaultValue':!![]},'downloadContactManagerLists':{'type':Sequelize[_0x82e8('0x8')],'defaultValue':!![]},'downloadJscriptySessions':{'type':Sequelize[_0x82e8('0x8')],'defaultValue':!![]},'downloadOmnichannelInteractions':{'type':Sequelize[_0x82e8('0x8')],'defaultValue':!![]},'downloadScreenRecordings':{'type':Sequelize[_0x82e8('0x8')],'defaultValue':!![]},'downloadVoiceRecordings':{'type':Sequelize[_0x82e8('0x8')],'defaultValue':!![]}};