51b15e0f2eb1c0fa1639350d538263e2a939f45a
[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 _0x9b2f=['destroy','exports','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/describe','/:id','isAuthenticated','show','post','update','delete'];(function(_0x453a15,_0xcab71f){var _0x2e7f2d=function(_0x141a0b){while(--_0x141a0b){_0x453a15['push'](_0x453a15['shift']());}};_0x2e7f2d(++_0xcab71f);}(_0x9b2f,0x191));var _0xf9b2=function(_0x263a74,_0xc31414){_0x263a74=_0x263a74-0x0;var _0x2aa86c=_0x9b2f[_0x263a74];return _0x2aa86c;};'use strict';var multer=require(_0xf9b2('0x0'));var util=require(_0xf9b2('0x1'));var path=require('path');var timeout=require(_0xf9b2('0x2'));var express=require('express');var router=express[_0xf9b2('0x3')]();var fs_extra=require(_0xf9b2('0x4'));var auth=require(_0xf9b2('0x5'));var interaction=require(_0xf9b2('0x6'));var config=require(_0xf9b2('0x7'));var controller=require('./mailTransferReport.controller');router[_0xf9b2('0x8')]('/',auth['isAuthenticated'](),controller[_0xf9b2('0x9')]);router[_0xf9b2('0x8')](_0xf9b2('0xa'),auth['isAuthenticated'](),controller['describe']);router[_0xf9b2('0x8')](_0xf9b2('0xb'),auth[_0xf9b2('0xc')](),controller[_0xf9b2('0xd')]);router[_0xf9b2('0xe')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xf9b2('0xb'),auth[_0xf9b2('0xc')](),controller[_0xf9b2('0xf')]);router[_0xf9b2('0x10')](_0xf9b2('0xb'),auth[_0xf9b2('0xc')](),controller[_0xf9b2('0x11')]);module[_0xf9b2('0x12')]=router;