1b2de0056668235ad4c080044fdc553c6dcf47aa
[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 _0xc02b=['connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','describe','show','post','create','/:id','update','delete','destroy','exports','path'];(function(_0x598b78,_0x4ef4eb){var _0x3c96a1=function(_0x2b7c0d){while(--_0x2b7c0d){_0x598b78['push'](_0x598b78['shift']());}};_0x3c96a1(++_0x4ef4eb);}(_0xc02b,0x179));var _0xbc02=function(_0x98db33,_0x397f20){_0x98db33=_0x98db33-0x0;var _0x5ae63a=_0xc02b[_0x98db33];return _0x5ae63a;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xbc02('0x0'));var timeout=require(_0xbc02('0x1'));var express=require('express');var router=express[_0xbc02('0x2')]();var fs_extra=require(_0xbc02('0x3'));var auth=require(_0xbc02('0x4'));var interaction=require(_0xbc02('0x5'));var config=require(_0xbc02('0x6'));var controller=require('./mailQueueReport.controller');router[_0xbc02('0x7')]('/',auth[_0xbc02('0x8')](),controller['index']);router['get']('/describe',auth['isAuthenticated'](),controller[_0xbc02('0x9')]);router[_0xbc02('0x7')]('/:id',auth[_0xbc02('0x8')](),controller[_0xbc02('0xa')]);router[_0xbc02('0xb')]('/',auth[_0xbc02('0x8')](),controller[_0xbc02('0xc')]);router['put'](_0xbc02('0xd'),auth[_0xbc02('0x8')](),controller[_0xbc02('0xe')]);router[_0xbc02('0xf')]('/:id',auth['isAuthenticated'](),controller[_0xbc02('0x10')]);module[_0xbc02('0x11')]=router;