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