Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / services / ami / model / voiceQueue.js
index e3231b3..6edc03e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd515=['dialCongestionRetryFrequency','dialBusyMaxRetry','dialBusyRetryFrequency','dialNoAnswerMaxRetry','dialNoAnswerRetryFrequency','dialGlobalMaxRetry','Trunk','TrunkBackup','dialPrefix','Interval','dialOrderByScheduledAt','DESC','dialRandomLastDigitCallerIdNumber','dialCutDigit','strategy','dialAMDActive','dialAMDInitialSilence','dialAMDGreeting','dialAMDAfterGreetingSilence','dialAMDTotalAnalysisTime','dialAMDMinWordLength','dialAMDBetweenWordsSilence','dialAMDMaximumNumberOfWords','dialAMDSilenceThreshold','dialAMDMaximumWordLength','outboundRejectCallsDay','pTalking','timeout','outboundAnswerCallsDay','outboundAnswerAgiCallsDay','outboundNoAnswerCallsDay','outboundBusyCallsDay','outboundNoSuchCallsDay','outboundUnknownCallsDay','outboundBlacklistCallsDay','outboundOriginateFailureCallsDay','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundDropCallsDayACS','outboundReCallsDay','startProgressive','startPredictive','handlePredictive','predictiveIntervalMultiplicativeFactor','predictiveIntervalAnsweredCalls','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalPauses','predictiveIntervalAvailable','predictiveIntervalMaxThreshold','dialPredictiveIntervalMaxThreshold','predictiveIntervalMinThreshold','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','dialRecallMeTimeout','dialRecallInQueue','dialQueueProject2','dialAgiAfterHangupClient','dialAgiAfterHangupAgent','mandatoryDisposition','mandatoryDispositionPause','unknown','busy','invalid','unavailable','wav49','gsm','roundrobin','name','monitor_format','type','inbound','waiting','total','answered','sumDuration','sumHoldTime','sumBillable','unmanaged','loggedIn','available','acw','acwTimeout','autopause','sendMessageOneNotActive','message','temp','dialTimezone','dialGlobalInterval','dialActive','dialMethod','dialLimitChannel','dialLimitQueue','dialPowerLevel','dialPredictiveOptimization','dropRate','dialPredictiveOptimizationPercentage','dialPredictiveInterval','dialOriginateCallerIdName','anonymous','dialOriginateCallerIdNumber','dialOriginateTimeout','dialQueueOptions','tTxX','dialQueueTimeout','dialQueueProject','dialCongestionMaxRetry'];(function(_0x35d88a,_0x24e754){var _0x123c1f=function(_0x18099c){while(--_0x18099c){_0x35d88a['push'](_0x35d88a['shift']());}};_0x123c1f(++_0x24e754);}(_0xd515,0x11c));var _0x5d51=function(_0x4ff09b,_0x53f67d){_0x4ff09b=_0x4ff09b-0x0;var _0x3f5c2e=_0xd515[_0x4ff09b];return _0x3f5c2e;};'use strict';var statusDesc=[_0x5d51('0x0'),'not_inuse','inuse',_0x5d51('0x1'),_0x5d51('0x2'),_0x5d51('0x3'),'ringing','ringinuse','onhold'];var monitorFormat={'wav':'wav','wav49':_0x5d51('0x4'),'gsm':_0x5d51('0x5')};var strategy={'rrmemory':'rrmemory','roundrobin':_0x5d51('0x6')};function VoiceQueue(_0x15d614){this['id']=_0x15d614['id']||0x0;this['name']=_0x15d614[_0x5d51('0x7')]||'';this['monitor_format']=_0x15d614[_0x5d51('0x8')]||'';this[_0x5d51('0x9')]=_0x15d614[_0x5d51('0x9')]||_0x5d51('0xa');this[_0x5d51('0xb')]=0x0;this['talking']=0x0;this[_0x5d51('0xc')]=0x0;this[_0x5d51('0xd')]=0x0;this[_0x5d51('0xe')]=0x0;this[_0x5d51('0xf')]=0x0;this[_0x5d51('0x10')]=0x0;this[_0x5d51('0x11')]=0x0;this['abandoned']=0x0;this[_0x5d51('0x12')]=0x0;this[_0x5d51('0x13')]=0x0;this[_0x5d51('0x14')]=_0x15d614[_0x5d51('0x14')]||![];this[_0x5d51('0x15')]=_0x15d614[_0x5d51('0x15')]||0xa;this['autopause']=_0x15d614[_0x5d51('0x16')]||'no';this[_0x5d51('0x17')]=!![];this[_0x5d51('0x18')]='';this['originated']=0x0;this[_0x5d51('0x19')]=0x0;this[_0x5d51('0x1a')]=_0x15d614[_0x5d51('0x1a')]||null;this['dialGlobalInterval']=_0x15d614[_0x5d51('0x1b')]?_0x15d614[_0x5d51('0x1b')]:null;this[_0x5d51('0x1c')]=_0x15d614['dialActive'];this[_0x5d51('0x1d')]=_0x15d614[_0x5d51('0x1d')]||'progressive';this[_0x5d51('0x1e')]=_0x15d614[_0x5d51('0x1e')]||0x0;this[_0x5d51('0x1f')]=_0x15d614[_0x5d51('0x1f')]||0x0;this[_0x5d51('0x20')]=_0x15d614[_0x5d51('0x20')]||0x1;this[_0x5d51('0x21')]=_0x15d614[_0x5d51('0x21')]||_0x5d51('0x22');this[_0x5d51('0x23')]=_0x15d614['dialPredictiveOptimizationPercentage']||0.03;this[_0x5d51('0x24')]=_0x15d614[_0x5d51('0x24')]||0x258;this[_0x5d51('0x25')]=_0x15d614[_0x5d51('0x25')]||_0x5d51('0x26');this[_0x5d51('0x27')]=_0x15d614[_0x5d51('0x27')]||_0x5d51('0x26');this['dialOriginateTimeout']=_0x15d614[_0x5d51('0x28')]||0x1e;this[_0x5d51('0x29')]=_0x15d614[_0x5d51('0x29')]||_0x5d51('0x2a');this[_0x5d51('0x2b')]=_0x15d614['dialQueueTimeout']||0x3;this[_0x5d51('0x2c')]=_0x15d614[_0x5d51('0x2c')]||undefined;this['dialCongestionMaxRetry']=_0x15d614[_0x5d51('0x2d')]||0x3;this[_0x5d51('0x2e')]=_0x15d614[_0x5d51('0x2e')]||0x96;this[_0x5d51('0x2f')]=_0x15d614[_0x5d51('0x2f')]||0x3;this[_0x5d51('0x30')]=_0x15d614[_0x5d51('0x30')]||0x96;this[_0x5d51('0x31')]=_0x15d614[_0x5d51('0x31')]||0x3;this[_0x5d51('0x32')]=_0x15d614['dialNoAnswerRetryFrequency']||0x96;this[_0x5d51('0x33')]=_0x15d614[_0x5d51('0x33')]||0x4;this['Trunk']=_0x15d614['Trunk']?_0x15d614[_0x5d51('0x34')]:undefined;this['TrunkBackup']=_0x15d614[_0x5d51('0x35')]?_0x15d614[_0x5d51('0x35')]:undefined;this[_0x5d51('0x36')]=_0x15d614[_0x5d51('0x36')]||undefined;this[_0x5d51('0x37')]=_0x15d614[_0x5d51('0x37')]?_0x15d614[_0x5d51('0x37')]:undefined;this[_0x5d51('0x38')]=_0x15d614['dialOrderByScheduledAt']||_0x5d51('0x39');this[_0x5d51('0x3a')]=_0x15d614['dialRandomLastDigitCallerIdNumber']||undefined;this[_0x5d51('0x3b')]=_0x15d614[_0x5d51('0x3b')]||undefined;this[_0x5d51('0x3c')]=strategy[_0x15d614['strategy']]||'rrmemory';this['queueStatusComplete']=!![];this[_0x5d51('0x3d')]=_0x15d614[_0x5d51('0x3d')]||![];this['dialAMDInitialSilence']=_0x15d614[_0x5d51('0x3e')];this['dialAMDGreeting']=_0x15d614[_0x5d51('0x3f')];this[_0x5d51('0x40')]=_0x15d614[_0x5d51('0x40')];this[_0x5d51('0x41')]=_0x15d614['dialAMDTotalAnalysisTime'];this[_0x5d51('0x42')]=_0x15d614[_0x5d51('0x42')];this[_0x5d51('0x43')]=_0x15d614[_0x5d51('0x43')];this['dialAMDMaximumNumberOfWords']=_0x15d614[_0x5d51('0x44')];this['dialAMDSilenceThreshold']=_0x15d614[_0x5d51('0x45')];this[_0x5d51('0x46')]=_0x15d614['dialAMDMaximumWordLength'];this[_0x5d51('0x47')]=0x0;this[_0x5d51('0x48')]=0x0;this[_0x5d51('0x49')]=_0x15d614[_0x5d51('0x49')];this[_0x5d51('0x4a')]=0x0;this[_0x5d51('0x4b')]=0x0;this[_0x5d51('0x4c')]=0x0;this[_0x5d51('0x4d')]=0x0;this['outboundCongestionCallsDay']=0x0;this[_0x5d51('0x4e')]=0x0;this[_0x5d51('0x4f')]=0x0;this[_0x5d51('0x50')]=0x0;this[_0x5d51('0x51')]=0x0;this[_0x5d51('0x52')]=0x0;this[_0x5d51('0x53')]=0x0;this[_0x5d51('0x54')]=0x0;this[_0x5d51('0x55')]=0x0;this[_0x5d51('0x56')]=undefined;this[_0x5d51('0x57')]=undefined;this[_0x5d51('0x58')]=undefined;this[_0x5d51('0x59')]=1.05;this['predictiveIntervalTotalCalls']=0x0;this[_0x5d51('0x5a')]=0x0;this[_0x5d51('0x5b')]=0x0;this[_0x5d51('0x5c')]=0x0;this['predictiveIntervalAvgHoldtime']=0x0;this['predictiveIntervalAvgTalktime']=0x0;this[_0x5d51('0x5d')]=0x0;this[_0x5d51('0x5e')]=0x0;this[_0x5d51('0x5f')]=_0x15d614[_0x5d51('0x60')]||0x14;this[_0x5d51('0x61')]=_0x15d614[_0x5d51('0x60')]||0xa;this['predictiveIntervalErlangCalls']=0x0;this[_0x5d51('0x62')]=0x0;this[_0x5d51('0x63')]=0x1;this[_0x5d51('0x64')]=0x0;this[_0x5d51('0x65')]=0x0;this[_0x5d51('0x66')]=0x0;this['erlangBusyFactor']=0x0;this[_0x5d51('0x67')]=_0x15d614[_0x5d51('0x67')]||0x1e;this[_0x5d51('0x68')]=_0x15d614['dialRecallInQueue']||![];this[_0x5d51('0x69')]=_0x15d614['dialQueueProject2']||undefined;this[_0x5d51('0x6a')]=_0x15d614[_0x5d51('0x6a')]||![];this['dialAgiAfterHangupAgent']=_0x15d614[_0x5d51('0x6b')]||![];this[_0x5d51('0x8')]=monitorFormat[_0x15d614[_0x5d51('0x8')]]?monitorFormat[_0x15d614[_0x5d51('0x8')]]:undefined;this['mandatoryDisposition']=_0x15d614[_0x5d51('0x6c')]||![];this['mandatoryDispositionPause']=_0x15d614[_0x5d51('0x6d')]?_0x15d614[_0x5d51('0x6d')]:undefined;}module['exports']=VoiceQueue;
\ No newline at end of file
+var _0xd63e=['dialAgentRejectRetryFrequency','dialGlobalMaxRetry','Trunk','TrunkBackup','dialPrefix','Interval','dialOrderByScheduledAt','DESC','dialRandomLastDigitCallerIdNumber','dialCutDigit','strategy','queueStatusComplete','dialAMDActive','dialAMDInitialSilence','dialAMDGreeting','dialAMDAfterGreetingSilence','dialAMDTotalAnalysisTime','dialAMDMinWordLength','dialAMDMaximumNumberOfWords','dialAMDSilenceThreshold','dialAMDMaximumWordLength','outboundRejectCallsDay','pTalking','timeout','outboundAnswerCallsDay','outboundNoAnswerCallsDay','outboundBusyCallsDay','outboundCongestionCallsDay','outboundNoSuchCallsDay','outboundBlacklistCallsDay','outboundOriginateFailureCallsDay','outboundReCallsDay','outboundAbandonedDay','startPredictive','handlePredictive','predictiveIntervalMultiplicativeFactor','predictiveIntervalAnsweredCalls','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalPauses','predictiveIntervalAvailable','dialPredictiveIntervalMaxThreshold','predictiveIntervalMinThreshold','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','dialRecallMeTimeout','dialRecallInQueue','dialQueueProject2','dialAgiAfterHangupClient','dialAgiAfterHangupAgent','mandatoryDisposition','mandatoryDispositionPause','unknown','not_inuse','inuse','invalid','unavailable','ringing','ringinuse','wav','wav49','rrmemory','name','monitor_format','type','inbound','waiting','talking','total','answered','sumHoldTime','sumBillable','abandoned','loggedIn','available','acw','acwTimeout','autopause','sendMessageOneNotActive','message','originated','dialTimezone','dialGlobalInterval','dialActive','dialMethod','progressive','dialLimitChannel','dialLimitQueue','dialPredictiveOptimization','dropRate','dialPredictiveOptimizationPercentage','dialPredictiveInterval','dialOriginateCallerIdName','anonymous','dialOriginateCallerIdNumber','dialOriginateTimeout','dialQueueOptions','dialQueueTimeout','dialQueueProject','dialCongestionMaxRetry','dialCongestionRetryFrequency','dialBusyMaxRetry','dialBusyRetryFrequency','dialNoAnswerRetryFrequency','dialNoSuchNumberMaxRetry','dialNoSuchNumberRetryFrequency','dialDropMaxRetry','dialDropRetryFrequency','dialAbandonedMaxRetry','dialAbandonedRetryFrequency','dialMachineMaxRetry','dialMachineRetryFrequency','dialAgentRejectMaxRetry'];(function(_0x534c96,_0x4dab0a){var _0x2e092d=function(_0x946a32){while(--_0x946a32){_0x534c96['push'](_0x534c96['shift']());}};_0x2e092d(++_0x4dab0a);}(_0xd63e,0xaf));var _0xed63=function(_0x1c6fc6,_0x8fbdea){_0x1c6fc6=_0x1c6fc6-0x0;var _0x23b7a6=_0xd63e[_0x1c6fc6];return _0x23b7a6;};'use strict';var statusDesc=[_0xed63('0x0'),_0xed63('0x1'),_0xed63('0x2'),'busy',_0xed63('0x3'),_0xed63('0x4'),_0xed63('0x5'),_0xed63('0x6'),'onhold'];var monitorFormat={'wav':_0xed63('0x7'),'wav49':_0xed63('0x8'),'gsm':'gsm'};var strategy={'rrmemory':_0xed63('0x9'),'roundrobin':'roundrobin'};function VoiceQueue(_0x627b86){this['id']=_0x627b86['id']||0x0;this[_0xed63('0xa')]=_0x627b86[_0xed63('0xa')]||'';this['monitor_format']=_0x627b86[_0xed63('0xb')]||'';this[_0xed63('0xc')]=_0x627b86[_0xed63('0xc')]||_0xed63('0xd');this[_0xed63('0xe')]=0x0;this[_0xed63('0xf')]=0x0;this[_0xed63('0x10')]=0x0;this[_0xed63('0x11')]=0x0;this['sumDuration']=0x0;this[_0xed63('0x12')]=0x0;this[_0xed63('0x13')]=0x0;this['unmanaged']=0x0;this[_0xed63('0x14')]=0x0;this[_0xed63('0x15')]=0x0;this[_0xed63('0x16')]=0x0;this[_0xed63('0x17')]=_0x627b86[_0xed63('0x17')]||![];this[_0xed63('0x18')]=_0x627b86['acwTimeout']||0xa;this['autopause']=_0x627b86[_0xed63('0x19')]||'no';this[_0xed63('0x1a')]=!![];this[_0xed63('0x1b')]='';this[_0xed63('0x1c')]=0x0;this['temp']=0x0;this[_0xed63('0x1d')]=_0x627b86[_0xed63('0x1d')]||null;this['dialGlobalInterval']=_0x627b86[_0xed63('0x1e')]?_0x627b86[_0xed63('0x1e')]:null;this[_0xed63('0x1f')]=_0x627b86[_0xed63('0x1f')];this[_0xed63('0x20')]=_0x627b86[_0xed63('0x20')]||_0xed63('0x21');this['dialLimitChannel']=_0x627b86[_0xed63('0x22')]||0x0;this[_0xed63('0x23')]=_0x627b86[_0xed63('0x23')]||0x0;this['dialPowerLevel']=_0x627b86['dialPowerLevel']||0x1;this[_0xed63('0x24')]=_0x627b86[_0xed63('0x24')]||_0xed63('0x25');this[_0xed63('0x26')]=_0x627b86[_0xed63('0x26')]||0.03;this['dialPredictiveInterval']=_0x627b86[_0xed63('0x27')]||0x258;this[_0xed63('0x28')]=_0x627b86[_0xed63('0x28')]||_0xed63('0x29');this[_0xed63('0x2a')]=_0x627b86['dialOriginateCallerIdNumber']||_0xed63('0x29');this[_0xed63('0x2b')]=_0x627b86[_0xed63('0x2b')]||0x1e;this['dialQueueOptions']=_0x627b86[_0xed63('0x2c')]||'tTxX';this[_0xed63('0x2d')]=_0x627b86[_0xed63('0x2d')]||0x3;this[_0xed63('0x2e')]=_0x627b86[_0xed63('0x2e')]||undefined;this[_0xed63('0x2f')]=_0x627b86[_0xed63('0x2f')]||0x3;this[_0xed63('0x30')]=_0x627b86[_0xed63('0x30')]||0x96;this[_0xed63('0x31')]=_0x627b86[_0xed63('0x31')]||0x3;this[_0xed63('0x32')]=_0x627b86[_0xed63('0x32')]||0x96;this['dialNoAnswerMaxRetry']=_0x627b86['dialNoAnswerMaxRetry']||0x3;this[_0xed63('0x33')]=_0x627b86[_0xed63('0x33')]||0x96;this['dialNoSuchNumberMaxRetry']=_0x627b86[_0xed63('0x34')]||0x3;this['dialNoSuchNumberRetryFrequency']=_0x627b86[_0xed63('0x35')]||0x96;this['dialDropMaxRetry']=_0x627b86[_0xed63('0x36')]||0x3;this[_0xed63('0x37')]=_0x627b86['dialDropRetryFrequency']||0x96;this[_0xed63('0x38')]=_0x627b86['dialAbandonedMaxRetry']||0x3;this[_0xed63('0x39')]=_0x627b86[_0xed63('0x39')]||0x96;this[_0xed63('0x3a')]=_0x627b86[_0xed63('0x3a')]||0x3;this[_0xed63('0x3b')]=_0x627b86[_0xed63('0x3b')]||0x96;this[_0xed63('0x3c')]=_0x627b86[_0xed63('0x3c')]||0x3;this[_0xed63('0x3d')]=_0x627b86[_0xed63('0x3d')]||0x96;this['dialGlobalMaxRetry']=_0x627b86[_0xed63('0x3e')]||0x4;this[_0xed63('0x3f')]=_0x627b86[_0xed63('0x3f')]?_0x627b86[_0xed63('0x3f')]:undefined;this[_0xed63('0x40')]=_0x627b86['TrunkBackup']?_0x627b86['TrunkBackup']:undefined;this[_0xed63('0x41')]=_0x627b86[_0xed63('0x41')]||undefined;this['Interval']=_0x627b86[_0xed63('0x42')]?_0x627b86[_0xed63('0x42')]:undefined;this[_0xed63('0x43')]=_0x627b86[_0xed63('0x43')]||_0xed63('0x44');this[_0xed63('0x45')]=_0x627b86['dialRandomLastDigitCallerIdNumber']||undefined;this[_0xed63('0x46')]=_0x627b86[_0xed63('0x46')]||undefined;this[_0xed63('0x47')]=strategy[_0x627b86[_0xed63('0x47')]]||_0xed63('0x9');this[_0xed63('0x48')]=!![];this[_0xed63('0x49')]=_0x627b86[_0xed63('0x49')]||![];this[_0xed63('0x4a')]=_0x627b86[_0xed63('0x4a')];this[_0xed63('0x4b')]=_0x627b86['dialAMDGreeting'];this[_0xed63('0x4c')]=_0x627b86[_0xed63('0x4c')];this[_0xed63('0x4d')]=_0x627b86[_0xed63('0x4d')];this[_0xed63('0x4e')]=_0x627b86[_0xed63('0x4e')];this['dialAMDBetweenWordsSilence']=_0x627b86['dialAMDBetweenWordsSilence'];this[_0xed63('0x4f')]=_0x627b86[_0xed63('0x4f')];this[_0xed63('0x50')]=_0x627b86[_0xed63('0x50')];this['dialAMDMaximumWordLength']=_0x627b86[_0xed63('0x51')];this[_0xed63('0x52')]=0x0;this[_0xed63('0x53')]=0x0;this[_0xed63('0x54')]=_0x627b86['timeout'];this[_0xed63('0x55')]=0x0;this['outboundAnswerAgiCallsDay']=0x0;this[_0xed63('0x56')]=0x0;this[_0xed63('0x57')]=0x0;this[_0xed63('0x58')]=0x0;this[_0xed63('0x59')]=0x0;this['outboundUnknownCallsDay']=0x0;this[_0xed63('0x5a')]=0x0;this[_0xed63('0x5b')]=0x0;this['outboundDropCallsDayCallersExit']=0x0;this['outboundDropCallsDayTimeout']=0x0;this['outboundDropCallsDayACS']=0x0;this[_0xed63('0x5c')]=0x0;this[_0xed63('0x5d')]=0x0;this['startProgressive']=undefined;this[_0xed63('0x5e')]=undefined;this[_0xed63('0x5f')]=undefined;this[_0xed63('0x60')]=1.05;this['predictiveIntervalTotalCalls']=0x0;this[_0xed63('0x61')]=0x0;this[_0xed63('0x62')]=0x0;this['predictiveIntervalDroppedCallsTimeout']=0x0;this[_0xed63('0x63')]=0x0;this[_0xed63('0x64')]=0x0;this[_0xed63('0x65')]=0x0;this[_0xed63('0x66')]=0x0;this['predictiveIntervalMaxThreshold']=_0x627b86[_0xed63('0x67')]||0x14;this[_0xed63('0x68')]=_0x627b86['dialPredictiveIntervalMaxThreshold']||0xa;this[_0xed63('0x69')]=0x0;this[_0xed63('0x6a')]=0x0;this[_0xed63('0x6b')]=0x1;this[_0xed63('0x6c')]=0x0;this[_0xed63('0x6d')]=0x0;this[_0xed63('0x6e')]=0x0;this['erlangBusyFactor']=0x0;this[_0xed63('0x6f')]=_0x627b86[_0xed63('0x6f')]||0x1e;this[_0xed63('0x70')]=_0x627b86[_0xed63('0x70')]||![];this['dialQueueProject2']=_0x627b86[_0xed63('0x71')]||undefined;this[_0xed63('0x72')]=_0x627b86['dialAgiAfterHangupClient']||![];this['dialAgiAfterHangupAgent']=_0x627b86[_0xed63('0x73')]||![];this['monitor_format']=monitorFormat[_0x627b86['monitor_format']]?monitorFormat[_0x627b86['monitor_format']]:undefined;this['mandatoryDisposition']=_0x627b86[_0xed63('0x74')]||![];this[_0xed63('0x75')]=_0x627b86['mandatoryDispositionPause']?_0x627b86['mandatoryDispositionPause']:undefined;}module['exports']=VoiceQueue;
\ No newline at end of file