01e47e1fdf6069319cd150a368170ddd7aa6f25d
[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 _0x6141=['BOOLEAN','exports','name','STRING','setDataValue','crudPermissions','join','split'];(function(_0x1ec9ae,_0x3e0f90){var _0x5eb7ec=function(_0x2de0da){while(--_0x2de0da){_0x1ec9ae['push'](_0x1ec9ae['shift']());}};_0x5eb7ec(++_0x3e0f90);}(_0x6141,0xd9));var _0x1614=function(_0x1d4abc,_0x2c8a94){_0x1d4abc=_0x1d4abc-0x0;var _0x160b12=_0x6141[_0x1d4abc];return _0x160b12;};'use strict';var Sequelize=require('sequelize');module[_0x1614('0x0')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x1614('0x1')},'crudPermissions':{'type':Sequelize[_0x1614('0x2')],'set':function(_0x5153ea){this[_0x1614('0x3')](_0x1614('0x4'),_0x5153ea?_0x5153ea[_0x1614('0x5')](''):[]);},'get':function(){return this['getDataValue'](_0x1614('0x4'))?this['getDataValue'](_0x1614('0x4'))[_0x1614('0x6')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x1614('0x2')],'allowNull':!![]},'privacyEnabled':{'type':Sequelize[_0x1614('0x7')],'defaultValue':![]},'downloadAttachments':{'type':Sequelize[_0x1614('0x7')],'defaultValue':!![]},'downloadCallySquareRecordings':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadContactManagerLists':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadJscriptySessions':{'type':Sequelize[_0x1614('0x7')],'defaultValue':!![]},'downloadOmnichannelInteractions':{'type':Sequelize[_0x1614('0x7')],'defaultValue':!![]},'downloadScreenRecordings':{'type':Sequelize[_0x1614('0x7')],'defaultValue':!![]},'downloadVoiceRecordings':{'type':Sequelize[_0x1614('0x7')],'defaultValue':!![]}};