3f3f62b8852fbff438e10ef73c0a8ec62e366765
[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 _0x0c51=['get','isAuthenticated','/describe','describe','show','post','put','update','delete','/:id','exports','multer','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x143cfd,_0x1a336e){var _0x2cb5f5=function(_0x1523fa){while(--_0x1523fa){_0x143cfd['push'](_0x143cfd['shift']());}};_0x2cb5f5(++_0x1a336e);}(_0x0c51,0x1df));var _0x10c5=function(_0x280626,_0x51d555){_0x280626=_0x280626-0x0;var _0x4336f1=_0x0c51[_0x280626];return _0x4336f1;};'use strict';var multer=require(_0x10c5('0x0'));var util=require(_0x10c5('0x1'));var path=require('path');var timeout=require(_0x10c5('0x2'));var express=require(_0x10c5('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x10c5('0x4'));var interaction=require(_0x10c5('0x5'));var config=require(_0x10c5('0x6'));var controller=require('./mailTransferReport.controller');router[_0x10c5('0x7')]('/',auth[_0x10c5('0x8')](),controller['index']);router['get'](_0x10c5('0x9'),auth[_0x10c5('0x8')](),controller[_0x10c5('0xa')]);router[_0x10c5('0x7')]('/:id',auth[_0x10c5('0x8')](),controller[_0x10c5('0xb')]);router[_0x10c5('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0x10c5('0xd')]('/:id',auth[_0x10c5('0x8')](),controller[_0x10c5('0xe')]);router[_0x10c5('0xf')](_0x10c5('0x10'),auth[_0x10c5('0x8')](),controller['destroy']);module[_0x10c5('0x11')]=router;