debf84b954716e3ab5cb95fd036eea96881db726
[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 _0x14ca=['../../components/interaction/service','../../config/environment','./mailTransferReport.controller','index','get','/describe','describe','isAuthenticated','show','post','put','delete','destroy','exports','multer','util','path','express','Router'];(function(_0x2718c7,_0x5a1636){var _0x59d89c=function(_0x4d4f49){while(--_0x4d4f49){_0x2718c7['push'](_0x2718c7['shift']());}};_0x59d89c(++_0x5a1636);}(_0x14ca,0xb9));var _0xa14c=function(_0xb1ee6d,_0x427b4c){_0xb1ee6d=_0xb1ee6d-0x0;var _0x559dde=_0x14ca[_0xb1ee6d];return _0x559dde;};'use strict';var multer=require(_0xa14c('0x0'));var util=require(_0xa14c('0x1'));var path=require(_0xa14c('0x2'));var timeout=require('connect-timeout');var express=require(_0xa14c('0x3'));var router=express[_0xa14c('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xa14c('0x5'));var config=require(_0xa14c('0x6'));var controller=require(_0xa14c('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0xa14c('0x8')]);router[_0xa14c('0x9')](_0xa14c('0xa'),auth['isAuthenticated'](),controller[_0xa14c('0xb')]);router[_0xa14c('0x9')]('/:id',auth[_0xa14c('0xc')](),controller[_0xa14c('0xd')]);router[_0xa14c('0xe')]('/',auth['isAuthenticated'](),controller['create']);router[_0xa14c('0xf')]('/:id',auth[_0xa14c('0xc')](),controller['update']);router[_0xa14c('0x10')]('/:id',auth[_0xa14c('0xc')](),controller[_0xa14c('0x11')]);module[_0xa14c('0x12')]=router;