2d19fc329fc08157ca94e095848005e831fb6f2d
[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 _0x81a5=['/:id','show','post','create','update','delete','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','index','/describe','isAuthenticated','describe','get'];(function(_0x448adc,_0x335fd8){var _0x16811a=function(_0x3b8d5d){while(--_0x3b8d5d){_0x448adc['push'](_0x448adc['shift']());}};_0x16811a(++_0x335fd8);}(_0x81a5,0x1c8));var _0x581a=function(_0x8ded0a,_0x409409){_0x8ded0a=_0x8ded0a-0x0;var _0x43920e=_0x81a5[_0x8ded0a];return _0x43920e;};'use strict';var multer=require(_0x581a('0x0'));var util=require(_0x581a('0x1'));var path=require(_0x581a('0x2'));var timeout=require(_0x581a('0x3'));var express=require(_0x581a('0x4'));var router=express[_0x581a('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0x581a('0x6'));var config=require('../../config/environment');var controller=require('./integrationReport.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x581a('0x7')]);router['get'](_0x581a('0x8'),auth[_0x581a('0x9')](),controller[_0x581a('0xa')]);router[_0x581a('0xb')](_0x581a('0xc'),auth[_0x581a('0x9')](),controller[_0x581a('0xd')]);router[_0x581a('0xe')]('/',auth['isAuthenticated'](),controller[_0x581a('0xf')]);router['put'](_0x581a('0xc'),auth[_0x581a('0x9')](),controller[_0x581a('0x10')]);router[_0x581a('0x11')]('/:id',auth[_0x581a('0x9')](),controller['destroy']);module['exports']=router;