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