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 _0x7d4a=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailApplication.controller','get','/:id','show','isAuthenticated','update','delete','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x2211ed,_0x1bca0b){var _0x4d78cc=function(_0x467b59){while(--_0x467b59){_0x2211ed['push'](_0x2211ed['shift']());}};_0x4d78cc(++_0x1bca0b);}(_0x7d4a,0x19d));var _0xa7d4=function(_0x212ea9,_0x121b73){_0x212ea9=_0x212ea9-0x0;var _0x4a75b0=_0x7d4a[_0x212ea9];return _0x4a75b0;};'use strict';var multer=require(_0xa7d4('0x0'));var util=require(_0xa7d4('0x1'));var path=require(_0xa7d4('0x2'));var timeout=require(_0xa7d4('0x3'));var express=require(_0xa7d4('0x4'));var router=express[_0xa7d4('0x5')]();var fs_extra=require(_0xa7d4('0x6'));var auth=require(_0xa7d4('0x7'));var interaction=require(_0xa7d4('0x8'));var config=require(_0xa7d4('0x9'));var controller=require(_0xa7d4('0xa'));router[_0xa7d4('0xb')](_0xa7d4('0xc'),auth['isAuthenticated'](),controller[_0xa7d4('0xd')]);router['put']('/:id',auth[_0xa7d4('0xe')](),controller[_0xa7d4('0xf')]);router[_0xa7d4('0x10')]('/:id',auth[_0xa7d4('0xe')](),controller[_0xa7d4('0x11')]);module[_0xa7d4('0x12')]=router;