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