Built motion from commit (unavailable).|2.3.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 _0xc460=['dialOriginateCallerIdNumber','dialOriginateTimeout','dialCongestionMaxRetry','dialCongestionRetryFrequency','dialBusyMaxRetry','dialBusyRetryFrequency','dialNoAnswerRetryFrequency','dialTimezone','dialGlobalInterval','dialAMDActive','dialAMDInitialSilence','dialAMDGreeting','dialAMDAfterGreetingSilence','dialAMDBetweenWordsSilence','dialAMDMaximumNumberOfWords','dialAMDSilenceThreshold','dialAMDMaximumWordLength','dialOrderByScheduledAt','dialPrefix','dialRandomLastDigitCallerIdNumber','dialCutDigit','Trunk','name','callerid','active','TrunkBackup','Interval','Intervals','interval','SquareProject','getCampaign','../client','GetCampaign','type','dialOriginateCallerIdName'];(function(_0x49dfea,_0x38a754){var _0x39a7ab=function(_0x3e0f2e){while(--_0x3e0f2e){_0x49dfea['push'](_0x49dfea['shift']());}};_0x39a7ab(++_0x38a754);}(_0xc460,0xf1));var _0x0c46=function(_0x20099d,_0x11f9c5){_0x20099d=_0x20099d-0x0;var _0x35708d=_0xc460[_0x20099d];return _0x35708d;};'use strict';var client=require(_0x0c46('0x0'));exports['getCampaigns']=function(){return function(){return client['Request'](_0x0c46('0x1'),{'options':{'raw':![],'attributes':['id','name',_0x0c46('0x2'),'active','limitCalls',_0x0c46('0x3'),_0x0c46('0x4'),_0x0c46('0x5'),_0x0c46('0x6'),_0x0c46('0x7'),_0x0c46('0x8'),_0x0c46('0x9'),'dialNoAnswerMaxRetry',_0x0c46('0xa'),'dialGlobalMaxRetry',_0x0c46('0xb'),_0x0c46('0xc'),_0x0c46('0xd'),_0x0c46('0xe'),_0x0c46('0xf'),_0x0c46('0x10'),'dialAMDTotalAnalysisTime','dialAMDMinWordLength',_0x0c46('0x11'),_0x0c46('0x12'),_0x0c46('0x13'),_0x0c46('0x14'),_0x0c46('0x15'),_0x0c46('0x16'),_0x0c46('0x17'),_0x0c46('0x18')],'include':[{'model':_0x0c46('0x19'),'as':_0x0c46('0x19'),'attributes':['id',_0x0c46('0x1a'),_0x0c46('0x1b'),_0x0c46('0x1c')]},{'model':_0x0c46('0x19'),'as':_0x0c46('0x1d'),'attributes':['id','name','callerid','active']},{'model':_0x0c46('0x1e'),'as':_0x0c46('0x1e'),'attributes':['id','name'],'include':[{'model':_0x0c46('0x1e'),'as':_0x0c46('0x1f'),'attributes':['id',_0x0c46('0x1a'),_0x0c46('0x20')]}]},{'model':_0x0c46('0x21'),'as':_0x0c46('0x21'),'attributes':['id',_0x0c46('0x1a')]}]},'log':_0x0c46('0x22')});};};