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