Built motion from commit (unavailable).|2.5.6
[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 _0x4a42=['get','isAuthenticated','index','/:id','show','put','update','destroy','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./network.controller'];(function(_0x55929d,_0x422d1f){var _0x57cb51=function(_0x151ed4){while(--_0x151ed4){_0x55929d['push'](_0x55929d['shift']());}};_0x57cb51(++_0x422d1f);}(_0x4a42,0x158));var _0x24a4=function(_0x4fe03f,_0x1c62c5){_0x4fe03f=_0x4fe03f-0x0;var _0xa2d586=_0x4a42[_0x4fe03f];return _0xa2d586;};'use strict';var multer=require(_0x24a4('0x0'));var util=require(_0x24a4('0x1'));var path=require(_0x24a4('0x2'));var timeout=require(_0x24a4('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0x24a4('0x4'));var interaction=require(_0x24a4('0x5'));var config=require(_0x24a4('0x6'));var controller=require(_0x24a4('0x7'));router[_0x24a4('0x8')]('/',auth[_0x24a4('0x9')](),controller[_0x24a4('0xa')]);router['get'](_0x24a4('0xb'),auth[_0x24a4('0x9')](),controller[_0x24a4('0xc')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x24a4('0xd')](_0x24a4('0xb'),auth['isAuthenticated'](),controller[_0x24a4('0xe')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x24a4('0xf')]);module['exports']=router;