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