e81ed73adb7a767a3cf85072a30414c18e879d2b
[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 _0xe9e5=['index','/:id','post','create','update','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x282a1f,_0x49a6ef){var _0x296ea7=function(_0x4bac68){while(--_0x4bac68){_0x282a1f['push'](_0x282a1f['shift']());}};_0x296ea7(++_0x49a6ef);}(_0xe9e5,0x138));var _0x5e9e=function(_0x268056,_0xf931de){_0x268056=_0x268056-0x0;var _0x2652c6=_0xe9e5[_0x268056];return _0x2652c6;};'use strict';var multer=require(_0x5e9e('0x0'));var util=require(_0x5e9e('0x1'));var path=require(_0x5e9e('0x2'));var timeout=require(_0x5e9e('0x3'));var express=require(_0x5e9e('0x4'));var router=express[_0x5e9e('0x5')]();var fs_extra=require(_0x5e9e('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x5e9e('0x7'));var config=require(_0x5e9e('0x8'));var controller=require('./network.controller');router[_0x5e9e('0x9')]('/',auth[_0x5e9e('0xa')](),controller[_0x5e9e('0xb')]);router[_0x5e9e('0x9')](_0x5e9e('0xc'),auth['isAuthenticated'](),controller['show']);router[_0x5e9e('0xd')]('/',auth[_0x5e9e('0xa')](),controller[_0x5e9e('0xe')]);router['put'](_0x5e9e('0xc'),auth[_0x5e9e('0xa')](),controller[_0x5e9e('0xf')]);router['delete'](_0x5e9e('0xc'),auth['isAuthenticated'](),controller[_0x5e9e('0x10')]);module['exports']=router;