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