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