cd412e48585d338c1acc94e90d6813a95b4b8c69
[motion2.git] / server / services / ami / model / voiceQueue.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 _0x0023=['name','monitor_format','type','inbound','total','answered','sumDuration','sumHoldTime','sumBillable','unmanaged','available','busy','inUse','invalid','notInUse','onHold','paused','ringing','ringInUse','talking','unavailable','unknown','acw','acwTimeout','autopause','message','temp','dialTimezone','dialGlobalInterval','dialActive','dialMethod','progressive','dialLimitChannel','dialLimitQueue','dialPowerLevel','dialPredictiveOptimization','dropRate','dialPredictiveOptimizationPercentage','dialPredictiveInterval','dialOriginateCallerIdName','dialOriginateCallerIdNumber','anonymous','dialOriginateTimeout','dialQueueOptions','tTxX','dialQueueTimeout','dialQueueProject','dialCongestionMaxRetry','dialCongestionRetryFrequency','dialBusyMaxRetry','dialBusyRetryFrequency','dialNoAnswerMaxRetry','dialNoAnswerRetryFrequency','dialNoSuchNumberMaxRetry','dialNoSuchNumberRetryFrequency','dialDropMaxRetry','dialDropRetryFrequency','dialAbandonedMaxRetry','dialAbandonedRetryFrequency','dialMachineMaxRetry','dialMachineRetryFrequency','dialAgentRejectMaxRetry','dialAgentRejectRetryFrequency','callAdditionalPhoneAfterMin','dialGlobalMaxRetry','Trunk','TrunkBackup','dialPrefix','Interval','dialOrderByScheduledAt','dialRandomLastDigitCallerIdNumber','dialCutDigit','strategy','queueStatusComplete','dialAMDActive','dialAMDInitialSilence','dialAMDGreeting','dialAMDAfterGreetingSilence','dialAMDTotalAnalysisTime','dialAMDMinWordLength','dialAMDBetweenWordsSilence','dialAMDMaximumNumberOfWords','dialAMDSilenceThreshold','dialAMDMaximumWordLength','pTalking','timeout','outboundAnswerAgiCallsDay','outboundNoAnswerCallsDay','outboundBusyCallsDay','outboundCongestionCallsDay','outboundUnknownCallsDay','outboundBlacklistCallsDay','outboundOriginateFailureCallsDay','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundDropCallsDayACS','outboundReCallsDay','outboundAbandonedDay','startPredictive','handlePredictive','predictiveIntervalMultiplicativeFactor','predictiveIntervalTotalCalls','predictiveIntervalAnsweredCalls','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalPauses','predictiveIntervalAvailable','predictiveIntervalMaxThreshold','dialPredictiveIntervalMaxThreshold','predictiveIntervalMinThreshold','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','erlangBusyFactor','dialRecallMeTimeout','dialRecallInQueue','dialPreviewAutoRecallMe','dialPreviewRecallmeReminder','dialQueueProject2','dialAgiAfterHangupAgent','mandatoryDisposition','mandatoryDispositionPause','queueSummaryCountersUpdated','exports','wav','gsm','fewestcalls','leastrecent','linear','ringall','roundrobin','rrordered'];(function(_0x5b1a68,_0x109143){var _0x45133f=function(_0xf649a5){while(--_0xf649a5){_0x5b1a68['push'](_0x5b1a68['shift']());}};_0x45133f(++_0x109143);}(_0x0023,0x10a));var _0x3002=function(_0x58f644,_0x42efdc){_0x58f644=_0x58f644-0x0;var _0xf9ff14=_0x0023[_0x58f644];return _0xf9ff14;};'use strict';var monitorFormat={'wav':_0x3002('0x0'),'wav49':'wav49','gsm':_0x3002('0x1')};var strategy={'fewestcalls':_0x3002('0x2'),'leastrecent':_0x3002('0x3'),'linear':_0x3002('0x4'),'random':'random','ringall':_0x3002('0x5'),'rr':_0x3002('0x6'),'rrmemory':'rrmemory','rrordered':_0x3002('0x7'),'wrandom':'wrandom'};function VoiceQueue(_0x322f49){this['id']=_0x322f49['id']||0x0;this[_0x3002('0x8')]=_0x322f49[_0x3002('0x8')]||'';this[_0x3002('0x9')]=_0x322f49[_0x3002('0x9')]||'';this[_0x3002('0xa')]=_0x322f49['type']||_0x3002('0xb');this['waiting']=0x0;this[_0x3002('0xc')]=0x0;this[_0x3002('0xd')]=0x0;this[_0x3002('0xe')]=0x0;this[_0x3002('0xf')]=0x0;this[_0x3002('0x10')]=0x0;this[_0x3002('0x11')]=0x0;this['abandoned']=0x0;this[_0x3002('0x12')]=0x0;this[_0x3002('0x13')]=0x0;this[_0x3002('0x14')]=0x0;this[_0x3002('0x15')]=0x0;this['loggedIn']=0x0;this[_0x3002('0x16')]=0x0;this[_0x3002('0x17')]=0x0;this[_0x3002('0x18')]=0x0;this[_0x3002('0x19')]=0x0;this[_0x3002('0x1a')]=0x0;this[_0x3002('0x1b')]=0x0;this[_0x3002('0x1c')]=0x0;this[_0x3002('0x1d')]=0x0;this[_0x3002('0x1e')]=_0x322f49[_0x3002('0x1e')]||![];this[_0x3002('0x1f')]=_0x322f49[_0x3002('0x1f')]||0xa;this['autopause']=_0x322f49[_0x3002('0x20')]||'no';this['sendMessageOneNotActive']=!![];this[_0x3002('0x21')]='';this['statusMessage']='';this['originated']=0x0;this[_0x3002('0x22')]=0x0;this['dialTimezone']=_0x322f49[_0x3002('0x23')]||null;this['dialGlobalInterval']=_0x322f49['dialGlobalInterval']?_0x322f49[_0x3002('0x24')]:null;this[_0x3002('0x25')]=_0x322f49[_0x3002('0x25')];this[_0x3002('0x26')]=_0x322f49[_0x3002('0x26')]||_0x3002('0x27');this['dialLimitChannel']=_0x322f49[_0x3002('0x28')]||0x0;this['dialLimitQueue']=_0x322f49[_0x3002('0x29')]||0x0;this[_0x3002('0x2a')]=_0x322f49[_0x3002('0x2a')]||0x1;this['dialPredictiveOptimization']=_0x322f49[_0x3002('0x2b')]||_0x3002('0x2c');this[_0x3002('0x2d')]=_0x322f49['dialPredictiveOptimizationPercentage']||0.03;this[_0x3002('0x2e')]=_0x322f49[_0x3002('0x2e')]||0x258;this[_0x3002('0x2f')]=_0x322f49[_0x3002('0x2f')]||'anonymous';this[_0x3002('0x30')]=_0x322f49[_0x3002('0x30')]||_0x3002('0x31');this[_0x3002('0x32')]=_0x322f49[_0x3002('0x32')]||0x1e;this[_0x3002('0x33')]=_0x322f49[_0x3002('0x33')]||_0x3002('0x34');this[_0x3002('0x35')]=_0x322f49['dialQueueTimeout']||0x3;this[_0x3002('0x36')]=_0x322f49[_0x3002('0x36')]||undefined;this[_0x3002('0x37')]=_0x322f49[_0x3002('0x37')]||0x3;this['dialCongestionRetryFrequency']=_0x322f49[_0x3002('0x38')]||0x96;this[_0x3002('0x39')]=_0x322f49[_0x3002('0x39')]||0x3;this[_0x3002('0x3a')]=_0x322f49[_0x3002('0x3a')]||0x96;this[_0x3002('0x3b')]=_0x322f49['dialNoAnswerMaxRetry']||0x3;this[_0x3002('0x3c')]=_0x322f49[_0x3002('0x3c')]||0x96;this[_0x3002('0x3d')]=_0x322f49[_0x3002('0x3d')]||0x3;this[_0x3002('0x3e')]=_0x322f49['dialNoSuchNumberRetryFrequency']||0x96;this[_0x3002('0x3f')]=_0x322f49['dialDropMaxRetry']||0x3;this['dialDropRetryFrequency']=_0x322f49[_0x3002('0x40')]||0x96;this[_0x3002('0x41')]=_0x322f49[_0x3002('0x41')]||0x3;this[_0x3002('0x42')]=_0x322f49[_0x3002('0x42')]||0x96;this[_0x3002('0x43')]=_0x322f49[_0x3002('0x43')]||0x3;this['dialMachineRetryFrequency']=_0x322f49[_0x3002('0x44')]||0x96;this[_0x3002('0x45')]=_0x322f49['dialAgentRejectMaxRetry']||0x3;this[_0x3002('0x46')]=_0x322f49['dialAgentRejectRetryFrequency']||0x96;this[_0x3002('0x47')]=_0x322f49[_0x3002('0x47')]||0x3;this[_0x3002('0x48')]=_0x322f49[_0x3002('0x48')]||0x4;this['Trunk']=_0x322f49[_0x3002('0x49')]?_0x322f49[_0x3002('0x49')]:undefined;this[_0x3002('0x4a')]=_0x322f49[_0x3002('0x4a')]?_0x322f49[_0x3002('0x4a')]:undefined;this['dialPrefix']=_0x322f49[_0x3002('0x4b')]||undefined;this[_0x3002('0x4c')]=_0x322f49[_0x3002('0x4c')]?_0x322f49[_0x3002('0x4c')]:undefined;this['dialOrderByScheduledAt']=_0x322f49[_0x3002('0x4d')]||'DESC';this[_0x3002('0x4e')]=_0x322f49[_0x3002('0x4e')]||undefined;this[_0x3002('0x4f')]=_0x322f49['dialCutDigit']||undefined;this['strategy']=strategy[_0x322f49[_0x3002('0x50')]];this[_0x3002('0x51')]=!![];this[_0x3002('0x52')]=_0x322f49[_0x3002('0x52')]||![];this[_0x3002('0x53')]=_0x322f49[_0x3002('0x53')];this['dialAMDGreeting']=_0x322f49[_0x3002('0x54')];this['dialAMDAfterGreetingSilence']=_0x322f49[_0x3002('0x55')];this[_0x3002('0x56')]=_0x322f49[_0x3002('0x56')];this[_0x3002('0x57')]=_0x322f49[_0x3002('0x57')];this[_0x3002('0x58')]=_0x322f49[_0x3002('0x58')];this[_0x3002('0x59')]=_0x322f49[_0x3002('0x59')];this[_0x3002('0x5a')]=_0x322f49['dialAMDSilenceThreshold'];this[_0x3002('0x5b')]=_0x322f49[_0x3002('0x5b')];this['outboundRejectCallsDay']=0x0;this[_0x3002('0x5c')]=0x0;this[_0x3002('0x5d')]=_0x322f49[_0x3002('0x5d')];this['outboundAnswerCallsDay']=0x0;this[_0x3002('0x5e')]=0x0;this[_0x3002('0x5f')]=0x0;this[_0x3002('0x60')]=0x0;this[_0x3002('0x61')]=0x0;this['outboundNoSuchCallsDay']=0x0;this[_0x3002('0x62')]=0x0;this[_0x3002('0x63')]=0x0;this[_0x3002('0x64')]=0x0;this[_0x3002('0x65')]=0x0;this[_0x3002('0x66')]=0x0;this[_0x3002('0x67')]=0x0;this[_0x3002('0x68')]=0x0;this[_0x3002('0x69')]=0x0;this['startProgressive']=undefined;this[_0x3002('0x6a')]=undefined;this[_0x3002('0x6b')]=undefined;this[_0x3002('0x6c')]=1.05;this[_0x3002('0x6d')]=0x0;this[_0x3002('0x6e')]=0x0;this[_0x3002('0x6f')]=0x0;this[_0x3002('0x70')]=0x0;this[_0x3002('0x71')]=0x0;this[_0x3002('0x72')]=0x0;this[_0x3002('0x73')]=0x0;this[_0x3002('0x74')]=0x0;this[_0x3002('0x75')]=_0x322f49[_0x3002('0x76')]||0x14;this[_0x3002('0x77')]=_0x322f49[_0x3002('0x76')]||0xa;this[_0x3002('0x78')]=0x0;this[_0x3002('0x79')]=0x0;this[_0x3002('0x7a')]=0x1;this[_0x3002('0x7b')]=0x0;this[_0x3002('0x7c')]=0x0;this[_0x3002('0x7d')]=0x0;this[_0x3002('0x7e')]=0x0;this['dialRecallMeTimeout']=_0x322f49[_0x3002('0x7f')]||0x1e;this[_0x3002('0x80')]=_0x322f49[_0x3002('0x80')]||![];this[_0x3002('0x81')]=!!_0x322f49[_0x3002('0x81')]||![];this['dialPreviewRecallmeReminder']=!!_0x322f49[_0x3002('0x82')]||![];this['dialQueueProject2']=_0x322f49[_0x3002('0x83')]||undefined;this['dialAgiAfterHangupClient']=_0x322f49['dialAgiAfterHangupClient']||![];this['dialAgiAfterHangupAgent']=_0x322f49[_0x3002('0x84')]||![];this['monitor_format']=monitorFormat[_0x322f49[_0x3002('0x9')]]?monitorFormat[_0x322f49[_0x3002('0x9')]]:undefined;this[_0x3002('0x85')]=_0x322f49['mandatoryDisposition']||![];this['mandatoryDispositionPause']=_0x322f49[_0x3002('0x86')]?_0x322f49[_0x3002('0x86')]:undefined;this[_0x3002('0x87')]=![];}module[_0x3002('0x88')]=VoiceQueue;