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