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