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