65edb8f34f2e3baa2182b1899ac1dea807922716
[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 _0x151b=['delete','destroy','exports','multer','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','describe','show','post','put','/:id','update'];(function(_0xa9c2de,_0x4f12f1){var _0x5703a4=function(_0x1811a5){while(--_0x1811a5){_0xa9c2de['push'](_0xa9c2de['shift']());}};_0x5703a4(++_0x4f12f1);}(_0x151b,0x153));var _0xb151=function(_0x2f048c,_0x5baf98){_0x2f048c=_0x2f048c-0x0;var _0x4dea19=_0x151b[_0x2f048c];return _0x4dea19;};'use strict';var multer=require(_0xb151('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xb151('0x1'));var express=require('express');var router=express[_0xb151('0x2')]();var auth=require(_0xb151('0x3'));var interaction=require(_0xb151('0x4'));var config=require('../../config/environment');var controller=require('./integrationReport.controller');router[_0xb151('0x5')]('/',auth[_0xb151('0x6')](),controller['index']);router[_0xb151('0x5')]('/describe',auth[_0xb151('0x6')](),controller[_0xb151('0x7')]);router[_0xb151('0x5')]('/:id',auth['isAuthenticated'](),controller[_0xb151('0x8')]);router[_0xb151('0x9')]('/',auth['isAuthenticated'](),controller['create']);router[_0xb151('0xa')](_0xb151('0xb'),auth[_0xb151('0x6')](),controller[_0xb151('0xc')]);router[_0xb151('0xd')](_0xb151('0xb'),auth[_0xb151('0x6')](),controller[_0xb151('0xe')]);module[_0xb151('0xf')]=router;