beced18102168e1da5ba0b3155488badfcda2ef9
[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 _0x01d5=['/:id/blacklists','post','create','clone','addBlackLists','put','update','delete','removeBlackLists','exports','multer','util','connect-timeout','fs-extra','../../components/auth/service','get','isAuthenticated','index','/:id','show','/:id/hoppers','getHoppers','/:id/hopper_histories','getHopperHistories','/:id/hopper_finals','/:id/hopper_black','getHopperBlacks','/:id/lists','getLists'];(function(_0x336264,_0x32e1d9){var _0x53cf91=function(_0x21026c){while(--_0x21026c){_0x336264['push'](_0x336264['shift']());}};_0x53cf91(++_0x32e1d9);}(_0x01d5,0x10f));var _0x501d=function(_0x25b00f,_0x1d6f2d){_0x25b00f=_0x25b00f-0x0;var _0x22dfbf=_0x01d5[_0x25b00f];return _0x22dfbf;};'use strict';var multer=require(_0x501d('0x0'));var util=require(_0x501d('0x1'));var path=require('path');var timeout=require(_0x501d('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x501d('0x3'));var auth=require(_0x501d('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./campaign.controller');router[_0x501d('0x5')]('/',auth[_0x501d('0x6')](),controller[_0x501d('0x7')]);router[_0x501d('0x5')](_0x501d('0x8'),auth[_0x501d('0x6')](),controller[_0x501d('0x9')]);router[_0x501d('0x5')](_0x501d('0xa'),auth[_0x501d('0x6')](),controller[_0x501d('0xb')]);router['get'](_0x501d('0xc'),auth['isAuthenticated'](),controller[_0x501d('0xd')]);router['get'](_0x501d('0xe'),auth[_0x501d('0x6')](),controller['getHopperFinals']);router[_0x501d('0x5')](_0x501d('0xf'),auth['isAuthenticated'](),controller[_0x501d('0x10')]);router[_0x501d('0x5')](_0x501d('0x11'),auth[_0x501d('0x6')](),controller[_0x501d('0x12')]);router[_0x501d('0x5')](_0x501d('0x13'),auth[_0x501d('0x6')](),controller['getBlackLists']);router[_0x501d('0x14')]('/',auth[_0x501d('0x6')](),controller[_0x501d('0x15')]);router[_0x501d('0x14')]('/:id/clone',auth[_0x501d('0x6')](),controller[_0x501d('0x16')]);router[_0x501d('0x14')]('/:id/lists',auth['isAuthenticated'](),controller['addLists']);router[_0x501d('0x14')]('/:id/blacklists',auth[_0x501d('0x6')](),controller[_0x501d('0x17')]);router[_0x501d('0x18')](_0x501d('0x8'),auth[_0x501d('0x6')](),controller[_0x501d('0x19')]);router[_0x501d('0x1a')](_0x501d('0x8'),auth['isAuthenticated'](),controller['destroy']);router[_0x501d('0x1a')](_0x501d('0x11'),auth['isAuthenticated'](),controller['removeLists']);router[_0x501d('0x1a')](_0x501d('0x13'),auth[_0x501d('0x6')](),controller[_0x501d('0x1b')]);module[_0x501d('0x1c')]=router;