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