cabe0ce9947730d405ae51b4ccd306fdf8a8154f
[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 _0x86f5=['destroy','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/describe','isAuthenticated','describe','/:id','show','create','update','delete'];(function(_0x4a2a0d,_0x2aae5e){var _0x4d8c8d=function(_0x4d14e6){while(--_0x4d14e6){_0x4a2a0d['push'](_0x4a2a0d['shift']());}};_0x4d8c8d(++_0x2aae5e);}(_0x86f5,0x157));var _0x586f=function(_0x252ef1,_0x2e0041){_0x252ef1=_0x252ef1-0x0;var _0x25817c=_0x86f5[_0x252ef1];return _0x25817c;};'use strict';var multer=require(_0x586f('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x586f('0x1'));var express=require(_0x586f('0x2'));var router=express[_0x586f('0x3')]();var fs_extra=require(_0x586f('0x4'));var auth=require(_0x586f('0x5'));var interaction=require(_0x586f('0x6'));var config=require(_0x586f('0x7'));var controller=require('./mailTransferReport.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x586f('0x8')](_0x586f('0x9'),auth[_0x586f('0xa')](),controller[_0x586f('0xb')]);router[_0x586f('0x8')](_0x586f('0xc'),auth[_0x586f('0xa')](),controller[_0x586f('0xd')]);router['post']('/',auth[_0x586f('0xa')](),controller[_0x586f('0xe')]);router['put'](_0x586f('0xc'),auth[_0x586f('0xa')](),controller[_0x586f('0xf')]);router[_0x586f('0x10')](_0x586f('0xc'),auth[_0x586f('0xa')](),controller[_0x586f('0x11')]);module['exports']=router;