Built motion from commit b5996064.|2.6.21
[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 _0xb694=['STRING','setDataValue','crudPermissions','getDataValue','split','BOOLEAN','sequelize','exports','name'];(function(_0xdee7ec,_0x29d552){var _0x1879b6=function(_0x3a3e13){while(--_0x3a3e13){_0xdee7ec['push'](_0xdee7ec['shift']());}};_0x1879b6(++_0x29d552);}(_0xb694,0x1bf));var _0x4b69=function(_0x502203,_0xab53b9){_0x502203=_0x502203-0x0;var _0x5ba6f3=_0xb694[_0x502203];return _0x5ba6f3;};'use strict';var Sequelize=require(_0x4b69('0x0'));module[_0x4b69('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x4b69('0x2')},'crudPermissions':{'type':Sequelize[_0x4b69('0x3')],'set':function(_0xf60143){this[_0x4b69('0x4')](_0x4b69('0x5'),_0xf60143?_0xf60143['join'](''):[]);},'get':function(){return this['getDataValue']('crudPermissions')?this[_0x4b69('0x6')]('crudPermissions')[_0x4b69('0x7')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x4b69('0x3')],'allowNull':!![]},'privacyEnabled':{'type':Sequelize[_0x4b69('0x8')],'defaultValue':![]},'downloadAttachments':{'type':Sequelize[_0x4b69('0x8')],'defaultValue':!![]},'downloadCallySquareRecordings':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadContactManagerLists':{'type':Sequelize[_0x4b69('0x8')],'defaultValue':!![]},'downloadJscriptySessions':{'type':Sequelize[_0x4b69('0x8')],'defaultValue':!![]},'downloadOmnichannelInteractions':{'type':Sequelize[_0x4b69('0x8')],'defaultValue':!![]},'downloadScreenRecordings':{'type':Sequelize[_0x4b69('0x8')],'defaultValue':!![]},'downloadVoiceRecordings':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}};