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