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