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