f874fd7c8783fd4095831a84c652a9b747dcf251
[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 _0x4fbb=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/describe','describe','show','post','create','put','/:id','update','delete','destroy','path','express'];(function(_0x284506,_0x191316){var _0x1e9ee5=function(_0xe7eaa){while(--_0xe7eaa){_0x284506['push'](_0x284506['shift']());}};_0x1e9ee5(++_0x191316);}(_0x4fbb,0x142));var _0xb4fb=function(_0x2e60e8,_0x4fb1c2){_0x2e60e8=_0x2e60e8-0x0;var _0xc74383=_0x4fbb[_0x2e60e8];return _0xc74383;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xb4fb('0x0'));var timeout=require('connect-timeout');var express=require(_0xb4fb('0x1'));var router=express[_0xb4fb('0x2')]();var fs_extra=require(_0xb4fb('0x3'));var auth=require(_0xb4fb('0x4'));var interaction=require(_0xb4fb('0x5'));var config=require('../../config/environment');var controller=require('./mailTransferReport.controller');router[_0xb4fb('0x6')]('/',auth[_0xb4fb('0x7')](),controller['index']);router['get'](_0xb4fb('0x8'),auth[_0xb4fb('0x7')](),controller[_0xb4fb('0x9')]);router[_0xb4fb('0x6')]('/:id',auth[_0xb4fb('0x7')](),controller[_0xb4fb('0xa')]);router[_0xb4fb('0xb')]('/',auth[_0xb4fb('0x7')](),controller[_0xb4fb('0xc')]);router[_0xb4fb('0xd')](_0xb4fb('0xe'),auth[_0xb4fb('0x7')](),controller[_0xb4fb('0xf')]);router[_0xb4fb('0x10')](_0xb4fb('0xe'),auth['isAuthenticated'](),controller[_0xb4fb('0x11')]);module['exports']=router;