Built motion from commit 10af8726.|2.6.34
[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 _0xfd2e=['isAuthenticated','post','create','put','/:id','update','destroy','exports','multer','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./network.controller','index'];(function(_0x53b55f,_0x7980d0){var _0x71d9fa=function(_0x1c30c2){while(--_0x1c30c2){_0x53b55f['push'](_0x53b55f['shift']());}};_0x71d9fa(++_0x7980d0);}(_0xfd2e,0x6e));var _0xefd2=function(_0x2922f3,_0x59b4a4){_0x2922f3=_0x2922f3-0x0;var _0x247bca=_0xfd2e[_0x2922f3];return _0x247bca;};'use strict';var multer=require(_0xefd2('0x0'));var util=require('util');var path=require(_0xefd2('0x1'));var timeout=require('connect-timeout');var express=require(_0xefd2('0x2'));var router=express['Router']();var fs_extra=require(_0xefd2('0x3'));var auth=require(_0xefd2('0x4'));var interaction=require(_0xefd2('0x5'));var config=require(_0xefd2('0x6'));var controller=require(_0xefd2('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0xefd2('0x8')]);router['get']('/:id',auth[_0xefd2('0x9')](),controller['show']);router[_0xefd2('0xa')]('/',auth[_0xefd2('0x9')](),controller[_0xefd2('0xb')]);router[_0xefd2('0xc')](_0xefd2('0xd'),auth[_0xefd2('0x9')](),controller[_0xefd2('0xe')]);router['delete'](_0xefd2('0xd'),auth[_0xefd2('0x9')](),controller[_0xefd2('0xf')]);module[_0xefd2('0x10')]=router;