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 _0x521f=['connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./network.controller','get','isAuthenticated','index','/:id','show','create','update','delete','destroy','exports','multer','util'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0x521f,0xe8));var _0xf521=function(_0x3dc068,_0x408431){_0x3dc068=_0x3dc068-0x0;var _0x4d4786=_0x521f[_0x3dc068];return _0x4d4786;};'use strict';var multer=require(_0xf521('0x0'));var util=require(_0xf521('0x1'));var path=require('path');var timeout=require(_0xf521('0x2'));var express=require(_0xf521('0x3'));var router=express[_0xf521('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xf521('0x5'));var config=require(_0xf521('0x6'));var controller=require(_0xf521('0x7'));router[_0xf521('0x8')]('/',auth[_0xf521('0x9')](),controller[_0xf521('0xa')]);router[_0xf521('0x8')](_0xf521('0xb'),auth['isAuthenticated'](),controller[_0xf521('0xc')]);router['post']('/',auth[_0xf521('0x9')](),controller[_0xf521('0xd')]);router['put'](_0xf521('0xb'),auth[_0xf521('0x9')](),controller[_0xf521('0xe')]);router[_0xf521('0xf')]('/:id',auth[_0xf521('0x9')](),controller[_0xf521('0x10')]);module[_0xf521('0x11')]=router;