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