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