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