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 _0x1ae8=['post','/:id','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x3b0050,_0x3966bf){var _0x79f85a=function(_0xf6628d){while(--_0xf6628d){_0x3b0050['push'](_0x3b0050['shift']());}};_0x79f85a(++_0x3966bf);}(_0x1ae8,0x1a9));var _0x81ae=function(_0x2fc83f,_0x2c5fa4){_0x2fc83f=_0x2fc83f-0x0;var _0x2d8edc=_0x1ae8[_0x2fc83f];return _0x2d8edc;};'use strict';var multer=require(_0x81ae('0x0'));var util=require(_0x81ae('0x1'));var path=require(_0x81ae('0x2'));var timeout=require(_0x81ae('0x3'));var express=require('express');var router=express[_0x81ae('0x4')]();var auth=require(_0x81ae('0x5'));var interaction=require(_0x81ae('0x6'));var config=require(_0x81ae('0x7'));var controller=require('./mailServerOut.controller');router[_0x81ae('0x8')]('/',auth[_0x81ae('0x9')](),controller['index']);router[_0x81ae('0x8')]('/:id',auth[_0x81ae('0x9')](),controller['show']);router[_0x81ae('0xa')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x81ae('0xb'),auth[_0x81ae('0x9')](),controller['update']);router[_0x81ae('0xc')](_0x81ae('0xb'),auth['isAuthenticated'](),controller[_0x81ae('0xd')]);module[_0x81ae('0xe')]=router;