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