0f1cd16794dcfed8ff80fb6639b1874fc60593f5
[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 _0x5e27=['../../components/auth/service','../../components/interaction/service','../../config/environment','./network.controller','isAuthenticated','get','/:id','show','post','put','update','delete','destroy','exports','path','connect-timeout','express','Router','fs-extra'];(function(_0x1bb161,_0x25b93c){var _0x2d4246=function(_0x1bac38){while(--_0x1bac38){_0x1bb161['push'](_0x1bb161['shift']());}};_0x2d4246(++_0x25b93c);}(_0x5e27,0x12b));var _0x75e2=function(_0x3c34eb,_0x2d895a){_0x3c34eb=_0x3c34eb-0x0;var _0x30be98=_0x5e27[_0x3c34eb];return _0x30be98;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x75e2('0x0'));var timeout=require(_0x75e2('0x1'));var express=require(_0x75e2('0x2'));var router=express[_0x75e2('0x3')]();var fs_extra=require(_0x75e2('0x4'));var auth=require(_0x75e2('0x5'));var interaction=require(_0x75e2('0x6'));var config=require(_0x75e2('0x7'));var controller=require(_0x75e2('0x8'));router['get']('/',auth[_0x75e2('0x9')](),controller['index']);router[_0x75e2('0xa')](_0x75e2('0xb'),auth[_0x75e2('0x9')](),controller[_0x75e2('0xc')]);router[_0x75e2('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x75e2('0xe')](_0x75e2('0xb'),auth[_0x75e2('0x9')](),controller[_0x75e2('0xf')]);router[_0x75e2('0x10')]('/:id',auth[_0x75e2('0x9')](),controller[_0x75e2('0x11')]);module[_0x75e2('0x12')]=router;