Built motion from commit ab870f9e.|2.5.44
[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 _0x71af=['index','/:id','show','post','create','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated'];(function(_0x3452fb,_0x577c34){var _0x2314ab=function(_0x5992a0){while(--_0x5992a0){_0x3452fb['push'](_0x3452fb['shift']());}};_0x2314ab(++_0x577c34);}(_0x71af,0x194));var _0xf71a=function(_0x11d4a1,_0x4da04d){_0x11d4a1=_0x11d4a1-0x0;var _0x2f18b1=_0x71af[_0x11d4a1];return _0x2f18b1;};'use strict';var multer=require(_0xf71a('0x0'));var util=require(_0xf71a('0x1'));var path=require('path');var timeout=require(_0xf71a('0x2'));var express=require(_0xf71a('0x3'));var router=express[_0xf71a('0x4')]();var fs_extra=require(_0xf71a('0x5'));var auth=require(_0xf71a('0x6'));var interaction=require(_0xf71a('0x7'));var config=require('../../config/environment');var controller=require('./network.controller');router[_0xf71a('0x8')]('/',auth[_0xf71a('0x9')](),controller[_0xf71a('0xa')]);router[_0xf71a('0x8')](_0xf71a('0xb'),auth[_0xf71a('0x9')](),controller[_0xf71a('0xc')]);router[_0xf71a('0xd')]('/',auth[_0xf71a('0x9')](),controller[_0xf71a('0xe')]);router['put'](_0xf71a('0xb'),auth[_0xf71a('0x9')](),controller['update']);router[_0xf71a('0xf')](_0xf71a('0xb'),auth[_0xf71a('0x9')](),controller[_0xf71a('0x10')]);module[_0xf71a('0x11')]=router;