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