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