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