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