88d18a75f9e5161bb023a1db9fe45baba8b21480
[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 _0xb7aa=['multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','./campaign.controller','get','index','/:id','show','/:id/hoppers','isAuthenticated','getHoppers','/:id/hopper_histories','/:id/hopper_finals','getHopperFinals','/:id/hopper_black','getHopperBlacks','/:id/lists','/:id/blacklists','getBlackLists','post','addLists','addBlackLists','put','update','delete','destroy','removeLists','removeBlackLists'];(function(_0x2a0578,_0x18cf01){var _0x1e0870=function(_0x472b6e){while(--_0x472b6e){_0x2a0578['push'](_0x2a0578['shift']());}};_0x1e0870(++_0x18cf01);}(_0xb7aa,0x160));var _0xab7a=function(_0x10c343,_0x9bf50a){_0x10c343=_0x10c343-0x0;var _0x37b10c=_0xb7aa[_0x10c343];return _0x37b10c;};'use strict';var multer=require(_0xab7a('0x0'));var util=require(_0xab7a('0x1'));var path=require(_0xab7a('0x2'));var timeout=require('connect-timeout');var express=require(_0xab7a('0x3'));var router=express[_0xab7a('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xab7a('0x5'));var interaction=require(_0xab7a('0x6'));var config=require('../../config/environment');var controller=require(_0xab7a('0x7'));router[_0xab7a('0x8')]('/',auth['isAuthenticated'](),controller[_0xab7a('0x9')]);router[_0xab7a('0x8')](_0xab7a('0xa'),auth['isAuthenticated'](),controller[_0xab7a('0xb')]);router[_0xab7a('0x8')](_0xab7a('0xc'),auth[_0xab7a('0xd')](),controller[_0xab7a('0xe')]);router[_0xab7a('0x8')](_0xab7a('0xf'),auth[_0xab7a('0xd')](),controller['getHopperHistories']);router[_0xab7a('0x8')](_0xab7a('0x10'),auth[_0xab7a('0xd')](),controller[_0xab7a('0x11')]);router[_0xab7a('0x8')](_0xab7a('0x12'),auth[_0xab7a('0xd')](),controller[_0xab7a('0x13')]);router[_0xab7a('0x8')](_0xab7a('0x14'),auth[_0xab7a('0xd')](),controller['getLists']);router['get'](_0xab7a('0x15'),auth[_0xab7a('0xd')](),controller[_0xab7a('0x16')]);router['post']('/',auth[_0xab7a('0xd')](),controller['create']);router[_0xab7a('0x17')]('/:id/clone',auth[_0xab7a('0xd')](),controller['clone']);router[_0xab7a('0x17')](_0xab7a('0x14'),auth[_0xab7a('0xd')](),controller[_0xab7a('0x18')]);router[_0xab7a('0x17')]('/:id/blacklists',auth[_0xab7a('0xd')](),controller[_0xab7a('0x19')]);router[_0xab7a('0x1a')](_0xab7a('0xa'),auth[_0xab7a('0xd')](),controller[_0xab7a('0x1b')]);router[_0xab7a('0x1c')](_0xab7a('0xa'),auth['isAuthenticated'](),controller[_0xab7a('0x1d')]);router[_0xab7a('0x1c')](_0xab7a('0x14'),auth[_0xab7a('0xd')](),controller[_0xab7a('0x1e')]);router[_0xab7a('0x1c')](_0xab7a('0x15'),auth['isAuthenticated'](),controller[_0xab7a('0x1f')]);module['exports']=router;