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 _0x847d=['/describe','describe','/:id','show','update','destroy','exports','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./mailTransferReport.controller','get','isAuthenticated','index'];(function(_0x44307b,_0x509d25){var _0x4e9ef6=function(_0x306f15){while(--_0x306f15){_0x44307b['push'](_0x44307b['shift']());}};_0x4e9ef6(++_0x509d25);}(_0x847d,0x14a));var _0xd847=function(_0x4f0e62,_0x28e44f){_0x4f0e62=_0x4f0e62-0x0;var _0x117ab8=_0x847d[_0x4f0e62];return _0x117ab8;};'use strict';var multer=require('multer');var util=require(_0xd847('0x0'));var path=require(_0xd847('0x1'));var timeout=require(_0xd847('0x2'));var express=require('express');var router=express[_0xd847('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xd847('0x4'));var interaction=require(_0xd847('0x5'));var config=require('../../config/environment');var controller=require(_0xd847('0x6'));router[_0xd847('0x7')]('/',auth[_0xd847('0x8')](),controller[_0xd847('0x9')]);router['get'](_0xd847('0xa'),auth[_0xd847('0x8')](),controller[_0xd847('0xb')]);router[_0xd847('0x7')](_0xd847('0xc'),auth[_0xd847('0x8')](),controller[_0xd847('0xd')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xd847('0xc'),auth[_0xd847('0x8')](),controller[_0xd847('0xe')]);router['delete']('/:id',auth[_0xd847('0x8')](),controller[_0xd847('0xf')]);module[_0xd847('0x10')]=router;