Built motion from commit c738b9ac.|2.6.25
[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 _0x1af2=['connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','/describe','describe','get','/:id','isAuthenticated','show','post','create','update','destroy','exports','util','path'];(function(_0x6c993a,_0x5ea3ab){var _0x27f547=function(_0x22df20){while(--_0x22df20){_0x6c993a['push'](_0x6c993a['shift']());}};_0x27f547(++_0x5ea3ab);}(_0x1af2,0xb2));var _0x21af=function(_0x5229a1,_0x5349f8){_0x5229a1=_0x5229a1-0x0;var _0xc4cb55=_0x1af2[_0x5229a1];return _0xc4cb55;};'use strict';var multer=require('multer');var util=require(_0x21af('0x0'));var path=require(_0x21af('0x1'));var timeout=require(_0x21af('0x2'));var express=require('express');var router=express[_0x21af('0x3')]();var fs_extra=require(_0x21af('0x4'));var auth=require(_0x21af('0x5'));var interaction=require(_0x21af('0x6'));var config=require('../../config/environment');var controller=require('./mailTransferReport.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x21af('0x7'),auth['isAuthenticated'](),controller[_0x21af('0x8')]);router[_0x21af('0x9')](_0x21af('0xa'),auth[_0x21af('0xb')](),controller[_0x21af('0xc')]);router[_0x21af('0xd')]('/',auth['isAuthenticated'](),controller[_0x21af('0xe')]);router['put'](_0x21af('0xa'),auth[_0x21af('0xb')](),controller[_0x21af('0xf')]);router['delete'](_0x21af('0xa'),auth[_0x21af('0xb')](),controller[_0x21af('0x10')]);module[_0x21af('0x11')]=router;