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 _0x1961=['delete','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','create','put','update'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0x1961,0x67));var _0x1196=function(_0x3e133b,_0x270789){_0x3e133b=_0x3e133b-0x0;var _0x32018b=_0x1961[_0x3e133b];return _0x32018b;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x1196('0x0'));var timeout=require(_0x1196('0x1'));var express=require(_0x1196('0x2'));var router=express[_0x1196('0x3')]();var auth=require(_0x1196('0x4'));var interaction=require(_0x1196('0x5'));var config=require(_0x1196('0x6'));var controller=require('./mailServerOut.controller');router[_0x1196('0x7')]('/',auth[_0x1196('0x8')](),controller[_0x1196('0x9')]);router['get'](_0x1196('0xa'),auth['isAuthenticated'](),controller[_0x1196('0xb')]);router[_0x1196('0xc')]('/',auth[_0x1196('0x8')](),controller[_0x1196('0xd')]);router[_0x1196('0xe')](_0x1196('0xa'),auth['isAuthenticated'](),controller[_0x1196('0xf')]);router[_0x1196('0x10')](_0x1196('0xa'),auth[_0x1196('0x8')](),controller['destroy']);module['exports']=router;