ece28f4f45691fab0d5123fcfe0d42d202e2c9a0
[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 _0xa5b9=['update','exports','multer','path','express','Router','../../components/interaction/service','../../config/environment','./mailTransferReport.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','create','put'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xa5b9,0xf9));var _0x9a5b=function(_0x12032c,_0x6912cd){_0x12032c=_0x12032c-0x0;var _0x1ccc3b=_0xa5b9[_0x12032c];return _0x1ccc3b;};'use strict';var multer=require(_0x9a5b('0x0'));var util=require('util');var path=require(_0x9a5b('0x1'));var timeout=require('connect-timeout');var express=require(_0x9a5b('0x2'));var router=express[_0x9a5b('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x9a5b('0x4'));var config=require(_0x9a5b('0x5'));var controller=require(_0x9a5b('0x6'));router[_0x9a5b('0x7')]('/',auth[_0x9a5b('0x8')](),controller[_0x9a5b('0x9')]);router['get'](_0x9a5b('0xa'),auth['isAuthenticated'](),controller[_0x9a5b('0xb')]);router[_0x9a5b('0x7')](_0x9a5b('0xc'),auth['isAuthenticated'](),controller[_0x9a5b('0xd')]);router[_0x9a5b('0xe')]('/',auth[_0x9a5b('0x8')](),controller[_0x9a5b('0xf')]);router[_0x9a5b('0x10')](_0x9a5b('0xc'),auth[_0x9a5b('0x8')](),controller[_0x9a5b('0x11')]);router['delete']('/:id',auth[_0x9a5b('0x8')](),controller['destroy']);module[_0x9a5b('0x12')]=router;