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