19c08ea0803ada7914edfe381b8bf7f5b0458931
[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 _0xa7f7=['../../components/auth/service','../../config/environment','isAuthenticated','index','get','/describe','describe','/:id','create','put','delete','destroy','exports','connect-timeout','Router','fs-extra'];(function(_0x5663f7,_0xe1e383){var _0x21eb05=function(_0x4bcfc7){while(--_0x4bcfc7){_0x5663f7['push'](_0x5663f7['shift']());}};_0x21eb05(++_0xe1e383);}(_0xa7f7,0xfd));var _0x7a7f=function(_0x421eeb,_0x3d3e3e){_0x421eeb=_0x421eeb-0x0;var _0x2c7371=_0xa7f7[_0x421eeb];return _0x2c7371;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x7a7f('0x0'));var express=require('express');var router=express[_0x7a7f('0x1')]();var fs_extra=require(_0x7a7f('0x2'));var auth=require(_0x7a7f('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x7a7f('0x4'));var controller=require('./mailTransferReport.controller');router['get']('/',auth[_0x7a7f('0x5')](),controller[_0x7a7f('0x6')]);router[_0x7a7f('0x7')](_0x7a7f('0x8'),auth[_0x7a7f('0x5')](),controller[_0x7a7f('0x9')]);router[_0x7a7f('0x7')](_0x7a7f('0xa'),auth[_0x7a7f('0x5')](),controller['show']);router['post']('/',auth[_0x7a7f('0x5')](),controller[_0x7a7f('0xb')]);router[_0x7a7f('0xc')](_0x7a7f('0xa'),auth[_0x7a7f('0x5')](),controller['update']);router[_0x7a7f('0xd')](_0x7a7f('0xa'),auth[_0x7a7f('0x5')](),controller[_0x7a7f('0xe')]);module[_0x7a7f('0xf')]=router;