a0ec84b8e9089b333012267de381f3eeffec79fc
[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 _0x3f3c=['util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./network.controller','get','isAuthenticated','/:id','post','create','update','delete','exports'];(function(_0x4abbd1,_0xee0a9b){var _0x38fe27=function(_0x12b038){while(--_0x12b038){_0x4abbd1['push'](_0x4abbd1['shift']());}};_0x38fe27(++_0xee0a9b);}(_0x3f3c,0x1e0));var _0xc3f3=function(_0x55f44c,_0x464668){_0x55f44c=_0x55f44c-0x0;var _0x32b9c8=_0x3f3c[_0x55f44c];return _0x32b9c8;};'use strict';var multer=require('multer');var util=require(_0xc3f3('0x0'));var path=require(_0xc3f3('0x1'));var timeout=require('connect-timeout');var express=require(_0xc3f3('0x2'));var router=express[_0xc3f3('0x3')]();var fs_extra=require(_0xc3f3('0x4'));var auth=require(_0xc3f3('0x5'));var interaction=require(_0xc3f3('0x6'));var config=require('../../config/environment');var controller=require(_0xc3f3('0x7'));router[_0xc3f3('0x8')]('/',auth[_0xc3f3('0x9')](),controller['index']);router['get'](_0xc3f3('0xa'),auth['isAuthenticated'](),controller['show']);router[_0xc3f3('0xb')]('/',auth[_0xc3f3('0x9')](),controller[_0xc3f3('0xc')]);router['put'](_0xc3f3('0xa'),auth['isAuthenticated'](),controller[_0xc3f3('0xd')]);router[_0xc3f3('0xe')]('/:id',auth[_0xc3f3('0x9')](),controller['destroy']);module[_0xc3f3('0xf')]=router;