Built motion from commit (unavailable).|2.5.4
[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 _0x7f2f=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','isAuthenticated','show','post','create','put','/:id','update','destroy','exports','util','path','express','Router'];(function(_0x1b8e60,_0x21b885){var _0x363363=function(_0x5987c7){while(--_0x5987c7){_0x1b8e60['push'](_0x1b8e60['shift']());}};_0x363363(++_0x21b885);}(_0x7f2f,0x11c));var _0xf7f2=function(_0x54db71,_0x43de96){_0x54db71=_0x54db71-0x0;var _0x1104e7=_0x7f2f[_0x54db71];return _0x1104e7;};'use strict';var multer=require('multer');var util=require(_0xf7f2('0x0'));var path=require(_0xf7f2('0x1'));var timeout=require('connect-timeout');var express=require(_0xf7f2('0x2'));var router=express[_0xf7f2('0x3')]();var auth=require(_0xf7f2('0x4'));var interaction=require(_0xf7f2('0x5'));var config=require(_0xf7f2('0x6'));var controller=require('./network.controller');router[_0xf7f2('0x7')]('/',auth['isAuthenticated'](),controller[_0xf7f2('0x8')]);router[_0xf7f2('0x7')]('/:id',auth[_0xf7f2('0x9')](),controller[_0xf7f2('0xa')]);router[_0xf7f2('0xb')]('/',auth[_0xf7f2('0x9')](),controller[_0xf7f2('0xc')]);router[_0xf7f2('0xd')](_0xf7f2('0xe'),auth['isAuthenticated'](),controller[_0xf7f2('0xf')]);router['delete'](_0xf7f2('0xe'),auth[_0xf7f2('0x9')](),controller[_0xf7f2('0x10')]);module[_0xf7f2('0x11')]=router;