Built motion from commit 43538d75.|2.5.35
[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 _0xb0e5=['put','delete','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../config/environment','get','isAuthenticated','/:id','show','post','create'];(function(_0x1e9424,_0x191cba){var _0x1bd96c=function(_0x5e952d){while(--_0x5e952d){_0x1e9424['push'](_0x1e9424['shift']());}};_0x1bd96c(++_0x191cba);}(_0xb0e5,0x1ad));var _0x5b0e=function(_0x1cfad8,_0x1a5444){_0x1cfad8=_0x1cfad8-0x0;var _0x1e3f35=_0xb0e5[_0x1cfad8];return _0x1e3f35;};'use strict';var multer=require(_0x5b0e('0x0'));var util=require(_0x5b0e('0x1'));var path=require(_0x5b0e('0x2'));var timeout=require(_0x5b0e('0x3'));var express=require(_0x5b0e('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x5b0e('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x5b0e('0x6'));var controller=require('./network.controller');router[_0x5b0e('0x7')]('/',auth[_0x5b0e('0x8')](),controller['index']);router['get'](_0x5b0e('0x9'),auth[_0x5b0e('0x8')](),controller[_0x5b0e('0xa')]);router[_0x5b0e('0xb')]('/',auth[_0x5b0e('0x8')](),controller[_0x5b0e('0xc')]);router[_0x5b0e('0xd')](_0x5b0e('0x9'),auth[_0x5b0e('0x8')](),controller['update']);router[_0x5b0e('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x5b0e('0xf')]);module[_0x5b0e('0x10')]=router;