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