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