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