Built motion from commit da617fac.|2.6.6
[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 _0x48ff=['../../components/interaction/service','../../config/environment','get','index','/describe','isAuthenticated','/:id','post','put','update','delete','destroy','util','connect-timeout','Router','fs-extra','../../components/auth/service'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x48ff,0x10b));var _0xf48f=function(_0x25887e,_0xc63665){_0x25887e=_0x25887e-0x0;var _0x4a2844=_0x48ff[_0x25887e];return _0x4a2844;};'use strict';var multer=require('multer');var util=require(_0xf48f('0x0'));var path=require('path');var timeout=require(_0xf48f('0x1'));var express=require('express');var router=express[_0xf48f('0x2')]();var fs_extra=require(_0xf48f('0x3'));var auth=require(_0xf48f('0x4'));var interaction=require(_0xf48f('0x5'));var config=require(_0xf48f('0x6'));var controller=require('./mailQueueReport.controller');router[_0xf48f('0x7')]('/',auth['isAuthenticated'](),controller[_0xf48f('0x8')]);router[_0xf48f('0x7')](_0xf48f('0x9'),auth[_0xf48f('0xa')](),controller['describe']);router[_0xf48f('0x7')](_0xf48f('0xb'),auth['isAuthenticated'](),controller['show']);router[_0xf48f('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0xf48f('0xd')]('/:id',auth['isAuthenticated'](),controller[_0xf48f('0xe')]);router[_0xf48f('0xf')](_0xf48f('0xb'),auth[_0xf48f('0xa')](),controller[_0xf48f('0x10')]);module['exports']=router;