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