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