Built motion from commit 21186556.|2.6.19
[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 _0x1f71=['getHoppers','/:id/hopper_histories','getHopperHistories','/:id/hopper_finals','getHopperFinals','/:id/hopper_black','getHopperBlacks','getLists','/:id/blacklists','getBlackLists','post','create','/:id/clone','clone','addLists','addBlackLists','put','delete','destroy','removeLists','removeBlackLists','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./campaign.controller','get','/:id','show','/:id/hoppers','isAuthenticated'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x1f71,0xaa));var _0x11f7=function(_0x5e05d0,_0x3dfc9b){_0x5e05d0=_0x5e05d0-0x0;var _0x82d556=_0x1f71[_0x5e05d0];return _0x82d556;};'use strict';var multer=require('multer');var util=require(_0x11f7('0x0'));var path=require(_0x11f7('0x1'));var timeout=require(_0x11f7('0x2'));var express=require(_0x11f7('0x3'));var router=express[_0x11f7('0x4')]();var fs_extra=require(_0x11f7('0x5'));var auth=require(_0x11f7('0x6'));var interaction=require(_0x11f7('0x7'));var config=require(_0x11f7('0x8'));var controller=require(_0x11f7('0x9'));router[_0x11f7('0xa')]('/',auth['isAuthenticated'](),controller['index']);router[_0x11f7('0xa')](_0x11f7('0xb'),auth['isAuthenticated'](),controller[_0x11f7('0xc')]);router['get'](_0x11f7('0xd'),auth[_0x11f7('0xe')](),controller[_0x11f7('0xf')]);router['get'](_0x11f7('0x10'),auth['isAuthenticated'](),controller[_0x11f7('0x11')]);router['get'](_0x11f7('0x12'),auth[_0x11f7('0xe')](),controller[_0x11f7('0x13')]);router['get'](_0x11f7('0x14'),auth['isAuthenticated'](),controller[_0x11f7('0x15')]);router[_0x11f7('0xa')]('/:id/lists',auth[_0x11f7('0xe')](),controller[_0x11f7('0x16')]);router['get'](_0x11f7('0x17'),auth[_0x11f7('0xe')](),controller[_0x11f7('0x18')]);router[_0x11f7('0x19')]('/',auth[_0x11f7('0xe')](),controller[_0x11f7('0x1a')]);router['post'](_0x11f7('0x1b'),auth[_0x11f7('0xe')](),controller[_0x11f7('0x1c')]);router[_0x11f7('0x19')]('/:id/lists',auth['isAuthenticated'](),controller[_0x11f7('0x1d')]);router[_0x11f7('0x19')]('/:id/blacklists',auth['isAuthenticated'](),controller[_0x11f7('0x1e')]);router[_0x11f7('0x1f')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0x11f7('0x20')](_0x11f7('0xb'),auth[_0x11f7('0xe')](),controller[_0x11f7('0x21')]);router[_0x11f7('0x20')]('/:id/lists',auth[_0x11f7('0xe')](),controller[_0x11f7('0x22')]);router[_0x11f7('0x20')](_0x11f7('0x17'),auth[_0x11f7('0xe')](),controller[_0x11f7('0x23')]);module[_0x11f7('0x24')]=router;