Built motion from commit (unavailable).|2.5.11
[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 _0x543f=['isAuthenticated','show','post','create','put','/:id','update','delete','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x1778e1,_0x3e1727){var _0x2bc4c6=function(_0x359c65){while(--_0x359c65){_0x1778e1['push'](_0x1778e1['shift']());}};_0x2bc4c6(++_0x3e1727);}(_0x543f,0x18f));var _0xf543=function(_0x3a3540,_0x3861ad){_0x3a3540=_0x3a3540-0x0;var _0x29b02=_0x543f[_0x3a3540];return _0x29b02;};'use strict';var multer=require(_0xf543('0x0'));var util=require(_0xf543('0x1'));var path=require(_0xf543('0x2'));var timeout=require(_0xf543('0x3'));var express=require(_0xf543('0x4'));var router=express[_0xf543('0x5')]();var auth=require(_0xf543('0x6'));var interaction=require(_0xf543('0x7'));var config=require(_0xf543('0x8'));var controller=require('./network.controller');router['get']('/',auth[_0xf543('0x9')](),controller['index']);router['get']('/:id',auth[_0xf543('0x9')](),controller[_0xf543('0xa')]);router[_0xf543('0xb')]('/',auth['isAuthenticated'](),controller[_0xf543('0xc')]);router[_0xf543('0xd')](_0xf543('0xe'),auth[_0xf543('0x9')](),controller[_0xf543('0xf')]);router[_0xf543('0x10')]('/:id',auth[_0xf543('0x9')](),controller['destroy']);module['exports']=router;