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