4121cdcd04b973baa0e6338283a7f7a5a9cf81c7
[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 _0x54fb=['name','crudPermissions','getDataValue','BOOLEAN','sequelize','STRING'];(function(_0x87b0ff,_0x314389){var _0x3bc0b2=function(_0x41682b){while(--_0x41682b){_0x87b0ff['push'](_0x87b0ff['shift']());}};_0x3bc0b2(++_0x314389);}(_0x54fb,0x124));var _0xb54f=function(_0x2af3e7,_0x46f551){_0x2af3e7=_0x2af3e7-0x0;var _0xc28eb8=_0x54fb[_0x2af3e7];return _0xc28eb8;};'use strict';var Sequelize=require(_0xb54f('0x0'));module['exports']={'name':{'type':Sequelize[_0xb54f('0x1')],'allowNull':![],'unique':_0xb54f('0x2')},'crudPermissions':{'type':Sequelize[_0xb54f('0x1')],'set':function(_0x1793b1){this['setDataValue'](_0xb54f('0x3'),_0x1793b1?_0x1793b1['join'](''):[]);},'get':function(){return this[_0xb54f('0x4')]('crudPermissions')?this['getDataValue']('crudPermissions')['split'](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0xb54f('0x1')],'allowNull':!![]},'privacyEnabled':{'type':Sequelize[_0xb54f('0x5')],'defaultValue':![]},'downloadAttachments':{'type':Sequelize[_0xb54f('0x5')],'defaultValue':!![]},'downloadCallySquareRecordings':{'type':Sequelize[_0xb54f('0x5')],'defaultValue':!![]},'downloadContactManagerLists':{'type':Sequelize[_0xb54f('0x5')],'defaultValue':!![]},'downloadJscriptySessions':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadOmnichannelInteractions':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadScreenRecordings':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadVoiceRecordings':{'type':Sequelize[_0xb54f('0x5')],'defaultValue':!![]}};