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