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