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