55dc1d1be0e0b9f827a71540a34c95a129a99228
[motion2.git] / server / api / campaign / index.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 _0x78e2=['removeLists','/:id/blacklists','removeBlackLists','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../config/environment','./campaign.controller','get','isAuthenticated','index','/:id','show','/:id/hoppers','getHoppers','/:id/hopper_histories','getHopperHistories','/:id/hopper_finals','getHopperFinals','/:id/hopper_black','getHopperBlacks','getBlackLists','post','/:id/clone','clone','addLists','addBlackLists','update','destroy','delete','/:id/lists'];(function(_0x5406ab,_0x10ddda){var _0x47e633=function(_0x116721){while(--_0x116721){_0x5406ab['push'](_0x5406ab['shift']());}};_0x47e633(++_0x10ddda);}(_0x78e2,0x1a8));var _0x278e=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x78e2[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x278e('0x0'));var util=require(_0x278e('0x1'));var path=require(_0x278e('0x2'));var timeout=require(_0x278e('0x3'));var express=require(_0x278e('0x4'));var router=express['Router']();var auth=require(_0x278e('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x278e('0x6'));var controller=require(_0x278e('0x7'));router[_0x278e('0x8')]('/',auth[_0x278e('0x9')](),controller[_0x278e('0xa')]);router[_0x278e('0x8')](_0x278e('0xb'),auth[_0x278e('0x9')](),controller[_0x278e('0xc')]);router[_0x278e('0x8')](_0x278e('0xd'),auth[_0x278e('0x9')](),controller[_0x278e('0xe')]);router[_0x278e('0x8')](_0x278e('0xf'),auth['isAuthenticated'](),controller[_0x278e('0x10')]);router[_0x278e('0x8')](_0x278e('0x11'),auth[_0x278e('0x9')](),controller[_0x278e('0x12')]);router[_0x278e('0x8')](_0x278e('0x13'),auth['isAuthenticated'](),controller[_0x278e('0x14')]);router[_0x278e('0x8')]('/:id/lists',auth[_0x278e('0x9')](),controller['getLists']);router[_0x278e('0x8')]('/:id/blacklists',auth[_0x278e('0x9')](),controller[_0x278e('0x15')]);router[_0x278e('0x16')]('/',auth['isAuthenticated'](),controller['create']);router[_0x278e('0x16')](_0x278e('0x17'),auth['isAuthenticated'](),controller[_0x278e('0x18')]);router[_0x278e('0x16')]('/:id/lists',auth[_0x278e('0x9')](),controller[_0x278e('0x19')]);router[_0x278e('0x16')]('/:id/blacklists',auth[_0x278e('0x9')](),controller[_0x278e('0x1a')]);router['put'](_0x278e('0xb'),auth[_0x278e('0x9')](),controller[_0x278e('0x1b')]);router['delete'](_0x278e('0xb'),auth[_0x278e('0x9')](),controller[_0x278e('0x1c')]);router[_0x278e('0x1d')](_0x278e('0x1e'),auth[_0x278e('0x9')](),controller[_0x278e('0x1f')]);router['delete'](_0x278e('0x20'),auth[_0x278e('0x9')](),controller[_0x278e('0x21')]);module[_0x278e('0x22')]=router;