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