7a8ba509801d82b61d4caee12ac325e47f8564ec
[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 _0xf25f=['util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','./campaign.controller','isAuthenticated','index','get','show','/:id/hoppers','getHoppers','/:id/hopper_histories','getHopperHistories','/:id/hopper_finals','getHopperFinals','/:id/hopper_black','getHopperBlacks','/:id/lists','getLists','/:id/blacklists','getBlackLists','post','/:id/clone','clone','addLists','addBlackLists','put','update','/:id','removeLists','delete','removeBlackLists','exports','multer'];(function(_0x6cd1bf,_0xf6e522){var _0x403acf=function(_0x27fabc){while(--_0x27fabc){_0x6cd1bf['push'](_0x6cd1bf['shift']());}};_0x403acf(++_0xf6e522);}(_0xf25f,0x6e));var _0xff25=function(_0x31bc14,_0x280066){_0x31bc14=_0x31bc14-0x0;var _0x252f5f=_0xf25f[_0x31bc14];return _0x252f5f;};'use strict';var multer=require(_0xff25('0x0'));var util=require(_0xff25('0x1'));var path=require(_0xff25('0x2'));var timeout=require(_0xff25('0x3'));var express=require(_0xff25('0x4'));var router=express[_0xff25('0x5')]();var fs_extra=require(_0xff25('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xff25('0x7'));var config=require('../../config/environment');var controller=require(_0xff25('0x8'));router['get']('/',auth[_0xff25('0x9')](),controller[_0xff25('0xa')]);router[_0xff25('0xb')]('/:id',auth['isAuthenticated'](),controller[_0xff25('0xc')]);router['get'](_0xff25('0xd'),auth[_0xff25('0x9')](),controller[_0xff25('0xe')]);router[_0xff25('0xb')](_0xff25('0xf'),auth[_0xff25('0x9')](),controller[_0xff25('0x10')]);router['get'](_0xff25('0x11'),auth['isAuthenticated'](),controller[_0xff25('0x12')]);router['get'](_0xff25('0x13'),auth[_0xff25('0x9')](),controller[_0xff25('0x14')]);router['get'](_0xff25('0x15'),auth[_0xff25('0x9')](),controller[_0xff25('0x16')]);router[_0xff25('0xb')](_0xff25('0x17'),auth[_0xff25('0x9')](),controller[_0xff25('0x18')]);router[_0xff25('0x19')]('/',auth[_0xff25('0x9')](),controller['create']);router[_0xff25('0x19')](_0xff25('0x1a'),auth[_0xff25('0x9')](),controller[_0xff25('0x1b')]);router[_0xff25('0x19')](_0xff25('0x15'),auth[_0xff25('0x9')](),controller[_0xff25('0x1c')]);router[_0xff25('0x19')](_0xff25('0x17'),auth[_0xff25('0x9')](),controller[_0xff25('0x1d')]);router[_0xff25('0x1e')]('/:id',auth['isAuthenticated'](),controller[_0xff25('0x1f')]);router['delete'](_0xff25('0x20'),auth[_0xff25('0x9')](),controller['destroy']);router['delete']('/:id/lists',auth[_0xff25('0x9')](),controller[_0xff25('0x21')]);router[_0xff25('0x22')]('/:id/blacklists',auth['isAuthenticated'](),controller[_0xff25('0x23')]);module[_0xff25('0x24')]=router;