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