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