7b7e3c5f0b72303d7965656b16423e85a69b7120
[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 _0x3206=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/describe','describe','/:id','create','put','update','delete','destroy','multer','util','path'];(function(_0xb143ee,_0x298a94){var _0x44cf57=function(_0x2c534a){while(--_0x2c534a){_0xb143ee['push'](_0xb143ee['shift']());}};_0x44cf57(++_0x298a94);}(_0x3206,0x1dd));var _0x6320=function(_0xe67d1c,_0x1b21d1){_0xe67d1c=_0xe67d1c-0x0;var _0x11673c=_0x3206[_0xe67d1c];return _0x11673c;};'use strict';var multer=require(_0x6320('0x0'));var util=require(_0x6320('0x1'));var path=require(_0x6320('0x2'));var timeout=require(_0x6320('0x3'));var express=require(_0x6320('0x4'));var router=express[_0x6320('0x5')]();var fs_extra=require(_0x6320('0x6'));var auth=require(_0x6320('0x7'));var interaction=require(_0x6320('0x8'));var config=require('../../config/environment');var controller=require('./mailTransferReport.controller');router[_0x6320('0x9')]('/',auth[_0x6320('0xa')](),controller[_0x6320('0xb')]);router['get'](_0x6320('0xc'),auth[_0x6320('0xa')](),controller[_0x6320('0xd')]);router[_0x6320('0x9')](_0x6320('0xe'),auth[_0x6320('0xa')](),controller['show']);router['post']('/',auth[_0x6320('0xa')](),controller[_0x6320('0xf')]);router[_0x6320('0x10')](_0x6320('0xe'),auth[_0x6320('0xa')](),controller[_0x6320('0x11')]);router[_0x6320('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x6320('0x13')]);module['exports']=router;