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