ec7c76bb27b37e6d37a0f65dc4911335d9979fc6
[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 _0x7c62=['crudPermissions','join','split','BOOLEAN','sequelize','exports','STRING','setDataValue'];(function(_0x8fb4f5,_0x178032){var _0x4844b3=function(_0x4e925f){while(--_0x4e925f){_0x8fb4f5['push'](_0x8fb4f5['shift']());}};_0x4844b3(++_0x178032);}(_0x7c62,0xe4));var _0x27c6=function(_0x312ded,_0x3692f4){_0x312ded=_0x312ded-0x0;var _0x49965a=_0x7c62[_0x312ded];return _0x49965a;};'use strict';var Sequelize=require(_0x27c6('0x0'));module[_0x27c6('0x1')]={'name':{'type':Sequelize[_0x27c6('0x2')],'allowNull':![],'unique':'name'},'crudPermissions':{'type':Sequelize[_0x27c6('0x2')],'set':function(_0xcd1d83){this[_0x27c6('0x3')](_0x27c6('0x4'),_0xcd1d83?_0xcd1d83[_0x27c6('0x5')](''):[]);},'get':function(){return this['getDataValue'](_0x27c6('0x4'))?this['getDataValue'](_0x27c6('0x4'))[_0x27c6('0x6')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x27c6('0x2')],'allowNull':!![]},'privacyEnabled':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'downloadAttachments':{'type':Sequelize[_0x27c6('0x7')],'defaultValue':!![]},'downloadCallySquareRecordings':{'type':Sequelize[_0x27c6('0x7')],'defaultValue':!![]},'downloadContactManagerLists':{'type':Sequelize[_0x27c6('0x7')],'defaultValue':!![]},'downloadJscriptySessions':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadOmnichannelInteractions':{'type':Sequelize[_0x27c6('0x7')],'defaultValue':!![]},'downloadScreenRecordings':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadVoiceRecordings':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}};