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