62aa2c61e5fa0016602d90e0d8ed049ef772b582
[motion2.git] / server / api / integrationReport / 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 _0xd097=['express','Router','fs-extra','../../components/interaction/service','../../config/environment','isAuthenticated','get','/describe','post','create','/:id','update','destroy','exports','util'];(function(_0x21cf80,_0x1fb0a1){var _0x5c6bed=function(_0x3492c3){while(--_0x3492c3){_0x21cf80['push'](_0x21cf80['shift']());}};_0x5c6bed(++_0x1fb0a1);}(_0xd097,0xef));var _0x7d09=function(_0x1d1779,_0x284147){_0x1d1779=_0x1d1779-0x0;var _0x2377e9=_0xd097[_0x1d1779];return _0x2377e9;};'use strict';var multer=require('multer');var util=require(_0x7d09('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x7d09('0x1'));var router=express[_0x7d09('0x2')]();var fs_extra=require(_0x7d09('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x7d09('0x4'));var config=require(_0x7d09('0x5'));var controller=require('./integrationReport.controller');router['get']('/',auth[_0x7d09('0x6')](),controller['index']);router[_0x7d09('0x7')](_0x7d09('0x8'),auth[_0x7d09('0x6')](),controller['describe']);router[_0x7d09('0x7')]('/:id',auth[_0x7d09('0x6')](),controller['show']);router[_0x7d09('0x9')]('/',auth['isAuthenticated'](),controller[_0x7d09('0xa')]);router['put'](_0x7d09('0xb'),auth['isAuthenticated'](),controller[_0x7d09('0xc')]);router['delete'](_0x7d09('0xb'),auth['isAuthenticated'](),controller[_0x7d09('0xd')]);module[_0x7d09('0xe')]=router;