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