f32a4ab002f09e935d6ffa07ed3d10bd39b118bd
[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 _0x08e2=['multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./network.controller','get','isAuthenticated','index','show','post','create','/:id','delete','destroy','exports'];(function(_0xa1e3e3,_0x29fe0e){var _0xc980e9=function(_0x1f5adc){while(--_0x1f5adc){_0xa1e3e3['push'](_0xa1e3e3['shift']());}};_0xc980e9(++_0x29fe0e);}(_0x08e2,0x8c));var _0x208e=function(_0x3d3040,_0xcebf62){_0x3d3040=_0x3d3040-0x0;var _0x543a66=_0x08e2[_0x3d3040];return _0x543a66;};'use strict';var multer=require(_0x208e('0x0'));var util=require(_0x208e('0x1'));var path=require(_0x208e('0x2'));var timeout=require(_0x208e('0x3'));var express=require(_0x208e('0x4'));var router=express['Router']();var fs_extra=require(_0x208e('0x5'));var auth=require(_0x208e('0x6'));var interaction=require(_0x208e('0x7'));var config=require(_0x208e('0x8'));var controller=require(_0x208e('0x9'));router[_0x208e('0xa')]('/',auth[_0x208e('0xb')](),controller[_0x208e('0xc')]);router[_0x208e('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x208e('0xd')]);router[_0x208e('0xe')]('/',auth[_0x208e('0xb')](),controller[_0x208e('0xf')]);router['put'](_0x208e('0x10'),auth[_0x208e('0xb')](),controller['update']);router[_0x208e('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x208e('0x12')]);module[_0x208e('0x13')]=router;