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