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