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