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 _0xa952=['util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailApplication.controller','get','/:id','isAuthenticated','show','update','delete','multer'];(function(_0x443ad3,_0x2b06e7){var _0x5626eb=function(_0x573e93){while(--_0x573e93){_0x443ad3['push'](_0x443ad3['shift']());}};_0x5626eb(++_0x2b06e7);}(_0xa952,0x10f));var _0x2a95=function(_0x5137ca,_0x47942b){_0x5137ca=_0x5137ca-0x0;var _0x7d3cde=_0xa952[_0x5137ca];return _0x7d3cde;};'use strict';var multer=require(_0x2a95('0x0'));var util=require(_0x2a95('0x1'));var path=require(_0x2a95('0x2'));var timeout=require(_0x2a95('0x3'));var express=require(_0x2a95('0x4'));var router=express['Router']();var fs_extra=require(_0x2a95('0x5'));var auth=require(_0x2a95('0x6'));var interaction=require(_0x2a95('0x7'));var config=require(_0x2a95('0x8'));var controller=require(_0x2a95('0x9'));router[_0x2a95('0xa')](_0x2a95('0xb'),auth[_0x2a95('0xc')](),controller[_0x2a95('0xd')]);router['put'](_0x2a95('0xb'),auth[_0x2a95('0xc')](),controller[_0x2a95('0xe')]);router[_0x2a95('0xf')](_0x2a95('0xb'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;