3f1db21f16c7259cf5d759ffc9e112c1c3df3a06
[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 _0x1156=['update','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','./network.controller','get','isAuthenticated','index','/:id','show','post','put'];(function(_0x1efa54,_0x195d0f){var _0x594fb7=function(_0x27715b){while(--_0x27715b){_0x1efa54['push'](_0x1efa54['shift']());}};_0x594fb7(++_0x195d0f);}(_0x1156,0x93));var _0x6115=function(_0x2dea24,_0x2fc021){_0x2dea24=_0x2dea24-0x0;var _0x309d58=_0x1156[_0x2dea24];return _0x309d58;};'use strict';var multer=require(_0x6115('0x0'));var util=require(_0x6115('0x1'));var path=require(_0x6115('0x2'));var timeout=require(_0x6115('0x3'));var express=require('express');var router=express[_0x6115('0x4')]();var fs_extra=require(_0x6115('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x6115('0x6'));var config=require('../../config/environment');var controller=require(_0x6115('0x7'));router[_0x6115('0x8')]('/',auth[_0x6115('0x9')](),controller[_0x6115('0xa')]);router['get'](_0x6115('0xb'),auth[_0x6115('0x9')](),controller[_0x6115('0xc')]);router[_0x6115('0xd')]('/',auth[_0x6115('0x9')](),controller['create']);router[_0x6115('0xe')](_0x6115('0xb'),auth[_0x6115('0x9')](),controller[_0x6115('0xf')]);router['delete'](_0x6115('0xb'),auth[_0x6115('0x9')](),controller[_0x6115('0x10')]);module[_0x6115('0x11')]=router;