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