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