448b878a6c224dc1e5607a17e097eb1fc4d668ff
[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 _0x80b5=['post','create','put','/:id','update','delete','destroy','exports','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/describe','isAuthenticated','describe','show'];(function(_0x343090,_0x433a80){var _0x3ff3e8=function(_0x16c811){while(--_0x16c811){_0x343090['push'](_0x343090['shift']());}};_0x3ff3e8(++_0x433a80);}(_0x80b5,0x197));var _0x580b=function(_0xd0a847,_0x72562b){_0xd0a847=_0xd0a847-0x0;var _0x2536ec=_0x80b5[_0xd0a847];return _0x2536ec;};'use strict';var multer=require(_0x580b('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x580b('0x1'));var express=require(_0x580b('0x2'));var router=express[_0x580b('0x3')]();var auth=require(_0x580b('0x4'));var interaction=require(_0x580b('0x5'));var config=require(_0x580b('0x6'));var controller=require('./mailTransferReport.controller');router[_0x580b('0x7')]('/',auth['isAuthenticated'](),controller[_0x580b('0x8')]);router['get'](_0x580b('0x9'),auth[_0x580b('0xa')](),controller[_0x580b('0xb')]);router[_0x580b('0x7')]('/:id',auth[_0x580b('0xa')](),controller[_0x580b('0xc')]);router[_0x580b('0xd')]('/',auth[_0x580b('0xa')](),controller[_0x580b('0xe')]);router[_0x580b('0xf')](_0x580b('0x10'),auth['isAuthenticated'](),controller[_0x580b('0x11')]);router[_0x580b('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x580b('0x13')]);module[_0x580b('0x14')]=router;