b8ce1821a98f0b88a035e52b2182717fbc3573de
[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 _0x6f09=['/:id','post','put','update','delete','exports','util','path','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','./mailTransferReport.controller','get','index','/describe','isAuthenticated','describe'];(function(_0x336982,_0x2fe6c6){var _0x4c399b=function(_0x3dcb8b){while(--_0x3dcb8b){_0x336982['push'](_0x336982['shift']());}};_0x4c399b(++_0x2fe6c6);}(_0x6f09,0x14a));var _0x96f0=function(_0x55c52b,_0x31571e){_0x55c52b=_0x55c52b-0x0;var _0x646475=_0x6f09[_0x55c52b];return _0x646475;};'use strict';var multer=require('multer');var util=require(_0x96f0('0x0'));var path=require(_0x96f0('0x1'));var timeout=require(_0x96f0('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x96f0('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x96f0('0x4'));var config=require(_0x96f0('0x5'));var controller=require(_0x96f0('0x6'));router[_0x96f0('0x7')]('/',auth['isAuthenticated'](),controller[_0x96f0('0x8')]);router[_0x96f0('0x7')](_0x96f0('0x9'),auth[_0x96f0('0xa')](),controller[_0x96f0('0xb')]);router['get'](_0x96f0('0xc'),auth[_0x96f0('0xa')](),controller['show']);router[_0x96f0('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x96f0('0xe')](_0x96f0('0xc'),auth[_0x96f0('0xa')](),controller[_0x96f0('0xf')]);router[_0x96f0('0x10')]('/:id',auth[_0x96f0('0xa')](),controller['destroy']);module[_0x96f0('0x11')]=router;