0f54f98c7803f8f906f3185d63bc59b9807b7108
[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 _0xab7b=['../../config/environment','./mailTransferReport.controller','get','index','/describe','isAuthenticated','describe','show','create','put','update','delete','/:id','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service'];(function(_0xf8da14,_0x49b2f2){var _0x61d88c=function(_0x23c987){while(--_0x23c987){_0xf8da14['push'](_0xf8da14['shift']());}};_0x61d88c(++_0x49b2f2);}(_0xab7b,0x67));var _0xbab7=function(_0x30a640,_0x300254){_0x30a640=_0x30a640-0x0;var _0x21f6b4=_0xab7b[_0x30a640];return _0x21f6b4;};'use strict';var multer=require(_0xbab7('0x0'));var util=require(_0xbab7('0x1'));var path=require(_0xbab7('0x2'));var timeout=require(_0xbab7('0x3'));var express=require(_0xbab7('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xbab7('0x5'));var interaction=require(_0xbab7('0x6'));var config=require(_0xbab7('0x7'));var controller=require(_0xbab7('0x8'));router[_0xbab7('0x9')]('/',auth['isAuthenticated'](),controller[_0xbab7('0xa')]);router[_0xbab7('0x9')](_0xbab7('0xb'),auth[_0xbab7('0xc')](),controller[_0xbab7('0xd')]);router['get']('/:id',auth[_0xbab7('0xc')](),controller[_0xbab7('0xe')]);router['post']('/',auth[_0xbab7('0xc')](),controller[_0xbab7('0xf')]);router[_0xbab7('0x10')]('/:id',auth['isAuthenticated'](),controller[_0xbab7('0x11')]);router[_0xbab7('0x12')](_0xbab7('0x13'),auth[_0xbab7('0xc')](),controller[_0xbab7('0x14')]);module[_0xbab7('0x15')]=router;