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