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