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