Built motion from commit 092f8824.|2.5.49
[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 _0xa49e=['isAuthenticated','index','get','/describe','/:id','show','create','put','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment'];(function(_0x5f5666,_0x49394b){var _0x579f33=function(_0x522984){while(--_0x522984){_0x5f5666['push'](_0x5f5666['shift']());}};_0x579f33(++_0x49394b);}(_0xa49e,0x174));var _0xea49=function(_0x7a112,_0x2eb4a0){_0x7a112=_0x7a112-0x0;var _0x136dc5=_0xa49e[_0x7a112];return _0x136dc5;};'use strict';var multer=require(_0xea49('0x0'));var util=require(_0xea49('0x1'));var path=require(_0xea49('0x2'));var timeout=require(_0xea49('0x3'));var express=require(_0xea49('0x4'));var router=express[_0xea49('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xea49('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xea49('0x7'));var controller=require('./mailTransferReport.controller');router['get']('/',auth[_0xea49('0x8')](),controller[_0xea49('0x9')]);router[_0xea49('0xa')](_0xea49('0xb'),auth[_0xea49('0x8')](),controller['describe']);router[_0xea49('0xa')](_0xea49('0xc'),auth['isAuthenticated'](),controller[_0xea49('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0xea49('0xe')]);router[_0xea49('0xf')](_0xea49('0xc'),auth[_0xea49('0x8')](),controller['update']);router[_0xea49('0x10')]('/:id',auth[_0xea49('0x8')](),controller[_0xea49('0x11')]);module[_0xea49('0x12')]=router;