Built motion from commit b5413ace.|2.6.9
[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 _0xcded=['util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./network.controller','isAuthenticated','index','get','/:id','show','post','create','put','update','delete','exports'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xcded,0x64));var _0xdcde=function(_0x385467,_0x298239){_0x385467=_0x385467-0x0;var _0x5ed67e=_0xcded[_0x385467];return _0x5ed67e;};'use strict';var multer=require('multer');var util=require(_0xdcde('0x0'));var path=require(_0xdcde('0x1'));var timeout=require('connect-timeout');var express=require(_0xdcde('0x2'));var router=express[_0xdcde('0x3')]();var fs_extra=require(_0xdcde('0x4'));var auth=require(_0xdcde('0x5'));var interaction=require(_0xdcde('0x6'));var config=require(_0xdcde('0x7'));var controller=require(_0xdcde('0x8'));router['get']('/',auth[_0xdcde('0x9')](),controller[_0xdcde('0xa')]);router[_0xdcde('0xb')](_0xdcde('0xc'),auth[_0xdcde('0x9')](),controller[_0xdcde('0xd')]);router[_0xdcde('0xe')]('/',auth[_0xdcde('0x9')](),controller[_0xdcde('0xf')]);router[_0xdcde('0x10')]('/:id',auth[_0xdcde('0x9')](),controller[_0xdcde('0x11')]);router[_0xdcde('0x12')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0xdcde('0x13')]=router;