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 _0x5b05=['mail','mailmessage:create','put','update','/:id/accept','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailMessage.controller','index','get','/describe','isAuthenticated','describe','/:id','show','download','post','tracked'];(function(_0x4ec7f8,_0x46b723){var _0x556043=function(_0x5d0232){while(--_0x5d0232){_0x4ec7f8['push'](_0x4ec7f8['shift']());}};_0x556043(++_0x46b723);}(_0x5b05,0x190));var _0x55b0=function(_0x18271a,_0xea6a89){_0x18271a=_0x18271a-0x0;var _0x3ea4df=_0x5b05[_0x18271a];return _0x3ea4df;};'use strict';var multer=require('multer');var util=require(_0x55b0('0x0'));var path=require(_0x55b0('0x1'));var timeout=require(_0x55b0('0x2'));var express=require(_0x55b0('0x3'));var router=express[_0x55b0('0x4')]();var fs_extra=require(_0x55b0('0x5'));var auth=require(_0x55b0('0x6'));var interaction=require(_0x55b0('0x7'));var config=require(_0x55b0('0x8'));var controller=require(_0x55b0('0x9'));router['get']('/',auth['isAuthenticated'](),controller[_0x55b0('0xa')]);router[_0x55b0('0xb')](_0x55b0('0xc'),auth[_0x55b0('0xd')](),controller[_0x55b0('0xe')]);router['get'](_0x55b0('0xf'),auth[_0x55b0('0xd')](),controller[_0x55b0('0x10')]);router[_0x55b0('0xb')]('/:id/download',auth['isAuthenticated'](),controller[_0x55b0('0x11')]);router[_0x55b0('0x12')]('/',auth[_0x55b0('0xd')](),interaction[_0x55b0('0x13')](_0x55b0('0x14'),_0x55b0('0x15')),controller['create']);router[_0x55b0('0x16')](_0x55b0('0xf'),auth['isAuthenticated'](),controller[_0x55b0('0x17')]);router[_0x55b0('0x16')](_0x55b0('0x18'),auth[_0x55b0('0xd')](),controller['accept']);router['put']('/:id/reject',auth[_0x55b0('0xd')](),controller['reject']);router[_0x55b0('0x19')](_0x55b0('0xf'),auth['isAuthenticated'](),controller[_0x55b0('0x1a')]);module[_0x55b0('0x1b')]=router;