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