c2ab9ba14130056423da83d21e89716d4b2130bc
[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 _0x5cf0=['exports','name','STRING','setDataValue','crudPermissions','join','getDataValue','BOOLEAN','sequelize'];(function(_0x20524a,_0x39b6cd){var _0x13f99a=function(_0x2e085f){while(--_0x2e085f){_0x20524a['push'](_0x20524a['shift']());}};_0x13f99a(++_0x39b6cd);}(_0x5cf0,0x1d3));var _0x05cf=function(_0x42df04,_0x17c96d){_0x42df04=_0x42df04-0x0;var _0x83f776=_0x5cf0[_0x42df04];return _0x83f776;};'use strict';var Sequelize=require(_0x05cf('0x0'));module[_0x05cf('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x05cf('0x2')},'crudPermissions':{'type':Sequelize[_0x05cf('0x3')],'set':function(_0x18a725){this[_0x05cf('0x4')](_0x05cf('0x5'),_0x18a725?_0x18a725[_0x05cf('0x6')](''):[]);},'get':function(){return this['getDataValue'](_0x05cf('0x5'))?this[_0x05cf('0x7')]('crudPermissions')['split'](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x05cf('0x3')],'allowNull':!![]},'privacyEnabled':{'type':Sequelize[_0x05cf('0x8')],'defaultValue':![]},'downloadAttachments':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadCallySquareRecordings':{'type':Sequelize[_0x05cf('0x8')],'defaultValue':!![]},'downloadContactManagerLists':{'type':Sequelize[_0x05cf('0x8')],'defaultValue':!![]},'downloadJscriptySessions':{'type':Sequelize[_0x05cf('0x8')],'defaultValue':!![]},'downloadOmnichannelInteractions':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadScreenRecordings':{'type':Sequelize[_0x05cf('0x8')],'defaultValue':!![]},'downloadVoiceRecordings':{'type':Sequelize[_0x05cf('0x8')],'defaultValue':!![]}};