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