f81b3f87e04945db8f61a1bdd434943ec593a2b2
[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 _0x0024=['util','connect-timeout','Router','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','post','create','update','delete'];(function(_0x233ab1,_0x7dbb75){var _0x190a53=function(_0x39daa7){while(--_0x39daa7){_0x233ab1['push'](_0x233ab1['shift']());}};_0x190a53(++_0x7dbb75);}(_0x0024,0xa8));var _0x4002=function(_0x53103e,_0x4f5e35){_0x53103e=_0x53103e-0x0;var _0x495bf6=_0x0024[_0x53103e];return _0x495bf6;};'use strict';var multer=require('multer');var util=require(_0x4002('0x0'));var path=require('path');var timeout=require(_0x4002('0x1'));var express=require('express');var router=express[_0x4002('0x2')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x4002('0x3'));var config=require(_0x4002('0x4'));var controller=require('./network.controller');router['get']('/',auth[_0x4002('0x5')](),controller[_0x4002('0x6')]);router[_0x4002('0x7')](_0x4002('0x8'),auth['isAuthenticated'](),controller[_0x4002('0x9')]);router[_0x4002('0xa')]('/',auth[_0x4002('0x5')](),controller[_0x4002('0xb')]);router['put']('/:id',auth[_0x4002('0x5')](),controller[_0x4002('0xc')]);router[_0x4002('0xd')](_0x4002('0x8'),auth[_0x4002('0x5')](),controller['destroy']);module['exports']=router;