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