5c35e7e425d2cae993c14e1813dd839413ea9bf4
[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 _0xdbf2=['put','/:id','update','exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailTransferReport.controller','get','isAuthenticated','index','/describe','describe','show','post','create'];(function(_0x37fa2b,_0x3adbf7){var _0x44efee=function(_0x5bf7ce){while(--_0x5bf7ce){_0x37fa2b['push'](_0x37fa2b['shift']());}};_0x44efee(++_0x3adbf7);}(_0xdbf2,0x1bd));var _0x2dbf=function(_0x45a884,_0x461e50){_0x45a884=_0x45a884-0x0;var _0x4c985e=_0xdbf2[_0x45a884];return _0x4c985e;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x2dbf('0x0'));var timeout=require(_0x2dbf('0x1'));var express=require(_0x2dbf('0x2'));var router=express[_0x2dbf('0x3')]();var fs_extra=require(_0x2dbf('0x4'));var auth=require(_0x2dbf('0x5'));var interaction=require(_0x2dbf('0x6'));var config=require(_0x2dbf('0x7'));var controller=require(_0x2dbf('0x8'));router[_0x2dbf('0x9')]('/',auth[_0x2dbf('0xa')](),controller[_0x2dbf('0xb')]);router[_0x2dbf('0x9')](_0x2dbf('0xc'),auth['isAuthenticated'](),controller[_0x2dbf('0xd')]);router[_0x2dbf('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x2dbf('0xe')]);router[_0x2dbf('0xf')]('/',auth[_0x2dbf('0xa')](),controller[_0x2dbf('0x10')]);router[_0x2dbf('0x11')](_0x2dbf('0x12'),auth[_0x2dbf('0xa')](),controller[_0x2dbf('0x13')]);router['delete']('/:id',auth[_0x2dbf('0xa')](),controller['destroy']);module[_0x2dbf('0x14')]=router;