011c596d58c004c3d6586c6867334ef6e17aa2b0
[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 _0x8be3=['exports','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./network.controller','get','index','/:id','isAuthenticated','create','put','update'];(function(_0x1caf6a,_0x26a5bf){var _0x1bf493=function(_0x3982f5){while(--_0x3982f5){_0x1caf6a['push'](_0x1caf6a['shift']());}};_0x1bf493(++_0x26a5bf);}(_0x8be3,0xd1));var _0x38be=function(_0x4d9d1a,_0xf2b6ce){_0x4d9d1a=_0x4d9d1a-0x0;var _0x116fa3=_0x8be3[_0x4d9d1a];return _0x116fa3;};'use strict';var multer=require('multer');var util=require(_0x38be('0x0'));var path=require(_0x38be('0x1'));var timeout=require(_0x38be('0x2'));var express=require('express');var router=express[_0x38be('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x38be('0x4'));var interaction=require(_0x38be('0x5'));var config=require(_0x38be('0x6'));var controller=require(_0x38be('0x7'));router[_0x38be('0x8')]('/',auth['isAuthenticated'](),controller[_0x38be('0x9')]);router[_0x38be('0x8')](_0x38be('0xa'),auth[_0x38be('0xb')](),controller['show']);router['post']('/',auth[_0x38be('0xb')](),controller[_0x38be('0xc')]);router[_0x38be('0xd')](_0x38be('0xa'),auth[_0x38be('0xb')](),controller[_0x38be('0xe')]);router['delete'](_0x38be('0xa'),auth[_0x38be('0xb')](),controller['destroy']);module[_0x38be('0xf')]=router;