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