bd8ae06eb323a016e6bb76f192485b0b8c6c876a
[motion2.git] / server / api / mailQueueReport / 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 _0xe893=['delete','destroy','exports','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./mailQueueReport.controller','get','isAuthenticated','/describe','describe','/:id','create'];(function(_0x848e0a,_0x7ae6d1){var _0x48c0d3=function(_0x8fde99){while(--_0x8fde99){_0x848e0a['push'](_0x848e0a['shift']());}};_0x48c0d3(++_0x7ae6d1);}(_0xe893,0xbe));var _0x3e89=function(_0x4ad871,_0x4343f3){_0x4ad871=_0x4ad871-0x0;var _0x20344f=_0xe893[_0x4ad871];return _0x20344f;};'use strict';var multer=require('multer');var util=require(_0x3e89('0x0'));var path=require(_0x3e89('0x1'));var timeout=require('connect-timeout');var express=require(_0x3e89('0x2'));var router=express[_0x3e89('0x3')]();var fs_extra=require(_0x3e89('0x4'));var auth=require(_0x3e89('0x5'));var interaction=require(_0x3e89('0x6'));var config=require('../../config/environment');var controller=require(_0x3e89('0x7'));router[_0x3e89('0x8')]('/',auth[_0x3e89('0x9')](),controller['index']);router[_0x3e89('0x8')](_0x3e89('0xa'),auth[_0x3e89('0x9')](),controller[_0x3e89('0xb')]);router['get'](_0x3e89('0xc'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x3e89('0x9')](),controller[_0x3e89('0xd')]);router['put']('/:id',auth[_0x3e89('0x9')](),controller['update']);router[_0x3e89('0xe')](_0x3e89('0xc'),auth['isAuthenticated'](),controller[_0x3e89('0xf')]);module[_0x3e89('0x10')]=router;