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