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