Built motion from commit 2e4747fd.|2.6.7
[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 _0x0646=['setDataValue','join','getDataValue','crudPermissions','split','BOOLEAN','sequelize','exports','STRING','name'];(function(_0xb8d237,_0x1bb6d4){var _0x36fc0c=function(_0x45bb87){while(--_0x45bb87){_0xb8d237['push'](_0xb8d237['shift']());}};_0x36fc0c(++_0x1bb6d4);}(_0x0646,0x164));var _0x6064=function(_0x15372a,_0x4f7bf2){_0x15372a=_0x15372a-0x0;var _0x1d8399=_0x0646[_0x15372a];return _0x1d8399;};'use strict';var Sequelize=require(_0x6064('0x0'));module[_0x6064('0x1')]={'name':{'type':Sequelize[_0x6064('0x2')],'allowNull':![],'unique':_0x6064('0x3')},'crudPermissions':{'type':Sequelize['STRING'],'set':function(_0x42845e){this[_0x6064('0x4')]('crudPermissions',_0x42845e?_0x42845e[_0x6064('0x5')](''):[]);},'get':function(){return this[_0x6064('0x6')](_0x6064('0x7'))?this['getDataValue']('crudPermissions')[_0x6064('0x8')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x6064('0x2')],'allowNull':!![]},'privacyEnabled':{'type':Sequelize[_0x6064('0x9')],'defaultValue':![]},'downloadAttachments':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadCallySquareRecordings':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'downloadContactManagerLists':{'type':Sequelize[_0x6064('0x9')],'defaultValue':!![]},'downloadJscriptySessions':{'type':Sequelize[_0x6064('0x9')],'defaultValue':!![]},'downloadOmnichannelInteractions':{'type':Sequelize[_0x6064('0x9')],'defaultValue':!![]},'downloadScreenRecordings':{'type':Sequelize[_0x6064('0x9')],'defaultValue':!![]},'downloadVoiceRecordings':{'type':Sequelize[_0x6064('0x9')],'defaultValue':!![]}};