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