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