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