Built motion from commit (unavailable).|2.5.8
[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 _0xef95=['predictiveIntervalAvailable','predictiveIntervalMaxThreshold','dialPredictiveIntervalMaxThreshold','predictiveIntervalMinThreshold','predictiveIntervalErlangCalls','predictiveIntervalHitRate','erlangAbandonmentRate','dialRecallMeTimeout','dialRecallInQueue','dialQueueProject2','dialAgiAfterHangupClient','dialAgiAfterHangupAgent','mandatoryDisposition','mandatoryDispositionPause','exports','unknown','not_inuse','inuse','busy','unavailable','ringinuse','onhold','wav49','rrmemory','name','monitor_format','type','waiting','talking','total','sumDuration','sumHoldTime','sumBillable','abandoned','loggedIn','available','acw','acwTimeout','autopause','sendMessageOneNotActive','originated','temp','dialTimezone','dialGlobalInterval','dialActive','dialMethod','progressive','dialLimitChannel','dialLimitQueue','dialPowerLevel','dialPredictiveOptimization','dropRate','dialPredictiveOptimizationPercentage','dialPredictiveInterval','dialOriginateCallerIdName','anonymous','dialOriginateCallerIdNumber','dialOriginateTimeout','dialQueueOptions','dialQueueTimeout','dialQueueProject','dialCongestionMaxRetry','dialCongestionRetryFrequency','dialBusyMaxRetry','dialBusyRetryFrequency','dialNoAnswerMaxRetry','dialNoAnswerRetryFrequency','dialNoSuchNumberMaxRetry','dialNoSuchNumberRetryFrequency','dialDropMaxRetry','dialDropRetryFrequency','dialAbandonedMaxRetry','dialAbandonedRetryFrequency','dialMachineMaxRetry','dialMachineRetryFrequency','dialAgentRejectMaxRetry','dialAgentRejectRetryFrequency','dialGlobalMaxRetry','Trunk','TrunkBackup','dialPrefix','Interval','dialOrderByScheduledAt','dialRandomLastDigitCallerIdNumber','dialCutDigit','queueStatusComplete','dialAMDActive','dialAMDGreeting','dialAMDAfterGreetingSilence','dialAMDTotalAnalysisTime','dialAMDBetweenWordsSilence','dialAMDMaximumNumberOfWords','dialAMDSilenceThreshold','dialAMDMaximumWordLength','pTalking','timeout','outboundAnswerCallsDay','outboundAnswerAgiCallsDay','outboundNoAnswerCallsDay','outboundBusyCallsDay','outboundUnknownCallsDay','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundDropCallsDayACS','outboundReCallsDay','startProgressive','predictiveIntervalMultiplicativeFactor','predictiveIntervalTotalCalls','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalAvgTalktime','predictiveIntervalPauses'];(function(_0x3839a4,_0x341c72){var _0x4b3123=function(_0x171427){while(--_0x171427){_0x3839a4['push'](_0x3839a4['shift']());}};_0x4b3123(++_0x341c72);}(_0xef95,0x1cf));var _0x5ef9=function(_0x4029fe,_0x3802fc){_0x4029fe=_0x4029fe-0x0;var _0x452703=_0xef95[_0x4029fe];return _0x452703;};'use strict';var statusDesc=[_0x5ef9('0x0'),_0x5ef9('0x1'),_0x5ef9('0x2'),_0x5ef9('0x3'),'invalid',_0x5ef9('0x4'),'ringing',_0x5ef9('0x5'),_0x5ef9('0x6')];var monitorFormat={'wav':'wav','wav49':_0x5ef9('0x7'),'gsm':'gsm'};var strategy={'rrmemory':_0x5ef9('0x8'),'roundrobin':'roundrobin'};function VoiceQueue(_0x46ce73){this['id']=_0x46ce73['id']||0x0;this[_0x5ef9('0x9')]=_0x46ce73[_0x5ef9('0x9')]||'';this[_0x5ef9('0xa')]=_0x46ce73[_0x5ef9('0xa')]||'';this[_0x5ef9('0xb')]=_0x46ce73[_0x5ef9('0xb')]||'inbound';this[_0x5ef9('0xc')]=0x0;this[_0x5ef9('0xd')]=0x0;this[_0x5ef9('0xe')]=0x0;this['answered']=0x0;this[_0x5ef9('0xf')]=0x0;this[_0x5ef9('0x10')]=0x0;this[_0x5ef9('0x11')]=0x0;this['unmanaged']=0x0;this[_0x5ef9('0x12')]=0x0;this[_0x5ef9('0x13')]=0x0;this[_0x5ef9('0x14')]=0x0;this[_0x5ef9('0x15')]=_0x46ce73[_0x5ef9('0x15')]||![];this['acwTimeout']=_0x46ce73[_0x5ef9('0x16')]||0xa;this['autopause']=_0x46ce73[_0x5ef9('0x17')]||'no';this[_0x5ef9('0x18')]=!![];this['message']='';this[_0x5ef9('0x19')]=0x0;this[_0x5ef9('0x1a')]=0x0;this[_0x5ef9('0x1b')]=_0x46ce73[_0x5ef9('0x1b')]||null;this[_0x5ef9('0x1c')]=_0x46ce73['dialGlobalInterval']?_0x46ce73[_0x5ef9('0x1c')]:null;this['dialActive']=_0x46ce73[_0x5ef9('0x1d')];this[_0x5ef9('0x1e')]=_0x46ce73[_0x5ef9('0x1e')]||_0x5ef9('0x1f');this[_0x5ef9('0x20')]=_0x46ce73[_0x5ef9('0x20')]||0x0;this[_0x5ef9('0x21')]=_0x46ce73[_0x5ef9('0x21')]||0x0;this[_0x5ef9('0x22')]=_0x46ce73[_0x5ef9('0x22')]||0x1;this[_0x5ef9('0x23')]=_0x46ce73[_0x5ef9('0x23')]||_0x5ef9('0x24');this['dialPredictiveOptimizationPercentage']=_0x46ce73[_0x5ef9('0x25')]||0.03;this[_0x5ef9('0x26')]=_0x46ce73['dialPredictiveInterval']||0x258;this[_0x5ef9('0x27')]=_0x46ce73[_0x5ef9('0x27')]||_0x5ef9('0x28');this['dialOriginateCallerIdNumber']=_0x46ce73[_0x5ef9('0x29')]||_0x5ef9('0x28');this[_0x5ef9('0x2a')]=_0x46ce73['dialOriginateTimeout']||0x1e;this[_0x5ef9('0x2b')]=_0x46ce73[_0x5ef9('0x2b')]||'tTxX';this[_0x5ef9('0x2c')]=_0x46ce73[_0x5ef9('0x2c')]||0x3;this['dialQueueProject']=_0x46ce73[_0x5ef9('0x2d')]||undefined;this[_0x5ef9('0x2e')]=_0x46ce73[_0x5ef9('0x2e')]||0x3;this[_0x5ef9('0x2f')]=_0x46ce73[_0x5ef9('0x2f')]||0x96;this[_0x5ef9('0x30')]=_0x46ce73[_0x5ef9('0x30')]||0x3;this['dialBusyRetryFrequency']=_0x46ce73[_0x5ef9('0x31')]||0x96;this['dialNoAnswerMaxRetry']=_0x46ce73[_0x5ef9('0x32')]||0x3;this[_0x5ef9('0x33')]=_0x46ce73[_0x5ef9('0x33')]||0x96;this[_0x5ef9('0x34')]=_0x46ce73[_0x5ef9('0x34')]||0x3;this[_0x5ef9('0x35')]=_0x46ce73[_0x5ef9('0x35')]||0x96;this[_0x5ef9('0x36')]=_0x46ce73[_0x5ef9('0x36')]||0x3;this['dialDropRetryFrequency']=_0x46ce73[_0x5ef9('0x37')]||0x96;this['dialAbandonedMaxRetry']=_0x46ce73[_0x5ef9('0x38')]||0x3;this[_0x5ef9('0x39')]=_0x46ce73['dialAbandonedRetryFrequency']||0x96;this[_0x5ef9('0x3a')]=_0x46ce73[_0x5ef9('0x3a')]||0x3;this[_0x5ef9('0x3b')]=_0x46ce73[_0x5ef9('0x3b')]||0x96;this[_0x5ef9('0x3c')]=_0x46ce73[_0x5ef9('0x3c')]||0x3;this[_0x5ef9('0x3d')]=_0x46ce73['dialAgentRejectRetryFrequency']||0x96;this[_0x5ef9('0x3e')]=_0x46ce73[_0x5ef9('0x3e')]||0x4;this[_0x5ef9('0x3f')]=_0x46ce73[_0x5ef9('0x3f')]?_0x46ce73['Trunk']:undefined;this['TrunkBackup']=_0x46ce73[_0x5ef9('0x40')]?_0x46ce73['TrunkBackup']:undefined;this[_0x5ef9('0x41')]=_0x46ce73[_0x5ef9('0x41')]||undefined;this[_0x5ef9('0x42')]=_0x46ce73[_0x5ef9('0x42')]?_0x46ce73[_0x5ef9('0x42')]:undefined;this[_0x5ef9('0x43')]=_0x46ce73['dialOrderByScheduledAt']||'DESC';this[_0x5ef9('0x44')]=_0x46ce73[_0x5ef9('0x44')]||undefined;this[_0x5ef9('0x45')]=_0x46ce73[_0x5ef9('0x45')]||undefined;this['strategy']=strategy[_0x46ce73['strategy']]||_0x5ef9('0x8');this[_0x5ef9('0x46')]=!![];this[_0x5ef9('0x47')]=_0x46ce73[_0x5ef9('0x47')]||![];this['dialAMDInitialSilence']=_0x46ce73['dialAMDInitialSilence'];this[_0x5ef9('0x48')]=_0x46ce73[_0x5ef9('0x48')];this[_0x5ef9('0x49')]=_0x46ce73[_0x5ef9('0x49')];this[_0x5ef9('0x4a')]=_0x46ce73[_0x5ef9('0x4a')];this['dialAMDMinWordLength']=_0x46ce73['dialAMDMinWordLength'];this[_0x5ef9('0x4b')]=_0x46ce73['dialAMDBetweenWordsSilence'];this['dialAMDMaximumNumberOfWords']=_0x46ce73[_0x5ef9('0x4c')];this[_0x5ef9('0x4d')]=_0x46ce73[_0x5ef9('0x4d')];this[_0x5ef9('0x4e')]=_0x46ce73[_0x5ef9('0x4e')];this['outboundRejectCallsDay']=0x0;this[_0x5ef9('0x4f')]=0x0;this[_0x5ef9('0x50')]=_0x46ce73[_0x5ef9('0x50')];this[_0x5ef9('0x51')]=0x0;this[_0x5ef9('0x52')]=0x0;this[_0x5ef9('0x53')]=0x0;this[_0x5ef9('0x54')]=0x0;this['outboundCongestionCallsDay']=0x0;this['outboundNoSuchCallsDay']=0x0;this[_0x5ef9('0x55')]=0x0;this['outboundBlacklistCallsDay']=0x0;this['outboundOriginateFailureCallsDay']=0x0;this[_0x5ef9('0x56')]=0x0;this[_0x5ef9('0x57')]=0x0;this[_0x5ef9('0x58')]=0x0;this[_0x5ef9('0x59')]=0x0;this['outboundAbandonedDay']=0x0;this[_0x5ef9('0x5a')]=undefined;this['startPredictive']=undefined;this['handlePredictive']=undefined;this[_0x5ef9('0x5b')]=1.05;this[_0x5ef9('0x5c')]=0x0;this['predictiveIntervalAnsweredCalls']=0x0;this[_0x5ef9('0x5d')]=0x0;this[_0x5ef9('0x5e')]=0x0;this['predictiveIntervalAvgHoldtime']=0x0;this[_0x5ef9('0x5f')]=0x0;this[_0x5ef9('0x60')]=0x0;this[_0x5ef9('0x61')]=0x0;this[_0x5ef9('0x62')]=_0x46ce73[_0x5ef9('0x63')]||0x14;this[_0x5ef9('0x64')]=_0x46ce73[_0x5ef9('0x63')]||0xa;this[_0x5ef9('0x65')]=0x0;this['predictiveIntervalErlangCallsDroppedCalls']=0x0;this[_0x5ef9('0x66')]=0x1;this['erlangCalls']=0x0;this['erlangCallToSecond']=0x0;this[_0x5ef9('0x67')]=0x0;this['erlangBusyFactor']=0x0;this['dialRecallMeTimeout']=_0x46ce73[_0x5ef9('0x68')]||0x1e;this[_0x5ef9('0x69')]=_0x46ce73[_0x5ef9('0x69')]||![];this[_0x5ef9('0x6a')]=_0x46ce73[_0x5ef9('0x6a')]||undefined;this[_0x5ef9('0x6b')]=_0x46ce73['dialAgiAfterHangupClient']||![];this[_0x5ef9('0x6c')]=_0x46ce73['dialAgiAfterHangupAgent']||![];this[_0x5ef9('0xa')]=monitorFormat[_0x46ce73['monitor_format']]?monitorFormat[_0x46ce73[_0x5ef9('0xa')]]:undefined;this[_0x5ef9('0x6d')]=_0x46ce73[_0x5ef9('0x6d')]||![];this[_0x5ef9('0x6e')]=_0x46ce73[_0x5ef9('0x6e')]?_0x46ce73[_0x5ef9('0x6e')]:undefined;}module[_0x5ef9('0x6f')]=VoiceQueue;