e985c696fdeac993c963caa1c158c8af9e7070b6
[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 _0x6582=['join','split','BOOLEAN','sequelize','exports','STRING','name','setDataValue','crudPermissions'];(function(_0x1b70e3,_0x3a15b1){var _0x1452ab=function(_0x692883){while(--_0x692883){_0x1b70e3['push'](_0x1b70e3['shift']());}};_0x1452ab(++_0x3a15b1);}(_0x6582,0x108));var _0x2658=function(_0xe3f0b0,_0x43edc9){_0xe3f0b0=_0xe3f0b0-0x0;var _0x3a839e=_0x6582[_0xe3f0b0];return _0x3a839e;};'use strict';var Sequelize=require(_0x2658('0x0'));module[_0x2658('0x1')]={'name':{'type':Sequelize[_0x2658('0x2')],'allowNull':![],'unique':_0x2658('0x3')},'crudPermissions':{'type':Sequelize[_0x2658('0x2')],'set':function(_0x4acc8f){this[_0x2658('0x4')](_0x2658('0x5'),_0x4acc8f?_0x4acc8f[_0x2658('0x6')](''):[]);},'get':function(){return this['getDataValue']('crudPermissions')?this['getDataValue'](_0x2658('0x5'))[_0x2658('0x7')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x2658('0x2')],'allowNull':!![]},'privacyEnabled':{'type':Sequelize[_0x2658('0x8')],'defaultValue':![]},'downloadAttachments':{'type':Sequelize[_0x2658('0x8')],'defaultValue':!![]},'downloadCallySquareRecordings':{'type':Sequelize[_0x2658('0x8')],'defaultValue':!![]},'downloadContactManagerLists':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadJscriptySessions':{'type':Sequelize[_0x2658('0x8')],'defaultValue':!![]},'downloadOmnichannelInteractions':{'type':Sequelize[_0x2658('0x8')],'defaultValue':!![]},'downloadScreenRecordings':{'type':Sequelize[_0x2658('0x8')],'defaultValue':!![]},'downloadVoiceRecordings':{'type':Sequelize[_0x2658('0x8')],'defaultValue':!![]}};