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