69ae7f4426fd28e637d24fb9098f56aaaa20fe74
[motion2.git] / server / api / mailTransferReport / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xf8c2=['../../components/interaction/service','./mailTransferReport.controller','get','isAuthenticated','index','/describe','describe','/:id','show','create','put','update','delete','multer','util','path','express','fs-extra','../../components/auth/service'];(function(_0x591eb4,_0x25e60e){var _0x4dcdb4=function(_0x3aea94){while(--_0x3aea94){_0x591eb4['push'](_0x591eb4['shift']());}};_0x4dcdb4(++_0x25e60e);}(_0xf8c2,0x1c2));var _0x2f8c=function(_0x2f2bd2,_0x5717f6){_0x2f2bd2=_0x2f2bd2-0x0;var _0xaab90=_0xf8c2[_0x2f2bd2];return _0xaab90;};'use strict';var multer=require(_0x2f8c('0x0'));var util=require(_0x2f8c('0x1'));var path=require(_0x2f8c('0x2'));var timeout=require('connect-timeout');var express=require(_0x2f8c('0x3'));var router=express['Router']();var fs_extra=require(_0x2f8c('0x4'));var auth=require(_0x2f8c('0x5'));var interaction=require(_0x2f8c('0x6'));var config=require('../../config/environment');var controller=require(_0x2f8c('0x7'));router[_0x2f8c('0x8')]('/',auth[_0x2f8c('0x9')](),controller[_0x2f8c('0xa')]);router['get'](_0x2f8c('0xb'),auth['isAuthenticated'](),controller[_0x2f8c('0xc')]);router[_0x2f8c('0x8')](_0x2f8c('0xd'),auth[_0x2f8c('0x9')](),controller[_0x2f8c('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0x2f8c('0xf')]);router[_0x2f8c('0x10')](_0x2f8c('0xd'),auth[_0x2f8c('0x9')](),controller[_0x2f8c('0x11')]);router[_0x2f8c('0x12')](_0x2f8c('0xd'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;