Built motion from commit 67e5df37.|2.0.66
[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 _0x559f=['addBlackLists','put','update','delete','destroy','removeLists','removeBlackLists','multer','util','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./campaign.controller','get','index','/:id','isAuthenticated','show','/:id/hoppers','getHoppers','getHopperHistories','/:id/hopper_finals','getHopperFinals','/:id/hopper_black','getHopperBlacks','getLists','/:id/blacklists','getBlackLists','post','/:id/clone','clone','/:id/lists','addLists'];(function(_0x4f66,_0x4c4a2e){var _0x4e3d42=function(_0xcbd4b0){while(--_0xcbd4b0){_0x4f66['push'](_0x4f66['shift']());}};_0x4e3d42(++_0x4c4a2e);}(_0x559f,0xf5));var _0xf559=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x559f[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xf559('0x0'));var util=require(_0xf559('0x1'));var path=require('path');var express=require('express');var router=express[_0xf559('0x2')]();var auth=require(_0xf559('0x3'));var interaction=require(_0xf559('0x4'));var config=require(_0xf559('0x5'));var controller=require(_0xf559('0x6'));router[_0xf559('0x7')]('/',auth['isAuthenticated'](),controller[_0xf559('0x8')]);router[_0xf559('0x7')](_0xf559('0x9'),auth[_0xf559('0xa')](),controller[_0xf559('0xb')]);router[_0xf559('0x7')](_0xf559('0xc'),auth[_0xf559('0xa')](),controller[_0xf559('0xd')]);router[_0xf559('0x7')]('/:id/hopper_histories',auth[_0xf559('0xa')](),controller[_0xf559('0xe')]);router[_0xf559('0x7')](_0xf559('0xf'),auth[_0xf559('0xa')](),controller[_0xf559('0x10')]);router['get'](_0xf559('0x11'),auth['isAuthenticated'](),controller[_0xf559('0x12')]);router[_0xf559('0x7')]('/:id/lists',auth[_0xf559('0xa')](),controller[_0xf559('0x13')]);router['get'](_0xf559('0x14'),auth[_0xf559('0xa')](),controller[_0xf559('0x15')]);router[_0xf559('0x16')]('/',auth[_0xf559('0xa')](),controller['create']);router[_0xf559('0x16')](_0xf559('0x17'),auth['isAuthenticated'](),controller[_0xf559('0x18')]);router[_0xf559('0x16')](_0xf559('0x19'),auth[_0xf559('0xa')](),controller[_0xf559('0x1a')]);router['post'](_0xf559('0x14'),auth[_0xf559('0xa')](),controller[_0xf559('0x1b')]);router[_0xf559('0x1c')]('/:id',auth[_0xf559('0xa')](),controller[_0xf559('0x1d')]);router[_0xf559('0x1e')]('/:id',auth[_0xf559('0xa')](),controller[_0xf559('0x1f')]);router[_0xf559('0x1e')](_0xf559('0x19'),auth[_0xf559('0xa')](),controller[_0xf559('0x20')]);router['delete'](_0xf559('0x14'),auth['isAuthenticated'](),controller[_0xf559('0x21')]);module['exports']=router;