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