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