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