Built motion from commit (unavailable).|2.5.4
[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 _0x7fd6=['show','create','put','update','delete','destroy','exports','util','path','express','Router','../../components/interaction/service','../../config/environment','isAuthenticated','get','/describe','/:id'];(function(_0x358806,_0x322b66){var _0x19fdcb=function(_0xe01b8d){while(--_0xe01b8d){_0x358806['push'](_0x358806['shift']());}};_0x19fdcb(++_0x322b66);}(_0x7fd6,0x117));var _0x67fd=function(_0x13069d,_0x4f112f){_0x13069d=_0x13069d-0x0;var _0x2c79be=_0x7fd6[_0x13069d];return _0x2c79be;};'use strict';var multer=require('multer');var util=require(_0x67fd('0x0'));var path=require(_0x67fd('0x1'));var timeout=require('connect-timeout');var express=require(_0x67fd('0x2'));var router=express[_0x67fd('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x67fd('0x4'));var config=require(_0x67fd('0x5'));var controller=require('./mailTransferReport.controller');router['get']('/',auth[_0x67fd('0x6')](),controller['index']);router[_0x67fd('0x7')](_0x67fd('0x8'),auth[_0x67fd('0x6')](),controller['describe']);router[_0x67fd('0x7')](_0x67fd('0x9'),auth[_0x67fd('0x6')](),controller[_0x67fd('0xa')]);router['post']('/',auth[_0x67fd('0x6')](),controller[_0x67fd('0xb')]);router[_0x67fd('0xc')](_0x67fd('0x9'),auth['isAuthenticated'](),controller[_0x67fd('0xd')]);router[_0x67fd('0xe')]('/:id',auth[_0x67fd('0x6')](),controller[_0x67fd('0xf')]);module[_0x67fd('0x10')]=router;