82c7efd3d93868e15f7917468214dc3fca8c9ea8
[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 _0x2b36=['getDataValue','crudPermissions','split','BOOLEAN','exports','STRING','name','join'];(function(_0xd9eef7,_0x39fcab){var _0x584cff=function(_0x555e21){while(--_0x555e21){_0xd9eef7['push'](_0xd9eef7['shift']());}};_0x584cff(++_0x39fcab);}(_0x2b36,0x10c));var _0x62b3=function(_0x3b438c,_0x255a1f){_0x3b438c=_0x3b438c-0x0;var _0x4474e4=_0x2b36[_0x3b438c];return _0x4474e4;};'use strict';var Sequelize=require('sequelize');module[_0x62b3('0x0')]={'name':{'type':Sequelize[_0x62b3('0x1')],'allowNull':![],'unique':_0x62b3('0x2')},'crudPermissions':{'type':Sequelize[_0x62b3('0x1')],'set':function(_0x53a2af){this['setDataValue']('crudPermissions',_0x53a2af?_0x53a2af[_0x62b3('0x3')](''):[]);},'get':function(){return this[_0x62b3('0x4')]('crudPermissions')?this[_0x62b3('0x4')](_0x62b3('0x5'))[_0x62b3('0x6')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x62b3('0x1')],'allowNull':!![]},'privacyEnabled':{'type':Sequelize[_0x62b3('0x7')],'defaultValue':![]},'downloadAttachments':{'type':Sequelize[_0x62b3('0x7')],'defaultValue':!![]},'downloadCallySquareRecordings':{'type':Sequelize[_0x62b3('0x7')],'defaultValue':!![]},'downloadContactManagerLists':{'type':Sequelize[_0x62b3('0x7')],'defaultValue':!![]},'downloadJscriptySessions':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadOmnichannelInteractions':{'type':Sequelize[_0x62b3('0x7')],'defaultValue':!![]},'downloadScreenRecordings':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadVoiceRecordings':{'type':Sequelize[_0x62b3('0x7')],'defaultValue':!![]}};