d8fa1607060c5f00a4dabc7322ed50226ee452ff
[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 _0x07f7=['show','post','create','update','delete','destroy','exports','multer','util','connect-timeout','Router','../../components/auth/service','./network.controller','get','isAuthenticated','index','/:id'];(function(_0x2e1106,_0x131552){var _0x2ce905=function(_0x4d72b9){while(--_0x4d72b9){_0x2e1106['push'](_0x2e1106['shift']());}};_0x2ce905(++_0x131552);}(_0x07f7,0x7e));var _0x707f=function(_0x3b085,_0x250543){_0x3b085=_0x3b085-0x0;var _0x476a57=_0x07f7[_0x3b085];return _0x476a57;};'use strict';var multer=require(_0x707f('0x0'));var util=require(_0x707f('0x1'));var path=require('path');var timeout=require(_0x707f('0x2'));var express=require('express');var router=express[_0x707f('0x3')]();var auth=require(_0x707f('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x707f('0x5'));router[_0x707f('0x6')]('/',auth[_0x707f('0x7')](),controller[_0x707f('0x8')]);router[_0x707f('0x6')](_0x707f('0x9'),auth['isAuthenticated'](),controller[_0x707f('0xa')]);router[_0x707f('0xb')]('/',auth['isAuthenticated'](),controller[_0x707f('0xc')]);router['put'](_0x707f('0x9'),auth[_0x707f('0x7')](),controller[_0x707f('0xd')]);router[_0x707f('0xe')](_0x707f('0x9'),auth[_0x707f('0x7')](),controller[_0x707f('0xf')]);module[_0x707f('0x10')]=router;