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