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