19a77cf7026036071dbc1476c827876e4b76da51
[motion2.git] / server / api / network / 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 _0xf31b=['path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','isAuthenticated','get','/:id','post','create','put','update','delete','destroy','exports','multer','util'];(function(_0x2e51e7,_0x3a8704){var _0x201f8a=function(_0x1c57e9){while(--_0x1c57e9){_0x2e51e7['push'](_0x2e51e7['shift']());}};_0x201f8a(++_0x3a8704);}(_0xf31b,0x1a0));var _0xbf31=function(_0x3ee25b,_0x3c2491){_0x3ee25b=_0x3ee25b-0x0;var _0x3a6cf7=_0xf31b[_0x3ee25b];return _0x3a6cf7;};'use strict';var multer=require(_0xbf31('0x0'));var util=require(_0xbf31('0x1'));var path=require(_0xbf31('0x2'));var timeout=require(_0xbf31('0x3'));var express=require(_0xbf31('0x4'));var router=express[_0xbf31('0x5')]();var fs_extra=require(_0xbf31('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xbf31('0x7'));var config=require(_0xbf31('0x8'));var controller=require('./network.controller');router['get']('/',auth[_0xbf31('0x9')](),controller['index']);router[_0xbf31('0xa')](_0xbf31('0xb'),auth['isAuthenticated'](),controller['show']);router[_0xbf31('0xc')]('/',auth['isAuthenticated'](),controller[_0xbf31('0xd')]);router[_0xbf31('0xe')](_0xbf31('0xb'),auth[_0xbf31('0x9')](),controller[_0xbf31('0xf')]);router[_0xbf31('0x10')](_0xbf31('0xb'),auth[_0xbf31('0x9')](),controller[_0xbf31('0x11')]);module[_0xbf31('0x12')]=router;