Built motion from commit (unavailable).|2.5.29
[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 _0x929b=['../../components/interaction/service','./network.controller','get','isAuthenticated','index','/:id','show','post','create','put','delete','destroy','exports','multer','connect-timeout','express','Router'];(function(_0x4c927b,_0x2bf2f7){var _0x1123eb=function(_0x8cf85){while(--_0x8cf85){_0x4c927b['push'](_0x4c927b['shift']());}};_0x1123eb(++_0x2bf2f7);}(_0x929b,0x1d8));var _0xb929=function(_0x392ec2,_0x4e9f85){_0x392ec2=_0x392ec2-0x0;var _0x16e517=_0x929b[_0x392ec2];return _0x16e517;};'use strict';var multer=require(_0xb929('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xb929('0x1'));var express=require(_0xb929('0x2'));var router=express[_0xb929('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xb929('0x4'));var config=require('../../config/environment');var controller=require(_0xb929('0x5'));router[_0xb929('0x6')]('/',auth[_0xb929('0x7')](),controller[_0xb929('0x8')]);router['get'](_0xb929('0x9'),auth['isAuthenticated'](),controller[_0xb929('0xa')]);router[_0xb929('0xb')]('/',auth[_0xb929('0x7')](),controller[_0xb929('0xc')]);router[_0xb929('0xd')]('/:id',auth[_0xb929('0x7')](),controller['update']);router[_0xb929('0xe')](_0xb929('0x9'),auth['isAuthenticated'](),controller[_0xb929('0xf')]);module[_0xb929('0x10')]=router;