<%@ LANGUAGE = JavaScript %>
<%  Server.ScriptTimeout=6000; %>
<% /*
     $Revision$
     $Id$

     Onzichtbaar verwerken van de opgedragen inleesactie van file 'file' volgens importfunctie 'key'
*/ %>

<%
var JSON_Result = true;
%>
<!-- #include file="../Shared/common.inc" -->
<!-- #include file="../shared/FlexFiles.inc" -->
<!-- #include file="imp.inc" -->
<script language="javascript" src="imp_shared.js" runat="server"></script>

<%
protectRequest.validateToken();
var import_key = getFParamInt("import_key"); // Import key
// Heb ik rechten om te verwerken
var this_imp = imp.func_enabled_import(import_key);
user.anything_todo_or_abort(this_imp.canWrite);
var result = impProcessStream(import_key, { customerId: customerId, user_key: user_key });

Response.Write(JSON.stringify(result));
%>
<% ASPPAGE_END(); %> 
