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