969bf42e7b225f12395d3b4cd1565a8c454adbf2
[motion2.git] / server / api / user / user.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 _0x1ab1=['nonat','update','update,nonat','showWebBar','get','isArray','wss','encryption','avpf','force_avp','dtlsenable','dtlsverify','dtlssetup','dtlscertfile','dtlsprivatekey','icesupport','/etc/pki/tls/private/motion.key','rtcp_mux','permissions','map','VIRTUAL','true','false','screenrecording','blockedAt','loginAttempts','util','lodash','name','setDataValue','defaultuser','The\x20name\x20of\x20the\x20user','STRING','fullname','callerid','format','\x22%s\x22\x20<%s>','getDataValue','internal','email','toLowerCase','admin','user','agent','accountcode','BOOLEAN','DATE','DEFAULT\x20PAUSE','INTEGER','dynamic','ENUM','friend','peer','ALLOWED_PASSED_SCREEN','PROHIB_NOT_SCREENED','PROHIB_PASSED_SCREEN','PROHIB_FAILED_SCREEN','udp','transport','split','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]','info','shortinfo','rfc2833','yes','outgoing','force_rport,comedia','join','nat','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','all','ulaw;alaw;gsm','allow','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22gsm\x22]','insecure','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','never','\x22\x22\x20<>','always','accept','originate','uac','uas','certificate','active','passive','actpass'];(function(_0xc16403,_0x19f30c){var _0x4e351d=function(_0x4fe512){while(--_0x4fe512){_0xc16403['push'](_0xc16403['shift']());}};_0x4e351d(++_0x19f30c);}(_0x1ab1,0x1cd));var _0x11ab=function(_0x378820,_0x42c20e){_0x378820=_0x378820-0x0;var _0x45d922=_0x1ab1[_0x378820];return _0x45d922;};'use strict';var Sequelize=require('sequelize');var moment=require('moment');var util=require(_0x11ab('0x0'));var _=require(_0x11ab('0x1'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x11ab('0x2'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9\.\_]+$/i},'set':function(_0x1837a0){this[_0x11ab('0x3')](_0x11ab('0x2'),_0x1837a0);this[_0x11ab('0x3')](_0x11ab('0x4'),_0x1837a0);},'comment':_0x11ab('0x5')},'fullname':{'type':Sequelize[_0x11ab('0x6')],'allowNull':![],'set':function(_0x3e7490){this['setDataValue'](_0x11ab('0x7'),_0x3e7490);this[_0x11ab('0x3')](_0x11ab('0x8'),util[_0x11ab('0x9')](_0x11ab('0xa'),_0x3e7490,this[_0x11ab('0xb')](_0x11ab('0xc'))));}},'alias':{'type':Sequelize[_0x11ab('0x6')]},'email':{'type':Sequelize[_0x11ab('0x6')],'allowNull':![],'unique':_0x11ab('0xd'),'validate':{'isEmail':!![]},'set':function(_0x4f555e){if(_0x4f555e){this[_0x11ab('0x3')]('email',_0x4f555e[_0x11ab('0xe')]());}}},'role':{'type':Sequelize['ENUM'](_0x11ab('0xf'),_0x11ab('0x10'),_0x11ab('0x11'),'telephone'),'allowNull':![]},'password':{'type':Sequelize[_0x11ab('0x6')],'allowNull':![],'validate':{'notEmpty':!![]}},'provider':{'type':Sequelize['STRING'],'defaultValue':'local'},'internal':{'type':Sequelize['INTEGER'](0xb),'allowNull':![],'unique':_0x11ab('0xc'),'set':function(_0x409b00){this[_0x11ab('0x3')]('internal',_0x409b00);this[_0x11ab('0x3')](_0x11ab('0x12'),_0x409b00);this[_0x11ab('0x3')](_0x11ab('0x8'),util[_0x11ab('0x9')](_0x11ab('0xa'),this[_0x11ab('0xb')](_0x11ab('0x7')),_0x409b00));}},'salt':{'type':Sequelize[_0x11ab('0x6')]},'phone':{'type':Sequelize[_0x11ab('0x6')]},'mobile':{'type':Sequelize[_0x11ab('0x6')]},'address':{'type':Sequelize[_0x11ab('0x6')]},'zipcode':{'type':Sequelize[_0x11ab('0x6')]},'userpic':{'type':Sequelize[_0x11ab('0x6')]},'city':{'type':Sequelize['STRING']},'country':{'type':Sequelize[_0x11ab('0x6')]},'online':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'lastLoginAt':{'type':Sequelize[_0x11ab('0x14')]},'voicePause':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'chatPause':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'mailPause':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'faxPause':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'smsPause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'whatsappPause':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'openchannelPause':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'pauseType':{'type':Sequelize[_0x11ab('0x6')],'defaultValue':_0x11ab('0x15')},'lastPauseAt':{'type':Sequelize[_0x11ab('0x14')]},'chatCapacity':{'type':Sequelize[_0x11ab('0x16')],'defaultValue':0x0},'mailCapacity':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'faxCapacity':{'type':Sequelize[_0x11ab('0x16')],'defaultValue':0x0},'smsCapacity':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'whatsappCapacity':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'openchannelCapacity':{'type':Sequelize[_0x11ab('0x16')],'defaultValue':0x0},'phoneBarAutoAnswer':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'phoneBarEnableSettings':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':!![]},'phoneBarListenPort':{'type':Sequelize[_0x11ab('0x16')](0x5),'defaultValue':0x1428},'phoneBarExpires':{'type':Sequelize[_0x11ab('0x16')](0x5),'defaultValue':0x78},'phoneBarRemoteControl':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'phoneBarRemoteControlPort':{'type':Sequelize[_0x11ab('0x16')],'defaultValue':0x26a0},'phoneBarEnableRecording':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarRingInUse':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'chanspy':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'description':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'host':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![],'defaultValue':_0x11ab('0x17')},'ipaddr':{'type':Sequelize['STRING'],'allowNull':!![]},'port':{'type':Sequelize['INTEGER'](0x5),'allowNull':!![]},'regseconds':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'fullcontact':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'regserver':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'useragent':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'lastms':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'type':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x19'),_0x11ab('0x10'),_0x11ab('0x1a')),'allowNull':!![],'defaultValue':_0x11ab('0x19')},'context':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![],'defaultValue':'from-sip'},'callingpres':{'type':Sequelize[_0x11ab('0x18')]('ALLOWED_NOT_SCREENED',_0x11ab('0x1b'),'ALLOWED_FAILED_SCREEN','ALLOWED',_0x11ab('0x1c'),_0x11ab('0x1d'),_0x11ab('0x1e'),'PROHIB'),'allowNull':!![]},'deny':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'permit':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'secret':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'md5secret':{'type':Sequelize['STRING'],'allowNull':!![]},'remotesecret':{'type':Sequelize['STRING'],'allowNull':!![]},'transport':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![],'defaultValue':_0x11ab('0x1f'),'set':function(_0x476758){this[_0x11ab('0x3')](_0x11ab('0x20'),_0x476758?_0x476758['join'](','):null);},'get':function(){return this['getDataValue'](_0x11ab('0x20'))?this[_0x11ab('0xb')]('transport')[_0x11ab('0x21')](','):null;},'comment':_0x11ab('0x22')},'dtmfmode':{'type':Sequelize['ENUM']('rfc2833',_0x11ab('0x23'),_0x11ab('0x24'),'inband','auto'),'allowNull':!![],'defaultValue':_0x11ab('0x25')},'directmedia':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x26'),'no','nonat','update',_0x11ab('0x27')),'allowNull':!![],'defaultValue':'no'},'directrtpsetup':{'type':Sequelize[_0x11ab('0x18')]('yes','no'),'allowNull':!![],'defaultValue':'no'},'directmediapermit':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'directmediadeny':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'nat':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![],'defaultValue':_0x11ab('0x28'),'set':function(_0x5a6967){this[_0x11ab('0x3')]('nat',_0x5a6967?_0x5a6967[_0x11ab('0x29')](','):null);},'get':function(){return this['getDataValue'](_0x11ab('0x2a'))?this['getDataValue'](_0x11ab('0x2a'))[_0x11ab('0x21')](','):null;},'comment':_0x11ab('0x2b')},'callgroup':{'type':Sequelize[_0x11ab('0x6')]},'namedcallgroup':{'type':Sequelize[_0x11ab('0x6')]},'pickupgroup':{'type':Sequelize[_0x11ab('0x6')]},'namedpickupgroup':{'type':Sequelize['STRING']},'language':{'type':Sequelize[_0x11ab('0x6')],'defaultValue':'en'},'tonezone':{'type':Sequelize['STRING']},'disallow':{'type':Sequelize[_0x11ab('0x6')],'allowNull':![],'defaultValue':_0x11ab('0x2c')},'allow':{'type':Sequelize[_0x11ab('0x6')],'allowNull':![],'defaultValue':_0x11ab('0x2d'),'set':function(_0x49bbd2){this[_0x11ab('0x3')]('allow',_0x49bbd2?_0x49bbd2['join'](';'):_0x11ab('0x2d'));},'get':function(){return this[_0x11ab('0xb')](_0x11ab('0x2e'))?this[_0x11ab('0xb')]('allow')[_0x11ab('0x21')](';'):null;},'comment':_0x11ab('0x2f')},'autoframing':{'type':Sequelize['ENUM'](_0x11ab('0x26'),'no'),'allowNull':!![]},'insecure':{'type':Sequelize['STRING'],'allowNull':!![],'set':function(_0x18beca){this[_0x11ab('0x3')](_0x11ab('0x30'),_0x18beca?_0x18beca[_0x11ab('0x29')](','):null);},'get':function(){return this[_0x11ab('0xb')](_0x11ab('0x30'))?this[_0x11ab('0xb')](_0x11ab('0x30'))[_0x11ab('0x21')](','):null;},'comment':_0x11ab('0x31')},'trustrpid':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x26'),'no'),'allowNull':!![],'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x26'),'no'),'allowNull':!![],'defaultValue':'no'},'progressinband':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x26'),'no',_0x11ab('0x32')),'allowNull':!![]},'promiscredir':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x26'),'no'),'allowNull':!![]},'useclientcode':{'type':Sequelize[_0x11ab('0x18')]('yes','no'),'allowNull':!![]},'accountcode':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'setvar':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'callerid':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![],'defaultValue':_0x11ab('0x33')},'amaflags':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'callcounter':{'type':Sequelize['ENUM'](_0x11ab('0x26'),'no'),'allowNull':!![],'defaultValue':_0x11ab('0x26')},'busylevel':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'allowoverlap':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x26'),'no'),'allowNull':!![]},'allowsubscribe':{'type':Sequelize['ENUM'](_0x11ab('0x26'),'no'),'allowNull':!![]},'allowtransfer':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x26'),'no'),'allowNull':!![]},'ignoresdpversion':{'type':Sequelize['ENUM'](_0x11ab('0x26'),'no'),'allowNull':!![]},'subscribecontext':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'template':{'type':Sequelize['STRING'],'allowNull':!![]},'videosupport':{'type':Sequelize[_0x11ab('0x18')]('yes','no',_0x11ab('0x34')),'allowNull':!![],'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'rfc2833compensate':{'type':Sequelize['ENUM'](_0x11ab('0x26'),'no'),'allowNull':!![]},'mailbox':{'type':Sequelize['STRING'],'allowNull':!![]},'session_timers':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x35'),'refuse',_0x11ab('0x36')),'allowNull':!![]},'session_expires':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'session_minse':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'session_refresher':{'type':Sequelize['ENUM'](_0x11ab('0x37'),_0x11ab('0x38')),'allowNull':!![],'defaultValue':_0x11ab('0x38')},'t38pt_usertpsource':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'regexten':{'type':Sequelize['STRING'],'allowNull':!![]},'fromdomain':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'fromuser':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'qualify':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x26'),'no'),'allowNull':!![],'defaultValue':'yes'},'keepalive':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'defaultip':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'defaultuser':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'rtptimeout':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'rtpholdtimeout':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'rtpkeepalive':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'sendrpid':{'type':Sequelize['ENUM'](_0x11ab('0x26'),'no'),'allowNull':!![],'defaultValue':'no'},'outboundproxy':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'callbackextension':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'timert1':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'timerb':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'qualifyfreq':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'contactpermit':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'contactdeny':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'contactacl':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'unsolicited_mailbox':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'use_q850_reason':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'maxforwards':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'encryption':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x26'),'no'),'allowNull':!![],'defaultValue':'no'},'avpf':{'type':Sequelize['ENUM']('yes','no'),'allowNull':!![]},'force_avp':{'type':Sequelize[_0x11ab('0x18')]('yes','no'),'allowNull':!![]},'icesupport':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x26'),'no'),'allowNull':!![]},'dtlsenable':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x26'),'no'),'allowNull':!![]},'dtlsverify':{'type':Sequelize['ENUM'](_0x11ab('0x26'),'no','fingerprint',_0x11ab('0x39')),'allowNull':!![]},'dtlsrekey':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![]},'dtlscertfile':{'type':Sequelize['STRING'],'allowNull':!![]},'dtlsprivatekey':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'dtlscipher':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'dtlscafile':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'dtlscapath':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'dtlssetup':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x3a'),_0x11ab('0x3b'),_0x11ab('0x3c')),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'usereqphone':{'type':Sequelize['ENUM'](_0x11ab('0x26'),'no'),'allowNull':!![],'defaultValue':'no'},'recordonfeature':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'recordofffeature':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'call_limit':{'type':Sequelize[_0x11ab('0x16')](0xb),'allowNull':!![],'defaultValue':0xa},'registertrying':{'type':Sequelize['ENUM'](_0x11ab('0x26'),'no'),'allowNull':!![]},'subscribemwi':{'type':Sequelize[_0x11ab('0x18')]('yes','no'),'allowNull':!![]},'vmexten':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'mohinterpret':{'type':Sequelize['STRING'],'allowNull':!![]},'mohsuggest':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'parkinglot':{'type':Sequelize['STRING'],'allowNull':!![]},'canreinvite':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x26'),'no',_0x11ab('0x3d'),_0x11ab('0x3e'),_0x11ab('0x3f')),'allowNull':!![],'defaultValue':'no'},'loginInPause':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'resetPasswordToken':{'type':Sequelize[_0x11ab('0x6')]},'resetPasswordExpires':{'type':Sequelize['DATE']},'passwordResetAt':{'type':Sequelize[_0x11ab('0x14')],'defaultValue':null},'previousPasswords':{'type':Sequelize[_0x11ab('0x6')]},'showWebBar':{'type':Sequelize[_0x11ab('0x16')],'defaultValue':0x0,'set':function(_0x39362a){this['setDataValue'](_0x11ab('0x40'),_0x39362a);var _0x31e4d6=this[_0x11ab('0x41')]({'plain':!![]});switch(_0x39362a){case 0x0:case 0x1:var _0xbd944f=_0x31e4d6['transport']?_[_0x11ab('0x42')](_0x31e4d6[_0x11ab('0x20')])?_0x31e4d6[_0x11ab('0x20')][_0x11ab('0x29')]():_0x31e4d6[_0x11ab('0x20')]:'udp';if(_0xbd944f===_0x11ab('0x43')){_0xbd944f='udp';}this['setDataValue']('transport',_0xbd944f);this[_0x11ab('0x3')](_0x11ab('0x44'),'no');this[_0x11ab('0x3')](_0x11ab('0x45'),null);this['setDataValue'](_0x11ab('0x46'),null);this[_0x11ab('0x3')]('icesupport',null);this[_0x11ab('0x3')](_0x11ab('0x47'),null);this['setDataValue'](_0x11ab('0x48'),null);this['setDataValue'](_0x11ab('0x49'),null);this['setDataValue'](_0x11ab('0x4a'),null);this[_0x11ab('0x3')](_0x11ab('0x4b'),null);this[_0x11ab('0x3')]('rtcp_mux','no');break;case 0x2:this[_0x11ab('0x3')]('transport',_0x11ab('0x43'));this[_0x11ab('0x3')](_0x11ab('0x44'),_0x11ab('0x26'));this[_0x11ab('0x3')](_0x11ab('0x45'),_0x11ab('0x26'));this[_0x11ab('0x3')](_0x11ab('0x46'),_0x11ab('0x26'));this[_0x11ab('0x3')](_0x11ab('0x4c'),'yes');this[_0x11ab('0x3')](_0x11ab('0x47'),_0x11ab('0x26'));this[_0x11ab('0x3')](_0x11ab('0x48'),'no');this[_0x11ab('0x3')](_0x11ab('0x49'),_0x11ab('0x3c'));this[_0x11ab('0x3')](_0x11ab('0x4a'),_0x31e4d6[_0x11ab('0x4a')]||'/etc/pki/tls/certs/motion.crt');this[_0x11ab('0x3')]('dtlsprivatekey',_0x31e4d6[_0x11ab('0x4b')]||_0x11ab('0x4d'));this[_0x11ab('0x3')](_0x11ab('0x4e'),_0x11ab('0x26'));break;default:}}},'permissions':{'type':Sequelize['TEXT'],'set':function(_0x74c763){this[_0x11ab('0x3')](_0x11ab('0x4f'),_0x74c763?_0x74c763[_0x11ab('0x29')](','):[]);},'get':function(){return this['getDataValue'](_0x11ab('0x4f'))?_[_0x11ab('0x50')](this[_0x11ab('0xb')](_0x11ab('0x4f'))['split'](','),function(_0x30d0a3){return parseInt(_0x30d0a3,0xa);}):[];}},'phoneBarUnconditionalNumber':{'type':Sequelize['STRING']},'phoneBarNoReplyNumber':{'type':Sequelize[_0x11ab('0x6')]},'phoneBarBusyNumber':{'type':Sequelize[_0x11ab('0x6')]},'phoneBarUnconditional':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'phoneBarNoReply':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'phoneBarBusy':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'phoneBarDnd':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':!![]},'phoneBarUnansweredCallBadge':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'phoneBarEnableDtmfTone':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarAutoAnswerDelay':{'type':Sequelize[_0x11ab('0x16')],'defaultValue':0x0},'extensionMonitor':{'type':Sequelize[_0x11ab('0x6')],'defaultValue':''},'crudPermissions':{'type':Sequelize[_0x11ab('0x16')],'defaultValue':0x0},'rtcp_mux':{'type':Sequelize[_0x11ab('0x18')](_0x11ab('0x26'),'no'),'defaultValue':'no'},'allowmessenger':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'phoneBarOutboundProxy':{'type':Sequelize[_0x11ab('0x6')]},'phoneBarEnableJaws':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'phoneBarEnableScreenRecordingByAgent':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'phoneBarEnableVideoRecording':{'type':Sequelize[_0x11ab('0x51')],'get':function(){return this[_0x11ab('0xb')]('phoneBarEnableScreenRecordingByAgent')?this[_0x11ab('0xb')]('phoneBarEnableScreenRecordingByAgent'):![];}},'phoneBarEnableAutomaticScreenRecording':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'phoneBarPrefixRequired':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'hotdesk':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'interface':{'type':Sequelize[_0x11ab('0x6')],'defaultValue':null},'privacyEnabled':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'apiKeyNonce':{'type':Sequelize[_0x11ab('0x6')],'allowNull':!![]},'apiKeyIat':{'type':Sequelize['STRING'],'allowNull':!![]},'screenrecording':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![],'set':function(_0x5d6995){if(typeof _0x5d6995==='string'){var _0x109e4c=_0x5d6995==='1'?!![]:_0x5d6995==='0'?![]:_0x5d6995===_0x11ab('0x52')?!![]:_0x5d6995===_0x11ab('0x53')?![]:![];this[_0x11ab('0x3')]('screenrecording',_0x109e4c);}else{this['setDataValue'](_0x11ab('0x54'),_0x5d6995);}}},'blocked':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![],'set':function(_0x596789){this[_0x11ab('0x3')]('blocked',_0x596789);if(_0x596789===!![]){this[_0x11ab('0x3')](_0x11ab('0x55'),moment());this[_0x11ab('0x3')](_0x11ab('0x56'),0x0);}else{this[_0x11ab('0x3')](_0x11ab('0x55'),null);}}},'blockedAt':{'type':Sequelize[_0x11ab('0x14')],'defaultValue':null},'loginAttempts':{'type':Sequelize[_0x11ab('0x16')],'defaultValue':0x0},'disabled':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':![]},'settingsEnabled':{'type':Sequelize[_0x11ab('0x13')],'defaultValue':!![]}};