Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / server / services / ami / rpc / 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 _0x27b9=['dialNoAnswerMaxRetry','dialNoAnswerRetryFrequency','dialGlobalMaxRetry','dialTimezone','dialPrefix','dialAMDActive','dialAMDInitialSilence','dialAMDGreeting','dialAMDAfterGreetingSilence','dialAMDTotalAnalysisTime','dialAMDMinWordLength','dialAMDBetweenWordsSilence','dialAMDMaximumNumberOfWords','dialAMDSilenceThreshold','dialAMDMaximumWordLength','timeout','dialRecallInQueue','dialOrderByScheduledAt','dialAgiAfterHangupAgent','dialAgiAfterHangupClient','dialQueueProject2','strategy','dialCutDigit','dialNoSuchNumberRetryFrequency','dialDropMaxRetry','dialAbandonedMaxRetry','dialMachineMaxRetry','dialMachineRetryFrequency','dialAgentRejectRetryFrequency','dialPredictiveIntervalMinThreshold','dialPreviewAutoRecallMe','dialPreviewRecallmeReminder','Trunk','active','Pause','mandatoryDispositionPause','name','callerid','Interval','interval','getVoiceQueues','../client','Request','acw','autopause','monitor_format','type','dialActive','dialMethod','dialLimitChannel','dialPowerLevel','dialPredictiveOptimization','dialPredictiveOptimizationPercentage','dialPredictiveInterval','dialOriginateCallerIdName','dialOriginateTimeout','dialQueueProject','dialCongestionMaxRetry','dialCongestionRetryFrequency','dialBusyMaxRetry'];(function(_0x9fc7e9,_0x5288d8){var _0x3f82f7=function(_0x3d253b){while(--_0x3d253b){_0x9fc7e9['push'](_0x9fc7e9['shift']());}};_0x3f82f7(++_0x5288d8);}(_0x27b9,0x119));var _0x927b=function(_0x224ee1,_0x3361bc){_0x224ee1=_0x224ee1-0x0;var _0xa84cef=_0x27b9[_0x224ee1];return _0xa84cef;};'use strict';var client=require(_0x927b('0x0'));exports['getVoiceQueues']=function(){return function(){return client[_0x927b('0x1')]('GetVoiceQueue',{'options':{'raw':![],'attributes':['id','name',_0x927b('0x2'),'acwTimeout',_0x927b('0x3'),_0x927b('0x4'),_0x927b('0x5'),_0x927b('0x6'),_0x927b('0x7'),_0x927b('0x8'),'dialLimitQueue',_0x927b('0x9'),_0x927b('0xa'),_0x927b('0xb'),_0x927b('0xc'),_0x927b('0xd'),'dialOriginateCallerIdNumber',_0x927b('0xe'),'dialQueueOptions','dialQueueTimeout',_0x927b('0xf'),_0x927b('0x10'),_0x927b('0x11'),_0x927b('0x12'),'dialBusyRetryFrequency',_0x927b('0x13'),_0x927b('0x14'),_0x927b('0x15'),_0x927b('0x16'),'dialGlobalInterval',_0x927b('0x17'),'dialCheckDuplicateType',_0x927b('0x18'),_0x927b('0x19'),_0x927b('0x1a'),_0x927b('0x1b'),_0x927b('0x1c'),_0x927b('0x1d'),_0x927b('0x1e'),_0x927b('0x1f'),_0x927b('0x20'),_0x927b('0x21'),_0x927b('0x22'),'dialRecallMeTimeout',_0x927b('0x23'),_0x927b('0x24'),_0x927b('0x25'),_0x927b('0x26'),_0x927b('0x27'),_0x927b('0x4'),_0x927b('0x28'),'dialRandomLastDigitCallerIdNumber',_0x927b('0x29'),'dialNoSuchNumberMaxRetry',_0x927b('0x2a'),_0x927b('0x2b'),'dialDropRetryFrequency',_0x927b('0x2c'),'dialAbandonedRetryFrequency',_0x927b('0x2d'),_0x927b('0x2e'),'dialAgentRejectMaxRetry',_0x927b('0x2f'),'mandatoryDisposition','dialPredictiveIntervalMaxThreshold',_0x927b('0x30'),_0x927b('0x31'),_0x927b('0x32')],'include':[{'model':_0x927b('0x33'),'as':_0x927b('0x33'),'attributes':['id','name','callerid',_0x927b('0x34')]},{'model':_0x927b('0x35'),'as':_0x927b('0x36'),'attributes':['id',_0x927b('0x37')]},{'model':_0x927b('0x33'),'as':'TrunkBackup','attributes':['id',_0x927b('0x37'),_0x927b('0x38'),_0x927b('0x34')]},{'model':_0x927b('0x39'),'as':'Interval','attributes':['id',_0x927b('0x37')],'include':[{'model':'Interval','as':'Intervals','attributes':['id',_0x927b('0x37'),_0x927b('0x3a')]}]}]},'log':_0x927b('0x3b')});};};