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