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