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