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 _0xe731=['path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailTransferReport.controller','isAuthenticated','index','get','/describe','describe','/:id','post','put','update','delete','multer'];(function(_0x3b4695,_0x352012){var _0x1f16fc=function(_0x2a079d){while(--_0x2a079d){_0x3b4695['push'](_0x3b4695['shift']());}};_0x1f16fc(++_0x352012);}(_0xe731,0xd0));var _0x1e73=function(_0x38272a,_0x2dd237){_0x38272a=_0x38272a-0x0;var _0x5b06c5=_0xe731[_0x38272a];return _0x5b06c5;};'use strict';var multer=require(_0x1e73('0x0'));var util=require('util');var path=require(_0x1e73('0x1'));var timeout=require(_0x1e73('0x2'));var express=require(_0x1e73('0x3'));var router=express[_0x1e73('0x4')]();var auth=require(_0x1e73('0x5'));var interaction=require(_0x1e73('0x6'));var config=require(_0x1e73('0x7'));var controller=require(_0x1e73('0x8'));router['get']('/',auth[_0x1e73('0x9')](),controller[_0x1e73('0xa')]);router[_0x1e73('0xb')](_0x1e73('0xc'),auth[_0x1e73('0x9')](),controller[_0x1e73('0xd')]);router[_0x1e73('0xb')](_0x1e73('0xe'),auth[_0x1e73('0x9')](),controller['show']);router[_0x1e73('0xf')]('/',auth['isAuthenticated'](),controller['create']);router[_0x1e73('0x10')]('/:id',auth[_0x1e73('0x9')](),controller[_0x1e73('0x11')]);router[_0x1e73('0x12')](_0x1e73('0xe'),auth[_0x1e73('0x9')](),controller['destroy']);module['exports']=router;