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