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