Built motion from commit 06eb8eb0.|2.6.31
[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 _0x880a=['/:id','post','create','update','multer','util','path','connect-timeout','express','../../config/environment','./mailTransferReport.controller','isAuthenticated','index','get','/describe'];(function(_0x4e1532,_0x8b5209){var _0x1fabce=function(_0x4c58e9){while(--_0x4c58e9){_0x4e1532['push'](_0x4e1532['shift']());}};_0x1fabce(++_0x8b5209);}(_0x880a,0x13f));var _0xa880=function(_0xf3f706,_0x38a484){_0xf3f706=_0xf3f706-0x0;var _0x43e438=_0x880a[_0xf3f706];return _0x43e438;};'use strict';var multer=require(_0xa880('0x0'));var util=require(_0xa880('0x1'));var path=require(_0xa880('0x2'));var timeout=require(_0xa880('0x3'));var express=require(_0xa880('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xa880('0x5'));var controller=require(_0xa880('0x6'));router['get']('/',auth[_0xa880('0x7')](),controller[_0xa880('0x8')]);router[_0xa880('0x9')](_0xa880('0xa'),auth[_0xa880('0x7')](),controller['describe']);router['get'](_0xa880('0xb'),auth[_0xa880('0x7')](),controller['show']);router[_0xa880('0xc')]('/',auth[_0xa880('0x7')](),controller[_0xa880('0xd')]);router['put'](_0xa880('0xb'),auth[_0xa880('0x7')](),controller[_0xa880('0xe')]);router['delete'](_0xa880('0xb'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;