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