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