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