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