abe98c88b5a33118d6e7f0748276c91f9a08e663
[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 _0xac8f=['/:id','show','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./network.controller','get','isAuthenticated','index'];(function(_0x55d8c5,_0x10287a){var _0x225ae5=function(_0x2ba03a){while(--_0x2ba03a){_0x55d8c5['push'](_0x55d8c5['shift']());}};_0x225ae5(++_0x10287a);}(_0xac8f,0x1d6));var _0xfac8=function(_0x38aeea,_0x57522a){_0x38aeea=_0x38aeea-0x0;var _0x5e8d2c=_0xac8f[_0x38aeea];return _0x5e8d2c;};'use strict';var multer=require(_0xfac8('0x0'));var util=require(_0xfac8('0x1'));var path=require(_0xfac8('0x2'));var timeout=require(_0xfac8('0x3'));var express=require(_0xfac8('0x4'));var router=express[_0xfac8('0x5')]();var auth=require(_0xfac8('0x6'));var interaction=require(_0xfac8('0x7'));var config=require(_0xfac8('0x8'));var controller=require(_0xfac8('0x9'));router[_0xfac8('0xa')]('/',auth[_0xfac8('0xb')](),controller[_0xfac8('0xc')]);router[_0xfac8('0xa')](_0xfac8('0xd'),auth[_0xfac8('0xb')](),controller[_0xfac8('0xe')]);router['post']('/',auth[_0xfac8('0xb')](),controller[_0xfac8('0xf')]);router[_0xfac8('0x10')]('/:id',auth[_0xfac8('0xb')](),controller[_0xfac8('0x11')]);router[_0xfac8('0x12')](_0xfac8('0xd'),auth['isAuthenticated'](),controller[_0xfac8('0x13')]);module[_0xfac8('0x14')]=router;