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