5448c3460f06b5729a5c0b44bae8786bf8e03045
[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 _0xb6c1=['../../components/auth/service','../../config/environment','./network.controller','get','isAuthenticated','/:id','show','post','put','update','delete','destroy','multer','util','path','connect-timeout','express','fs-extra'];(function(_0x5062da,_0x4400d2){var _0x46d327=function(_0x269596){while(--_0x269596){_0x5062da['push'](_0x5062da['shift']());}};_0x46d327(++_0x4400d2);}(_0xb6c1,0x8a));var _0x1b6c=function(_0x5c83d2,_0x4beed1){_0x5c83d2=_0x5c83d2-0x0;var _0x2d3008=_0xb6c1[_0x5c83d2];return _0x2d3008;};'use strict';var multer=require(_0x1b6c('0x0'));var util=require(_0x1b6c('0x1'));var path=require(_0x1b6c('0x2'));var timeout=require(_0x1b6c('0x3'));var express=require(_0x1b6c('0x4'));var router=express['Router']();var fs_extra=require(_0x1b6c('0x5'));var auth=require(_0x1b6c('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x1b6c('0x7'));var controller=require(_0x1b6c('0x8'));router[_0x1b6c('0x9')]('/',auth[_0x1b6c('0xa')](),controller['index']);router[_0x1b6c('0x9')](_0x1b6c('0xb'),auth['isAuthenticated'](),controller[_0x1b6c('0xc')]);router[_0x1b6c('0xd')]('/',auth[_0x1b6c('0xa')](),controller['create']);router[_0x1b6c('0xe')](_0x1b6c('0xb'),auth[_0x1b6c('0xa')](),controller[_0x1b6c('0xf')]);router[_0x1b6c('0x10')]('/:id',auth[_0x1b6c('0xa')](),controller[_0x1b6c('0x11')]);module['exports']=router;