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 _0x6c65=['multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./network.controller','get','index','/:id','isAuthenticated','show','create','put','update','delete','destroy'];(function(_0x463e45,_0x1ff35f){var _0x172e49=function(_0x35f7d0){while(--_0x35f7d0){_0x463e45['push'](_0x463e45['shift']());}};_0x172e49(++_0x1ff35f);}(_0x6c65,0x78));var _0x56c6=function(_0x1bc173,_0x1f46f5){_0x1bc173=_0x1bc173-0x0;var _0x2815a0=_0x6c65[_0x1bc173];return _0x2815a0;};'use strict';var multer=require(_0x56c6('0x0'));var util=require(_0x56c6('0x1'));var path=require(_0x56c6('0x2'));var timeout=require(_0x56c6('0x3'));var express=require(_0x56c6('0x4'));var router=express[_0x56c6('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x56c6('0x6'));var interaction=require(_0x56c6('0x7'));var config=require(_0x56c6('0x8'));var controller=require(_0x56c6('0x9'));router[_0x56c6('0xa')]('/',auth['isAuthenticated'](),controller[_0x56c6('0xb')]);router[_0x56c6('0xa')](_0x56c6('0xc'),auth[_0x56c6('0xd')](),controller[_0x56c6('0xe')]);router['post']('/',auth[_0x56c6('0xd')](),controller[_0x56c6('0xf')]);router[_0x56c6('0x10')]('/:id',auth[_0x56c6('0xd')](),controller[_0x56c6('0x11')]);router[_0x56c6('0x12')](_0x56c6('0xc'),auth[_0x56c6('0xd')](),controller[_0x56c6('0x13')]);module['exports']=router;