cb9ad89646eb59eb10613638af3e4260dc647bad
[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 _0xa23f=['/:id','show','post','update','destroy','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','./mailTransferReport.controller','isAuthenticated','index','get','/describe','describe'];(function(_0x24509e,_0xef1120){var _0x38fc30=function(_0x4062e5){while(--_0x4062e5){_0x24509e['push'](_0x24509e['shift']());}};_0x38fc30(++_0xef1120);}(_0xa23f,0x7c));var _0xfa23=function(_0x544aec,_0x24c9e){_0x544aec=_0x544aec-0x0;var _0x1597f4=_0xa23f[_0x544aec];return _0x1597f4;};'use strict';var multer=require(_0xfa23('0x0'));var util=require(_0xfa23('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xfa23('0x2'));var router=express[_0xfa23('0x3')]();var auth=require(_0xfa23('0x4'));var interaction=require(_0xfa23('0x5'));var config=require('../../config/environment');var controller=require(_0xfa23('0x6'));router['get']('/',auth[_0xfa23('0x7')](),controller[_0xfa23('0x8')]);router[_0xfa23('0x9')](_0xfa23('0xa'),auth['isAuthenticated'](),controller[_0xfa23('0xb')]);router['get'](_0xfa23('0xc'),auth[_0xfa23('0x7')](),controller[_0xfa23('0xd')]);router[_0xfa23('0xe')]('/',auth[_0xfa23('0x7')](),controller['create']);router['put'](_0xfa23('0xc'),auth['isAuthenticated'](),controller[_0xfa23('0xf')]);router['delete'](_0xfa23('0xc'),auth[_0xfa23('0x7')](),controller[_0xfa23('0x10')]);module['exports']=router;