8d0d277eadd9908ad8dd7cf14c0836c2b8da5b35
[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 _0x8a0f=['../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/describe','describe','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x5f397d,_0x40c53b){var _0x34b0f0=function(_0x24b90b){while(--_0x24b90b){_0x5f397d['push'](_0x5f397d['shift']());}};_0x34b0f0(++_0x40c53b);}(_0x8a0f,0x117));var _0xf8a0=function(_0x2bffe1,_0x1ed421){_0x2bffe1=_0x2bffe1-0x0;var _0x569c2b=_0x8a0f[_0x2bffe1];return _0x569c2b;};'use strict';var multer=require(_0xf8a0('0x0'));var util=require(_0xf8a0('0x1'));var path=require(_0xf8a0('0x2'));var timeout=require(_0xf8a0('0x3'));var express=require(_0xf8a0('0x4'));var router=express[_0xf8a0('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xf8a0('0x6'));var interaction=require(_0xf8a0('0x7'));var config=require('../../config/environment');var controller=require('./mailTransferReport.controller');router[_0xf8a0('0x8')]('/',auth[_0xf8a0('0x9')](),controller[_0xf8a0('0xa')]);router[_0xf8a0('0x8')](_0xf8a0('0xb'),auth[_0xf8a0('0x9')](),controller[_0xf8a0('0xc')]);router[_0xf8a0('0x8')]('/:id',auth[_0xf8a0('0x9')](),controller['show']);router['post']('/',auth[_0xf8a0('0x9')](),controller[_0xf8a0('0xd')]);router[_0xf8a0('0xe')]('/:id',auth[_0xf8a0('0x9')](),controller[_0xf8a0('0xf')]);router[_0xf8a0('0x10')]('/:id',auth['isAuthenticated'](),controller[_0xf8a0('0x11')]);module[_0xf8a0('0x12')]=router;