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