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 _0x2cc7=['../../config/environment','./network.controller','get','isAuthenticated','index','/:id','post','put','update','delete','multer','util','path','express','Router','../../components/interaction/service'];(function(_0x2d486b,_0x5f213c){var _0x4291d1=function(_0x2cebcb){while(--_0x2cebcb){_0x2d486b['push'](_0x2d486b['shift']());}};_0x4291d1(++_0x5f213c);}(_0x2cc7,0x9a));var _0x72cc=function(_0x2d1fc2,_0x28baf1){_0x2d1fc2=_0x2d1fc2-0x0;var _0x3b1ea6=_0x2cc7[_0x2d1fc2];return _0x3b1ea6;};'use strict';var multer=require(_0x72cc('0x0'));var util=require(_0x72cc('0x1'));var path=require(_0x72cc('0x2'));var timeout=require('connect-timeout');var express=require(_0x72cc('0x3'));var router=express[_0x72cc('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x72cc('0x5'));var config=require(_0x72cc('0x6'));var controller=require(_0x72cc('0x7'));router[_0x72cc('0x8')]('/',auth[_0x72cc('0x9')](),controller[_0x72cc('0xa')]);router['get'](_0x72cc('0xb'),auth['isAuthenticated'](),controller['show']);router[_0x72cc('0xc')]('/',auth[_0x72cc('0x9')](),controller['create']);router[_0x72cc('0xd')](_0x72cc('0xb'),auth[_0x72cc('0x9')](),controller[_0x72cc('0xe')]);router[_0x72cc('0xf')](_0x72cc('0xb'),auth[_0x72cc('0x9')](),controller['destroy']);module['exports']=router;