fe7f6fda94a222f998817a56768b73d56480c786
[motion2.git] / server / services / ami / rpc / campaign.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 _0xa9f0=['Intervals','SquareProject','getCampaign','../client','Request','GetCampaign','name','type','active','limitCalls','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialCongestionMaxRetry','dialBusyMaxRetry','dialNoAnswerMaxRetry','dialNoAnswerRetryFrequency','dialGlobalMaxRetry','dialNoSuchNumberMaxRetry','dialDropMaxRetry','dialDropRetryFrequency','dialAbandonedMaxRetry','dialAbandonedRetryFrequency','dialAgentRejectMaxRetry','dialAgentRejectRetryFrequency','dialTimezone','dialGlobalInterval','dialAMDActive','dialAMDInitialSilence','dialAMDGreeting','dialAMDAfterGreetingSilence','dialAMDTotalAnalysisTime','dialAMDMinWordLength','dialAMDBetweenWordsSilence','dialAMDMaximumNumberOfWords','dialAMDSilenceThreshold','dialOrderByScheduledAt','dialPrefix','dialRandomLastDigitCallerIdNumber','dialCutDigit','Trunk','TrunkBackup','Interval'];(function(_0x5a776b,_0x46f785){var _0xbbef59=function(_0x38313e){while(--_0x38313e){_0x5a776b['push'](_0x5a776b['shift']());}};_0xbbef59(++_0x46f785);}(_0xa9f0,0x153));var _0x0a9f=function(_0x1ed565,_0x36fbf0){_0x1ed565=_0x1ed565-0x0;var _0x1bb908=_0xa9f0[_0x1ed565];return _0x1bb908;};'use strict';var client=require(_0x0a9f('0x0'));exports['getCampaigns']=function(){return function(){return client[_0x0a9f('0x1')](_0x0a9f('0x2'),{'options':{'raw':![],'attributes':['id',_0x0a9f('0x3'),_0x0a9f('0x4'),_0x0a9f('0x5'),_0x0a9f('0x6'),_0x0a9f('0x7'),_0x0a9f('0x8'),'dialOriginateTimeout',_0x0a9f('0x9'),'dialCongestionRetryFrequency',_0x0a9f('0xa'),'dialBusyRetryFrequency',_0x0a9f('0xb'),_0x0a9f('0xc'),_0x0a9f('0xd'),_0x0a9f('0xe'),'dialNoSuchNumberRetryFrequency',_0x0a9f('0xf'),_0x0a9f('0x10'),_0x0a9f('0x11'),_0x0a9f('0x12'),'dialMachineMaxRetry','dialMachineRetryFrequency',_0x0a9f('0x13'),_0x0a9f('0x14'),_0x0a9f('0x15'),_0x0a9f('0x16'),_0x0a9f('0x17'),_0x0a9f('0x18'),_0x0a9f('0x19'),_0x0a9f('0x1a'),_0x0a9f('0x1b'),_0x0a9f('0x1c'),_0x0a9f('0x1d'),_0x0a9f('0x1e'),_0x0a9f('0x1f'),'dialAMDMaximumWordLength',_0x0a9f('0x20'),_0x0a9f('0x21'),_0x0a9f('0x22'),_0x0a9f('0x23')],'include':[{'model':_0x0a9f('0x24'),'as':_0x0a9f('0x24'),'attributes':['id','name','callerid','active']},{'model':'Trunk','as':_0x0a9f('0x25'),'attributes':['id',_0x0a9f('0x3'),'callerid',_0x0a9f('0x5')]},{'model':_0x0a9f('0x26'),'as':_0x0a9f('0x26'),'attributes':['id','name'],'include':[{'model':_0x0a9f('0x26'),'as':_0x0a9f('0x27'),'attributes':['id',_0x0a9f('0x3'),'interval']}]},{'model':_0x0a9f('0x28'),'as':'SquareProject','attributes':['id',_0x0a9f('0x3')]}]},'log':_0x0a9f('0x29')});};};