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