fb95d405acf00157398551fb3a04f643f5d2b8fc
[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 _0x8911=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./campaign.controller','get','isAuthenticated','index','show','/:id/hoppers','getHoppers','getHopperHistories','getHopperFinals','/:id/hopper_black','/:id/lists','getLists','/:id/blacklists','post','create','/:id/clone','clone','addBlackLists','put','/:id','update','delete','destroy','removeLists','util','path'];(function(_0x5a2258,_0x341efa){var _0x39a32d=function(_0xf5878c){while(--_0xf5878c){_0x5a2258['push'](_0x5a2258['shift']());}};_0x39a32d(++_0x341efa);}(_0x8911,0x1de));var _0x1891=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x8911[_0x14add3];return _0x4a174f;};'use strict';var multer=require('multer');var util=require(_0x1891('0x0'));var path=require(_0x1891('0x1'));var timeout=require(_0x1891('0x2'));var express=require(_0x1891('0x3'));var router=express[_0x1891('0x4')]();var auth=require(_0x1891('0x5'));var interaction=require(_0x1891('0x6'));var config=require(_0x1891('0x7'));var controller=require(_0x1891('0x8'));router[_0x1891('0x9')]('/',auth[_0x1891('0xa')](),controller[_0x1891('0xb')]);router[_0x1891('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x1891('0xc')]);router['get'](_0x1891('0xd'),auth[_0x1891('0xa')](),controller[_0x1891('0xe')]);router[_0x1891('0x9')]('/:id/hopper_histories',auth[_0x1891('0xa')](),controller[_0x1891('0xf')]);router[_0x1891('0x9')]('/:id/hopper_finals',auth[_0x1891('0xa')](),controller[_0x1891('0x10')]);router[_0x1891('0x9')](_0x1891('0x11'),auth[_0x1891('0xa')](),controller['getHopperBlacks']);router['get'](_0x1891('0x12'),auth[_0x1891('0xa')](),controller[_0x1891('0x13')]);router['get'](_0x1891('0x14'),auth[_0x1891('0xa')](),controller['getBlackLists']);router[_0x1891('0x15')]('/',auth[_0x1891('0xa')](),controller[_0x1891('0x16')]);router['post'](_0x1891('0x17'),auth['isAuthenticated'](),controller[_0x1891('0x18')]);router[_0x1891('0x15')](_0x1891('0x12'),auth[_0x1891('0xa')](),controller['addLists']);router[_0x1891('0x15')]('/:id/blacklists',auth[_0x1891('0xa')](),controller[_0x1891('0x19')]);router[_0x1891('0x1a')](_0x1891('0x1b'),auth[_0x1891('0xa')](),controller[_0x1891('0x1c')]);router[_0x1891('0x1d')](_0x1891('0x1b'),auth[_0x1891('0xa')](),controller[_0x1891('0x1e')]);router[_0x1891('0x1d')](_0x1891('0x12'),auth[_0x1891('0xa')](),controller[_0x1891('0x1f')]);router[_0x1891('0x1d')]('/:id/blacklists',auth[_0x1891('0xa')](),controller['removeBlackLists']);module['exports']=router;