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