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