f1b9724b131ff3fb3e0199b3007f64eb2784e3d7
[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 _0x531f=['update','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','post','create','put'];(function(_0x350ae7,_0xffc7f){var _0x2221d2=function(_0x551bf8){while(--_0x551bf8){_0x350ae7['push'](_0x350ae7['shift']());}};_0x2221d2(++_0xffc7f);}(_0x531f,0x16a));var _0xf531=function(_0x5d6c3e,_0x409a3e){_0x5d6c3e=_0x5d6c3e-0x0;var _0x44ecb7=_0x531f[_0x5d6c3e];return _0x44ecb7;};'use strict';var multer=require(_0xf531('0x0'));var util=require(_0xf531('0x1'));var path=require(_0xf531('0x2'));var timeout=require(_0xf531('0x3'));var express=require(_0xf531('0x4'));var router=express[_0xf531('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xf531('0x6'));var config=require(_0xf531('0x7'));var controller=require('./network.controller');router['get']('/',auth[_0xf531('0x8')](),controller[_0xf531('0x9')]);router[_0xf531('0xa')](_0xf531('0xb'),auth[_0xf531('0x8')](),controller[_0xf531('0xc')]);router[_0xf531('0xd')]('/',auth[_0xf531('0x8')](),controller[_0xf531('0xe')]);router[_0xf531('0xf')](_0xf531('0xb'),auth[_0xf531('0x8')](),controller[_0xf531('0x10')]);router['delete'](_0xf531('0xb'),auth[_0xf531('0x8')](),controller['destroy']);module[_0xf531('0x11')]=router;