Built motion from commit fa4c4286.|2.6.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 _0x8caf=['show','post','create','put','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','index','/:id','isAuthenticated'];(function(_0x2235bf,_0x3a06a7){var _0x4c3a64=function(_0x3b3bb6){while(--_0x3b3bb6){_0x2235bf['push'](_0x2235bf['shift']());}};_0x4c3a64(++_0x3a06a7);}(_0x8caf,0x16f));var _0xf8ca=function(_0x8b9e62,_0x173b44){_0x8b9e62=_0x8b9e62-0x0;var _0x31a9a0=_0x8caf[_0x8b9e62];return _0x31a9a0;};'use strict';var multer=require(_0xf8ca('0x0'));var util=require(_0xf8ca('0x1'));var path=require('path');var timeout=require(_0xf8ca('0x2'));var express=require(_0xf8ca('0x3'));var router=express[_0xf8ca('0x4')]();var fs_extra=require(_0xf8ca('0x5'));var auth=require(_0xf8ca('0x6'));var interaction=require(_0xf8ca('0x7'));var config=require('../../config/environment');var controller=require('./network.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xf8ca('0x8')]);router['get'](_0xf8ca('0x9'),auth[_0xf8ca('0xa')](),controller[_0xf8ca('0xb')]);router[_0xf8ca('0xc')]('/',auth['isAuthenticated'](),controller[_0xf8ca('0xd')]);router[_0xf8ca('0xe')](_0xf8ca('0x9'),auth['isAuthenticated'](),controller['update']);router[_0xf8ca('0xf')]('/:id',auth[_0xf8ca('0xa')](),controller[_0xf8ca('0x10')]);module[_0xf8ca('0x11')]=router;