1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xf954=['path','connect-timeout','express','Router','fs-extra','../../config/environment','./network.controller','get','isAuthenticated','/:id','show','create','put','destroy','exports','multer','util'];(function(_0x3f0b09,_0x4f390a){var _0x4b42be=function(_0x5ab50f){while(--_0x5ab50f){_0x3f0b09['push'](_0x3f0b09['shift']());}};_0x4b42be(++_0x4f390a);}(_0xf954,0x10e));var _0x4f95=function(_0x666cc6,_0x53441b){_0x666cc6=_0x666cc6-0x0;var _0x4e6d1d=_0xf954[_0x666cc6];return _0x4e6d1d;};'use strict';var multer=require(_0x4f95('0x0'));var util=require(_0x4f95('0x1'));var path=require(_0x4f95('0x2'));var timeout=require(_0x4f95('0x3'));var express=require(_0x4f95('0x4'));var router=express[_0x4f95('0x5')]();var fs_extra=require(_0x4f95('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x4f95('0x7'));var controller=require(_0x4f95('0x8'));router[_0x4f95('0x9')]('/',auth[_0x4f95('0xa')](),controller['index']);router[_0x4f95('0x9')](_0x4f95('0xb'),auth[_0x4f95('0xa')](),controller[_0x4f95('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x4f95('0xd')]);router[_0x4f95('0xe')](_0x4f95('0xb'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x4f95('0xb'),auth[_0x4f95('0xa')](),controller[_0x4f95('0xf')]);module[_0x4f95('0x10')]=router;