d31a91a6fe398b0f80d82cc233a485cf9ed10b25
[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 _0x2285=['../../components/auth/service','../../components/interaction/service','./mailTransferReport.controller','get','isAuthenticated','/describe','describe','/:id','show','post','put','update','destroy','exports','util','path','connect-timeout','express','Router'];(function(_0x44f48e,_0x547f78){var _0x58a61c=function(_0xd641bc){while(--_0xd641bc){_0x44f48e['push'](_0x44f48e['shift']());}};_0x58a61c(++_0x547f78);}(_0x2285,0x177));var _0x5228=function(_0x6a8e70,_0x5ee57a){_0x6a8e70=_0x6a8e70-0x0;var _0x21b74f=_0x2285[_0x6a8e70];return _0x21b74f;};'use strict';var multer=require('multer');var util=require(_0x5228('0x0'));var path=require(_0x5228('0x1'));var timeout=require(_0x5228('0x2'));var express=require(_0x5228('0x3'));var router=express[_0x5228('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x5228('0x5'));var interaction=require(_0x5228('0x6'));var config=require('../../config/environment');var controller=require(_0x5228('0x7'));router[_0x5228('0x8')]('/',auth[_0x5228('0x9')](),controller['index']);router[_0x5228('0x8')](_0x5228('0xa'),auth[_0x5228('0x9')](),controller[_0x5228('0xb')]);router[_0x5228('0x8')](_0x5228('0xc'),auth[_0x5228('0x9')](),controller[_0x5228('0xd')]);router[_0x5228('0xe')]('/',auth[_0x5228('0x9')](),controller['create']);router[_0x5228('0xf')](_0x5228('0xc'),auth[_0x5228('0x9')](),controller[_0x5228('0x10')]);router['delete'](_0x5228('0xc'),auth[_0x5228('0x9')](),controller[_0x5228('0x11')]);module[_0x5228('0x12')]=router;