99d26d694f81d9d0f7a645df6dd2f8a054e75ad3
[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 _0x739c=['destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./network.controller','get','isAuthenticated','index','/:id','post','create','put','update'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x739c,0x1c4));var _0xc739=function(_0x92aef1,_0x38ab31){_0x92aef1=_0x92aef1-0x0;var _0x928a4c=_0x739c[_0x92aef1];return _0x928a4c;};'use strict';var multer=require(_0xc739('0x0'));var util=require(_0xc739('0x1'));var path=require(_0xc739('0x2'));var timeout=require(_0xc739('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0xc739('0x4'));var interaction=require(_0xc739('0x5'));var config=require(_0xc739('0x6'));var controller=require(_0xc739('0x7'));router[_0xc739('0x8')]('/',auth[_0xc739('0x9')](),controller[_0xc739('0xa')]);router['get'](_0xc739('0xb'),auth['isAuthenticated'](),controller['show']);router[_0xc739('0xc')]('/',auth['isAuthenticated'](),controller[_0xc739('0xd')]);router[_0xc739('0xe')]('/:id',auth[_0xc739('0x9')](),controller[_0xc739('0xf')]);router['delete'](_0xc739('0xb'),auth[_0xc739('0x9')](),controller[_0xc739('0x10')]);module[_0xc739('0x11')]=router;