Built motion from commit e6806ed6.|2.6.0
[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 _0xa72d=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./network.controller','isAuthenticated','index','get','show','post','create','put','/:id','update','multer','connect-timeout','express'];(function(_0x3a7a9c,_0x24f7d6){var _0x59156e=function(_0x5bc930){while(--_0x5bc930){_0x3a7a9c['push'](_0x3a7a9c['shift']());}};_0x59156e(++_0x24f7d6);}(_0xa72d,0x1bf));var _0xda72=function(_0x189c51,_0x15e450){_0x189c51=_0x189c51-0x0;var _0x4e3a21=_0xa72d[_0x189c51];return _0x4e3a21;};'use strict';var multer=require(_0xda72('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xda72('0x1'));var express=require(_0xda72('0x2'));var router=express[_0xda72('0x3')]();var fs_extra=require(_0xda72('0x4'));var auth=require(_0xda72('0x5'));var interaction=require(_0xda72('0x6'));var config=require(_0xda72('0x7'));var controller=require(_0xda72('0x8'));router['get']('/',auth[_0xda72('0x9')](),controller[_0xda72('0xa')]);router[_0xda72('0xb')]('/:id',auth[_0xda72('0x9')](),controller[_0xda72('0xc')]);router[_0xda72('0xd')]('/',auth[_0xda72('0x9')](),controller[_0xda72('0xe')]);router[_0xda72('0xf')](_0xda72('0x10'),auth[_0xda72('0x9')](),controller[_0xda72('0x11')]);router['delete']('/:id',auth[_0xda72('0x9')](),controller['destroy']);module['exports']=router;