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