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