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