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