Built motion from commit 26159a51.|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 _0xf8fa=['../../components/interaction/service','../../config/environment','./network.controller','isAuthenticated','index','get','/:id','create','put','update','delete','exports','util','path','connect-timeout','express','fs-extra'];(function(_0x5b70a8,_0xb5daf0){var _0x4b68d2=function(_0x344eaf){while(--_0x344eaf){_0x5b70a8['push'](_0x5b70a8['shift']());}};_0x4b68d2(++_0xb5daf0);}(_0xf8fa,0x13e));var _0xaf8f=function(_0x4f7122,_0x35e5e5){_0x4f7122=_0x4f7122-0x0;var _0x1d1053=_0xf8fa[_0x4f7122];return _0x1d1053;};'use strict';var multer=require('multer');var util=require(_0xaf8f('0x0'));var path=require(_0xaf8f('0x1'));var timeout=require(_0xaf8f('0x2'));var express=require(_0xaf8f('0x3'));var router=express['Router']();var fs_extra=require(_0xaf8f('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xaf8f('0x5'));var config=require(_0xaf8f('0x6'));var controller=require(_0xaf8f('0x7'));router['get']('/',auth[_0xaf8f('0x8')](),controller[_0xaf8f('0x9')]);router[_0xaf8f('0xa')](_0xaf8f('0xb'),auth[_0xaf8f('0x8')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xaf8f('0xc')]);router[_0xaf8f('0xd')](_0xaf8f('0xb'),auth[_0xaf8f('0x8')](),controller[_0xaf8f('0xe')]);router[_0xaf8f('0xf')](_0xaf8f('0xb'),auth[_0xaf8f('0x8')](),controller['destroy']);module[_0xaf8f('0x10')]=router;