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