-- Customer specific once-script ARAI.
--
-- (c) 2015 Facilitor bv 
-- $Revision$ 
-- $Id$
--
-- Support: +31 53 4800700

SET ECHO ON
SPOOL arai17.lst
SET DEFINE OFF
------------------------------------------------------------------------------------------------------------------------------------------


INSERT INTO fac_api
   (fac_api_name,
    fac_api_filepath)
 VALUES
   ('HMAIL',
    'appl/api/api_hmail.asp');

-- Voeg een gebruiker toe om de api uit te voeren
INSERT INTO prs_perslid (prs_perslid_module,
                         prs_srtperslid_key,
                         prs_afdeling_key,
                         prs_perslid_naam,                         
                         prs_perslid_email,
                         prs_perslid_oslogin,
                         prs_perslid_apikey,
                         prs_perslid_flags,
                         prs_perslid_systeemadres)
   SELECT 'PRS',
          1, -- Onbekend
          97, -- Technische dienst, code '15530TD'
          'SYSTEM Hotelremarks',          
          '',
          '_HOTELREMARKS',
          'IwIyYfSxveyBfiVicoHDgDpLSzuBboXs',
          4,
          NULL
     FROM DUAL;

INSERT INTO FAC_EMAIL_SETTING (FAC_EMAIL_SETTING_USER,
                               FAC_EMAIL_SETTING_ACTION,
                               FAC_EMAIL_SETTING_FROM,
                               FAC_EMAIL_SETTING_ATTACHPATH)
    VALUES ('hotelremarks',
            'arai_processemail',
            '',
            'd:\Apps\Facilitor\Fplace5i\Cust\ARAI\flexfiles\');



------------------------------------------------------------------------------------------------------------------------------------------
BEGIN adm.systrackscriptId('$Id$'); END;
/

commit;

SPOOL OFF

@arai.sql
