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