Built motion from commit ddca4d0d.|2.5.47
[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 _0x912c=['../../components/auth/service','../../components/interaction/service','../../config/environment','./campaign.controller','isAuthenticated','index','get','/:id/hoppers','getHoppers','/:id/hopper_histories','/:id/hopper_finals','getHopperFinals','/:id/hopper_black','getHopperBlacks','/:id/lists','getLists','/:id/blacklists','post','create','/:id/clone','clone','addLists','put','/:id','update','delete','destroy','removeBlackLists','exports','util','path','connect-timeout','express','fs-extra'];(function(_0x3b3499,_0x501821){var _0x2f208a=function(_0x309fa7){while(--_0x309fa7){_0x3b3499['push'](_0x3b3499['shift']());}};_0x2f208a(++_0x501821);}(_0x912c,0x12d));var _0xc912=function(_0x567fff,_0xd8acd8){_0x567fff=_0x567fff-0x0;var _0x465a37=_0x912c[_0x567fff];return _0x465a37;};'use strict';var multer=require('multer');var util=require(_0xc912('0x0'));var path=require(_0xc912('0x1'));var timeout=require(_0xc912('0x2'));var express=require(_0xc912('0x3'));var router=express['Router']();var fs_extra=require(_0xc912('0x4'));var auth=require(_0xc912('0x5'));var interaction=require(_0xc912('0x6'));var config=require(_0xc912('0x7'));var controller=require(_0xc912('0x8'));router['get']('/',auth[_0xc912('0x9')](),controller[_0xc912('0xa')]);router[_0xc912('0xb')]('/:id',auth[_0xc912('0x9')](),controller['show']);router[_0xc912('0xb')](_0xc912('0xc'),auth[_0xc912('0x9')](),controller[_0xc912('0xd')]);router[_0xc912('0xb')](_0xc912('0xe'),auth['isAuthenticated'](),controller['getHopperHistories']);router[_0xc912('0xb')](_0xc912('0xf'),auth[_0xc912('0x9')](),controller[_0xc912('0x10')]);router[_0xc912('0xb')](_0xc912('0x11'),auth[_0xc912('0x9')](),controller[_0xc912('0x12')]);router['get'](_0xc912('0x13'),auth[_0xc912('0x9')](),controller[_0xc912('0x14')]);router[_0xc912('0xb')](_0xc912('0x15'),auth[_0xc912('0x9')](),controller['getBlackLists']);router[_0xc912('0x16')]('/',auth[_0xc912('0x9')](),controller[_0xc912('0x17')]);router[_0xc912('0x16')](_0xc912('0x18'),auth[_0xc912('0x9')](),controller[_0xc912('0x19')]);router[_0xc912('0x16')](_0xc912('0x13'),auth[_0xc912('0x9')](),controller[_0xc912('0x1a')]);router[_0xc912('0x16')](_0xc912('0x15'),auth[_0xc912('0x9')](),controller['addBlackLists']);router[_0xc912('0x1b')](_0xc912('0x1c'),auth['isAuthenticated'](),controller[_0xc912('0x1d')]);router[_0xc912('0x1e')](_0xc912('0x1c'),auth['isAuthenticated'](),controller[_0xc912('0x1f')]);router['delete'](_0xc912('0x13'),auth[_0xc912('0x9')](),controller['removeLists']);router[_0xc912('0x1e')](_0xc912('0x15'),auth[_0xc912('0x9')](),controller[_0xc912('0x20')]);module[_0xc912('0x21')]=router;