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