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