Built motion from commit (unavailable).|2.5.21
[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 _0x8389=['../../components/interaction/service','../../config/environment','./campaign.controller','get','isAuthenticated','index','show','/:id/hoppers','getHoppers','/:id/hopper_histories','getHopperHistories','getHopperFinals','getHopperBlacks','/:id/lists','/:id/blacklists','create','post','/:id/clone','clone','addLists','addBlackLists','put','update','delete','/:id','destroy','removeLists','removeBlackLists','exports','multer','util','connect-timeout','express','Router','../../components/auth/service'];(function(_0x502f0e,_0x3463b3){var _0x2522e8=function(_0x51c202){while(--_0x51c202){_0x502f0e['push'](_0x502f0e['shift']());}};_0x2522e8(++_0x3463b3);}(_0x8389,0x158));var _0x9838=function(_0x421745,_0x29979d){_0x421745=_0x421745-0x0;var _0x57127e=_0x8389[_0x421745];return _0x57127e;};'use strict';var multer=require(_0x9838('0x0'));var util=require(_0x9838('0x1'));var path=require('path');var timeout=require(_0x9838('0x2'));var express=require(_0x9838('0x3'));var router=express[_0x9838('0x4')]();var auth=require(_0x9838('0x5'));var interaction=require(_0x9838('0x6'));var config=require(_0x9838('0x7'));var controller=require(_0x9838('0x8'));router[_0x9838('0x9')]('/',auth[_0x9838('0xa')](),controller[_0x9838('0xb')]);router[_0x9838('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x9838('0xc')]);router[_0x9838('0x9')](_0x9838('0xd'),auth[_0x9838('0xa')](),controller[_0x9838('0xe')]);router['get'](_0x9838('0xf'),auth[_0x9838('0xa')](),controller[_0x9838('0x10')]);router['get']('/:id/hopper_finals',auth['isAuthenticated'](),controller[_0x9838('0x11')]);router[_0x9838('0x9')]('/:id/hopper_black',auth[_0x9838('0xa')](),controller[_0x9838('0x12')]);router[_0x9838('0x9')](_0x9838('0x13'),auth['isAuthenticated'](),controller['getLists']);router[_0x9838('0x9')](_0x9838('0x14'),auth['isAuthenticated'](),controller['getBlackLists']);router['post']('/',auth[_0x9838('0xa')](),controller[_0x9838('0x15')]);router[_0x9838('0x16')](_0x9838('0x17'),auth[_0x9838('0xa')](),controller[_0x9838('0x18')]);router[_0x9838('0x16')](_0x9838('0x13'),auth['isAuthenticated'](),controller[_0x9838('0x19')]);router[_0x9838('0x16')]('/:id/blacklists',auth[_0x9838('0xa')](),controller[_0x9838('0x1a')]);router[_0x9838('0x1b')]('/:id',auth[_0x9838('0xa')](),controller[_0x9838('0x1c')]);router[_0x9838('0x1d')](_0x9838('0x1e'),auth['isAuthenticated'](),controller[_0x9838('0x1f')]);router[_0x9838('0x1d')](_0x9838('0x13'),auth[_0x9838('0xa')](),controller[_0x9838('0x20')]);router['delete'](_0x9838('0x14'),auth[_0x9838('0xa')](),controller[_0x9838('0x21')]);module[_0x9838('0x22')]=router;