35cd689aaaf9f156d7d6587ade9294f7dff1ecf4
[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 _0xad1b=['exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','get','index','isAuthenticated','/:id','update','delete','destroy'];(function(_0x8666ec,_0x34fb14){var _0x496fe8=function(_0x52361d){while(--_0x52361d){_0x8666ec['push'](_0x8666ec['shift']());}};_0x496fe8(++_0x34fb14);}(_0xad1b,0x131));var _0xbad1=function(_0x104590,_0x21b0b5){_0x104590=_0x104590-0x0;var _0x380a7c=_0xad1b[_0x104590];return _0x380a7c;};'use strict';var multer=require(_0xbad1('0x0'));var util=require(_0xbad1('0x1'));var path=require(_0xbad1('0x2'));var timeout=require(_0xbad1('0x3'));var express=require('express');var router=express[_0xbad1('0x4')]();var fs_extra=require(_0xbad1('0x5'));var auth=require(_0xbad1('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xbad1('0x7'));var controller=require('./network.controller');router[_0xbad1('0x8')]('/',auth['isAuthenticated'](),controller[_0xbad1('0x9')]);router[_0xbad1('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0xbad1('0xa')](),controller['create']);router['put'](_0xbad1('0xb'),auth[_0xbad1('0xa')](),controller[_0xbad1('0xc')]);router[_0xbad1('0xd')](_0xbad1('0xb'),auth['isAuthenticated'](),controller[_0xbad1('0xe')]);module[_0xbad1('0xf')]=router;