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