Built motion from commit a61a4a20.|2.5.46
[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 _0xcd05=['Router','fs-extra','../../components/auth/service','../../config/environment','./network.controller','get','/:id','isAuthenticated','show','post','create','update','delete','destroy','exports','multer','express'];(function(_0xf0c919,_0x33ae35){var _0x31621f=function(_0x3bc380){while(--_0x3bc380){_0xf0c919['push'](_0xf0c919['shift']());}};_0x31621f(++_0x33ae35);}(_0xcd05,0x163));var _0x5cd0=function(_0x53b53e,_0x498437){_0x53b53e=_0x53b53e-0x0;var _0xbb6179=_0xcd05[_0x53b53e];return _0xbb6179;};'use strict';var multer=require(_0x5cd0('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x5cd0('0x1'));var router=express[_0x5cd0('0x2')]();var fs_extra=require(_0x5cd0('0x3'));var auth=require(_0x5cd0('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x5cd0('0x5'));var controller=require(_0x5cd0('0x6'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x5cd0('0x7')](_0x5cd0('0x8'),auth[_0x5cd0('0x9')](),controller[_0x5cd0('0xa')]);router[_0x5cd0('0xb')]('/',auth[_0x5cd0('0x9')](),controller[_0x5cd0('0xc')]);router['put'](_0x5cd0('0x8'),auth[_0x5cd0('0x9')](),controller[_0x5cd0('0xd')]);router[_0x5cd0('0xe')]('/:id',auth[_0x5cd0('0x9')](),controller[_0x5cd0('0xf')]);module[_0x5cd0('0x10')]=router;