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