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