Built motion from commit 1ea47bf4.|2.6.34
[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 _0x43b6=['show','post','create','put','/:id','update','exports','path','express','../../components/auth/service','../../config/environment','get','/describe','isAuthenticated','describe'];(function(_0x38a7ac,_0x45514b){var _0x53061a=function(_0x1d2469){while(--_0x1d2469){_0x38a7ac['push'](_0x38a7ac['shift']());}};_0x53061a(++_0x45514b);}(_0x43b6,0x18d));var _0x643b=function(_0x42f687,_0x558724){_0x42f687=_0x42f687-0x0;var _0x108838=_0x43b6[_0x42f687];return _0x108838;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x643b('0x0'));var timeout=require('connect-timeout');var express=require(_0x643b('0x1'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x643b('0x2'));var interaction=require('../../components/interaction/service');var config=require(_0x643b('0x3'));var controller=require('./mailQueueReport.controller');router[_0x643b('0x4')]('/',auth['isAuthenticated'](),controller['index']);router[_0x643b('0x4')](_0x643b('0x5'),auth[_0x643b('0x6')](),controller[_0x643b('0x7')]);router[_0x643b('0x4')]('/:id',auth['isAuthenticated'](),controller[_0x643b('0x8')]);router[_0x643b('0x9')]('/',auth['isAuthenticated'](),controller[_0x643b('0xa')]);router[_0x643b('0xb')](_0x643b('0xc'),auth['isAuthenticated'](),controller[_0x643b('0xd')]);router['delete'](_0x643b('0xc'),auth[_0x643b('0x6')](),controller['destroy']);module[_0x643b('0xe')]=router;