Built motion from commit (unavailable).|2.5.15
[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 _0x8c5a=['path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./network.controller','get','isAuthenticated','index','show','post','put','/:id','update','delete','destroy','exports','multer','util'];(function(_0x3b8cbc,_0x4a35d4){var _0x75ae85=function(_0x5e426e){while(--_0x5e426e){_0x3b8cbc['push'](_0x3b8cbc['shift']());}};_0x75ae85(++_0x4a35d4);}(_0x8c5a,0x1b6));var _0xa8c5=function(_0x1c3139,_0xbabadd){_0x1c3139=_0x1c3139-0x0;var _0x4e1489=_0x8c5a[_0x1c3139];return _0x4e1489;};'use strict';var multer=require(_0xa8c5('0x0'));var util=require(_0xa8c5('0x1'));var path=require(_0xa8c5('0x2'));var timeout=require(_0xa8c5('0x3'));var express=require(_0xa8c5('0x4'));var router=express[_0xa8c5('0x5')]();var auth=require(_0xa8c5('0x6'));var interaction=require(_0xa8c5('0x7'));var config=require('../../config/environment');var controller=require(_0xa8c5('0x8'));router[_0xa8c5('0x9')]('/',auth[_0xa8c5('0xa')](),controller[_0xa8c5('0xb')]);router[_0xa8c5('0x9')]('/:id',auth[_0xa8c5('0xa')](),controller[_0xa8c5('0xc')]);router[_0xa8c5('0xd')]('/',auth[_0xa8c5('0xa')](),controller['create']);router[_0xa8c5('0xe')](_0xa8c5('0xf'),auth['isAuthenticated'](),controller[_0xa8c5('0x10')]);router[_0xa8c5('0x11')]('/:id',auth[_0xa8c5('0xa')](),controller[_0xa8c5('0x12')]);module[_0xa8c5('0x13')]=router;