Built motion from commit eddce310.|2.6.12
[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 _0x9a78=['fs-extra','../../components/auth/service','../../config/environment','isAuthenticated','index','describe','get','show','post','put','/:id','update','delete','multer','util','path','Router'];(function(_0x447af3,_0x381c44){var _0x202e95=function(_0x29daef){while(--_0x29daef){_0x447af3['push'](_0x447af3['shift']());}};_0x202e95(++_0x381c44);}(_0x9a78,0xfb));var _0x89a7=function(_0x5e4850,_0x47dd57){_0x5e4850=_0x5e4850-0x0;var _0x2218d9=_0x9a78[_0x5e4850];return _0x2218d9;};'use strict';var multer=require(_0x89a7('0x0'));var util=require(_0x89a7('0x1'));var path=require(_0x89a7('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x89a7('0x3')]();var fs_extra=require(_0x89a7('0x4'));var auth=require(_0x89a7('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x89a7('0x6'));var controller=require('./mailQueueReport.controller');router['get']('/',auth[_0x89a7('0x7')](),controller[_0x89a7('0x8')]);router['get']('/describe',auth['isAuthenticated'](),controller[_0x89a7('0x9')]);router[_0x89a7('0xa')]('/:id',auth[_0x89a7('0x7')](),controller[_0x89a7('0xb')]);router[_0x89a7('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0x89a7('0xd')](_0x89a7('0xe'),auth[_0x89a7('0x7')](),controller[_0x89a7('0xf')]);router[_0x89a7('0x10')](_0x89a7('0xe'),auth[_0x89a7('0x7')](),controller['destroy']);module['exports']=router;