Built motion from commit 449495f6.|2.6.27
[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 _0x110e=['Router','fs-extra','../../components/auth/service','isAuthenticated','get','/:id','show','post','create','put','update','delete','destroy','exports','multer','util','connect-timeout','express'];(function(_0x2f50ab,_0x4dfe90){var _0x1e9b19=function(_0x4c4ab3){while(--_0x4c4ab3){_0x2f50ab['push'](_0x2f50ab['shift']());}};_0x1e9b19(++_0x4dfe90);}(_0x110e,0x68));var _0xe110=function(_0x36884e,_0x48008f){_0x36884e=_0x36884e-0x0;var _0x1cc367=_0x110e[_0x36884e];return _0x1cc367;};'use strict';var multer=require(_0xe110('0x0'));var util=require(_0xe110('0x1'));var path=require('path');var timeout=require(_0xe110('0x2'));var express=require(_0xe110('0x3'));var router=express[_0xe110('0x4')]();var fs_extra=require(_0xe110('0x5'));var auth=require(_0xe110('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./network.controller');router['get']('/',auth[_0xe110('0x7')](),controller['index']);router[_0xe110('0x8')](_0xe110('0x9'),auth[_0xe110('0x7')](),controller[_0xe110('0xa')]);router[_0xe110('0xb')]('/',auth[_0xe110('0x7')](),controller[_0xe110('0xc')]);router[_0xe110('0xd')](_0xe110('0x9'),auth['isAuthenticated'](),controller[_0xe110('0xe')]);router[_0xe110('0xf')]('/:id',auth[_0xe110('0x7')](),controller[_0xe110('0x10')]);module[_0xe110('0x11')]=router;