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