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