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