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