Built motion from commit (unavailable).|2.5.5
[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 _0x23c2=['util','path','connect-timeout','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','post','create','put','update','delete','destroy','exports'];(function(_0x251fa8,_0x438d42){var _0x3d89e9=function(_0x5f91dc){while(--_0x5f91dc){_0x251fa8['push'](_0x251fa8['shift']());}};_0x3d89e9(++_0x438d42);}(_0x23c2,0x11d));var _0x223c=function(_0x26bcec,_0xe13f50){_0x26bcec=_0x26bcec-0x0;var _0x1049dc=_0x23c2[_0x26bcec];return _0x1049dc;};'use strict';var multer=require('multer');var util=require(_0x223c('0x0'));var path=require(_0x223c('0x1'));var timeout=require(_0x223c('0x2'));var express=require('express');var router=express[_0x223c('0x3')]();var auth=require(_0x223c('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x223c('0x5'));var controller=require('./mailTransferReport.controller');router[_0x223c('0x6')]('/',auth[_0x223c('0x7')](),controller[_0x223c('0x8')]);router['get'](_0x223c('0x9'),auth[_0x223c('0x7')](),controller[_0x223c('0xa')]);router[_0x223c('0x6')](_0x223c('0xb'),auth[_0x223c('0x7')](),controller['show']);router[_0x223c('0xc')]('/',auth[_0x223c('0x7')](),controller[_0x223c('0xd')]);router[_0x223c('0xe')]('/:id',auth[_0x223c('0x7')](),controller[_0x223c('0xf')]);router[_0x223c('0x10')]('/:id',auth['isAuthenticated'](),controller[_0x223c('0x11')]);module[_0x223c('0x12')]=router;