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