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