06f00abe4bad2487868502a6416f2828ad8b0cfa
[motion2.git] / server / api / mailTransferReport / 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 _0x3f69=['isAuthenticated','index','/describe','describe','show','create','put','/:id','update','destroy','exports','multer','path','connect-timeout','Router','fs-extra','../../config/environment','./mailTransferReport.controller','get'];(function(_0x4a9324,_0xf840ed){var _0x2c45f5=function(_0xfbf347){while(--_0xfbf347){_0x4a9324['push'](_0x4a9324['shift']());}};_0x2c45f5(++_0xf840ed);}(_0x3f69,0x161));var _0x93f6=function(_0x286b50,_0x26fefc){_0x286b50=_0x286b50-0x0;var _0x23a90d=_0x3f69[_0x286b50];return _0x23a90d;};'use strict';var multer=require(_0x93f6('0x0'));var util=require('util');var path=require(_0x93f6('0x1'));var timeout=require(_0x93f6('0x2'));var express=require('express');var router=express[_0x93f6('0x3')]();var fs_extra=require(_0x93f6('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x93f6('0x5'));var controller=require(_0x93f6('0x6'));router[_0x93f6('0x7')]('/',auth[_0x93f6('0x8')](),controller[_0x93f6('0x9')]);router[_0x93f6('0x7')](_0x93f6('0xa'),auth[_0x93f6('0x8')](),controller[_0x93f6('0xb')]);router[_0x93f6('0x7')]('/:id',auth[_0x93f6('0x8')](),controller[_0x93f6('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x93f6('0xd')]);router[_0x93f6('0xe')](_0x93f6('0xf'),auth['isAuthenticated'](),controller[_0x93f6('0x10')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x93f6('0x11')]);module[_0x93f6('0x12')]=router;