cf60ddb5fc2c9ec0bcd6b69913f06bcda6d55cad
[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 _0xbf9b=['index','isAuthenticated','show','post','create','put','/:id','destroy','exports','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./network.controller','get'];(function(_0x3c1fc5,_0x585a49){var _0x3bfb27=function(_0x505e89){while(--_0x505e89){_0x3c1fc5['push'](_0x3c1fc5['shift']());}};_0x3bfb27(++_0x585a49);}(_0xbf9b,0x14d));var _0xbbf9=function(_0xb0f7c3,_0x4eae95){_0xb0f7c3=_0xb0f7c3-0x0;var _0x28ea68=_0xbf9b[_0xb0f7c3];return _0x28ea68;};'use strict';var multer=require('multer');var util=require(_0xbbf9('0x0'));var path=require(_0xbbf9('0x1'));var timeout=require('connect-timeout');var express=require(_0xbbf9('0x2'));var router=express['Router']();var fs_extra=require(_0xbbf9('0x3'));var auth=require(_0xbbf9('0x4'));var interaction=require(_0xbbf9('0x5'));var config=require(_0xbbf9('0x6'));var controller=require(_0xbbf9('0x7'));router[_0xbbf9('0x8')]('/',auth['isAuthenticated'](),controller[_0xbbf9('0x9')]);router['get']('/:id',auth[_0xbbf9('0xa')](),controller[_0xbbf9('0xb')]);router[_0xbbf9('0xc')]('/',auth[_0xbbf9('0xa')](),controller[_0xbbf9('0xd')]);router[_0xbbf9('0xe')](_0xbbf9('0xf'),auth['isAuthenticated'](),controller['update']);router['delete'](_0xbbf9('0xf'),auth['isAuthenticated'](),controller[_0xbbf9('0x10')]);module[_0xbbf9('0x11')]=router;