ab9b6b4a5f4f0819726815b8c1f072b6cee60223
[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 _0x2447=['../../components/auth/service','../../components/interaction/service','../../config/environment','./network.controller','isAuthenticated','index','get','/:id','show','put','update','delete','util','connect-timeout','Router'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0x2447,0x1dd));var _0x7244=function(_0xfb7760,_0x53746f){_0xfb7760=_0xfb7760-0x0;var _0x147faf=_0x2447[_0xfb7760];return _0x147faf;};'use strict';var multer=require('multer');var util=require(_0x7244('0x0'));var path=require('path');var timeout=require(_0x7244('0x1'));var express=require('express');var router=express[_0x7244('0x2')]();var auth=require(_0x7244('0x3'));var interaction=require(_0x7244('0x4'));var config=require(_0x7244('0x5'));var controller=require(_0x7244('0x6'));router['get']('/',auth[_0x7244('0x7')](),controller[_0x7244('0x8')]);router[_0x7244('0x9')](_0x7244('0xa'),auth[_0x7244('0x7')](),controller[_0x7244('0xb')]);router['post']('/',auth[_0x7244('0x7')](),controller['create']);router[_0x7244('0xc')](_0x7244('0xa'),auth[_0x7244('0x7')](),controller[_0x7244('0xd')]);router[_0x7244('0xe')](_0x7244('0xa'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;