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 _0xae74=['get','/:id','isAuthenticated','post','create','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0xec814,_0x590ac3){var _0x3e5c2c=function(_0x4b6ae5){while(--_0x4b6ae5){_0xec814['push'](_0xec814['shift']());}};_0x3e5c2c(++_0x590ac3);}(_0xae74,0x17f));var _0x4ae7=function(_0x3f2d46,_0x536959){_0x3f2d46=_0x3f2d46-0x0;var _0x1cf6d3=_0xae74[_0x3f2d46];return _0x1cf6d3;};'use strict';var multer=require(_0x4ae7('0x0'));var util=require('util');var path=require(_0x4ae7('0x1'));var timeout=require(_0x4ae7('0x2'));var express=require(_0x4ae7('0x3'));var router=express[_0x4ae7('0x4')]();var auth=require(_0x4ae7('0x5'));var interaction=require(_0x4ae7('0x6'));var config=require(_0x4ae7('0x7'));var controller=require('./mailServerOut.controller');router[_0x4ae7('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x4ae7('0x8')](_0x4ae7('0x9'),auth[_0x4ae7('0xa')](),controller['show']);router[_0x4ae7('0xb')]('/',auth[_0x4ae7('0xa')](),controller[_0x4ae7('0xc')]);router['put']('/:id',auth[_0x4ae7('0xa')](),controller[_0x4ae7('0xd')]);router[_0x4ae7('0xe')](_0x4ae7('0x9'),auth[_0x4ae7('0xa')](),controller[_0x4ae7('0xf')]);module[_0x4ae7('0x10')]=router;