35f690e74f1bdf2de700c4f917af1c4b86c88c70
[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 _0x21b6=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailTransferReport.controller','get','index','describe','/:id','show','put','destroy','exports','multer','util','path'];(function(_0x325501,_0x5242f6){var _0x2c1626=function(_0x4270b2){while(--_0x4270b2){_0x325501['push'](_0x325501['shift']());}};_0x2c1626(++_0x5242f6);}(_0x21b6,0xd5));var _0x621b=function(_0x41a2ac,_0x2024bc){_0x41a2ac=_0x41a2ac-0x0;var _0x1ac339=_0x21b6[_0x41a2ac];return _0x1ac339;};'use strict';var multer=require(_0x621b('0x0'));var util=require(_0x621b('0x1'));var path=require(_0x621b('0x2'));var timeout=require('connect-timeout');var express=require(_0x621b('0x3'));var router=express[_0x621b('0x4')]();var fs_extra=require(_0x621b('0x5'));var auth=require(_0x621b('0x6'));var interaction=require(_0x621b('0x7'));var config=require(_0x621b('0x8'));var controller=require(_0x621b('0x9'));router[_0x621b('0xa')]('/',auth['isAuthenticated'](),controller[_0x621b('0xb')]);router[_0x621b('0xa')]('/describe',auth['isAuthenticated'](),controller[_0x621b('0xc')]);router[_0x621b('0xa')](_0x621b('0xd'),auth['isAuthenticated'](),controller[_0x621b('0xe')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x621b('0xf')](_0x621b('0xd'),auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x621b('0x10')]);module[_0x621b('0x11')]=router;