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