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