b80044a2a7d13ef7f91bbd0ae195863060d332a9
[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 _0xa4da=['../../components/interaction/service','../../config/environment','./integrationReport.controller','get','/describe','isAuthenticated','show','post','create','/:id','update','delete','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service'];(function(_0x27cbb2,_0x9e317b){var _0x50db55=function(_0x23ac18){while(--_0x23ac18){_0x27cbb2['push'](_0x27cbb2['shift']());}};_0x50db55(++_0x9e317b);}(_0xa4da,0x188));var _0xaa4d=function(_0x500785,_0x15e5ff){_0x500785=_0x500785-0x0;var _0x1f8bcc=_0xa4da[_0x500785];return _0x1f8bcc;};'use strict';var multer=require(_0xaa4d('0x0'));var util=require(_0xaa4d('0x1'));var path=require(_0xaa4d('0x2'));var timeout=require(_0xaa4d('0x3'));var express=require('express');var router=express[_0xaa4d('0x4')]();var fs_extra=require(_0xaa4d('0x5'));var auth=require(_0xaa4d('0x6'));var interaction=require(_0xaa4d('0x7'));var config=require(_0xaa4d('0x8'));var controller=require(_0xaa4d('0x9'));router[_0xaa4d('0xa')]('/',auth['isAuthenticated'](),controller['index']);router[_0xaa4d('0xa')](_0xaa4d('0xb'),auth[_0xaa4d('0xc')](),controller['describe']);router['get']('/:id',auth['isAuthenticated'](),controller[_0xaa4d('0xd')]);router[_0xaa4d('0xe')]('/',auth[_0xaa4d('0xc')](),controller[_0xaa4d('0xf')]);router['put'](_0xaa4d('0x10'),auth['isAuthenticated'](),controller[_0xaa4d('0x11')]);router[_0xaa4d('0x12')]('/:id',auth[_0xaa4d('0xc')](),controller['destroy']);module['exports']=router;