6fc1615317eb59f7d62c8bf8cb5f91894edf69bd
[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 _0x6be7=['../../config/environment','isAuthenticated','index','get','describe','/:id','show','post','create','put','update','delete','destroy','exports','path','Router'];(function(_0x4154a6,_0x2c0b8e){var _0x3b2786=function(_0x2f5936){while(--_0x2f5936){_0x4154a6['push'](_0x4154a6['shift']());}};_0x3b2786(++_0x2c0b8e);}(_0x6be7,0x18e));var _0x76be=function(_0x2e59a5,_0x31b8d9){_0x2e59a5=_0x2e59a5-0x0;var _0x15257c=_0x6be7[_0x2e59a5];return _0x15257c;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x76be('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x76be('0x1')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x76be('0x2'));var controller=require('./mailQueueReport.controller');router['get']('/',auth[_0x76be('0x3')](),controller[_0x76be('0x4')]);router[_0x76be('0x5')]('/describe',auth['isAuthenticated'](),controller[_0x76be('0x6')]);router['get'](_0x76be('0x7'),auth[_0x76be('0x3')](),controller[_0x76be('0x8')]);router[_0x76be('0x9')]('/',auth['isAuthenticated'](),controller[_0x76be('0xa')]);router[_0x76be('0xb')](_0x76be('0x7'),auth['isAuthenticated'](),controller[_0x76be('0xc')]);router[_0x76be('0xd')]('/:id',auth[_0x76be('0x3')](),controller[_0x76be('0xe')]);module[_0x76be('0xf')]=router;