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 _0x36f3=['index','get','show','post','create','put','/:id','update','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./network.controller','isAuthenticated'];(function(_0x34eb31,_0x8f0f70){var _0x254994=function(_0xbec9a3){while(--_0xbec9a3){_0x34eb31['push'](_0x34eb31['shift']());}};_0x254994(++_0x8f0f70);}(_0x36f3,0xe6));var _0x336f=function(_0x5a335a,_0x11001d){_0x5a335a=_0x5a335a-0x0;var _0x25ac39=_0x36f3[_0x5a335a];return _0x25ac39;};'use strict';var multer=require('multer');var util=require(_0x336f('0x0'));var path=require(_0x336f('0x1'));var timeout=require(_0x336f('0x2'));var express=require(_0x336f('0x3'));var router=express[_0x336f('0x4')]();var auth=require(_0x336f('0x5'));var interaction=require(_0x336f('0x6'));var config=require(_0x336f('0x7'));var controller=require(_0x336f('0x8'));router['get']('/',auth[_0x336f('0x9')](),controller[_0x336f('0xa')]);router[_0x336f('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x336f('0xc')]);router[_0x336f('0xd')]('/',auth[_0x336f('0x9')](),controller[_0x336f('0xe')]);router[_0x336f('0xf')](_0x336f('0x10'),auth[_0x336f('0x9')](),controller[_0x336f('0x11')]);router['delete'](_0x336f('0x10'),auth[_0x336f('0x9')](),controller[_0x336f('0x12')]);module[_0x336f('0x13')]=router;