Built motion from commit (unavailable).|2.5.21
[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 _0xa814=['destroy','exports','multer','util','path','connect-timeout','express','../../config/environment','./mailTransferReport.controller','isAuthenticated','index','get','/describe','/:id','put','update','delete'];(function(_0x1f530d,_0x18a19e){var _0x22103f=function(_0x2664c5){while(--_0x2664c5){_0x1f530d['push'](_0x1f530d['shift']());}};_0x22103f(++_0x18a19e);}(_0xa814,0x112));var _0x4a81=function(_0x46d9d1,_0x4920bd){_0x46d9d1=_0x46d9d1-0x0;var _0x2529b0=_0xa814[_0x46d9d1];return _0x2529b0;};'use strict';var multer=require(_0x4a81('0x0'));var util=require(_0x4a81('0x1'));var path=require(_0x4a81('0x2'));var timeout=require(_0x4a81('0x3'));var express=require(_0x4a81('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x4a81('0x5'));var controller=require(_0x4a81('0x6'));router['get']('/',auth[_0x4a81('0x7')](),controller[_0x4a81('0x8')]);router[_0x4a81('0x9')](_0x4a81('0xa'),auth[_0x4a81('0x7')](),controller['describe']);router[_0x4a81('0x9')](_0x4a81('0xb'),auth[_0x4a81('0x7')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x4a81('0xc')]('/:id',auth[_0x4a81('0x7')](),controller[_0x4a81('0xd')]);router[_0x4a81('0xe')](_0x4a81('0xb'),auth[_0x4a81('0x7')](),controller[_0x4a81('0xf')]);module[_0x4a81('0x10')]=router;