f3c017e3e4c53ca91ccad9a3d649c6527820b8b5
[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 _0x8ce1=['util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./integrationReport.controller','isAuthenticated','index','describe','/:id','show','post','create','update','delete','destroy','exports','multer'];(function(_0x2f62aa,_0x108e95){var _0x1a341f=function(_0x3aedcf){while(--_0x3aedcf){_0x2f62aa['push'](_0x2f62aa['shift']());}};_0x1a341f(++_0x108e95);}(_0x8ce1,0x97));var _0x18ce=function(_0x1f3dfc,_0x4421d0){_0x1f3dfc=_0x1f3dfc-0x0;var _0x555c8c=_0x8ce1[_0x1f3dfc];return _0x555c8c;};'use strict';var multer=require(_0x18ce('0x0'));var util=require(_0x18ce('0x1'));var path=require(_0x18ce('0x2'));var timeout=require(_0x18ce('0x3'));var express=require('express');var router=express[_0x18ce('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x18ce('0x5'));var config=require(_0x18ce('0x6'));var controller=require(_0x18ce('0x7'));router['get']('/',auth[_0x18ce('0x8')](),controller[_0x18ce('0x9')]);router['get']('/describe',auth['isAuthenticated'](),controller[_0x18ce('0xa')]);router['get'](_0x18ce('0xb'),auth[_0x18ce('0x8')](),controller[_0x18ce('0xc')]);router[_0x18ce('0xd')]('/',auth[_0x18ce('0x8')](),controller[_0x18ce('0xe')]);router['put'](_0x18ce('0xb'),auth[_0x18ce('0x8')](),controller[_0x18ce('0xf')]);router[_0x18ce('0x10')](_0x18ce('0xb'),auth[_0x18ce('0x8')](),controller[_0x18ce('0x11')]);module[_0x18ce('0x12')]=router;