6e2ba2eefc25800f6a8be651d80928a0b28f9e6f
[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 _0x1fd4=['get','/:id','show','create','put','update','destroy','exports','util','connect-timeout','express','Router','fs-extra','../../config/environment','isAuthenticated','index'];(function(_0x36369a,_0x20f604){var _0x562bf0=function(_0x3c68dc){while(--_0x3c68dc){_0x36369a['push'](_0x36369a['shift']());}};_0x562bf0(++_0x20f604);}(_0x1fd4,0x158));var _0x41fd=function(_0x127155,_0x25c0be){_0x127155=_0x127155-0x0;var _0x1aac6a=_0x1fd4[_0x127155];return _0x1aac6a;};'use strict';var multer=require('multer');var util=require(_0x41fd('0x0'));var path=require('path');var timeout=require(_0x41fd('0x1'));var express=require(_0x41fd('0x2'));var router=express[_0x41fd('0x3')]();var fs_extra=require(_0x41fd('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x41fd('0x5'));var controller=require('./mailQueueReport.controller');router['get']('/',auth[_0x41fd('0x6')](),controller[_0x41fd('0x7')]);router[_0x41fd('0x8')]('/describe',auth[_0x41fd('0x6')](),controller['describe']);router[_0x41fd('0x8')](_0x41fd('0x9'),auth[_0x41fd('0x6')](),controller[_0x41fd('0xa')]);router['post']('/',auth[_0x41fd('0x6')](),controller[_0x41fd('0xb')]);router[_0x41fd('0xc')](_0x41fd('0x9'),auth[_0x41fd('0x6')](),controller[_0x41fd('0xd')]);router['delete'](_0x41fd('0x9'),auth[_0x41fd('0x6')](),controller[_0x41fd('0xe')]);module[_0x41fd('0xf')]=router;