Produced by Araxis Merge on 7/26/2017 10:13:36 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\AraxisMergeCompare\Pri_un\TGZ\ehmp-mrar-services-1.17.1 | ehmp-mrar-services-1.17.1.tar | Sat Feb 18 15:03:59 2017 UTC |
| 2 | C:\AraxisMergeCompare\Pri_re\TGZ\ehmp-mrar-services-1.17.1 | ehmp-mrar-services-1.17.1.tar | Wed Jul 26 13:23:59 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 11142 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | package/\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 0000755\x000000 00000\x00000000 000\x0000000000 00000\x00001305 2061137\x000001 1145\x0000 5\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000ust ar \x0000root\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000roo t\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000package/ actions/\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x00000000755\x0000 0000000\x000000 00000\x00000000 0000000\x000013 052061137\x0000 012605\x0000 5\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000u star \x0000roo t\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000r oot\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000packag e/actions/ setConnect ionPredisc onnect.js\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000000064 4\x00000001750\x0000 0001750\x000000 000002270\x0000 1305175414 0\x0000016724\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000ustar \x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000/*** ********** ********** ********** ********** ********** ********** ********* | |
| 2 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3 | http://ww w.apexdata solutions. net/ | |
| 4 | ||
| 5 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 6 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 7 | You may o btain a co py of the License at | |
| 8 | ||
| 9 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 10 | ||
| 11 | Unless re quired by applicable law or ag reed to in writing, software | |
| 12 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 13 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 14 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 15 | limitatio ns under t he License . | |
| 16 | ||
| 17 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 18 | ||
| 19 | 'use stric t'; | |
| 20 | ||
| 21 | exports.ac tion = { | |
| 22 | name: "s etConnecti onPredisco nnect", | |
| 23 | descript ion: "The client has started t he disconn ecting pro cess", | |
| 24 | sessionT okenRequir ed: false, | |
| 25 | blockedC onnectionT ypes: ["we b","tcp"], | |
| 26 | inputs: { | |
| 27 | method : { | |
| 28 | requ ired: fals e | |
| 29 | } | |
| 30 | }, | |
| 31 | outputEx ample: {}, | |
| 32 | version: 1.0, | |
| 33 | run: fun ction(api, data, nex t) { | |
| 34 | var me thod = dat a.params.m ethod; | |
| 35 | ||
| 36 | data.c onnection. disconnect ing = meth od || true ; | |
| 37 | next() ; | |
| 38 | } | |
| 39 | }; | |
| 40 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000pa ckage/acti ons/getFac ts.js\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x000000 00644\x00000001 750\x0000000175 0\x000000000002 446\x0000130517 54140\x00000131 35\x0000 0\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 /********* ********** ********** ********** ********** ********** ********** *** | |
| 41 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 42 | http://ww w.apexdata solutions. net/ | |
| 43 | ||
| 44 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 45 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 46 | You may o btain a co py of the License at | |
| 47 | ||
| 48 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 49 | ||
| 50 | Unless re quired by applicable law or ag reed to in writing, software | |
| 51 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 52 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 53 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 54 | limitatio ns under t he License . | |
| 55 | ||
| 56 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 57 | ||
| 58 | "use stric t"; | |
| 59 | ||
| 60 | var defaul tResponseH andler = r equire('.. /lib/util/ defaultRes ponseHandl er'); | |
| 61 | var archiv e = requir e('../lib/ archive'); | |
| 62 | ||
| 63 | exports.ac tion = { | |
| 64 | name: "g etFacts", | |
| 65 | descript ion: "All facts of a n archive" , | |
| 66 | sessionT okenRequir ed: true, | |
| 67 | inputs: { | |
| 68 | archiv eId: {requ ired: true } | |
| 69 | }, | |
| 70 | ||
| 71 | run: fun ction (api , data, ne xt) { | |
| 72 | var ar chiveId = data.param s.archiveI d; | |
| 73 | var da tabase = a pi.vjs.dat abase; | |
| 74 | var co nfiguratio n = api.mr ar.configu ration; | |
| 75 | ||
| 76 | archiv e.readFact s(configur ation, dat abase, arc hiveId, de faultRespo nseHandler (data, nex t)); | |
| 77 | } | |
| 78 | }; | |
| 79 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000pa ckage/acti ons/setCon nectionPos tConnect.j s\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x000000 00644\x00000001 750\x0000000175 0\x000000000002 376\x0000130517 54140\x00000163 72\x0000 0\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 /********* ********** ********** ********** ********** ********** ********** *** | |
| 80 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 81 | http://ww w.apexdata solutions. net/ | |
| 82 | ||
| 83 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 84 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 85 | You may o btain a co py of the License at | |
| 86 | ||
| 87 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 88 | ||
| 89 | Unless re quired by applicable law or ag reed to in writing, software | |
| 90 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 91 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 92 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 93 | limitatio ns under t he License . | |
| 94 | ||
| 95 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 96 | ||
| 97 | 'use stric t'; | |
| 98 | ||
| 99 | exports.ac tion = { | |
| 100 | name: "s etConnecti onPostConn ect", | |
| 101 | descript ion: "Init ialize thi s websocke t for the mrar clien t", | |
| 102 | sessionT okenRequir ed: true, | |
| 103 | blockedC onnectionT ypes: ["we b","tcp"], | |
| 104 | inputs: { | |
| 105 | sessio nId: { | |
| 106 | requ ired: true | |
| 107 | }, | |
| 108 | archiv eId: { | |
| 109 | requ ired: true | |
| 110 | } | |
| 111 | }, | |
| 112 | outputEx ample: {}, | |
| 113 | version: 1.0, | |
| 114 | run: fun ction(api, data, nex t) { | |
| 115 | ||
| 116 | data.c onnection. userSessio nId = data .params.se ssionId; | |
| 117 | data.c onnection. mrarArchiv eId = data .params.ar chiveId; | |
| 118 | next() ; | |
| 119 | } | |
| 120 | }; | |
| 121 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000pa ckage/acti ons/getMil ImageUrl.j s\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x000000 00644\x00000001 750\x0000000175 0\x000000000002 251\x0000130517 54140\x00000142 36\x0000 0\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 /********* ********** ********** ********** ********** ********** ********** *** | |
| 122 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 123 | http://ww w.apexdata solutions. net/ | |
| 124 | ||
| 125 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 126 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 127 | You may o btain a co py of the License at | |
| 128 | ||
| 129 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 130 | ||
| 131 | Unless re quired by applicable law or ag reed to in writing, software | |
| 132 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 133 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 134 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 135 | limitatio ns under t he License . | |
| 136 | ||
| 137 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 138 | ||
| 139 | "use stric t"; | |
| 140 | ||
| 141 | var defaul tResponseH andler = r equire('.. /lib/util/ defaultRes ponseHandl er'); | |
| 142 | ||
| 143 | exports.ac tion = { | |
| 144 | name: "g etMilImage Url", | |
| 145 | descript ion: "Retu rn availab le urls fo r the give n NDC (Nat ional Drug Code).", | |
| 146 | sessionT okenRequir ed: true, | |
| 147 | inputs: { | |
| 148 | ndc: { required: true} | |
| 149 | }, | |
| 150 | ||
| 151 | run: fun ction (api , data, ne xt) { | |
| 152 | var nd c = data.p arams.ndc; | |
| 153 | ||
| 154 | api.mi l.resolveU rl(api, nd c, default ResponseHa ndler(data , next)); | |
| 155 | } | |
| 156 | }; | |
| 157 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000package /actions/G etVistASer verNames.j s\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x00000000644 \x00000001750\x00000 001750\x0000000 00002451\x00001 3051754140 \x0000015232\x0000 0 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 ustar \x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000/**** ********** ********** ********** ********** ********** ********** ********** ********** *** | |
| 158 | Copyrigh t 2016 Ape x Data Sol utions, LL C. | |
| 159 | http://ww w.apexdata solutions. net/ | |
| 160 | ||
| 161 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 162 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 163 | You may o btain a co py of the License at | |
| 164 | ||
| 165 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 166 | ||
| 167 | Unless re quired by applicable law or ag reed to in writing, software | |
| 168 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 169 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 170 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 171 | limitatio ns under t he License . | |
| 172 | ||
| 173 | ********* ********** ********** ********** ********** ********** ********** ********** *******/ | |
| 174 | ||
| 175 | "use stric t"; | |
| 176 | ||
| 177 | var federa tor = requ ire('../li b/util/fed erator'); | |
| 178 | var defaul tResponseH andler = r equire('.. /lib/util/ defaultRes ponseHandl er'); | |
| 179 | ||
| 180 | exports.ac tion = { | |
| 181 | name: 'G etVistASer verNames', | |
| 182 | sessionT okenRequir ed: false, | |
| 183 | descript ion: "Retu rns a list of VistA server nam es associa ted with t he Federat ion Server ", | |
| 184 | run: fun ction (api , data, ne xt) { | |
| 185 | var co nfiguratio n = api.mr ar.configu ration; | |
| 186 | var ap iMrar = ap i.mrar; | |
| 187 | ||
| 188 | federa tor.getFed eratorVist ANames(con figuration , apiMrar, defaultRe sponseHand ler(data, next)); | |
| 189 | } | |
| 190 | } | |
| 191 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000packa ge/actions /searchMed icationPro ductDescri ption.js\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x000000006 44\x00000001750 \x00000001750\x00000 0000003443 \x0000130517541 40\x0000020402\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000ustar \x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000/** ********** ********** ********** ********** ********** ********** ********** | |
| 192 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 193 | http://ww w.apexdata solutions. net/ | |
| 194 | ||
| 195 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 196 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 197 | You may o btain a co py of the License at | |
| 198 | ||
| 199 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 200 | ||
| 201 | Unless re quired by applicable law or ag reed to in writing, software | |
| 202 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 203 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 204 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 205 | limitatio ns under t he License . | |
| 206 | ||
| 207 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 208 | ||
| 209 | "use stric t"; | |
| 210 | ||
| 211 | var respon se = requi re('vjs-re sponse'); | |
| 212 | var mrar = require(' ../lib/mra r'); | |
| 213 | ||
| 214 | exports.ac tion = { | |
| 215 | name: "s earchMedic ationProdu ctDescript ion", | |
| 216 | descript ion: "Answ er a filte red and pa ges list o f product descriptio ns", | |
| 217 | inputs: { | |
| 218 | filter Text: {req uired: tru e}, | |
| 219 | pageSi ze: {requi red: false }, | |
| 220 | pageMa rker: {req uired: fal se}, | |
| 221 | }, | |
| 222 | sessionT okenRequir ed: true, | |
| 223 | outputEx ample: {}, | |
| 224 | version: 1.0, | |
| 225 | ||
| 226 | run: fun ction (api , data, ne xt) { | |
| 227 | var se ssion = da ta.connect ion.sessio n; | |
| 228 | var fi lterText = (data.par ams.filter Text || '' ).toUpperC ase(); | |
| 229 | var pa geSize = d ata.params .pageSize; | |
| 230 | var pa geMarker = data.para ms.pageMar ker; | |
| 231 | var co nfiguratio n = api.mr ar.configu ration; | |
| 232 | ||
| 233 | mrar.s earchForPr oductDescr iption(con figuration , session, filterTex t, handleR esult); | |
| 234 | ||
| 235 | // TO DO: refact or from vp s-recon th rough mrar -provider to use def aultHandle r | |
| 236 | functi on handleR esult(erro r, result, debugInfo ) { | |
| 237 | data .response = error ? response.E rror(error , result, debugInfo) : respons e.Success( {list: res ult}, debu gInfo); | |
| 238 | next (); | |
| 239 | } | |
| 240 | } | |
| 241 | }; | |
| 242 | ||
| 243 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000package/a ctions/sub mitNote.js \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x00000000644\x00000 001750\x0000000 1750\x000000000 003532\x0000130 51754140\x00000 13523\x0000 0\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000us tar \x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000/****** ********** ********** ********** ********** ********** ********** ****** | |
| 244 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 245 | http://ww w.apexdata solutions. net/ | |
| 246 | ||
| 247 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 248 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 249 | You may o btain a co py of the License at | |
| 250 | ||
| 251 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 252 | ||
| 253 | Unless re quired by applicable law or ag reed to in writing, software | |
| 254 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 255 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 256 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 257 | limitatio ns under t he License . | |
| 258 | ||
| 259 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 260 | ||
| 261 | 'use stric t'; | |
| 262 | ||
| 263 | var defaul tResponseH andler = r equire('.. /lib/util/ defaultRes ponseHandl er'); | |
| 264 | var mrar = require(' ../lib/mra r'); | |
| 265 | ||
| 266 | exports.ac tion = { | |
| 267 | name: "s ubmitNote" , | |
| 268 | descript ion: "Crea te and sig n a TIU no te", | |
| 269 | inputs: { | |
| 270 | patien tId: {requ ired: true }, | |
| 271 | archiv eId: {requ ired: true }, | |
| 272 | signat ureCode: { required: true}, | |
| 273 | docume ntLines: { required: true}, | |
| 274 | userId : {require d: true} | |
| 275 | }, | |
| 276 | sessionT okenRequir ed: true, | |
| 277 | outputEx ample: {}, | |
| 278 | version: 1.0, | |
| 279 | run: fun ction(api, data, nex t) { | |
| 280 | var da tabase = a pi.vjs.dat abase; | |
| 281 | var co nfiguratio n = api.mr ar.configu ration; | |
| 282 | var se ssion = da ta.connect ion.sessio n; | |
| 283 | var ar chiveId = data.param s.archiveI d; // reme mber that is is in d ata.connec tion as mr arArchiveI d. Detere mine if is should be used or c hecked aga inst | |
| 284 | var do cumentLine s = data.p arams.docu mentLines; | |
| 285 | var pa tientId = data.param s.patientI d; | |
| 286 | var us erId = dat a.params.u serId; | |
| 287 | var si gnatureCod e = data.p arams.sign atureCode; | |
| 288 | ||
| 289 | mrar.s ubmitNote( configurat ion, datab ase, sessi on, archiv eId, userI d, patient Id, docume ntLines, s ignatureCo de, defaul tResponseH andler(dat a, next)); | |
| 290 | } | |
| 291 | }; | |
| 292 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000pack age/action s/submitCo mmand.js\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x00000000 644\x0000000175 0\x00000001750\x0000 0000000273 6\x000013051754 140\x0000014201 \x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000/* ********** ********** ********** ********** ********** ********** ********** * | |
| 293 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 294 | http://ww w.apexdata solutions. net/ | |
| 295 | ||
| 296 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 297 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 298 | You may o btain a co py of the License at | |
| 299 | ||
| 300 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 301 | ||
| 302 | Unless re quired by applicable law or ag reed to in writing, software | |
| 303 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 304 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 305 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 306 | limitatio ns under t he License . | |
| 307 | ||
| 308 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 309 | ||
| 310 | 'use stric t'; | |
| 311 | ||
| 312 | var realti me = requi re('../lib /realtime' ); | |
| 313 | ||
| 314 | exports.ac tion = { | |
| 315 | name: "s ubmitComma nd", | |
| 316 | descript ion: "Proc ess an inc oming comm and by mak ing it a f act and br oadcasting it to int erested pa rties", | |
| 317 | sessionT okenRequir ed: true, | |
| 318 | blockedC onnectionT ypes: ["we b","tcp"], | |
| 319 | inputs: { | |
| 320 | comman d: { | |
| 321 | requ ired: true | |
| 322 | } | |
| 323 | }, | |
| 324 | outputEx ample: {}, | |
| 325 | version: 1.0, | |
| 326 | run: fun ction(api, data, nex t) { | |
| 327 | var co nfiguratio n = api.mr ar.configu ration; | |
| 328 | var da tabase = a pi.vjs.dat abase; | |
| 329 | var co nnections = api.mrar .connectio ns; | |
| 330 | var co mmand = da ta.params. command; | |
| 331 | var in comingConn ection = d ata.connec tion; | |
| 332 | ||
| 333 | realti me.submitC ommand(con figuration , database , connecti ons, incom ingConnect ion, comma nd, api.lo g, next); | |
| 334 | } | |
| 335 | }; | |
| 336 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000packag e/actions/ exportMetr ics.js\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000000064 4\x00000001750\x0000 0001750\x000000 000002364\x0000 1305175414 0\x0000014244\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000ustar \x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000/*** ********** ********** ********** ********** ********** ********** ********* | |
| 337 | Copyrigh t 2016 Ape x Data Sol utions, LL C. | |
| 338 | http://ww w.apexdata solutions. net/ | |
| 339 | ||
| 340 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 341 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 342 | You may o btain a co py of the License at | |
| 343 | ||
| 344 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 345 | ||
| 346 | Unless re quired by applicable law or ag reed to in writing, software | |
| 347 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 348 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 349 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 350 | limitatio ns under t he License . | |
| 351 | ||
| 352 | ********* ********** ********** ********** ********** ********** ********** ***/ | |
| 353 | ||
| 354 | "use stric t"; | |
| 355 | ||
| 356 | var defaul tResponseH andler = r equire('.. /lib/util/ defaultRes ponseHandl er'); | |
| 357 | var metric s = requir e('../lib/ metrics'); | |
| 358 | ||
| 359 | exports.ac tion = { | |
| 360 | name: "e xportMetri cs", | |
| 361 | descript ion: "Expo rts the fa cts to a J SON file", | |
| 362 | sessionT okenRequir ed: false, | |
| 363 | authenti cated: tru e, | |
| 364 | requires Admin: fal se, | |
| 365 | ||
| 366 | run: fun ction (api , data, ne xt) { | |
| 367 | var da tabase = a pi.vjs.dat abase; | |
| 368 | var co nfiguratio n = api.mr ar.configu ration; | |
| 369 | ||
| 370 | metric s.exportMe trics(conf iguration, database, api); | |
| 371 | ||
| 372 | // nex t(); | |
| 373 | } | |
| 374 | }; | |
| 375 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000pa ckage/acti ons/search Patient.js \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x000000 00644\x00000001 750\x0000000175 0\x000000000003 132\x0000130517 54140\x00000141 60\x0000 0\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 /********* ********** ********** ********** ********** ********** ********** *** | |
| 376 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 377 | http://ww w.apexdata solutions. net/ | |
| 378 | ||
| 379 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 380 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 381 | You may o btain a co py of the License at | |
| 382 | ||
| 383 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 384 | ||
| 385 | Unless re quired by applicable law or ag reed to in writing, software | |
| 386 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 387 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 388 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 389 | limitatio ns under t he License . | |
| 390 | ||
| 391 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 392 | ||
| 393 | "use stric t"; | |
| 394 | ||
| 395 | var respon se = requi re('vjs-re sponse'); | |
| 396 | var federa tor = requ ire('../li b/util/fed erator'); | |
| 397 | ||
| 398 | exports.ac tion = { | |
| 399 | name: "s earchPatie nt", | |
| 400 | descript ion: "Answ er a filte red and pa ges list o f patients ", | |
| 401 | inputs: { | |
| 402 | filter Text: {req uired: fal se}, | |
| 403 | pageMa rker: {req uired: fal se}, | |
| 404 | }, | |
| 405 | sessionT okenRequir ed: true, | |
| 406 | ||
| 407 | run: fun ction (api , data, ne xt) { | |
| 408 | var fi lterText = (data.para ms.filterT ext || '') .toUpperCa se(); | |
| 409 | var pa geMarker = data.para ms.pageMar ker; | |
| 410 | var se ssion = da ta.connect ion.sessio n; | |
| 411 | var co nfiguratio n = api.mr ar.configu ration; | |
| 412 | ||
| 413 | federa tor.search PatientsBy NamePrefix (configura tion, sess ion, filte rText, pag eMarker, h andleResul t); | |
| 414 | ||
| 415 | functi on handleR esult(erro r, result) { | |
| 416 | data .response = error ? response.E rror(error , result, result.deb ugInfo) : response.S uccess(res ult, resul t.debugInf o); | |
| 417 | next (); | |
| 418 | } | |
| 419 | } | |
| 420 | }; | |
| 421 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000package/ actions/se archCausat iveAgent.j s\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x00000000644\x0000 0001750\x000000 01750\x00000000 0003415\x000013 051754140\x0000 015463\x0000 0\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000u star \x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000/***** ********** ********** ********** ********** ********** ********** ******* | |
| 422 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 423 | http://ww w.apexdata solutions. net/ | |
| 424 | ||
| 425 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 426 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 427 | You may o btain a co py of the License at | |
| 428 | ||
| 429 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 430 | ||
| 431 | Unless re quired by applicable law or ag reed to in writing, software | |
| 432 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 433 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 434 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 435 | limitatio ns under t he License . | |
| 436 | ||
| 437 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 438 | ||
| 439 | "use stric t"; | |
| 440 | ||
| 441 | var respon se = requi re('vjs-re sponse'); | |
| 442 | var mrar = require(' ../lib/mra r'); | |
| 443 | ||
| 444 | exports.ac tion = { | |
| 445 | name: "s earchCausa tiveAgent" , | |
| 446 | descript ion: "Answ er a filte red and pa ges list o f causativ e agents", | |
| 447 | inputs: { | |
| 448 | filter Text: {req uired: tru e}, | |
| 449 | pageSi ze: {requi red: false }, | |
| 450 | pageMa rker: {req uired: fal se}, | |
| 451 | }, | |
| 452 | sessionT okenRequir ed: true, | |
| 453 | outputEx ample: {}, | |
| 454 | version: 1.0, | |
| 455 | ||
| 456 | run: fun ction (api , data, ne xt) { | |
| 457 | var se ssion = da ta.connect ion.sessio n; | |
| 458 | var fi lterText = (data.par ams.filter Text || '' ).toUpperC ase(); | |
| 459 | var pa geSize = d ata.params .pageSize; | |
| 460 | var pa geMarker = data.para ms.pageMar ker; | |
| 461 | var co nfiguratio n = api.mr ar.configu ration; | |
| 462 | ||
| 463 | mrar.s earchForCa usativeAge nt(configu ration, se ssion, fil terText, h andleResul t); | |
| 464 | ||
| 465 | // TO DO: refact or from vp s-recon th rough mrar -provider to use def aultHandle r | |
| 466 | functi on handleR esult(erro r, result, debugInfo ) { | |
| 467 | data .response = error ? response.E rror(error , result, debugInfo) : respons e.Success( {list: res ult}, debu gInfo); | |
| 468 | next (); | |
| 469 | } | |
| 470 | } | |
| 471 | }; | |
| 472 | ||
| 473 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000package /actions/g etMrarVers ionNumbers .js\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x00000000644 \x00000001750\x00000 001750\x0000000 00003662\x00001 3051754140 \x0000015701\x0000 0 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 ustar \x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000/**** ********** ********** ********** ********** ********** ********** ********** ********** *** | |
| 474 | Copyrigh t 2016 Ape x Data Sol utions, LL C. | |
| 475 | http://ww w.apexdata solutions. net/ | |
| 476 | ||
| 477 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 478 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 479 | You may o btain a co py of the License at | |
| 480 | ||
| 481 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 482 | ||
| 483 | Unless re quired by applicable law or ag reed to in writing, software | |
| 484 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 485 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 486 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 487 | limitatio ns under t he License . | |
| 488 | ||
| 489 | ********* ********** ********** ********** ********** ********** ********** ********** *******/ | |
| 490 | ||
| 491 | "use stric t"; | |
| 492 | ||
| 493 | var getDat abaseVersi ons = requ ire('../li b/archive' ).getDatab aseVersion s; | |
| 494 | ||
| 495 | exports.ac tion = { | |
| 496 | name: 'g etMrarVers ionNumbers ', | |
| 497 | sessionT okenRequir ed: false, | |
| 498 | descript ion: "Retu rns a list of all MR AR related version n umbers", | |
| 499 | run: fun ction (api , data, ne xt) { | |
| 500 | var re sponseObj = { | |
| 501 | serv ices: {}, | |
| 502 | prov ider: {}, | |
| 503 | data base: {} | |
| 504 | }; | |
| 505 | var er r = null; | |
| 506 | var da tabase = a pi.vjs.dat abase; | |
| 507 | respon seObj.data base = get DatabaseVe rsions(dat abase); | |
| 508 | ||
| 509 | try { | |
| 510 | var packageDat aServices = require( '/profiles /mrar/node _modules/e hmp-mrar-s ervices/pa ckage.json '); | |
| 511 | resp onseObj.ve rsion = pa ckageDataS ervices.mr arVersion; | |
| 512 | resp onseObj.se rvices.ver sion = pac kageDataSe rvices.ver sion; | |
| 513 | } catc h(e) { | |
| 514 | err = e; | |
| 515 | } | |
| 516 | try { | |
| 517 | var packageDat aProvider = require( '/profiles /mrar/node _modules/e hmp-mrar-p rovider/pa ckage.json '); | |
| 518 | resp onseObj.pr ovider.ver sion = pac kageDataPr ovider.ver sion; | |
| 519 | } catc h(e) { | |
| 520 | err = e; | |
| 521 | } | |
| 522 | if ( e rr ) { | |
| 523 | data .response = { error: 'An error occurred while retr ieving the error inf ormation', data: err }; | |
| 524 | } else { | |
| 525 | data .response = {data: r esponseObj }; | |
| 526 | } | |
| 527 | next() ; | |
| 528 | } | |
| 529 | }; | |
| 530 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000pa ckage/acti ons/getMra rSessionCo nfig.js\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x000000 00644\x00000001 750\x0000000175 0\x000000000002 353\x0000130517 54140\x00000154 65\x0000 0\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 /********* ********** ********** ********** ********** ********** ********** *** | |
| 531 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 532 | http://ww w.apexdata solutions. net/ | |
| 533 | ||
| 534 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 535 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 536 | You may o btain a co py of the License at | |
| 537 | ||
| 538 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 539 | ||
| 540 | Unless re quired by applicable law or ag reed to in writing, software | |
| 541 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 542 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 543 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 544 | limitatio ns under t he License . | |
| 545 | ||
| 546 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 547 | ||
| 548 | "use stric t"; | |
| 549 | ||
| 550 | exports.ac tion = { | |
| 551 | name: "g etMrarSess ionConfig" , | |
| 552 | descript ion: "Mrar session c onfigurati on setting s", | |
| 553 | sessionT okenRequir ed: false, | |
| 554 | ||
| 555 | run: fun ction (api , data, ne xt) { | |
| 556 | var mr arSessionC onfig = ap i.config[' ehmp-mrar- services'] .config.mr arSessionC onfig; | |
| 557 | ||
| 558 | if (mr arSessionC onfig) { | |
| 559 | data .response. mrarSessio nConfig = mrarSessio nConfig; | |
| 560 | } else { | |
| 561 | data .response. error = 'E rror retri eving mrar SessionCon fig from s erver conf iguration file.'; | |
| 562 | } | |
| 563 | next() ; | |
| 564 | } | |
| 565 | }; | |
| 566 | ||
| 567 | ||
| 568 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000pac kage/actio ns/resolve MrarSessio n.js\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000000 0644\x000000017 50\x00000001750 \x0000000000031 76\x00001305175 4140\x000001524 3\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000/ ********** ********** ********** ********** ********** ********** ********** ** | |
| 569 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 570 | http://ww w.apexdata solutions. net/ | |
| 571 | ||
| 572 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 573 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 574 | You may o btain a co py of the License at | |
| 575 | ||
| 576 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 577 | ||
| 578 | Unless re quired by applicable law or ag reed to in writing, software | |
| 579 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 580 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 581 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 582 | limitatio ns under t he License . | |
| 583 | ||
| 584 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 585 | ||
| 586 | "use stric t"; | |
| 587 | ||
| 588 | var defaul tResponseH andler = r equire('.. /lib/util/ defaultRes ponseHandl er'); | |
| 589 | var mrar = require(' ../lib/mra r'); | |
| 590 | ||
| 591 | exports.ac tion = { | |
| 592 | name: 'r esolveMrar Session', | |
| 593 | descript ion: "Find a current active MR AR sesion or create a new one" , | |
| 594 | sessionT okenRequir ed: true, | |
| 595 | inputs: { | |
| 596 | dfn: { required: true}, | |
| 597 | userId : {require d: true}, | |
| 598 | userna me: {requi red: true} | |
| 599 | }, | |
| 600 | outputEx ample: {}, | |
| 601 | ||
| 602 | run: fun ction (api , data, ne xt) { | |
| 603 | var da tabase = a pi.vjs.dat abase; | |
| 604 | var co nfiguratio n = api.mr ar.configu ration; | |
| 605 | var en dpoints = api.mrar.e ndpoints; | |
| 606 | var df n = data.p arams.dfn; | |
| 607 | var us erId = dat a.params.u serId; | |
| 608 | var us ername = d ata.params .username; | |
| 609 | var co nnection = data.conn ection; | |
| 610 | var se ssion = da ta.connect ion.sessio n; | |
| 611 | ||
| 612 | mrar.r esolveSess ion(endpoi nts, confi guration, database, session, d fn, userId , username , connecti on, defaul tResponseH andler(dat a, next)); | |
| 613 | } | |
| 614 | }; | |
| 615 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000pack age/action s/LoginByA V.js\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x00000000 644\x0000000175 0\x00000001750\x0000 0000000602 3\x000013051754 140\x0000013162 \x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000/* ********** ********** ********** ********** ********** ********** ********** ********** ****** | |
| 616 | Copyrigh t 2016 Ape x Data Sol utions, LL C. | |
| 617 | http://ww w.apexdata solutions. net/ | |
| 618 | ||
| 619 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 620 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 621 | You may o btain a co py of the License at | |
| 622 | ||
| 623 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 624 | ||
| 625 | Unless re quired by applicable law or ag reed to in writing, software | |
| 626 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 627 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 628 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 629 | limitatio ns under t he License . | |
| 630 | ||
| 631 | ********* ********** ********** ********** ********** ********** ********** ********** *******/ | |
| 632 | ||
| 633 | "use stric t"; | |
| 634 | ||
| 635 | var federa tor = requ ire('../li b/util/fed erator'); | |
| 636 | var clock = require( '../lib/ut il/clock') ; | |
| 637 | var respon se = requi re('vjs-re sponse'); | |
| 638 | var async = require( 'async'); | |
| 639 | ||
| 640 | exports.ac tion = { | |
| 641 | name: 'L oginByAV', | |
| 642 | descript ion: "Logs into Vist A using th e supplied Access/Ve rify codes ", | |
| 643 | sessionT okenRequir ed: false, | |
| 644 | inputs: { | |
| 645 | creden tials: { | |
| 646 | requ ired: true | |
| 647 | }, | |
| 648 | server : { | |
| 649 | requ ired: true | |
| 650 | } | |
| 651 | }, | |
| 652 | run: fun ction (api , data, ne xt) { | |
| 653 | var cr edentials = data.par ams['crede ntials']; | |
| 654 | var se rver = dat a.params[' server'] | | ''; | |
| 655 | var co nfiguratio n = api.mr ar.configu ration; | |
| 656 | ||
| 657 | federa tor.loginB yAccessVer ifyCodes(c onfigurati on, data, credential s, server, handleRes ult); | |
| 658 | ||
| 659 | functi on handleR esult(erro r, result) { | |
| 660 | if(e rror) { | |
| 661 | // todo: con solidate o n single e rror contr act | |
| 662 | va r errorMes sage = err or; | |
| 663 | va r errorDat a; | |
| 664 | ||
| 665 | if ( typeof(e rror) === typeof({}) ){ | |
| 666 | errorMessa ge = error .error; | |
| 667 | errorData = error.da ta; | |
| 668 | } | |
| 669 | da ta.respons e = respon se.Error(e rrorMessag e, errorDa ta); | |
| 670 | ne xt(); | |
| 671 | } el se { | |
| 672 | va r sessionT oken = res ult.sessio nToken; | |
| 673 | ||
| 674 | da ta.connect ion.sessio n = { | |
| 675 | sessionTok en: sessio nToken, | |
| 676 | server: re sult.serve r, | |
| 677 | baseURL: r esult.fede ratorBaseU rl + "/vis tas/" + re sult.serve r | |
| 678 | }; | |
| 679 | ||
| 680 | ap i.session. save(data. connection , function (error, va lue) { | |
| 681 | //TODO: im plement er ror handli ng | |
| 682 | if (error) return ne xt(); | |
| 683 | ||
| 684 | console.di r(result.l oginData); | |
| 685 | // mrar re sponse | |
| 686 | var loginD ata = resu lt.loginDa ta; | |
| 687 | var statio nId = logi nData['USE R-LOGGED-O N-DIVISION '].split(' ^')[2]; | |
| 688 | var siteNa me = login Data['USER -LOGGED-ON -DIVISION' ].split('^ ')[1]; | |
| 689 | var userId = station Id + '+' + loginData .DUZ; | |
| 690 | ||
| 691 | var respon seData = { | |
| 692 | userId: userId, | |
| 693 | username : loginDat a['USER-NA ME'], | |
| 694 | sessionT oken: sess ionToken, | |
| 695 | autoDisc onnectSeco nds: confi guration.a utoDisconn ectSeconds , | |
| 696 | endpoint : { | |
| 697 | vista: loginData .loggedInS ite, | |
| 698 | statio nId: stati onId, | |
| 699 | siteNa me: siteNa me | |
| 700 | } | |
| 701 | }; | |
| 702 | ||
| 703 | data.respo nse = resp onse.Succe ss(respons eData); | |
| 704 | next(); | |
| 705 | }) ; | |
| 706 | } | |
| 707 | ||
| 708 | }; | |
| 709 | } | |
| 710 | }\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000packag e/.travis. yml\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000000064 4\x00000001750\x0000 0001750\x000000 000003424\x0000 1305175407 2\x0000011511\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000ustar \x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000lang uage: node _js | |
| 711 | node_js: | |
| 712 | - '0.12' | |
| 713 | sudo: fals e | |
| 714 | before_ins tall: | |
| 715 | - npm conf ig set reg istry http s://npmjs. apexdataso lutions.ne t:4873/ | |
| 716 | - npm conf ig set //n pmjs.apexd atasolutio ns.net:487 3/:_authTo ken=\${NPM _TOKEN} | |
| 717 | - npm conf ig set str ict-ssl fa lse | |
| 718 | install: | |
| 719 | - npm inst all --igno re-scripts | |
| 720 | - npm inst all -g ape x-legal | |
| 721 | script: | |
| 722 | - npm test | |
| 723 | after_succ ess: | |
| 724 | - legalize apply APE X_APACHE2 | |
| 725 | - npm run semantic-r elease | |
| 726 | env: | |
| 727 | global: | |
| 728 | - secure : DdISln0a BQsz5P7D8B HzgLqvSvWw U406HYTeNL q+ip9IrMuJ ESpljxw+J7 OOhxM1bco9 2Dh3w2Js6K TkrLsUA1ND 4+BCNr5MNk /4DH4yuEFE Ik4S6eN6MV v/drmJ1f2K HK8cPACdfj ckUmhHeVqa gQBaKk8Lyp i85RDdcp7Z XE6QX3+CVm fFSOW0zr0v mi9FayFB42 IK0zpg38or 0DLrtv+ZyF 4ed4tZSei1 O6WdmP5kka J/9xmcliH9 CFMPSHxMTH CoTYXzbja9 oONuKEimcA 7Y7UAqRYYf wSa0UjWNh0 Gf7RWBG+7l UHxFYlpzNM Ltzmwout5y BhWgbe2MSH NBS5FVFxW0 GUmevXv/VT s2hGAdoGo9 ghFKRLDaKS Ft4Sij3LGl Es1BrEFzId cas7bXLjgN bAdMEswutG aePllBLdTz S8/YpPRmaL iInFTcnaWM kg50EM/v/5 WNVd/ezosw 5ZzTkr7WoY 4YQQBa30bY uLezBZqn71 oa88KcBMV3 zv9zuATEQ5 O6BMkorVBP Nk/rQz+TYT PDB68M+yHF 4KPXqmMQlG JFj948CUez mGQPgrxay2 WPSMnxSmQn MXFELbhI44 4KBPKQwegr ioP3jDhdxW 2Tp7MmGENv hZxcwxE46C Nqxb60sNpe Jwv4GLTXxc ZJavW7g0lL 3hs/Cebrws Y5kj4= | |
| 729 | - secure : kxZzSlpY EurgVAuv7h n7n12Ac1ea I7Oy5bbFK7 6PTB3Kbx/9 riyz1p6q/Y ymg4/tvVh/ pwzYSGHA8M UUQswoto8d vGwipfxrkg mlUlDMqx9o fbiTjFHozQ OtWCN3UnAj 4bN18H6yQo yFGHCbEV+q hZh4Zy9Wqe Fj2z1sfZvR 3Eqrs5QaXC DJZn+OZ/fx LFMeYWeHUA KmqK8VmiBQ FGW/YyfGGi PTZN6J4MOr ShkOzV1EAG +Ah1IJ110c r6Q4bsQlGn E1eBWgFyys gUHaNAgtLN RlIqQF+6wz IHM7kH6r0A q0bgoJeGZ3 TdJDX9S5Dj 5123hK3edJ n0+2o3v87k 4eOw7shJ3F lxLkn4uhAK d2CwkRkn6w 22JULnDmFc Lbo535E9lZ GCzRSjpllD alahgCa+B0 1XmUUIUc4n kjLgIm/nqa JPUacTZO4k Haq0Jf6XH9 9FSh7+3yJA MycXsD72R7 1QXlLqWHg9 Rz7UF3465x tYJQOn6ftS Py9jgndDDA fhv0DISDfG Qtojg0nipe P3T32Kjg4i pCZZos3Fv0 f5qoPveLlc Qw1HVUKNbE w5dsYm9d3+ E4o3XO8O+m vTj6XhPM/b IlD2TBneU0 lPEL0y2m+v i6c/WYTdao Gv5cHQT/so titqDwIT82 4yJwXHTW25 lDYIeVHVuI Z5iXHk2QRn P/FcI= | |
| 730 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000pack age/LICENS E-2.0.txt\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x00000000 644\x0000000175 0\x00000001750\x0000 0000002720 5\x000013051754 072\x0000011523 \x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000{\ rtf1\ansi\ ansicpg125 2\cocoartf 1404\cocoa subrtf130 | |
| 731 | {\fonttbl\ f0\fmodern \fcharset0 Courier;} | |
| 732 | {\colortbl ;\red255\g reen255\bl ue255;\red 0\green0\b lue0;} | |
| 733 | \paperw119 00\paperh1 6840\margl 1440\margr 1440\vieww 10800\view h8400\view kind0 | |
| 734 | \deftab720 | |
| 735 | \pard\pard eftab720\s l280\parti ghtenfacto r0 | |
| 736 | ||
| 737 | \f0\fs24 \ cf2 \expnd 0\expndtw0 \kerning0 | |
| 738 | \outl0\str okewidth0 \strokec2 \ | |
| 739 | Apache License\ | |
| 740 | Ver sion 2.0, January 20 04\ | |
| 741 | http:/ /www.apach e.org/lice nses/\ | |
| 742 | \ | |
| 743 | TERMS A ND CONDITI ONS FOR US E, REPRODU CTION, AND DISTRIBUT ION\ | |
| 744 | \ | |
| 745 | 1. Defi nitions.\ | |
| 746 | \ | |
| 747 | "Lic ense" shal l mean the terms and condition s for use, reproduct ion,\ | |
| 748 | and distributi on as defi ned by Sec tions 1 th rough 9 of this docu ment.\ | |
| 749 | \ | |
| 750 | "Lic ensor" sha ll mean th e copyrigh t owner or entity au thorized b y\ | |
| 751 | the copyright owner that is granti ng the Lic ense.\ | |
| 752 | \ | |
| 753 | "Leg al Entity" shall mea n the unio n of the a cting enti ty and all \ | |
| 754 | othe r entities that cont rol, are c ontrolled by, or are under com mon\ | |
| 755 | cont rol with t hat entity . For the purposes o f this def inition,\ | |
| 756 | "con trol" mean s (i) the power, dir ect or ind irect, to cause the\ | |
| 757 | dire ction or m anagement of such en tity, whet her by con tract or\ | |
| 758 | othe rwise, or (ii) owner ship of fi fty percen t (50%) or more of t he\ | |
| 759 | outs tanding sh ares, or ( iii) benef icial owne rship of s uch entity .\ | |
| 760 | \ | |
| 761 | "You " (or "You r") shall mean an in dividual o r Legal En tity\ | |
| 762 | exer cising per missions g ranted by this Licen se.\ | |
| 763 | \ | |
| 764 | "Sou rce" form shall mean the prefe rred form for making modificat ions,\ | |
| 765 | incl uding but not limite d to softw are source code, doc umentation \ | |
| 766 | sour ce, and co nfiguratio n files.\ | |
| 767 | \ | |
| 768 | "Obj ect" form shall mean any form resulting from mecha nical\ | |
| 769 | tran sformation or transl ation of a Source fo rm, includ ing but\ | |
| 770 | not limited to compiled object cod e, generat ed documen tation,\ | |
| 771 | and conversion s to other media typ es.\ | |
| 772 | \ | |
| 773 | "Wor k" shall m ean the wo rk of auth orship, wh ether in S ource or\ | |
| 774 | Obje ct form, m ade availa ble under the Licens e, as indi cated by a \ | |
| 775 | copy right noti ce that is included in or atta ched to th e work\ | |
| 776 | (an example is provided in the App endix belo w).\ | |
| 777 | \ | |
| 778 | "Der ivative Wo rks" shall mean any work, whet her in Sou rce or Obj ect\ | |
| 779 | form , that is based on ( or derived from) the Work and for which the\ | |
| 780 | edit orial revi sions, ann otations, elaboratio ns, or oth er modific ations\ | |
| 781 | repr esent, as a whole, a n original work of a uthorship. For the p urposes\ | |
| 782 | of t his Licens e, Derivat ive Works shall not include wo rks that r emain\ | |
| 783 | sepa rable from , or merel y link (or bind by n ame) to th e interfac es of,\ | |
| 784 | the Work and D erivative Works ther eof.\ | |
| 785 | \ | |
| 786 | "Con tribution" shall mea n any work of author ship, incl uding\ | |
| 787 | the original v ersion of the Work a nd any mod ifications or additi ons\ | |
| 788 | to t hat Work o r Derivati ve Works t hereof, th at is inte ntionally\ | |
| 789 | subm itted to L icensor fo r inclusio n in the W ork by the copyright owner\ | |
| 790 | or b y an indiv idual or L egal Entit y authoriz ed to subm it on beha lf of\ | |
| 791 | the copyright owner. For the purpo ses of thi s definiti on, "submi tted"\ | |
| 792 | mean s any form of electr onic, verb al, or wri tten commu nication s ent\ | |
| 793 | to t he Licenso r or its r epresentat ives, incl uding but not limite d to\ | |
| 794 | comm unication on electro nic mailin g lists, s ource code control s ystems,\ | |
| 795 | and issue trac king syste ms that ar e managed by, or on behalf of, the\ | |
| 796 | Lice nsor for t he purpose of discus sing and i mproving t he Work, b ut\ | |
| 797 | excl uding comm unication that is co nspicuousl y marked o r otherwis e\ | |
| 798 | desi gnated in writing by the copyr ight owner as "Not a Contribut ion."\ | |
| 799 | \ | |
| 800 | "Con tributor" shall mean Licensor and any in dividual o r Legal En tity\ | |
| 801 | on b ehalf of w hom a Cont ribution h as been re ceived by Licensor a nd\ | |
| 802 | subs equently i ncorporate d within t he Work.\ | |
| 803 | \ | |
| 804 | 2. Gran t of Copyr ight Licen se. Subjec t to the t erms and c onditions of\ | |
| 805 | this License, each Contr ibutor her eby grants to You a perpetual, \ | |
| 806 | worl dwide, non -exclusive , no-charg e, royalty -free, irr evocable\ | |
| 807 | copy right lice nse to rep roduce, pr epare Deri vative Wor ks of,\ | |
| 808 | publ icly displ ay, public ly perform , sublicen se, and di stribute t he\ | |
| 809 | Work and such Derivative Works in Source or Object for m.\ | |
| 810 | \ | |
| 811 | 3. Gran t of Paten t License. Subject t o the term s and cond itions of\ | |
| 812 | this License, each Contr ibutor her eby grants to You a perpetual, \ | |
| 813 | worl dwide, non -exclusive , no-charg e, royalty -free, irr evocable\ | |
| 814 | (exc ept as sta ted in thi s section) patent li cense to m ake, have made,\ | |
| 815 | use, offer to sell, sell , import, and otherw ise transf er the Wor k,\ | |
| 816 | wher e such lic ense appli es only to those pat ent claims licensabl e\ | |
| 817 | by s uch Contri butor that are neces sarily inf ringed by their\ | |
| 818 | Cont ribution(s ) alone or by combin ation of t heir Contr ibution(s) \ | |
| 819 | with the Work to which s uch Contri bution(s) was submit ted. If Yo u\ | |
| 820 | inst itute pate nt litigat ion agains t any enti ty (includ ing a\ | |
| 821 | cros s-claim or countercl aim in a l awsuit) al leging tha t the Work \ | |
| 822 | or a Contribut ion incorp orated wit hin the Wo rk constit utes direc t\ | |
| 823 | or c ontributor y patent i nfringemen t, then an y patent l icenses\ | |
| 824 | gran ted to You under thi s License for that W ork shall terminate\ | |
| 825 | as o f the date such liti gation is filed.\ | |
| 826 | \ | |
| 827 | 4. Redi stribution . You may reproduce and distri bute copie s of the\ | |
| 828 | Work or Deriva tive Works thereof i n any medi um, with o r without\ | |
| 829 | modi fications, and in So urce or Ob ject form, provided that You\ | |
| 830 | meet the follo wing condi tions:\ | |
| 831 | \ | |
| 832 | (a) You must g ive any ot her recipi ents of th e Work or\ | |
| 833 | Derivative Works a c opy of thi s License; and\ | |
| 834 | \ | |
| 835 | (b) You must c ause any m odified fi les to car ry promine nt notices \ | |
| 836 | stating th at You cha nged the f iles; and\ | |
| 837 | \ | |
| 838 | (c) You must r etain, in the Source form of a ny Derivat ive Works\ | |
| 839 | that You d istribute, all copyr ight, pate nt, tradem ark, and\ | |
| 840 | attributio n notices from the S ource form of the Wo rk,\ | |
| 841 | excluding those noti ces that d o not pert ain to any part of\ | |
| 842 | the Deriva tive Works ; and\ | |
| 843 | \ | |
| 844 | (d) If the Wor k includes a "NOTICE " text fil e as part of its\ | |
| 845 | distributi on, then a ny Derivat ive Works that You d istribute must\ | |
| 846 | include a readable c opy of the attributi on notices contained \ | |
| 847 | within suc h NOTICE f ile, exclu ding those notices t hat do not \ | |
| 848 | pertain to any part of the Der ivative Wo rks, in at least one \ | |
| 849 | of the fol lowing pla ces: withi n a NOTICE text file distribut ed\ | |
| 850 | as part of the Deriv ative Work s; within the Source form or\ | |
| 851 | documentat ion, if pr ovided alo ng with th e Derivati ve Works; or,\ | |
| 852 | within a d isplay gen erated by the Deriva tive Works , if and\ | |
| 853 | wherever s uch third- party noti ces normal ly appear. The conte nts\ | |
| 854 | of the NOT ICE file a re for inf ormational purposes only and\ | |
| 855 | do not mod ify the Li cense. You may add Y our own at tribution\ | |
| 856 | notices wi thin Deriv ative Work s that You distribut e, alongsi de\ | |
| 857 | or as an a ddendum to the NOTIC E text fro m the Work , provided \ | |
| 858 | that such additional attributi on notices cannot be construed \ | |
| 859 | as modifyi ng the Lic ense.\ | |
| 860 | \ | |
| 861 | You may add Yo ur own cop yright sta tement to Your modif ications a nd\ | |
| 862 | may provide ad ditional o r differen t license terms and conditions \ | |
| 863 | for use, repro duction, o r distribu tion of Yo ur modific ations, or \ | |
| 864 | for any such D erivative Works as a whole, pr ovided You r use,\ | |
| 865 | repr oduction, and distri bution of the Work o therwise c omplies wi th\ | |
| 866 | the conditions stated in this Lice nse.\ | |
| 867 | \ | |
| 868 | 5. Subm ission of Contributi ons. Unles s You expl icitly sta te otherwi se,\ | |
| 869 | any Contributi on intenti onally sub mitted for inclusion in the Wo rk\ | |
| 870 | by Y ou to the Licensor s hall be un der the te rms and co nditions o f\ | |
| 871 | this License, without an y addition al terms o r conditio ns.\ | |
| 872 | Notw ithstandin g the abov e, nothing herein sh all supers ede or mod ify\ | |
| 873 | the terms of a ny separat e license agreement you may ha ve execute d\ | |
| 874 | with Licensor regarding such Contr ibutions.\ | |
| 875 | \ | |
| 876 | 6. Trad emarks. Th is License does not grant perm ission to use the tr ade\ | |
| 877 | name s, tradema rks, servi ce marks, or product names of the Licens or,\ | |
| 878 | exce pt as requ ired for r easonable and custom ary use in describin g the\ | |
| 879 | orig in of the Work and r eproducing the conte nt of the NOTICE fil e.\ | |
| 880 | \ | |
| 881 | 7. Disc laimer of Warranty. Unless req uired by a pplicable law or\ | |
| 882 | agre ed to in w riting, Li censor pro vides the Work (and each\ | |
| 883 | Cont ributor pr ovides its Contribut ions) on a n "AS IS" BASIS,\ | |
| 884 | WITH OUT WARRAN TIES OR CO NDITIONS O F ANY KIND , either e xpress or\ | |
| 885 | impl ied, inclu ding, with out limita tion, any warranties or condit ions\ | |
| 886 | of T ITLE, NON- INFRINGEME NT, MERCHA NTABILITY, or FITNES S FOR A\ | |
| 887 | PART ICULAR PUR POSE. You are solely responsib le for det ermining t he\ | |
| 888 | appr opriatenes s of using or redist ributing t he Work an d assume a ny\ | |
| 889 | risk s associat ed with Yo ur exercis e of permi ssions und er this Li cense.\ | |
| 890 | \ | |
| 891 | 8. Limi tation of Liability. In no eve nt and und er no lega l theory,\ | |
| 892 | whet her in tor t (includi ng neglige nce), cont ract, or o therwise,\ | |
| 893 | unle ss require d by appli cable law (such as d eliberate and grossl y\ | |
| 894 | negl igent acts ) or agree d to in wr iting, sha ll any Con tributor b e\ | |
| 895 | liab le to You for damage s, includi ng any dir ect, indir ect, speci al,\ | |
| 896 | inci dental, or consequen tial damag es of any character arising as a\ | |
| 897 | resu lt of this License o r out of t he use or inability to use the \ | |
| 898 | Work (includin g but not limited to damages f or loss of goodwill, \ | |
| 899 | work stoppage, computer failure or malfuncti on, or any and all\ | |
| 900 | othe r commerci al damages or losses ), even if such Cont ributor\ | |
| 901 | has been advis ed of the possibilit y of such damages.\ | |
| 902 | \ | |
| 903 | 9. Acce pting Warr anty or Ad ditional L iability. While redi stributing \ | |
| 904 | the Work or De rivative W orks there of, You ma y choose t o offer,\ | |
| 905 | and charge a f ee for, ac ceptance o f support, warranty, indemnity ,\ | |
| 906 | or o ther liabi lity oblig ations and /or rights consisten t with thi s\ | |
| 907 | Lice nse. Howev er, in acc epting suc h obligati ons, You m ay act onl y\ | |
| 908 | on Y our own be half and o n Your sol e responsi bility, no t on behal f\ | |
| 909 | of a ny other C ontributor , and only if You ag ree to ind emnify,\ | |
| 910 | defe nd, and ho ld each Co ntributor harmless f or any lia bility\ | |
| 911 | incu rred by, o r claims a sserted ag ainst, suc h Contribu tor by rea son\ | |
| 912 | of y our accept ing any su ch warrant y or addit ional liab ility.\ | |
| 913 | \ | |
| 914 | END OF TERMS AND CONDITIONS \ | |
| 915 | \ | |
| 916 | APPENDI X: How to apply the Apache Lic ense to yo ur work.\ | |
| 917 | \ | |
| 918 | To a pply the A pache Lice nse to you r work, at tach the f ollowing\ | |
| 919 | boil erplate no tice, with the field s enclosed by bracke ts "[]"\ | |
| 920 | repl aced with your own i dentifying informati on. (Don't include\ | |
| 921 | the brackets!) The text should be enclosed in the app ropriate\ | |
| 922 | comm ent syntax for the f ile format . We also recommend that a\ | |
| 923 | file or class name and d escription of purpos e be inclu ded on the \ | |
| 924 | same "printed page" as t he copyrig ht notice for easier \ | |
| 925 | iden tification within th ird-party archives.\ | |
| 926 | \ | |
| 927 | Copyrig ht 2015 Ap ex Data So lutions. L LC\ | |
| 928 | \ | |
| 929 | License d under th e Apache L icense, Ve rsion 2.0 (the "Lice nse");\ | |
| 930 | you may not use t his file e xcept in c ompliance with the L icense.\ | |
| 931 | You may obtain a copy of th e License at\ | |
| 932 | \ | |
| 933 | htt p://www.ap ache.org/l icenses/LI CENSE-2.0\ | |
| 934 | \ | |
| 935 | Unless required b y applicab le law or agreed to in writing , software \ | |
| 936 | distrib uted under the Licen se is dist ributed on an "AS IS " BASIS,\ | |
| 937 | WITHOUT WARRANTIE S OR CONDI TIONS OF A NY KIND, e ither expr ess or imp lied.\ | |
| 938 | See the License f or the spe cific lang uage gover ning permi ssions and \ | |
| 939 | limitat ions under the Licen se.\ | |
| 940 | }\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 package/in itializers /\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 0000755\x000000 00000\x00000000 000\x0000000000 00000\x00001305 2061137\x000001 3653\x0000 5\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000ust ar \x0000root\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000roo t\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000package/ initialize rs/session -checker.j s\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x00000000644\x0000 0001750\x000000 01750\x00000000 0003075\x000013 051754140\x0000 015527\x0000 0\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000u star \x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000/***** ********** ********** ********** ********** ********** ********** ******* | |
| 941 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 942 | http://ww w.apexdata solutions. net/ | |
| 943 | ||
| 944 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 945 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 946 | You may o btain a co py of the License at | |
| 947 | ||
| 948 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 949 | ||
| 950 | Unless re quired by applicable law or ag reed to in writing, software | |
| 951 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 952 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 953 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 954 | limitatio ns under t he License . | |
| 955 | ||
| 956 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 957 | ||
| 958 | "use stric t"; | |
| 959 | ||
| 960 | module.exp orts = { | |
| 961 | ||
| 962 | start: f unction(ap i, next){ | |
| 963 | ||
| 964 | var mi ddleware = { | |
| 965 | name : 'session -checker', | |
| 966 | glob al: true, | |
| 967 | prio rity: 1000 , | |
| 968 | ||
| 969 | preP rocessor: function(d ata, next) { | |
| 970 | // Check if the action has disab led authen tication c hecking | |
| 971 | if ( data.act ionTemplat e.sessionT okenRequir ed === fal se ) retur n next(); | |
| 972 | // TODO: ca n this che ck for ser viceInfo b e removed? | |
| 973 | if ( data.act ion === "s erverInfo" ) return next(); | |
| 974 | ||
| 975 | // Get the S ession dat a | |
| 976 | // TODO: Re place erro r with err or code | |
| 977 | ap i.session. load(data. connection , function (error) { | |
| 978 | next(error && 'Missi ng session data. Ple ase relogi n.'); | |
| 979 | }) ; | |
| 980 | ||
| 981 | }, | |
| 982 | ||
| 983 | post Processor: function( data, next ){ | |
| 984 | ne xt(); | |
| 985 | } | |
| 986 | }; | |
| 987 | ||
| 988 | api.ac tions.addM iddleware( middleware ); | |
| 989 | next() ; | |
| 990 | } | |
| 991 | }; | |
| 992 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000package/i nitializer s/archive- connection .js\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x00000000644\x00000 001750\x0000000 1750\x000000000 005046\x0000130 51754140\x00000 16220\x0000 0\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000us tar \x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000/****** ********** ********** ********** ********** ********** ********** ****** | |
| 993 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 994 | http://ww w.apexdata solutions. net/ | |
| 995 | ||
| 996 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 997 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 998 | You may o btain a co py of the License at | |
| 999 | ||
| 1000 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 1001 | ||
| 1002 | Unless re quired by applicable law or ag reed to in writing, software | |
| 1003 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 1004 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 1005 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 1006 | limitatio ns under t he License . | |
| 1007 | ||
| 1008 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 1009 | ||
| 1010 | /** | |
| 1011 | * Add con nection mi ddleware t o manage w ebsocket c onnections | |
| 1012 | * used to receive a nd broadca st archive facts | |
| 1013 | */ | |
| 1014 | ||
| 1015 | var mrar = require(' ../lib/mra r'); | |
| 1016 | ||
| 1017 | function l og(api, me ssage) { | |
| 1018 | api.log( "[EHMP-MRA R Services ] " + mess age); | |
| 1019 | } | |
| 1020 | ||
| 1021 | module.exp orts = { | |
| 1022 | startPri ority: 500 0, | |
| 1023 | loadPrio rity: 500 0, | |
| 1024 | ||
| 1025 | initiali ze: functi on(api, ne xt) { | |
| 1026 | ||
| 1027 | api.mr ar = api.m rar || {}; | |
| 1028 | api.mr ar.connect ions = {}; | |
| 1029 | var ad dConnectio n = functi on(connect ion) { | |
| 1030 | api. mrar.conne ctions[con nection.id ] = connec tion; | |
| 1031 | }; | |
| 1032 | ||
| 1033 | var re moveConnec tion = fun ction(conn ection) { | |
| 1034 | dele te api.mra r.connecti ons[connec tion.id]; | |
| 1035 | }; | |
| 1036 | ||
| 1037 | var ha ndleConnec tion = fun ction(conn ection) { | |
| 1038 | addC onnection( connection ); | |
| 1039 | }; | |
| 1040 | ||
| 1041 | var ha ndleDiscon nection = function(c onnection) { | |
| 1042 | ||
| 1043 | if ( connection .markedAsE xited) { | |
| 1044 | re turn; | |
| 1045 | } | |
| 1046 | ||
| 1047 | conn ection.mar kedAsExite d = true; | |
| 1048 | ||
| 1049 | if ( !connectio n.disconne cting && c onnection. mrarArchiv eId && con nection.us erSessionI d) { | |
| 1050 | mr ar.exitSes sion(api.m rar.config uration, a pi.vjs.dat abase, api .mrar.conn ections, c onnection, connectio n.mrarArch iveId, con nection.us erSessionI d, api.log , function (error) { removeConn ection(con nection) } ); | |
| 1051 | } el se { | |
| 1052 | re moveConnec tion(conne ction); | |
| 1053 | } | |
| 1054 | }; | |
| 1055 | ||
| 1056 | var co nnectionMi ddleware = { | |
| 1057 | name : 'connect ion middle ware', | |
| 1058 | prio rity: 1000 , | |
| 1059 | crea te: functi on(connect ion){ | |
| 1060 | if (connecti on.type == = 'websock et') { | |
| 1061 | handleConn ection(con nection); | |
| 1062 | } | |
| 1063 | }, | |
| 1064 | dest roy: funct ion(connec tion) { | |
| 1065 | if (connecti on.type == = 'websock et') { | |
| 1066 | handleDisc onnection( connection ); | |
| 1067 | } | |
| 1068 | } | |
| 1069 | }; | |
| 1070 | ||
| 1071 | api.co nnections. addMiddlew are(connec tionMiddle ware); | |
| 1072 | ||
| 1073 | log(ap i,"connect ions initi alized"); | |
| 1074 | next() ; | |
| 1075 | }, | |
| 1076 | ||
| 1077 | start: f unction(ap i, next){ | |
| 1078 | next() ; | |
| 1079 | }, | |
| 1080 | ||
| 1081 | stop: fu nction(api , next){ | |
| 1082 | next() ; | |
| 1083 | } | |
| 1084 | } | |
| 1085 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000packag e/initiali zers/sessi ons.js\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000000064 4\x00000001750\x0000 0001750\x000000 000003441\x0000 1305175414 0\x0000014305\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000ustar \x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000/*** ********** ********** ********** ********** ********** ********** ********* | |
| 1086 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 1087 | http://ww w.apexdata solutions. net/ | |
| 1088 | ||
| 1089 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 1090 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 1091 | You may o btain a co py of the License at | |
| 1092 | ||
| 1093 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 1094 | ||
| 1095 | Unless re quired by applicable law or ag reed to in writing, software | |
| 1096 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 1097 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 1098 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 1099 | limitatio ns under t he License . | |
| 1100 | ||
| 1101 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 1102 | ||
| 1103 | "use stric t"; | |
| 1104 | ||
| 1105 | module.exp orts = { | |
| 1106 | priority : 1000, | |
| 1107 | initiali ze: functi on(api, ne xt){ | |
| 1108 | ||
| 1109 | api.se ssion = { | |
| 1110 | pref ix: "__ses sion", | |
| 1111 | sess ionExpireT ime: 1000 * 60 * 60 * 500 // s et to 500 hours, as the mrar h as his own timeout m anager | |
| 1112 | }; | |
| 1113 | ||
| 1114 | api.se ssion.fing erprint = function(c onnection) { | |
| 1115 | retu rn connect ion.finger print || c onnection. id; | |
| 1116 | }; | |
| 1117 | ||
| 1118 | api.se ssion.save = functio n(connecti on, next){ | |
| 1119 | var key = api. session.pr efix + "-" + api.ses sion.finge rprint(con nection); | |
| 1120 | var value = co nnection.s ession; | |
| 1121 | api. cache.save (key, valu e, api.ses sion.sessi onExpireTi me, functi on(error, didSave){ | |
| 1122 | ap i.cache.lo ad(key, fu nction(loa dError, sa vedValue){ | |
| 1123 | if(typeof next == "f unction"){ next(load Error, sav edValue); } | |
| 1124 | }) ; | |
| 1125 | }); | |
| 1126 | }; | |
| 1127 | ||
| 1128 | api.se ssion.load = functio n(connecti on, next){ | |
| 1129 | var key = api. session.pr efix + "-" + api.ses sion.finge rprint(con nection); | |
| 1130 | api. cache.load (key, func tion(error , value){ | |
| 1131 | co nnection.s ession = v alue; | |
| 1132 | ne xt(error, value); | |
| 1133 | }); | |
| 1134 | }; | |
| 1135 | ||
| 1136 | next() ; | |
| 1137 | } | |
| 1138 | }; | |
| 1139 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000package /initializ ers/schedu ler.js\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x00000000644 \x00000001750\x00000 001750\x0000000 00004142\x00001 3051754140 \x0000014414\x0000 0 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 ustar \x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000/**** ********** ********** ********** ********** ********** ********** ******** | |
| 1140 | Copyrigh t 2016 Ape x Data Sol utions, LL C. | |
| 1141 | http://ww w.apexdata solutions. net/ | |
| 1142 | ||
| 1143 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 1144 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 1145 | You may o btain a co py of the License at | |
| 1146 | ||
| 1147 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 1148 | ||
| 1149 | Unless re quired by applicable law or ag reed to in writing, software | |
| 1150 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 1151 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 1152 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 1153 | limitatio ns under t he License . | |
| 1154 | ||
| 1155 | ********* ********** ********** ********** ********** ********** ********** ***/ | |
| 1156 | ||
| 1157 | var moment = require ('moment') ; | |
| 1158 | ||
| 1159 | function l og(api, me ssage) { | |
| 1160 | api.log( '[SCHEDULE R] ' + mes sage); | |
| 1161 | } | |
| 1162 | ||
| 1163 | module.exp orts = { | |
| 1164 | startPri ority: 190 00, | |
| 1165 | loadPrio rity: 190 00, | |
| 1166 | ||
| 1167 | initiali ze: functi on(api, ne xt) { | |
| 1168 | next() ; | |
| 1169 | }, | |
| 1170 | ||
| 1171 | start: f unction(ap i, next){ | |
| 1172 | api.mi l = api.mi l || {}; | |
| 1173 | ||
| 1174 | var me tricsExpor t = api.co nfig['ehmp -mrar-serv ices'].con fig.metric sExport; | |
| 1175 | ||
| 1176 | log(ap i, 'Proces s started. ..'); | |
| 1177 | if ( m etricsExpo rt.useSche duler ) if ( metrics Export.sch eduledTime ) { | |
| 1178 | // v alidate th e time fou nd | |
| 1179 | var scheduledT ime = metr icsExport. scheduledT ime.split( ':'); | |
| 1180 | if ( scheduled Time.lengt h < 2 ) { | |
| 1181 | lo g(api, 'Ba d metrics scheduled time found . Ignoring ...') | |
| 1182 | } el se { | |
| 1183 | sc heduledTim e.forEach( function(i x){ | |
| 1184 | scheduledT ime[ix] = parseInt(s cheduledTi me[ix]); | |
| 1185 | if ( sched uledTime[i x].length === 1 ) sc heduledTim e[ix] = '0 ' + schedu ledTime[ix ]; | |
| 1186 | }) ; | |
| 1187 | lo g(api, 'Me trics expo rt schedul ed at: ' + metricsEx port.sched uledTime); | |
| 1188 | ||
| 1189 | se tInterval( function() { | |
| 1190 | var today = moment() ; | |
| 1191 | if ( today .hours() = = schedule dTime[0] & & today.mi nutes() == scheduled Time[1] ) { | |
| 1192 | api.acti ons.action s.exportMe trics[1].r un(api, {} , next); | |
| 1193 | } | |
| 1194 | }, 60 * 1000 ) | |
| 1195 | } | |
| 1196 | } else { | |
| 1197 | log( api, 'Metr ics schedu ler NOT en abled'); | |
| 1198 | } | |
| 1199 | ||
| 1200 | next() ; | |
| 1201 | }, | |
| 1202 | ||
| 1203 | stop: fu nction(api , next){ | |
| 1204 | next() ; | |
| 1205 | } | |
| 1206 | } | |
| 1207 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000packag e/initiali zers/mil-s ervices.js \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000000064 4\x00000001750\x0000 0001750\x000000 000003622\x0000 1305175414 0\x0000015042\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000ustar \x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000/*** ********** ********** ********** ********** ********** ********** ********* | |
| 1208 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 1209 | http://ww w.apexdata solutions. net/ | |
| 1210 | ||
| 1211 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 1212 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 1213 | You may o btain a co py of the License at | |
| 1214 | ||
| 1215 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 1216 | ||
| 1217 | Unless re quired by applicable law or ag reed to in writing, software | |
| 1218 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 1219 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 1220 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 1221 | limitatio ns under t he License . | |
| 1222 | ||
| 1223 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 1224 | ||
| 1225 | /** | |
| 1226 | * Establi sh the mil plugin AP I. | |
| 1227 | * API: ap i.mil.reso lveUrl(ndc ) | |
| 1228 | */ | |
| 1229 | ||
| 1230 | var mil = require('. ./lib/mil/ mil'); | |
| 1231 | ||
| 1232 | function l og(api, me ssage) { | |
| 1233 | api.log( '[MIL Serv ices] ' + message); | |
| 1234 | } | |
| 1235 | ||
| 1236 | module.exp orts = { | |
| 1237 | startPri ority: 600 0, | |
| 1238 | loadPrio rity: 600 0, | |
| 1239 | ||
| 1240 | initiali ze: functi on(api, ne xt) { | |
| 1241 | api.mi l = api.mi l || {}; | |
| 1242 | ||
| 1243 | var mi lServer = api.config ['ehmp-mra r-services '].config. milServer; | |
| 1244 | ||
| 1245 | if (mi lServer) { | |
| 1246 | var baseURL = 'http'; | |
| 1247 | if ( milServer. port !== ' 80' ) base URL = 'htt ps'; | |
| 1248 | base URL = base URL + ':// ' + milSer ver.host + ':' + mil Server.por t; | |
| 1249 | api. mil.resolv eUrl = mil .resolveUr l.bind(und efined, ba seURL); | |
| 1250 | log( api, 'MIL enabled, s erving fro m ' + base URL); | |
| 1251 | if ( milServer .AcceptSel fSignedCer tificates ) { | |
| 1252 | lo g(api, 'MI L processo r is accep ting untru sted certi ficates') | |
| 1253 | } el se { | |
| 1254 | lo g(api, 'MI L processo r is REFUS ING untrus ted certif icates') | |
| 1255 | } | |
| 1256 | } else { | |
| 1257 | api. mil.resolv eUrl = fun ction(ndc, callback) { callbac k(null,{}) ; }; | |
| 1258 | log( api, 'MIL disabled, no MIL Ser vice Endpo int config ured'); | |
| 1259 | } | |
| 1260 | ||
| 1261 | next() ; | |
| 1262 | }, | |
| 1263 | ||
| 1264 | start: f unction(ap i, next){ | |
| 1265 | next() ; | |
| 1266 | }, | |
| 1267 | ||
| 1268 | stop: fu nction(api , next){ | |
| 1269 | next() ; | |
| 1270 | } | |
| 1271 | } | |
| 1272 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 package/in itializers /ehmp-mrar -services. js\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 0000644\x000000 01750\x00000001 750\x0000000000 07422\x00001305 1754140\x000001 6153\x0000 0\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000ust ar \x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000/******* ********** ********** ********** ********** ********** ********** ***** | |
| 1273 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 1274 | http://ww w.apexdata solutions. net/ | |
| 1275 | ||
| 1276 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 1277 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 1278 | You may o btain a co py of the License at | |
| 1279 | ||
| 1280 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 1281 | ||
| 1282 | Unless re quired by applicable law or ag reed to in writing, software | |
| 1283 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 1284 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 1285 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 1286 | limitatio ns under t he License . | |
| 1287 | ||
| 1288 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 1289 | ||
| 1290 | "use stric t"; | |
| 1291 | ||
| 1292 | var path = require(' path'); | |
| 1293 | var _ = re quire("lod ash"); | |
| 1294 | var packag eInfo = re quire('../ package.js on'); | |
| 1295 | ||
| 1296 | var plugin Name = 'eh mp-mrar-se rvices'; | |
| 1297 | ||
| 1298 | function l og(api, me ssage) { | |
| 1299 | api.log( "[EHMP-MRA R Services ] " + mess age); | |
| 1300 | } | |
| 1301 | ||
| 1302 | module.exp orts = { | |
| 1303 | loadPrio rity: 150 0, | |
| 1304 | startPri ority: 150 0, | |
| 1305 | ||
| 1306 | initiali ze: functi on(api, ne xt){ | |
| 1307 | ||
| 1308 | var ro otResource = api.con fig[plugin Name].root Resource; | |
| 1309 | if( ! rootResour ce ) { | |
| 1310 | retu rn next(ne w Error("N o rootReso urce defin ed in conf ig " + plu ginName)); | |
| 1311 | } | |
| 1312 | ||
| 1313 | var ti tle = api. config[plu ginName].t itle; | |
| 1314 | if( ! title ) { | |
| 1315 | retu rn next(ne w Error("N o title de fined in c onfig " + pluginName )); | |
| 1316 | } | |
| 1317 | ||
| 1318 | var se rviceName = api.conf ig[pluginN ame].servi ceName; | |
| 1319 | if( ! serviceNam e ) { | |
| 1320 | retu rn next(ne w Error("N o serviceN ame define d in confi g " + plug inName)); | |
| 1321 | } | |
| 1322 | ||
| 1323 | var de scription = api.conf ig[pluginN ame].descr iption; | |
| 1324 | if( ! descriptio n ) { | |
| 1325 | retu rn next(ne w Error("N o descript ion define d in confi g " + plug inName)); | |
| 1326 | } | |
| 1327 | ||
| 1328 | var ve rsion = pa ckageInfo. version; | |
| 1329 | ||
| 1330 | var co nfig = api .config[pl uginName]. config; | |
| 1331 | if( ! config ) { | |
| 1332 | retu rn next(ne w Error("N o detailed config " + pluginNa me)); | |
| 1333 | } | |
| 1334 | ||
| 1335 | api.mr ar = { | |
| 1336 | conf iguration: config | |
| 1337 | }; | |
| 1338 | ||
| 1339 | // Reg ister Serv ice | |
| 1340 | var se rviceData = { | |
| 1341 | serv iceName : serviceNa me, | |
| 1342 | titl e : title, | |
| 1343 | root Resource : rootResou rce, | |
| 1344 | desc ription : descripti on, | |
| 1345 | vers ion : version, | |
| 1346 | rout ePath : path.reso lve(path.j oin(__dirn ame,"/../r outes/")), | |
| 1347 | need sDynamicRo utes : tru e, | |
| 1348 | getD ynamicRout es : funct ion(swagge r,callback ) { | |
| 1349 | va r restGlob al = api.v js.db.cons tants.glob als.VJSRES T; | |
| 1350 | va r restGlob alMetadata = api.vjs .db.getNam edGlobalMe tadata(res tGlobal); | |
| 1351 | va r restGlob alName = r estGlobalM etadata.gl obal; | |
| 1352 | va r restGlob alSubscrip ts = restG lobalMetad ata.subscr ipts; | |
| 1353 | va r restGlob alNode = a pi.vjs.dat abase.getG lobal(rest GlobalName , restGlob alSubscrip ts); | |
| 1354 | va r result = restGloba lNode.getD ocument(); | |
| 1355 | if (result) { | |
| 1356 | _.forEach( result, fu nction (va lue, key) { | |
| 1357 | try { | |
| 1358 | var rp cSwagger = JSON.pars e(value.po st); | |
| 1359 | swagge r.paths = _.merge(sw agger.path s, rpcSwag ger.paths) ; | |
| 1360 | swagge r.definiti ons = _.me rge(swagge r.definiti ons, rpcSw agger.defi nitions); | |
| 1361 | } catch (ex) { | |
| 1362 | callba ck("Malfor med Swagge r from RPC definitio n."); | |
| 1363 | } | |
| 1364 | }); | |
| 1365 | }; | |
| 1366 | re turn swagg er | |
| 1367 | } | |
| 1368 | }; | |
| 1369 | ||
| 1370 | var re sult = api .vjs.servi ces.regist er(service Data); | |
| 1371 | if( re sult.error ) { | |
| 1372 | retu rn next(ne w Error(re sult.error )); | |
| 1373 | } | |
| 1374 | ||
| 1375 | // Hoo k in the d ynamic rou te endpoin t | |
| 1376 | var fu llPath = ' /' + rootR esource + "/by-name/ :rpcName/c all"; | |
| 1377 | api.ro utes.regis terRoute(" post", ful lPath, "ca llRPCMetho d"); | |
| 1378 | //api. routes.reg isterRoute ("post", ' /' + rootR esource, ' exportMetr ics'); | |
| 1379 | ||
| 1380 | log(ap i,"service initializ ed"); | |
| 1381 | ||
| 1382 | next() ; | |
| 1383 | }, | |
| 1384 | ||
| 1385 | start: f unction(ap i, next){ | |
| 1386 | api.ta sks.enqueu e('exportM etrics',nu ll,'defaul t', functi on(a,b){}) ; | |
| 1387 | ||
| 1388 | next() ; | |
| 1389 | }, | |
| 1390 | ||
| 1391 | stop: fu nction(api , next){ | |
| 1392 | next() ; | |
| 1393 | } | |
| 1394 | };\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 package/li b/\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 0000755\x000000 00000\x00000000 000\x0000000000 00000\x00001305 2061137\x000001 1713\x0000 5\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000ust ar \x0000root\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000roo t\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000package/ lib/model/ \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x00000000755\x0000 0000000\x000000 00000\x00000000 0000000\x000013 052061137\x0000 013013\x0000 5\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000u star \x0000roo t\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000r oot\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000packag e/lib/mode l/reducers /\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000000075 5\x00000000000\x0000 0000000\x000000 000000000\x0000 1305206113 7\x0000014627\x0000 5\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000ustar \x0000r oot\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000root\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000pack age/lib/mo del/reduce rs/index.j s\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x00000000 644\x0000000175 0\x00000001750\x0000 0000000160 1\x000013051754 140\x0000014516 \x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000/* ********** ********** ********** ********** ********** ********** ********** * | |
| 1395 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 1396 | http://ww w.apexdata solutions. net/ | |
| 1397 | ||
| 1398 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 1399 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 1400 | You may o btain a co py of the License at | |
| 1401 | ||
| 1402 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 1403 | ||
| 1404 | Unless re quired by applicable law or ag reed to in writing, software | |
| 1405 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 1406 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 1407 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 1408 | limitatio ns under t he License . | |
| 1409 | ||
| 1410 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 1411 | ||
| 1412 | var redux = require( 'redux'); | |
| 1413 | var state = require( './state') ; | |
| 1414 | ||
| 1415 | var rootRe ducer = re dux.combin eReducers( state); | |
| 1416 | ||
| 1417 | exports.ro ot = rootR educer; | |
| 1418 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000pac kage/lib/m odel/reduc ers/state. js\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000000 0644\x000000017 50\x00000001750 \x0000000000047 33\x00001305175 4140\x000001454 0\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000/ ********** ********** ********** ********** ********** ********** ********** ** | |
| 1419 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 1420 | http://ww w.apexdata solutions. net/ | |
| 1421 | ||
| 1422 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 1423 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 1424 | You may o btain a co py of the License at | |
| 1425 | ||
| 1426 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 1427 | ||
| 1428 | Unless re quired by applicable law or ag reed to in writing, software | |
| 1429 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 1430 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 1431 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 1432 | limitatio ns under t he License . | |
| 1433 | ||
| 1434 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 1435 | ||
| 1436 | var object Assign = r equire('ob ject-assig n'); | |
| 1437 | var action s = requir e('../../c onstants/a ctions'); | |
| 1438 | var MRAR_S ESSION_CRE ATED = act ions.MRAR_ SESSION_CR EATED; | |
| 1439 | var MRAR_S ESSION_CLO SED = acti ons.MRAR_S ESSION_CLO SED; | |
| 1440 | var TIU_NO TE_SIGN_SU CCESS = ac tions.TIU_ NOTE_SIGN_ SUCCESS; | |
| 1441 | var DATA_M EDICATIONS _FETCH_SUC CESS = act ions.DATA_ MEDICATION S_FETCH_SU CCESS; | |
| 1442 | var DATA_A LLERGIES_F ETCH_SUCCE SS = actio ns.DATA_AL LERGIES_FE TCH_SUCCES S; | |
| 1443 | ||
| 1444 | var initia lState = { | |
| 1445 | signed: false, | |
| 1446 | closed: false, | |
| 1447 | medicati onsFetched : false, | |
| 1448 | allergie sFetched: false | |
| 1449 | }; | |
| 1450 | ||
| 1451 | exports.st ate = func tion(state , action) { | |
| 1452 | var curr entState = state || initialSta te; | |
| 1453 | ||
| 1454 | if (!cur rentState. created && (action.t ype != MRA R_SESSION_ CREATED)) { | |
| 1455 | return objectAss ign({}, cu rrentState , { signed : false, c losed: fal se, reason : 'corrupt partial s tream sess ion'}); | |
| 1456 | } | |
| 1457 | ||
| 1458 | switch ( action.typ e) { | |
| 1459 | case M RAR_SESSIO N_CREATED: { | |
| 1460 | var payload = action.pay load; | |
| 1461 | retu rn objectA ssign({}, currentSta te, | |
| 1462 | { | |
| 1463 | patient: p ayload.pat ient, | |
| 1464 | configurat ion: paylo ad.configu ration, | |
| 1465 | created: p ayload.cre ated, | |
| 1466 | archiveId: action.me ta.archive Id, | |
| 1467 | username: payload.us ername, | |
| 1468 | userId: ac tion.meta. userId | |
| 1469 | }) ; | |
| 1470 | } | |
| 1471 | case D ATA_ALLERG IES_FETCH_ SUCCESS: { | |
| 1472 | retu rn objectA ssign({}, currentSta te, { alle rgiesFetch ed: true } ); | |
| 1473 | } | |
| 1474 | case D ATA_MEDICA TIONS_FETC H_SUCCESS: { | |
| 1475 | retu rn objectA ssign({}, currentSta te, { medi cationsFet ched: true }); | |
| 1476 | } | |
| 1477 | case M RAR_SESSIO N_CLOSED: { | |
| 1478 | retu rn objectA ssign({}, currentSta te, { clos ed: true } , {closedD etails: ac tion.paylo ad}); | |
| 1479 | } | |
| 1480 | case T IU_NOTE_SI GN_SUCCESS : { | |
| 1481 | retu rn objectA ssign({}, currentSta te, { sign ed: true, closed: tr ue}); | |
| 1482 | } | |
| 1483 | defaul t: { | |
| 1484 | retu rn curren tState; | |
| 1485 | } | |
| 1486 | } | |
| 1487 | }\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000pa ckage/lib/ model/stor e/\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x000000 00755\x00000000 000\x0000000000 0\x000000000000 000\x0000130520 61137\x00000141 47\x0000 5\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000ustar \x0000root\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000root\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 package/li b/model/st ore/config ureStore.j s\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 0000644\x000000 01750\x00000001 750\x0000000000 01723\x00001305 1754140\x000001 5732\x0000 0\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000ust ar \x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000/******* ********** ********** ********** ********** ********** ********** ***** | |
| 1488 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 1489 | http://ww w.apexdata solutions. net/ | |
| 1490 | ||
| 1491 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 1492 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 1493 | You may o btain a co py of the License at | |
| 1494 | ||
| 1495 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 1496 | ||
| 1497 | Unless re quired by applicable law or ag reed to in writing, software | |
| 1498 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 1499 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 1500 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 1501 | limitatio ns under t he License . | |
| 1502 | ||
| 1503 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 1504 | ||
| 1505 | var redux = require( 'redux'); | |
| 1506 | var reduce rs = requi re('../red ucers'); | |
| 1507 | ||
| 1508 | const fina lCreateSto re = redux .createSto re; | |
| 1509 | ||
| 1510 | exports.cr eate = fun ction(init ialState) { | |
| 1511 | ||
| 1512 | return f inalCreate Store(redu cers.root, initialSt ate || {}) ; | |
| 1513 | } | |
| 1514 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000packa ge/lib/mod el/state.j s\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x000000006 44\x00000001750 \x00000001750\x00000 0000000710 \x0000130517540 72\x0000012717\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000ustar \x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000 | |
| 1515 | var config ureStore = require(' ./store/co nfigureSto re'); | |
| 1516 | var object Assign = r equire('ob ject-assig n'); | |
| 1517 | ||
| 1518 | exports.re nderStatus = functio n(facts) { | |
| 1519 | var stor e = config ureStore.c reate(); | |
| 1520 | facts.fo rEach(func tion(each) { store.d ispatch(ea ch)}); | |
| 1521 | var stat e = store. getState() .state; | |
| 1522 | ||
| 1523 | // initi alized = t rue if MRA R Session creation c ompleted s uccessfull y | |
| 1524 | return o bjectAssig n({}, stat e, { initi alized: st ate.medica tionsFetch ed && stat e.allergie sFetched } ); | |
| 1525 | };\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000pa ckage/lib/ archive.js \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x000000 00644\x00000001 750\x0000000175 0\x000000000016 657\x0000130517 54140\x00000121 35\x0000 0\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 /********* ********** ********** ********** ********** ********** ********** * | |
| 1526 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 1527 | http://ww w.apexdata solutions. net/ | |
| 1528 | ||
| 1529 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 1530 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 1531 | You may o btain a co py of the License at | |
| 1532 | ||
| 1533 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 1534 | ||
| 1535 | Unless re quired by applicable law or ag reed to in writing, software | |
| 1536 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 1537 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 1538 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 1539 | limitatio ns under t he License . | |
| 1540 | ||
| 1541 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 1542 | ||
| 1543 | var clock = require( '../lib/ut il/clock') ; | |
| 1544 | var packag eInfo = re quire('../ package.js on'); | |
| 1545 | var object Assign = r equire('ob ject-assig n'); | |
| 1546 | var moment = require ('moment') ; | |
| 1547 | var helper = require ('./helper '); | |
| 1548 | var source = package Info.name + ' ' + pa ckageInfo. version; | |
| 1549 | var action s = requir e('./const ants/actio ns'); | |
| 1550 | var fs = r equire('fs '); | |
| 1551 | var path = require(' path'); | |
| 1552 | ||
| 1553 | function m etricsLog( api, messa ge) { | |
| 1554 | api.log( '[Metrics Export] ' + message) ; | |
| 1555 | } | |
| 1556 | ||
| 1557 | exports.fi ndRecentAr chives = f unction(co nfiguratio n, databas e, patient Id, ageInH ours) { | |
| 1558 | var lo = moment(). subtract(a geInHours, 'hours'). toISOStrin g(); | |
| 1559 | var hi = moment(). toISOStrin g(); | |
| 1560 | ||
| 1561 | var sess ions = dat abase.getG lobal(conf iguration. globals.MR ARSESSIONS , [patient Id]).findL ist(lo, hi ); | |
| 1562 | return s essions; | |
| 1563 | }; | |
| 1564 | ||
| 1565 | exports.cr eateArchiv e = functi on(configu ration, da tabase, ar chiveId, p atientId, timeStamp, callback) { | |
| 1566 | var setN odeResult = database .getGlobal (configura tion.globa ls.MRARSES SIONS, [ p atientId, timeStamp ]).setValu e(archiveI d); | |
| 1567 | if (!set NodeResult .ok) retur n callback (errors.da tabaseUnab leToSetVal ue('databa se create archive fa iled')); | |
| 1568 | ||
| 1569 | var setC ounterResu lt = datab ase.getGlo bal(config uration.gl obals.MRAR SESSIONS, [ patientI d, timeSta mp, 'facts Counter' ] ).setValue (0); | |
| 1570 | if (!set CounterRes ult.ok) re turn callb ack(errors .databaseU nableToSet Value('dat abase init ialize arc hive count er failed' )); | |
| 1571 | ||
| 1572 | var crea teIndexres ult = data base.getGl obal(confi guration.g lobals.MRA RSESSIONSI X, [ '0', patientId + '^' + ti meStamp ]) .setValue( 0); | |
| 1573 | if (!cre ateIndexre sult.ok) r eturn call back(error s.database UnableToSe tValue('da tabase cre ate index failed')); | |
| 1574 | ||
| 1575 | callback (); | |
| 1576 | }; | |
| 1577 | ||
| 1578 | exports.sa veAction = function( configurat ion, datab ase, actio n, callbac k, UUID) { | |
| 1579 | var meta = action. meta; | |
| 1580 | var arch iveId = me ta.archive Id; | |
| 1581 | archiveP iecesId = archiveId. split('^') ; | |
| 1582 | var time stamp = ar chivePiece sId[2]; | |
| 1583 | var pati entId = ar chivePiece sId[1]; | |
| 1584 | ||
| 1585 | // TODO: the scope of increm ent and se tValue is a critical section a nd should be within a transaci ton | |
| 1586 | var incr ementCount Result = d atabase.ge tGlobal(co nfiguratio n.globals. MRARSESSIO NS, [patie ntId, time stamp, 'fa ctsCounter ']).increm ent(); | |
| 1587 | if (!inc rementCoun tResult.ok ) return c allback(er rors.datab aseUnableT oIncrement ('fact cou nter')); | |
| 1588 | ||
| 1589 | var next RecordId = +incremen tCountResu lt.data; | |
| 1590 | ||
| 1591 | var upda tedMeta = objectAssi gn({}, met a, | |
| 1592 | { | |
| 1593 | stat us: 'fact' , | |
| 1594 | crea ted: meta. created || clock.now (), | |
| 1595 | sour ce: meta.s ource || s ource, | |
| 1596 | arch ived: cloc k.now(), | |
| 1597 | reco rdId: next RecordId | |
| 1598 | } | |
| 1599 | ); | |
| 1600 | ||
| 1601 | var fact = objectA ssign({}, action, {m eta: updat edMeta}); | |
| 1602 | var chun kSize = 40 96; | |
| 1603 | var dbNo de = datab ase.getGlo bal(config uration.gl obals.MRAR SESSIONS, [patientId , timestam p,'facts', nextRecor dId]); | |
| 1604 | if (!dbN ode) retur n callback (errors.da tabaseUnab leToRead(' database u nable to l ocate fact s node')); | |
| 1605 | ||
| 1606 | var valu e = JSON.s tringify(f act); | |
| 1607 | ||
| 1608 | //needs error cont rol | |
| 1609 | if (valu e.length < chunkSize ) { | |
| 1610 | data = value; | |
| 1611 | dbNode .setValue( data); | |
| 1612 | } else { | |
| 1613 | databa se.getGlob al(configu ration.glo bals.MRARS ESSIONS, [ patientId, timestamp ,'facts', nextRecord Id, "VJSLS "]).clear( ); | |
| 1614 | var le gCounter = 0; | |
| 1615 | for (v ar ix = 0; ix < valu e.length; ix += chun kSize) { | |
| 1616 | legC ounter++; | |
| 1617 | data = value.s ubstring(i x, ix + ch unkSize); | |
| 1618 | setF actLegs = database.g etGlobal(c onfigurati on.globals .MRARSESSI ONS, [pati entId, tim estamp,'fa cts', next RecordId, "VJSLS", l egCounter] ).setValue (data); | |
| 1619 | if ( !setFactLe gs.ok) ret urn callba ck(errors. databaseUn ableToSetV alue('savi ng fact le gs')); | |
| 1620 | } | |
| 1621 | } | |
| 1622 | ||
| 1623 | if ( act ion.type = == actions .TIU_NOTE_ SIGN_SUCCE SS ) { | |
| 1624 | var up dateIndexr esult = da tabase.get Global(con figuration .globals.M RARSESSION SIX, [ '0' , archiveP iecesId[1] + '^' + a rchivePiec esId[2] ]) .setValue( 1); | |
| 1625 | if (!u pdateIndex result.ok) return ca llback(err ors.databa seUnableTo SetValue(' database u pdate inde x failed') ); | |
| 1626 | } | |
| 1627 | ||
| 1628 | callback (null, fac t, null, U UID); | |
| 1629 | }; | |
| 1630 | ||
| 1631 | exports.re adFacts = function(c onfigurati on, databa se, archiv eId, callb ack) { | |
| 1632 | var arch ivePiecesI d = archiv eId.split( '^'); | |
| 1633 | var time stamp = ar chivePiece sId[2]; | |
| 1634 | var pati entId = ar chivePiece sId[1]; | |
| 1635 | ||
| 1636 | callback (null, hel per.readFu llArchive( configurat ion, datab ase, patie ntId, time stamp)); | |
| 1637 | }; | |
| 1638 | ||
| 1639 | exports.fi ndMrarSess ionsToExpo rt = funct ion(config uration, d atabase, a pi) { | |
| 1640 | metricsL og(api, "E xport star ted..."); | |
| 1641 | ||
| 1642 | var expo rtList = d atabase.ge tGlobal(co nfiguratio n.globals. MRARSESSIO NSIX, [0]) .findList( '','ZZZ'); | |
| 1643 | ||
| 1644 | var last ValidTime = (moment( ).subtract (configura tion.maxAg eOfSession sToFindInH ours, 'hou rs').toISO String()); | |
| 1645 | if ( exp ortList.le ngth > 0 ) { | |
| 1646 | metric sLog(api, exportList .length + ' sessions found') | |
| 1647 | export List.forEa ch(functio n (value) { | |
| 1648 | var archivePie cesId = va lue.split( '^'); | |
| 1649 | var timestamp = archiveP iecesId[1] ; | |
| 1650 | var patientId = archiveP iecesId[0] ; | |
| 1651 | ||
| 1652 | var closedFlag = databas e.getGloba l(configur ation.glob als.MRARSE SSIONSIX, [0, value] ).getValue (); | |
| 1653 | if ( closedFlag === '1' | | timestam p < lastVa lidTime) { | |
| 1654 | // extract t he data | |
| 1655 | va r facts = helper.rea dFullArchi ve(configu ration, da tabase, pa tientId, t imestamp) | |
| 1656 | va r archive = { | |
| 1657 | session: { | |
| 1658 | patientI d: patient Id, | |
| 1659 | created: moment(ti mestamp).f ormat('MMM DD, YYYY kk:mm'), | |
| 1660 | archiveI d: 'mrar^' + value | |
| 1661 | }, | |
| 1662 | facts: fac ts | |
| 1663 | }; | |
| 1664 | // save to fi le | |
| 1665 | va r exportFi lename = p ath.format ({ | |
| 1666 | dir: confi guration.m etricsExpo rt.exportD irectory, | |
| 1667 | base: valu e.replace( /\^/g, '-' ) + '.json ' | |
| 1668 | }) ; | |
| 1669 | me tricsLog(a pi, 'Expor ting to: ' + exportF ilename); | |
| 1670 | tr y { | |
| 1671 | fs.writeFi leSync(exp ortFilenam e, JSON.st ringify(ar chive)); | |
| 1672 | //flag as exported | |
| 1673 | database.g etGlobal(c onfigurati on.globals .MRARSESSI ONS, [pati entId, tim estamp, 'e xport']).s etValue(mo ment().toI SOString() ); | |
| 1674 | ||
| 1675 | //update i ndex globa l | |
| 1676 | var indexN ode = data base.getGl obal(confi guration.g lobals.MRA RSESSIONSI X, [0, val ue]).getVa lue(); | |
| 1677 | console.lo g('IndexNo de: ' + in dexNode); | |
| 1678 | if (indexN ode !== '' ) { | |
| 1679 | database .getGlobal (configura tion.globa ls.MRARSES SIONSIX, [ 0, value]) .clear(); | |
| 1680 | database .getGlobal (configura tion.globa ls.MRARSES SIONSIX, [ 1, value]) .setValue( '1'); | |
| 1681 | } | |
| 1682 | } catch(e) { | |
| 1683 | metricsLog (api, 'The following error occ urred: ' + e.message ); | |
| 1684 | } | |
| 1685 | ||
| 1686 | } el se { | |
| 1687 | me tricsLog(a pi, 'Sessi on: ' + va lue + ' no t expired and not cl osed...') | |
| 1688 | } | |
| 1689 | }); | |
| 1690 | } else { | |
| 1691 | metric sLog(api, 'Nothing t o do...'); | |
| 1692 | } | |
| 1693 | metricsL og(api, "E xport ende d."); | |
| 1694 | }; | |
| 1695 | ||
| 1696 | exports.ge tDatabaseV ersions = function(d atabase) { | |
| 1697 | var db = {}; | |
| 1698 | ||
| 1699 | db.modul e = databa se.getGlob al('VERSIO N', ['MODU LE']).getV alue(); | |
| 1700 | db.datal oader = da tabase.get Global('VE RSION', [' DATALOADER ']).getVal ue(); | |
| 1701 | db.data = database .getGlobal ('VERSION' , ['DATA'] ).getValue (); | |
| 1702 | db.mumps = databas e.getGloba l('VERSION ', ['MUMPS ']).getVal ue(); | |
| 1703 | ||
| 1704 | return d b; | |
| 1705 | };\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000package /lib/crs/\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x00000000755 \x00000000000\x00000 000000\x0000000 00000000\x00001 3052061137 \x0000012502\x0000 5 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 ustar \x0000ro ot\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 root\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000packa ge/lib/crs /medicatio nsTransfor m.js\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x000000006 44\x00000001750 \x00000001750\x00000 0000020175 \x0000130517541 40\x0000015464\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000ustar \x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000/** ********** ********** ********** ********** ********** ********** ********** | |
| 1706 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 1707 | http://ww w.apexdata solutions. net/ | |
| 1708 | ||
| 1709 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 1710 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 1711 | You may o btain a co py of the License at | |
| 1712 | ||
| 1713 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 1714 | ||
| 1715 | Unless re quired by applicable law or ag reed to in writing, software | |
| 1716 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 1717 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 1718 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 1719 | limitatio ns under t he License . | |
| 1720 | ||
| 1721 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 1722 | ||
| 1723 | /** | |
| 1724 | * Transfo rm federat ed vps-rec onciliatio n-sevices meds resul ts | |
| 1725 | * into de -duplicate d MRAR med s model | |
| 1726 | */ | |
| 1727 | ||
| 1728 | /** | |
| 1729 | Gather med ications f rom local and remote s location s | |
| 1730 | \ / | |
| 1731 | Filter out specific non-VA | |
| 1732 | MRAR-502 | |
| 1733 | (remove re mote Non-V A) | |
| 1734 | (remove lo cal non-VA that are non-ACTIVE -category) | |
| 1735 | \ / | |
| 1736 | Filter out old non-A CT-------- --------IV E-category | |
| 1737 | MRAR-461 F itler old/ Expire/Dis continued | |
| 1738 | (remove no n-ACTIVE-c ategory wh ere OrderD ate older in days th an thresho ld setting ) | |
| 1739 | \ / | |
| 1740 | group meds by (locat ion + D A N P S O U T NUMBER) | |
| 1741 | \ / | |
| 1742 | Reduce dup licates by location to Active- Category o r most rec ent non-Ac tive-categ ory | |
| 1743 | if for eac h group, i f there is an ACTIVE -category one (Can t here be mo re than on e ACTIVE-c ategory on e?) | |
| 1744 | remove a ll non-act ive - MRA R-373 Acti ve status win | |
| 1745 | else | |
| 1746 | remove a ll except most recen t non-acti ve - MRAR- 501 Most R ecent Date | |
| 1747 | \ / | |
| 1748 | Recombine groups | |
| 1749 | \ / | |
| 1750 | List of me dications | |
| 1751 | ||
| 1752 | Medication | |
| 1753 | */ | |
| 1754 | ||
| 1755 | var _ = re quire('lod ash'); | |
| 1756 | var object Assign = r equire('ob ject-assig n'); | |
| 1757 | var helper s = requir e('../util /helpers') ; | |
| 1758 | var moment = require ('moment') ; | |
| 1759 | var trimTi me = helpe rs.trimTim e; | |
| 1760 | var conver tEndpointT oSource = require('. /helpers') .convertEn dpointToSo urce; | |
| 1761 | var standa rdDateMome nt = helpe rs.standar dDateMomen t; | |
| 1762 | var standa rdDateTime Moment = h elpers.sta ndardDateT imeMoment; | |
| 1763 | ||
| 1764 | var isActi veCategory = functio n(status) { | |
| 1765 | var acti veStatus = ['ACTIVE' , 'SUSPEND ED', 'HOLD ', 'PROVID ER HOLD']; | |
| 1766 | return a ctiveStatu s.indexOf( status) != = -1; | |
| 1767 | } | |
| 1768 | ||
| 1769 | var isNonA ctiveCateg ory = func tion(statu s) { | |
| 1770 | return s tatus && ( status.ind exOf('DISC ONTINUE') !== -1) || (status = == 'EXPIRE D'); | |
| 1771 | } | |
| 1772 | ||
| 1773 | var medica tionCutoff Date = fun ction(now, threshold ) { | |
| 1774 | return now.add(( threshold || 180) * -1, 'days' ); | |
| 1775 | }; | |
| 1776 | ||
| 1777 | var exclud eRemoteNon VaFilter = function( medication ) { | |
| 1778 | return ! medication .source.lo cal && med ication.ty pe === 'N' ; | |
| 1779 | }; | |
| 1780 | ||
| 1781 | var exclud eLocalNonV aNonActive CategoryFi lter = fun ction(medi cation) { | |
| 1782 | return m edication. source.loc al && (med ication.ty pe === 'N' ) && isNon ActiveCate gory(medic ation.stat us); | |
| 1783 | } | |
| 1784 | ||
| 1785 | var exclud eOldNonAct iveCategor yFilter = function(m edication, cutoffDat e) { | |
| 1786 | return i sNonActive Category(m edication. status) && (standard DateMoment (medicatio n.issueDat e) < cutof fDate ); | |
| 1787 | }; | |
| 1788 | ||
| 1789 | var filter Medication s = functi on (medica tions, loc alExpiredD iscontinue dFilterThr eshold) { | |
| 1790 | var now = moment() ; | |
| 1791 | var oldC utoffDate = medicati onCutoffDa te(now, lo calExpired Discontinu edFilterTh reshold); | |
| 1792 | ||
| 1793 | return _ .filter(me dications, function( each) { | |
| 1794 | retu rn !(exclu deRemoteNo nVaFilter( each) | |
| 1795 | || excludeLo calNonVaNo nActiveCat egoryFilte r(each) | |
| 1796 | || excludeOl dNonActive CategoryFi lter(each, oldCutoff Date)); | |
| 1797 | }); | |
| 1798 | }; | |
| 1799 | ||
| 1800 | var conver tPendingOu tpatientMe dicationOr der = func tion(vpsPe ndingOrder , source) { | |
| 1801 | ||
| 1802 | return { | |
| 1803 | id: vp sPendingOr der.uid, | |
| 1804 | source : source, | |
| 1805 | produc t: vpsPend ingOrder.d rug, | |
| 1806 | sig: v psPendingO rder.instr uctions, | |
| 1807 | status : vpsPendi ngOrder.st atus, | |
| 1808 | schedu le: vpsPen dingOrder. schedule, | |
| 1809 | dateTi meOrdered: vpsPendin gOrder.dat eTimeOrder ed, | |
| 1810 | type: vpsPending Order.type | |
| 1811 | }; | |
| 1812 | }; | |
| 1813 | ||
| 1814 | var conver tNonVaMedi cation = f unction(vp sNonVaMedi cation, so urce) { | |
| 1815 | ||
| 1816 | return { | |
| 1817 | id: vp sNonVaMedi cation.uid , | |
| 1818 | source : source, | |
| 1819 | produc t: vpsNonV aMedicatio n.drug, | |
| 1820 | sig: v psNonVaMed ication.in structions , | |
| 1821 | status : vpsNonVa Medication .status, | |
| 1822 | type: vpsNonVaMe dication.t ype | |
| 1823 | }; | |
| 1824 | }; | |
| 1825 | ||
| 1826 | var sortPo stFills = function(a , b) { | |
| 1827 | // by fi llDate w/t ie breaker being rel easedDateT ime | |
| 1828 | var aDat e = standa rdDateMome nt(a.fillD ate); | |
| 1829 | var bDat e = standa rdDateMome nt(b.fillD ate); | |
| 1830 | ||
| 1831 | if (aDat e.isSame(b Date)) { | |
| 1832 | if (a. releasedDa teTime && b.released DateTime) { | |
| 1833 | var aDateTime = standard DateTimeMo ment(a.rel easedDateT ime); | |
| 1834 | var bDateTime = standard DateTimeMo ment(b.rel easedDateT ime); | |
| 1835 | retu rn aDateTi me.isBefor e(bDateTim e) ? -1 : 1; | |
| 1836 | } else { | |
| 1837 | retu rn a.relea sedDateTim e ? 1 : -1 ; | |
| 1838 | } | |
| 1839 | } else { | |
| 1840 | return aDate.isBe fore(bDate ) ? -1 : 1 ; | |
| 1841 | } | |
| 1842 | }; | |
| 1843 | ||
| 1844 | var conver tFindLastO utpatientF ill = func tion(vpsOu tpatientMe dication) { | |
| 1845 | var refi lls = _.ma p(vpsOutpa tientMedic ation.refi lls || [], function( each) { | |
| 1846 | return { | |
| 1847 | days Supply: ea ch.daysSup ply, | |
| 1848 | quan tity: each .qty, | |
| 1849 | disp ensedDate: trimTime( each.dispe nsedDate), | |
| 1850 | disp enseUnit: vpsOutpati entMedicat ion.dispen seUnit, | |
| 1851 | rele asedDateTi me: each.r eleasedDat eTime, | |
| 1852 | fill Date: trim Time(each. refillDate ), | |
| 1853 | stag e: 'R' | |
| 1854 | }; | |
| 1855 | }) | |
| 1856 | ||
| 1857 | var part ialFills = _.map(vps Outpatient Medication .partialFi lls || [], function( each) { | |
| 1858 | return { | |
| 1859 | days Supply: ea ch.daysSup ply, | |
| 1860 | quan tity: each .qty, | |
| 1861 | disp ensedDate: trimTime( each.dispe nsedDate), | |
| 1862 | disp enseUnit: vpsOutpati entMedicat ion.dispen seUnit, | |
| 1863 | rele asedDateTi me: each.r eleasedDat eTime, | |
| 1864 | fill Date: trim Time(each. partialDat e), | |
| 1865 | stag e: 'P' | |
| 1866 | }; | |
| 1867 | }); | |
| 1868 | ||
| 1869 | var orig inalFill = { | |
| 1870 | daysSu pply: vpsO utpatientM edication. daysSupply , | |
| 1871 | quanti ty: vpsOut patientMed ication.qt y, | |
| 1872 | dispen sedDate: t rimTime(vp sOutpatien tMedicatio n.dispense dDate), | |
| 1873 | dispen seUnit: vp sOutpatien tMedicatio n.dispense Unit, | |
| 1874 | fillDa te: trimTi me(vpsOutp atientMedi cation.fil lDate), | |
| 1875 | releas edDateTime : vpsOutpa tientMedic ation.rele asedDateTi me, | |
| 1876 | stage: 'O' | |
| 1877 | }; | |
| 1878 | ||
| 1879 | var fill s = _.conc at(origina lFill, ref ills, part ialFills); | |
| 1880 | ||
| 1881 | return _ .last(fill s.sort(sor tPostFills )); | |
| 1882 | }; | |
| 1883 | ||
| 1884 | var conver tOutpatien tMedicatio n = functi on(vpsOutp atientMedi cation, so urce) { | |
| 1885 | ||
| 1886 | return { | |
| 1887 | id: vp sOutpatien tMedicatio n.uid, | |
| 1888 | source : source, | |
| 1889 | produc t: vpsOutp atientMedi cation.pro duct, | |
| 1890 | produc tId: vpsOu tpatientMe dication.p roductId, | |
| 1891 | ndc: findNdcInV psMedicati on(vpsOutp atientMedi cation), | |
| 1892 | issueD ate: vpsOu tpatientMe dication.i ssueDate, | |
| 1893 | sig: v psOutpatie ntMedicati on.sig, | |
| 1894 | type: vpsOutpati entMedicat ion.type, | |
| 1895 | status : vpsOutpa tientMedic ation.stat us, | |
| 1896 | provid erName: vp sOutpatien tMedicatio n.provider Name, | |
| 1897 | number OfRefills: vpsOutpat ientMedica tion.numbe rOfRefills , | |
| 1898 | refill sRemaining : vpsOutpa tientMedic ation.refi llsRemaini ng, | |
| 1899 | nextPo ssibleFill : vpsOutpa tientMedic ation.next PossibleFi ll, | |
| 1900 | lastFi ll: conver tFindLastO utpatientF ill(vpsOut patientMed ication) | |
| 1901 | }; | |
| 1902 | }; | |
| 1903 | ||
| 1904 | var conver tVpsMedica tionsToMed ications = function( endpoints, federated VpsVeteran sServiceMe dications, loginStat ionID) { | |
| 1905 | var medi cations = []; | |
| 1906 | ||
| 1907 | _.forEac h(federate dVpsVetera nsServiceM edications , function (vistaResp onse) { | |
| 1908 | var so urce = con vertEndpoi ntToSource (endpoints , vistaRes ponse.endp oint, logi nStationID ); | |
| 1909 | var da ta = vista Response.d ata; | |
| 1910 | // TOD O: Remove null check after err or respons e handling is implem ented | |
| 1911 | if (da ta) { | |
| 1912 | _.fo rEach(data .outpatien t, functio n(each) { medication s.push(con vertOutpat ientMedica tion(each, source)) }); | |
| 1913 | _.fo rEach(data .nonVA, fu nction(eac h) { medic ations.pus h(convertN onVaMedica tion(each, source)) }); | |
| 1914 | _.fo rEach(data .pendingOu tpatientOr der, funct ion(each) { medicati ons.push(c onvertPend ingOutpati entMedicat ionOrder(e ach, sourc e)) }); | |
| 1915 | } | |
| 1916 | }); | |
| 1917 | ||
| 1918 | return m edications ; | |
| 1919 | } | |
| 1920 | ||
| 1921 | var findNd cInVpsMedi cation = f unction(me dication) { | |
| 1922 | ||
| 1923 | if (medi cation.typ e === 'O' && medicat ion.cmop & & medicati on.cmop.le ngth > 0) { | |
| 1924 | var mostRecent Event = _. last(medic ation.cmop .sort(func tion(a, b) { return (+a.rxIndi cator) > ( +b.rxIndic ator); })) ; | |
| 1925 | if ( (mostRecen tEvent && mostRecent Event.stat us === 'DI SPENSED') && mostRec entEvent.n dcReceived ) { | |
| 1926 | re turn mostR ecentEvent .ndcReceiv ed.split(' -').join(' '); | |
| 1927 | } | |
| 1928 | } | |
| 1929 | ||
| 1930 | return n ull; | |
| 1931 | } | |
| 1932 | ||
| 1933 | exports.tr ansform = function(e ndpoints, vpsVeteran sServiceMe dicationsB ySource, l oginStatio nID) { | |
| 1934 | var medi cations = convertVps Medication sToMedicat ions(endpo ints, vpsV eteransSer viceMedica tionsBySou rce, login StationID) ; | |
| 1935 | ||
| 1936 | return { | |
| 1937 | medica tions: fil terMedicat ions(medic ations) | |
| 1938 | }; | |
| 1939 | } | |
| 1940 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000pac kage/lib/c rs/helpers .js\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000000 0644\x000000017 50\x00000001750 \x0000000000025 43\x00001305175 4140\x000001273 2\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000/ ********** ********** ********** ********** ********** ********** ********** ** | |
| 1941 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 1942 | http://ww w.apexdata solutions. net/ | |
| 1943 | ||
| 1944 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 1945 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 1946 | You may o btain a co py of the License at | |
| 1947 | ||
| 1948 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 1949 | ||
| 1950 | Unless re quired by applicable law or ag reed to in writing, software | |
| 1951 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 1952 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 1953 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 1954 | limitatio ns under t he License . | |
| 1955 | ||
| 1956 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 1957 | ||
| 1958 | /** | |
| 1959 | * Helper functions for transf orm featur es | |
| 1960 | */ | |
| 1961 | ||
| 1962 | // Convert a federat or endpoin t response to an MRA R source o bject | |
| 1963 | var conver tEndpointT oSource = function(e ndpoints, endpoint, loginStati onID) { | |
| 1964 | // look up endpoin t | |
| 1965 | endpoint s.forEach( function(o bj) { if ( endpoint. stationID === obj.si teID && ob j.site !== obj.siteN ame ) endp oint.siteN ame = obj. siteName; }); | |
| 1966 | ||
| 1967 | return { | |
| 1968 | "type" : "vista", | |
| 1969 | "locat ion": endp oint.siteN ame, | |
| 1970 | "locat ionId": en dpoint.sta tionID, | |
| 1971 | "local ": endpoin t.stationI D.toString () === log inStationI D.toString () | |
| 1972 | }; | |
| 1973 | }; | |
| 1974 | ||
| 1975 | module.exp orts = { | |
| 1976 | convertE ndpointToS ource: con vertEndpoi ntToSource | |
| 1977 | } | |
| 1978 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000pac kage/lib/c rs/allergi esTransfor m.js\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000000 0644\x000000017 50\x00000001750 \x0000000000102 14\x00001305175 4140\x000001512 5\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000/ ********** ********** ********** ********** ********** ********** ********** ** | |
| 1979 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 1980 | http://ww w.apexdata solutions. net/ | |
| 1981 | ||
| 1982 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 1983 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 1984 | You may o btain a co py of the License at | |
| 1985 | ||
| 1986 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 1987 | ||
| 1988 | Unless re quired by applicable law or ag reed to in writing, software | |
| 1989 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 1990 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 1991 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 1992 | limitatio ns under t he License . | |
| 1993 | ||
| 1994 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 1995 | ||
| 1996 | /** | |
| 1997 | * Transfo rm federat ed vps-rec onciliatio n-sevices allergies results | |
| 1998 | * into de -duplicate d MRAR all ergies mod el | |
| 1999 | */ | |
| 2000 | ||
| 2001 | var _ = re quire('lod ash'); | |
| 2002 | var moment = require ('moment') ; | |
| 2003 | var object Assign = r equire('ob ject-assig n'); | |
| 2004 | var helper s = requir e('../util /helpers') ; | |
| 2005 | var conver tEndpointT oSource = require('. /helpers') .convertEn dpointToSo urce; | |
| 2006 | var standa rdDateMome nt = helpe rs.standar dDateMomen t; | |
| 2007 | var standa rdDateTime Moment = h elpers.sta ndardDateT imeMoment; | |
| 2008 | ||
| 2009 | // Answer the allerg y assessme nt for the local sit e if there is an ass essment | |
| 2010 | var resolv eLocalAsse ssment = f unction re solveLocal Assessment (allergies BySource) { | |
| 2011 | ||
| 2012 | var loca l = _.find (allergies BySource, function(e ach) { ret urn each.s ource.loca l; }); | |
| 2013 | return l ocal ? loc al.localAs sessment : ''; | |
| 2014 | }; | |
| 2015 | ||
| 2016 | // Answer an object with bucke ts of alle rgies keye d by causa tive agent name | |
| 2017 | var groupB yCausative Agent = fu nction(all ergiesBySo urce) { | |
| 2018 | var byCa usativeAge ntBuckets = {}; | |
| 2019 | ||
| 2020 | _.forEac h(allergie sBySource, function( data) { | |
| 2021 | _.forE ach(data.a llergies, function(a llergy) { | |
| 2022 | var bucket = b yCausative AgentBucke ts[allergy .causative AgentName] || (byCau sativeAgen tBuckets[a llergy.cau sativeAgen tName] = [ ]); | |
| 2023 | alle rgy.source = data.so urce; | |
| 2024 | buck et.push(al lergy); | |
| 2025 | }); | |
| 2026 | }); | |
| 2027 | ||
| 2028 | return b yCausative AgentBucke ts; | |
| 2029 | }; | |
| 2030 | ||
| 2031 | ||
| 2032 | var dedupl icateAller gies = fun ction(alle rgiesBySou rce) { | |
| 2033 | var byCa usativeAge ntBuckets = _.values (groupByCa usativeAge nt(allergi esBySource )); | |
| 2034 | ||
| 2035 | return _ .flatten(b yCausative AgentBucke ts); | |
| 2036 | }; | |
| 2037 | ||
| 2038 | var conver tVpsAllerg yDataToMra rAllergyDa ta = funct ion(endpoi nts, vpsVe teransServ iceAllergi esBySource , loginSta tionID) { | |
| 2039 | ||
| 2040 | return _.map(vpsV eteransSer viceAllerg iesBySourc e, functio n(vistaRes ponse) { | |
| 2041 | var source = c onvertEndp ointToSour ce(endpoin ts, vistaR esponse.en dpoint, lo ginStation ID); | |
| 2042 | if ( vistaRespo nse.error) { | |
| 2043 | return { | |
| 2044 | source: source, | |
| 2045 | error: v istaRespon se.error | |
| 2046 | }; | |
| 2047 | } el se if (vis taResponse .data) { | |
| 2048 | va r data = v istaRespon se.data; | |
| 2049 | va r assessme nt = data. assessment || ''; | |
| 2050 | va r allergie s = _.map( data.aller gies, func tion(each) { return convertVps AllergyToM rarAllergy (each); }) ; | |
| 2051 | ||
| 2052 | re turn { | |
| 2053 | source: so urce, | |
| 2054 | assessment : assessme nt, | |
| 2055 | allergies: allergies | |
| 2056 | }; | |
| 2057 | } | |
| 2058 | }); | |
| 2059 | }; | |
| 2060 | ||
| 2061 | var conver tVpsAllerg yToMrarAll ergy = fun ction(vpsA llergy) { | |
| 2062 | // occur rence | |
| 2063 | var occu rrence = { }; | |
| 2064 | var isHi storical = vpsAllerg y.historic al === 'tr ue'; | |
| 2065 | var isOb served = v psAllergy. observed = == 'true'; | |
| 2066 | occurren ce.classif ication = isHistoric al ? 'hist orical' : (isObserve d ? 'obser ved' : '') ; | |
| 2067 | if (isOb served) { | |
| 2068 | var sorter = f unction(le ft, right) { return standardDa teTimeMome nt(left.da teTime).is Before(sta ndardDateT imeMoment( right.date Time)) ? - 1 : 1; }; | |
| 2069 | var sorted = v psAllergy. observedDa teTimes.so rt(sorter) ; | |
| 2070 | occu rrence.dat e = sorted .length ? _.last(sor ted).dateT ime : null ; | |
| 2071 | } | |
| 2072 | ||
| 2073 | // sympt oms | |
| 2074 | var symp toms = _.m ap(vpsAlle rgy.reacti ons, funct ion(each) { return { name: eac h.name };} ); | |
| 2075 | ||
| 2076 | return { | |
| 2077 | id: vp sAllergy.u id, | |
| 2078 | docume ntationDat e: vpsAlle rgy.origin ationDateT ime, | |
| 2079 | causat iveAgentNa me: vpsAll ergy.causa tiveAgentN ame, | |
| 2080 | occurr ence: occu rrence, | |
| 2081 | sympto ms: sympto ms | |
| 2082 | }; | |
| 2083 | }; | |
| 2084 | ||
| 2085 | var transf orm = func tion(endpo ints, vpsA llergiesBy Source, lo ggedInStat ionID) { | |
| 2086 | var alle rgiesBySou rce = conv ertVpsAlle rgyDataToM rarAllergy Data(endpo ints, vpsA llergiesBy Source, lo ggedInStat ionID); | |
| 2087 | ||
| 2088 | return { | |
| 2089 | allerg iesBySourc e: allergi esBySource | |
| 2090 | }; | |
| 2091 | } | |
| 2092 | ||
| 2093 | exports.tr ansform = transform ; | |
| 2094 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000package/ lib/mil/\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x00000000755\x0000 0000000\x000000 00000\x00000000 0000000\x000013 052061137\x0000 012474\x0000 5\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000u star \x0000roo t\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000r oot\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000packag e/lib/mil/ mil.js\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000000064 4\x00000001750\x0000 0001750\x000000 000004010\x0000 1305175414 0\x0000012032\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000ustar \x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000/*** ********** ********** ********** ********** ********** ********** ********* | |
| 2095 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 2096 | http://ww w.apexdata solutions. net/ | |
| 2097 | ||
| 2098 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 2099 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 2100 | You may o btain a co py of the License at | |
| 2101 | ||
| 2102 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 2103 | ||
| 2104 | Unless re quired by applicable law or ag reed to in writing, software | |
| 2105 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 2106 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 2107 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 2108 | limitatio ns under t he License . | |
| 2109 | ||
| 2110 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 2111 | ||
| 2112 | /** | |
| 2113 | * Dispatc h to MIL S ervices to resolve a vailable i mage URL's for | |
| 2114 | * a given NDC. | |
| 2115 | */ | |
| 2116 | ||
| 2117 | "use stric t"; | |
| 2118 | ||
| 2119 | var reques t = requir e('request '); | |
| 2120 | /** | |
| 2121 | * Answer the availa ble urls f or the giv en ndc wit h the foll owing | |
| 2122 | * structu re: | |
| 2123 | * urls: { | |
| 2124 | * origi nal: | |
| 2125 | * 40: | |
| 2126 | * 120: | |
| 2127 | */ | |
| 2128 | exports.re solveUrl = function( baseURL, a pi, ndc, c allback) { | |
| 2129 | var milS erver = ap i.config[' ehmp-mrar- services'] .config.mi lServer; | |
| 2130 | ||
| 2131 | if ( mil Server && milServer. AcceptSelf SignedCert ificates ) { | |
| 2132 | proces s.env.NODE _TLS_REJEC T_UNAUTHOR IZED = '0' ; | |
| 2133 | proces s.env.NODE _TLS_ACCEP T_UNTRUSTE D_CERTIFIC ATES_THIS_ IS_INSECUR E = '1'; | |
| 2134 | } | |
| 2135 | ||
| 2136 | var meta DataEndpoi nt = '/mil /ndc/' + n dc; | |
| 2137 | ||
| 2138 | var opti ons = { | |
| 2139 | method : 'GET', | |
| 2140 | url: b aseURL + m etaDataEnd point, | |
| 2141 | json: {} | |
| 2142 | }; | |
| 2143 | ||
| 2144 | function extendRel ativePath( path) { | |
| 2145 | return path ? ba seURL + pa th : null; | |
| 2146 | }; | |
| 2147 | ||
| 2148 | request( options, f unction (e rror, resp onse, resu lt) { | |
| 2149 | if (er ror) retur n callback ({ message : 'Request to MIL en dpoint fai led', erro r: error } ); | |
| 2150 | var me taData = r esult; | |
| 2151 | var ur ls = {}; | |
| 2152 | if (me taData.med Image) { | |
| 2153 | urls .original= extendRela tivePath(m etaData.me dImage.ori ginal); | |
| 2154 | urls .thumb40=e xtendRelat ivePath(me taData.med Image.thum b40); | |
| 2155 | urls .thumb120= extendRela tivePath(m etaData.me dImage.thu mb120); | |
| 2156 | } | |
| 2157 | callba ck(null, { urls: urls }); | |
| 2158 | }); | |
| 2159 | } | |
| 2160 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000packag e/lib/mrar .js\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000000064 4\x00000001750\x0000 0001750\x000000 000033360\x0000 1305175414 0\x0000011443\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000ustar \x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000/*** ********** ********** ********** ********** ********** ********** ********* | |
| 2161 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 2162 | http://ww w.apexdata solutions. net/ | |
| 2163 | ||
| 2164 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 2165 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 2166 | You may o btain a co py of the License at | |
| 2167 | ||
| 2168 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 2169 | ||
| 2170 | Unless re quired by applicable law or ag reed to in writing, software | |
| 2171 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 2172 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 2173 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 2174 | limitatio ns under t he License . | |
| 2175 | ||
| 2176 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 2177 | ||
| 2178 | var _ = re quire('lod ash'); | |
| 2179 | var archiv e = requir e('./archi ve'); | |
| 2180 | var clock = require( './util/cl ock'); | |
| 2181 | var realti me = requi re('./real time'); | |
| 2182 | var moment = require ('moment') ; | |
| 2183 | var errors = require ('./errors '); | |
| 2184 | var object Assign = r equire('ob ject-assig n'); | |
| 2185 | var federa tor = requ ire('./uti l/federato r'); | |
| 2186 | var helper s = requir e('./util/ helpers'); | |
| 2187 | var render Status = r equire('./ model/stat e').render Status; | |
| 2188 | var allerg iesTransfo rmer = req uire('./cr s/allergie sTransform '); | |
| 2189 | var medica tionsTrans former = r equire('./ crs/medica tionsTrans form'); | |
| 2190 | var action s = requir e('./const ants/actio ns'); | |
| 2191 | ||
| 2192 | var statio nIdWithIen = functio n(stationI d, ien) { | |
| 2193 | return s tationId + '+' + ien ; | |
| 2194 | }; | |
| 2195 | ||
| 2196 | var statio nIdFromId = function (id) { | |
| 2197 | return i d.split('+ ')[0]; | |
| 2198 | }; | |
| 2199 | ||
| 2200 | var ienFro mId = func tion(id) { | |
| 2201 | return i d.split('+ ')[1]; | |
| 2202 | }; | |
| 2203 | ||
| 2204 | var readSe ssion = fu nction(con figuration , database , archiveI d, callbac k) { | |
| 2205 | archive. readFacts( configurat ion, datab ase, archi veId, func tion(error , facts) { | |
| 2206 | callba ck(error, !error && renderStat us(facts)) ; | |
| 2207 | }); | |
| 2208 | }; | |
| 2209 | ||
| 2210 | var initia lizeAllerg yData = fu nction(end points, co nfiguratio n, databas e, session , patientI d, loggedI nStationId , archiveI d, callbac k) { | |
| 2211 | var UUID = helpers .createUUI D(); | |
| 2212 | ||
| 2213 | var fact _DATA_ALLE RGIES_FETC H = { | |
| 2214 | type: actions.DA TA_ALLERGI ES_FETCH, | |
| 2215 | payloa d: { | |
| 2216 | grou pFactId: U UID, | |
| 2217 | pati entId: pat ientId | |
| 2218 | }, | |
| 2219 | meta: { | |
| 2220 | arch iveId: arc hiveId | |
| 2221 | } | |
| 2222 | }; | |
| 2223 | ||
| 2224 | var hand leAllergyF etchFailur e = functi on(failure Error, fai lureDebugI nfo) { | |
| 2225 | var fa ct = { | |
| 2226 | type : actions. DATA_ALLER GIES_FETCH _FAILED, | |
| 2227 | erro r: failure Error, | |
| 2228 | meta : {archive Id: archiv eId} | |
| 2229 | }; | |
| 2230 | ||
| 2231 | archiv e.saveActi on(configu ration, da tabase, fa ct, functi on(error, result, de bugInfo) { | |
| 2232 | if ( error) { | |
| 2233 | re turn callb ack(error, result, d ebugInfo); | |
| 2234 | } | |
| 2235 | ||
| 2236 | var exitFact = { | |
| 2237 | ty pe: action s.MRAR_SES SION_CLOSE D, | |
| 2238 | pa yload: { | |
| 2239 | r eason: 'fe derator-ca ll-unsucce ssful', | |
| 2240 | d etails: { | |
| 2241 | error: fai lureError, | |
| 2242 | debugInfo: failureDe bugInfo | |
| 2243 | } | |
| 2244 | }, | |
| 2245 | me ta: { arch iveId: arc hiveId } | |
| 2246 | }; | |
| 2247 | ||
| 2248 | arch ive.saveAc tion(confi guration, database, incomplete DataExitFa ct, callba ck); | |
| 2249 | }); | |
| 2250 | }; | |
| 2251 | ||
| 2252 | var hand leAllergyF etchSucces s = functi on(getAlle rgiesResul t, UUID) { | |
| 2253 | var ca llErrors = federator .federated CallErrors (getAllerg iesResult) ; | |
| 2254 | var fa ct = callE rrors.leng th ? { | |
| 2255 | ty pe: action s.DATA_ALL ERGIES_FET CH_FAILED, | |
| 2256 | pa yload: { | |
| 2257 | groupFactI d: UUID, | |
| 2258 | code: 'inc omplete-da ta-allergi es', | |
| 2259 | details: { errors: _ .map(callE rrors, fun ction(each ) { return { message : each.err or, endpoi nt: each.e ndpoint}}) } | |
| 2260 | }, | |
| 2261 | me ta: {archi veId: arch iveId} | |
| 2262 | } | |
| 2263 | : { | |
| 2264 | ty pe: action s.DATA_ALL ERGIES_FET CH_SUCCESS , | |
| 2265 | pa yload: obj ectAssign( {}, {group FactId: UU ID}, aller giesTransf ormer.tran sform(endp oints, get AllergiesR esult, log gedInStati onId)), | |
| 2266 | me ta: {archi veId: arch iveId} | |
| 2267 | }; | |
| 2268 | ||
| 2269 | archiv e.saveActi on(configu ration, da tabase, fa ct, functi on(error, result, de bugInfo) { | |
| 2270 | if ( fact.type === action s.DATA_ALL ERGIES_FET CH_FAILED) { | |
| 2271 | va r exitFact = { | |
| 2272 | type: acti ons.MRAR_S ESSION_CLO SED, | |
| 2273 | payload: { | |
| 2274 | reason: fact.paylo ad.code, | |
| 2275 | details: fact.payl oad.detail s | |
| 2276 | }, | |
| 2277 | meta: { ar chiveId: a rchiveId } | |
| 2278 | }; | |
| 2279 | ar chive.save Action(con figuration , database , exitFact , callback ); | |
| 2280 | } el se { | |
| 2281 | ca llback(err or, result , debugInf o); | |
| 2282 | } | |
| 2283 | }); | |
| 2284 | }; | |
| 2285 | ||
| 2286 | var hand leGetAller gies = fun ction(erro r, result, debugInfo , UUID) { | |
| 2287 | error | |
| 2288 | ? hand leAllergyF etchFailur e(error, d ebugInfo, UUID) | |
| 2289 | : hand leAllergyF etchSucces s(result, UUID); | |
| 2290 | }; | |
| 2291 | ||
| 2292 | archive. saveAction (configura tion, data base, fact _DATA_ALLE RGIES_FETC H, functio n(error, r esult, deb ugInfo, UU ID) { | |
| 2293 | if (er ror) retur n callback (error, re sult, debu gInfo); | |
| 2294 | var df n = ienFro mId(patien tId); | |
| 2295 | federa tor.getAll ergies(con figuration , session, dfn, hand leGetAller gies, UUID ); | |
| 2296 | }, UUID) ; | |
| 2297 | } | |
| 2298 | ||
| 2299 | var initia lizeMedica tionsData = function (endpoints , configur ation, dat abase, ses sion, pati entId, log gedInStati onId, arch iveId, cal lback) { | |
| 2300 | var UUID = helpers .createUUI D(); | |
| 2301 | ||
| 2302 | var fact _DATA_MEDI CATIONS_FE TCH = { | |
| 2303 | type: actions.DA TA_MEDICAT IONS_FETCH , | |
| 2304 | payloa d: { | |
| 2305 | grou pFactId: U UID, | |
| 2306 | pati entId: pat ientId | |
| 2307 | }, | |
| 2308 | meta: { | |
| 2309 | arch iveId: arc hiveId | |
| 2310 | } | |
| 2311 | }; | |
| 2312 | ||
| 2313 | var hand leGetMedic ations = f unction(er ror, resul t, debugIn fo, UUID) { | |
| 2314 | var fa ct = { | |
| 2315 | type : error ? actions.D ATA_MEDICA TIONS_FETC H_FAILURE : actions. DATA_MEDIC ATIONS_FET CH_SUCCESS , | |
| 2316 | payl oad: error ? null : objectAssi gn({},{ gr oupFactId: UUID }, m edications Transforme r.transfor m(endpoint s, result, loggedInS tationId) ), | |
| 2317 | erro r: error, | |
| 2318 | meta : { archiv eId: archi veId } | |
| 2319 | }; | |
| 2320 | ||
| 2321 | archiv e.saveActi on(configu ration, da tabase, fa ct, callba ck, UUID); | |
| 2322 | }; | |
| 2323 | ||
| 2324 | archive. saveAction (configura tion, data base, fact _DATA_MEDI CATIONS_FE TCH, funct ion(error, results, debugInfo) { | |
| 2325 | if (er ror) retur n callback (error, re sults, deb ugInfo); | |
| 2326 | var df n = ienFro mId(patien tId); | |
| 2327 | federa tor.getMed ications(c onfigurati on, sessio n, dfn, ha ndleGetMed ications, UUID); | |
| 2328 | }, UUID) ; | |
| 2329 | } | |
| 2330 | ||
| 2331 | var create Archive = function(e ndpoints, configurat ion, datab ase, sessi on, patien tId, userI d, usernam e, callbac k) { | |
| 2332 | var vist a = sessio n.server; | |
| 2333 | var stat ionId = st ationIdFro mId(patien tId); | |
| 2334 | ||
| 2335 | federato r.getDemog raphics(co nfiguratio n, session , vista, i enFromId(p atientId), function( getDemogra phicsError , demograp hics, debu gInfo) { | |
| 2336 | if (ge tDemograph icsError) return cal lback(erro rs.createM rarArchive Failed(get Demographi csError), null, debu gInfo); | |
| 2337 | var ti meStamp = clock.now( ).toISOStr ing(); | |
| 2338 | var ar chiveId = 'mrar^' + patientId + "^" + ti meStamp; | |
| 2339 | var pa tientStatu s = 'outpa tient'; | |
| 2340 | var fa ct = { | |
| 2341 | type : actions. MRAR_SESSI ON_CREATED , | |
| 2342 | payl oad: { | |
| 2343 | us ername: us ername, | |
| 2344 | cr eated: tim eStamp, | |
| 2345 | si te: { | |
| 2346 | siteName: vista, | |
| 2347 | stationId: stationId | |
| 2348 | }, | |
| 2349 | pa tient: { | |
| 2350 | id: patien tId, | |
| 2351 | name: demo graphics.n ame, | |
| 2352 | ssn: demog raphics.ss n, | |
| 2353 | dob: demog raphics.da teOfBirth, | |
| 2354 | age: demog raphics.ag e, | |
| 2355 | sex: demog raphics.ge nder, | |
| 2356 | status: pa tientStatu s, | |
| 2357 | icn: demog raphics.ic n | |
| 2358 | }, | |
| 2359 | co nfiguratio n: { | |
| 2360 | pdoInvokab lePeriod: configurat ion.pdoInv okablePeri od, | |
| 2361 | mrarSessio nValidPeri od: config uration.mr arSessionV alidPeriod [patientSt atus], | |
| 2362 | localExpir edDisconti nuedFilter Threshold: configura tion.local ExpiredDis continuedF ilterThres hold | |
| 2363 | } | |
| 2364 | }, | |
| 2365 | meta : { | |
| 2366 | ar chiveId: a rchiveId, | |
| 2367 | us erId: user Id | |
| 2368 | } | |
| 2369 | }; | |
| 2370 | ||
| 2371 | archiv e.createAr chive(conf iguration, database, archiveId , patientI d, timeSta mp, functi on(createA rchiveErro r) { | |
| 2372 | if ( createArch iveError) { return c allback(er rors.creat eMrarArchi veFailed(c reateArchi veError)); } | |
| 2373 | ||
| 2374 | arch ive.saveAc tion(confi guration, database, fact, func tion(saveA ctionMrarS essionCrea tedError) { | |
| 2375 | if (saveActi onMrarSess ionCreated Error) { r eturn call back(error s.createMr arArchiveF ailed(save ActionMrar SessionCre atedError) ); } | |
| 2376 | ||
| 2377 | in itializeAl lergyData( endpoints, configura tion, data base, sess ion, patie ntId, stat ionId, arc hiveId, fu nction(ini tializeAll ergyDataEr ror, initi alizeAller gyData, in itializeAl lergyDataD ebugInfo) { | |
| 2378 | if (initia lizeAllerg yDataError ) return c allback(in itializeAl lergyDataE rror, null , initiali zeAllergyD ataDebugIn fo); | |
| 2379 | ||
| 2380 | initialize Medication sData(endp oints, con figuration , database , session, patientId , stationI d, archive Id, functi on(initial izeMedicat ionsDataEr ror, initi alizeMedic ationsData , initiali zeMedicati onsDataDeb ugInfo) { | |
| 2381 | if (init ializeMedi cationsDat aError) re turn callb ack(initia lizeMedica tionsDataE rror, null , initiali zeMedicati onsDataErr or); | |
| 2382 | ||
| 2383 | readSess ion(config uration, d atabase, a rchiveId, function(r eadSession Error, sta tusStatus, readSessi onDebugInf o) { | |
| 2384 | callba ck(readSes sionError, statusSta tus, readS essionDebu gInfo); | |
| 2385 | }); | |
| 2386 | }); | |
| 2387 | }) ; | |
| 2388 | }); | |
| 2389 | }); | |
| 2390 | }); | |
| 2391 | } | |
| 2392 | ||
| 2393 | var hasSes sionEnded = function (state) { | |
| 2394 | if (stat e.closed) { | |
| 2395 | return true; | |
| 2396 | } | |
| 2397 | ||
| 2398 | if (stat e.created && state.c onfigurati on) { | |
| 2399 | var mr arSessionV alidPeriod = state.c onfigurati on.mrarSes sionValidP eriod; | |
| 2400 | var ex pired = mo ment().dif f(moment(s tate.creat ed), 'hour s') >= +mr arSessionV alidPeriod ; | |
| 2401 | return expired; | |
| 2402 | } | |
| 2403 | ||
| 2404 | return f alse; | |
| 2405 | } | |
| 2406 | ||
| 2407 | var isSess ionCorrupt = functio n(state) { | |
| 2408 | return ! state.clos ed && !sta te.initial ized; | |
| 2409 | } | |
| 2410 | ||
| 2411 | var handle NewlyCreat edArchive = function (error, se ssionStatu s, debugIn fo, callba ck) { | |
| 2412 | if (erro r) { | |
| 2413 | callba ck(errors. unableToRe solveSessi on(error)) ; | |
| 2414 | } else i f (hasSess ionEnded(s essionStat us)) { | |
| 2415 | callba ck(errors. mrarSessio nCreatedCl osed(sessi onStatus)) ; | |
| 2416 | } else i f (isSessi onCorrupt( sessionSta tus)) { | |
| 2417 | callba ck(errors. mrarSessio nCreatedCo rrupt()); | |
| 2418 | } else { | |
| 2419 | callba ck(null, s essionStat us, debugI nfo); | |
| 2420 | } | |
| 2421 | } | |
| 2422 | ||
| 2423 | /* | |
| 2424 | * The cal lback resu lt is eith er the act ive MRAR S essio for the given patient or there is one of thr ee errors: | |
| 2425 | * Errors | |
| 2426 | * 1. ERR OR_MRAR_RE SOLVE_SESS ION_FAILED with an i nner error describin g the unkn own reason | |
| 2427 | * 2. ERR OR_MRAR_SE SSION_CREA TED_CLOSED because a newly cre ated MRAR Session en ded up bei ng closed. | |
| 2428 | * 3. ERR OR_MRAR_SE SSION_CREA TED_CORRUP T was crea ted corrup t. | |
| 2429 | */ | |
| 2430 | exports.re solveSessi on = funct ion(endpoi nts, confi guration, database, session, d fn, userId , username , connecti on, callba ck) { | |
| 2431 | var stat ionId = st ationIdFro mId(userId ); | |
| 2432 | var pati entId = st ationIdWit hIen(stati onId, dfn) ; | |
| 2433 | ||
| 2434 | var exis tingSessio ns = archi ve.findRec entArchive s(configur ation, dat abase, pat ientId, co nfiguratio n.maxAgeOf SessionsTo FindInHour s); | |
| 2435 | ||
| 2436 | // Look at most r ecent sess ion | |
| 2437 | if (exis tingSessio ns.length > 0) { | |
| 2438 | var ol dSessionTi mestamp = existingSe ssions[exi stingSessi ons.length -1]; | |
| 2439 | var ar chiveId = 'mrar^' + patientId + "^" + ol dSessionTi mestamp; | |
| 2440 | readSe ssion(conf iguration, database, archiveId , function (readSessi onError, e xistingSes sionStatus ) { | |
| 2441 | if ( readSessio nError) re turn callb ack(errors .unableToR esolveSess ion(readSe ssionError )); | |
| 2442 | ||
| 2443 | // Create a n ew session if the mo st recent session is closed/in active | |
| 2444 | if ( existingSe ssionStatu s && (hasS essionEnde d(existing SessionSta tus) || is SessionCor rupt(exist ingSession Status))) { | |
| 2445 | cr eateArchiv e(endpoint s, configu ration, da tabase, se ssion, pat ientId, us erId, user name, func tion(creat eArchiveEr ror, newSe ssionStatu s, debugIn fo) { | |
| 2446 | handleNewl yCreatedAr chive(crea teArchiveE rror, newS essionStat us, debugI nfo, callb ack); | |
| 2447 | }) ; | |
| 2448 | } el se { | |
| 2449 | // Use the mo st recent active se ssion | |
| 2450 | ca llback(nul l, existin gSessionSt atus); | |
| 2451 | } | |
| 2452 | }); | |
| 2453 | } else { | |
| 2454 | // Cr eate new s ession | |
| 2455 | create Archive(en dpoints, c onfigurati on, databa se, sessio n, patient Id, userId , username , function (createArc hiveError, newSessio nStatus, d ebugInfo) { | |
| 2456 | hand leNewlyCre atedArchiv e(createAr chiveError , newSessi onStatus, debugInfo, callback) ; | |
| 2457 | }); | |
| 2458 | } | |
| 2459 | } | |
| 2460 | ||
| 2461 | var create Note = fun ction (con figuration , database , session, archiveId , userId, patientId, documentL ines, call back) { | |
| 2462 | var vist a = sessio n.server; | |
| 2463 | var dfn = ienFromI d(patientI d); | |
| 2464 | var auth orId = ien FromId(use rId); | |
| 2465 | var date Time = clo ck.now(); | |
| 2466 | var docu mentTitle = 'VPS MRA R NOTE'; | |
| 2467 | var loca tionId = ' '; | |
| 2468 | var atte mptToSign = true; | |
| 2469 | var sign ersId = au thorId; | |
| 2470 | ||
| 2471 | federato r.createNo te(configu ration, se ssion, vis ta, dfn, a uthorId, d ateTime, d ocumentTit le, docume ntLines, l ocationId, attemptTo Sign, sign ersId, fun ction(erro r, result, debugInfo ) { | |
| 2472 | if (er ror) retur n callback (error, re sult, debu gInfo); | |
| 2473 | ||
| 2474 | var no teId = res ult.data.n oteId; | |
| 2475 | var fa ct_TIU_NOT E_SIGN_SUC CESS = { | |
| 2476 | type : actions. TIU_NOTE_S IGN_SUCCES S, | |
| 2477 | payl oad: { | |
| 2478 | no teId: note Id | |
| 2479 | }, | |
| 2480 | meta : { | |
| 2481 | us erId: sess ion.userId , | |
| 2482 | se ssionId: s ession.ses sionId, | |
| 2483 | ar chiveId: a rchiveId, | |
| 2484 | } | |
| 2485 | }; | |
| 2486 | ||
| 2487 | archiv e.saveActi on(configu ration, da tabase, fa ct_TIU_NOT E_SIGN_SUC CESS, func tion(error , result) { | |
| 2488 | call back(error , { noteId : noteId}) ; | |
| 2489 | }); | |
| 2490 | }); | |
| 2491 | } | |
| 2492 | ||
| 2493 | exports.su bmitNote = function( configurat ion, datab ase, sessi on, archiv eId, userI d, patient Id, docume ntLines, s ignature, callback) { | |
| 2494 | ||
| 2495 | federato r.checkSig nature(con figuration , session, signature , function (error, re sult, debu gInfo) { | |
| 2496 | if (er ror) retur n callback (error, re sult, debu gInfo); | |
| 2497 | if (re sult.data. esig !== ' true') ret urn callba ck(errors. invalidEsi gnature(er ror), null , debugInf o); | |
| 2498 | create Note(confi guration, database, session, a rchiveId, userId, pa tientId, d ocumentLin es, callba ck); | |
| 2499 | }); | |
| 2500 | } | |
| 2501 | ||
| 2502 | exports.ex itSession = function (configura tion, data base, conn ections, c onnection, mrarArchi veId, user SessionId, log, call back) { | |
| 2503 | var comm and = { | |
| 2504 | type: actions.MR AR_SESSION _EXIT, | |
| 2505 | payloa d: { | |
| 2506 | reas on: 'lost- connection ' | |
| 2507 | }, | |
| 2508 | meta: { | |
| 2509 | arch iveId: mra rArchiveId , | |
| 2510 | sess ionId: use rSessionId , | |
| 2511 | stat us: 'comma nd' | |
| 2512 | } | |
| 2513 | }; | |
| 2514 | ||
| 2515 | realtime .submitCom mand(confi guration, database, connection s, null, c ommand, lo g, callbac k); | |
| 2516 | }; | |
| 2517 | ||
| 2518 | exports.se archForCau sativeAgen t = functi on(configu ration, se ssion, sea rch, callb ack) { | |
| 2519 | ||
| 2520 | federato r.searchFo rCausative AgentsBySe archTerm(c onfigurati on, sessio n, search, callback) ; | |
| 2521 | } | |
| 2522 | ||
| 2523 | exports.se archForPro ductDescri ption = fu nction(con figuration , session, search, c allback) { | |
| 2524 | ||
| 2525 | federato r.searchFo rProductDe scriptionB ySearchTer m(configur ation, ses sion, sear ch, callba ck); | |
| 2526 | } | |
| 2527 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000package/ lib/realti me.js\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x00000000644\x0000 0001750\x000000 01750\x00000000 0003520\x000013 051754140\x0000 012277\x0000 0\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000u star \x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000/***** ********** ********** ********** ********** ********** ********** ******* | |
| 2528 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 2529 | http://ww w.apexdata solutions. net/ | |
| 2530 | ||
| 2531 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 2532 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 2533 | You may o btain a co py of the License at | |
| 2534 | ||
| 2535 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 2536 | ||
| 2537 | Unless re quired by applicable law or ag reed to in writing, software | |
| 2538 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 2539 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 2540 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 2541 | limitatio ns under t he License . | |
| 2542 | ||
| 2543 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 2544 | ||
| 2545 | var archiv e = requir e('./archi ve'); | |
| 2546 | ||
| 2547 | exports.su bmitComman d = functi on(configu ration, da tabase, co nnections, sourceCon nection, a ction, log , callback ) { | |
| 2548 | ||
| 2549 | archive. saveAction (configura tion, data base, acti on, functi on(error, fact) { | |
| 2550 | ||
| 2551 | if (er ror) retur n callback && callba ck({ messa ge: 'unabl e to save action', e rror: erro r }); | |
| 2552 | ||
| 2553 | var me ssage = { | |
| 2554 | cont ext: 'stre am', | |
| 2555 | stre amAction: fact | |
| 2556 | }; | |
| 2557 | ||
| 2558 | ||
| 2559 | // dis patch to s ender firs t | |
| 2560 | if (so urceConnec tion) { | |
| 2561 | sour ceConnecti on.sendMes sage(messa ge, 'messa ge'); | |
| 2562 | } | |
| 2563 | ||
| 2564 | var so urceConnec tionId = s ourceConne ction ? so urceConnec tion.id : null; | |
| 2565 | var mr arArchiveI d = source Connection ? sourceC onnection. mrarArchiv eId : null ; | |
| 2566 | // bro adcast: di spatch to other conn ections | |
| 2567 | for (v ar connect ionId in c onnections ) { | |
| 2568 | var broadcastC onnection = connecti ons[connec tionId]; | |
| 2569 | if ( (sourceCon nectionId !== connec tionId) && broadcast Connection .mrarArchi veId && mr arArchiveI d && (mrar ArchiveId === broadc astConnect ion.mrarAr chiveId )) { | |
| 2570 | br oadcastCon nection .s endMessage (message, 'message') ; | |
| 2571 | } | |
| 2572 | } | |
| 2573 | ||
| 2574 | callba ck && call back(); | |
| 2575 | }); | |
| 2576 | } | |
| 2577 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000pack age/lib/he lper.js\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x00000000 644\x0000000175 0\x00000001750\x0000 0000000247 1\x000013051754 140\x0000011760 \x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000/* ********** ********** ********** ********** ********** ********** ********** * | |
| 2578 | Copyrigh t 2016 Ape x Data Sol utions, LL C. | |
| 2579 | http://ww w.apexdata solutions. net/ | |
| 2580 | ||
| 2581 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 2582 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 2583 | You may o btain a co py of the License at | |
| 2584 | ||
| 2585 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 2586 | ||
| 2587 | Unless re quired by applicable law or ag reed to in writing, software | |
| 2588 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 2589 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 2590 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 2591 | limitatio ns under t he License . | |
| 2592 | ||
| 2593 | ********* ********** ********** ********** ********** ********** ********** ***/ | |
| 2594 | ||
| 2595 | exports.re adFullArch ive = func tion(confi guration, database, patientId, timestamp ) { | |
| 2596 | ||
| 2597 | var resu lt = datab ase.getGlo bal(config uration.gl obals.MRAR SESSIONS, [patientId , timestam p,'facts'] ).getDocum ent(); | |
| 2598 | ||
| 2599 | var fact s = []; | |
| 2600 | for (var index in result) { | |
| 2601 | if (re sult[index ]) { | |
| 2602 | if ( result[ind ex].VJSLS) { | |
| 2603 | va r data = ' '; | |
| 2604 | fo r (var chu nk in resu lt[index]. VJSLS) { | |
| 2605 | data = dat a + result [index].VJ SLS[chunk] ; | |
| 2606 | } | |
| 2607 | fa cts.push(J SON.parse( data)); | |
| 2608 | } el se { | |
| 2609 | fa cts.push(J SON.parse( result[ind ex])); | |
| 2610 | } | |
| 2611 | } | |
| 2612 | } | |
| 2613 | return f acts; | |
| 2614 | }\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 package/li b/util/\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 0000755\x000000 00000\x00000000 000\x0000000000 00000\x00001305 2061137\x000001 2670\x0000 5\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000ust ar \x0000root\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000roo t\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000package/ lib/util/d efaultResp onseHandle r.js\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x00000000644\x0000 0001750\x000000 01750\x00000000 0002364\x000013 051754140\x0000 016120\x0000 0\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000u star \x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000/***** ********** ********** ********** ********** ********** ********** ******* | |
| 2615 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 2616 | http://ww w.apexdata solutions. net/ | |
| 2617 | ||
| 2618 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 2619 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 2620 | You may o btain a co py of the License at | |
| 2621 | ||
| 2622 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 2623 | ||
| 2624 | Unless re quired by applicable law or ag reed to in writing, software | |
| 2625 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 2626 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 2627 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 2628 | limitatio ns under t he License . | |
| 2629 | ||
| 2630 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 2631 | ||
| 2632 | "use stric t"; | |
| 2633 | ||
| 2634 | var respon se = requi re('vjs-re sponse'); | |
| 2635 | ||
| 2636 | function h andler(dat a, next, e rror, resu lt, debugI nfo) { | |
| 2637 | ||
| 2638 | data.res ponse = er ror ? resp onse.Error (error.cod e, error.d etails, de bugInfo) : response. Success(re sult, debu gInfo); | |
| 2639 | next(); | |
| 2640 | } | |
| 2641 | ||
| 2642 | /* | |
| 2643 | * Createa a handler function with data and next b eing bound as the fi rst two pa rameters. | |
| 2644 | * Consume rs of the hander wil l invoke w ith option al error, result, an d debugInf o | |
| 2645 | */ | |
| 2646 | module.exp orts = fun ction(data , next) { | |
| 2647 | return h andler.bin d(undefine d, data, n ext); | |
| 2648 | }\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000p ackage/lib /util/fede rator.js\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x00000 000644\x0000000 1750\x000000017 50\x00000000002 6161\x000013051 754140\x0000013 433\x0000 0\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000usta r \x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000/******** ********** ********** ********** ********** ********** ********** ********** ********* | |
| 2649 | Copyrigh t 2016 Ape x Data Sol utions, LL C. | |
| 2650 | http://ww w.apexdata solutions. net/ | |
| 2651 | ||
| 2652 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 2653 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 2654 | You may o btain a co py of the License at | |
| 2655 | ||
| 2656 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 2657 | ||
| 2658 | Unless re quired by applicable law or ag reed to in writing, software | |
| 2659 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 2660 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 2661 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 2662 | limitatio ns under t he License . | |
| 2663 | ||
| 2664 | ********* ********** ********** ********** ********** ********** ********** ********** *******/ | |
| 2665 | ||
| 2666 | "use stric t"; | |
| 2667 | ||
| 2668 | var async = require( 'async'); | |
| 2669 | var reques t = requir e('request '); | |
| 2670 | var errors = require ('../error s'); | |
| 2671 | var _ = re quire('lod ash'); | |
| 2672 | var object Assign = r equire('ob ject-assig n'); | |
| 2673 | ||
| 2674 | /** [Extra functions added her e - DO NOT REMOVE] * */ | |
| 2675 | ||
| 2676 | /* | |
| 2677 | * Return an error o f federate d calls (i .e. change from keye d object) | |
| 2678 | */ | |
| 2679 | function a rrayifyFed eratorResu lts(federa torResults ) { | |
| 2680 | if (!fed eratorResu lts) retur n []; | |
| 2681 | return _ .map(Objec t.keys(fed eratorResu lts), func tion(key) { | |
| 2682 | var re sult = fed eratorResu lts[key]; | |
| 2683 | //Comp enstate fo r errors f rom Federa tor not al ways inclu ding endpo int inform ation | |
| 2684 | //TODO : Federato r should a lways resp ond with e ndpoint in formation | |
| 2685 | return result.en dpoint ? r esult : ob jectAssign ({}, resul t, {endpoi nt: {stati onID: key, siteName: 'STATION ' + key }} ); | |
| 2686 | }); | |
| 2687 | } | |
| 2688 | ||
| 2689 | // todo: c ache resul t? | |
| 2690 | function r esolveFede ratorEndpo int(config uration, c allback) { | |
| 2691 | var fede ratorServe rNames = c onfigurati on.federat ionServers ; | |
| 2692 | if(feder atorServer Names && O bject.keys (federator ServerName s).length) { | |
| 2693 | var fe derator = federatorS erverNames [Object.ke ys(federat orServerNa mes)[0]]; | |
| 2694 | var ba seURL = "h ttps://" + federator .host + ": " + federa tor.port; | |
| 2695 | return callback( null, base URL); | |
| 2696 | } | |
| 2697 | ||
| 2698 | callback (errors.no FederatorS erversConf igured()); | |
| 2699 | } | |
| 2700 | ||
| 2701 | function f etchFedera torVistANa mes(baseUR L, callbac k) { | |
| 2702 | var meth od = "get" ; | |
| 2703 | var path = "/vista s/servers/ all"; | |
| 2704 | var para ms = undef ined; | |
| 2705 | var sess ionToken = undefined ; | |
| 2706 | ||
| 2707 | fetchDat a(method, baseURL, p ath, param s, session Token, cal lback); | |
| 2708 | } | |
| 2709 | ||
| 2710 | function g etFederato rVistAName s(configur ation, api Mrar, call back) { | |
| 2711 | resolveF ederatorEn dpoint(con figuration , function (resolveEr ror, baseU RL) { | |
| 2712 | if(res olveError) return ca llback(res olveError) ; | |
| 2713 | fetchF ederatorVi stANames(b aseURL, fu nction(fet chError, f etchResult , fetchDeb ugInfo) { | |
| 2714 | if ( fetchError ) return c allback(er rors.vista NamesUnava ilable(fet chError), fetchResul t, fetchDe bugInfo); | |
| 2715 | var serverList = []; | |
| 2716 | apiM rar.endpoi nts = fetc hResult; | |
| 2717 | fetc hResult.fo rEach(func tion(obj) { | |
| 2718 | va r site = o bj.site ? obj.site : obj.siteN ame; | |
| 2719 | se rverList.p ush(site); | |
| 2720 | }); | |
| 2721 | call back(null, {vistas: serverList }, fetchDe bugInfo); | |
| 2722 | }); | |
| 2723 | }); | |
| 2724 | } | |
| 2725 | ||
| 2726 | function f etchData(m ethod, bas eURL, apiP ath, param s, session Token, cal lback) { | |
| 2727 | ||
| 2728 | var head ers = {}; | |
| 2729 | if(sessi onToken) { | |
| 2730 | header s['VJS-SES SION-TOKEN '] = sessi onToken; | |
| 2731 | } | |
| 2732 | ||
| 2733 | var opti ons = { | |
| 2734 | method : (method || 'GET'). toUpperCas e(), | |
| 2735 | url: b aseURL + a piPath, | |
| 2736 | reject Unauthoriz ed: false, | |
| 2737 | header s: headers , | |
| 2738 | json: {} | |
| 2739 | }; | |
| 2740 | ||
| 2741 | if(optio ns.method === 'POST' ) { | |
| 2742 | option s.json = p arams || { }; | |
| 2743 | reques t(options, function( error, res ponse, res ult){ | |
| 2744 | if(e rror || (r esult && r esult.erro r)) return callback( error || r esult.erro r); | |
| 2745 | call back(null, result); | |
| 2746 | }); | |
| 2747 | } else { | |
| 2748 | reques t(options, function (error, re sponse, bo dy) { | |
| 2749 | if ( error || ( body && b ody.error) ) return c allback(er ror || bod y.error); | |
| 2750 | call back(null, body.data ); | |
| 2751 | }) | |
| 2752 | } | |
| 2753 | } | |
| 2754 | ||
| 2755 | function l oginToServ er(baseURL , credenti als, serve r, callbac k) { | |
| 2756 | var path = "/vista s/" + serv er + "/ses sion/login /by-av/new "; | |
| 2757 | fetchDat a("post", baseURL, p ath, { cre dentials: credential s }, undef ined, call back); | |
| 2758 | } | |
| 2759 | /** | |
| 2760 | * LoginBy AV | |
| 2761 | * @param api - The vsa-server api objec t | |
| 2762 | * @param data - The vsa-serve r data obj ect | |
| 2763 | * @param credential s - The us er credent ials | |
| 2764 | * @param server - T he server to log int o | |
| 2765 | * @param callback - The callb ack to be called on error or s uccess | |
| 2766 | */ | |
| 2767 | function l oginByAcce ssVerifyCo des(config uration, d ata, crede ntials, se rver, call back) { | |
| 2768 | ||
| 2769 | async.wa terfall([ | |
| 2770 | functi on( next ) { | |
| 2771 | reso lveFederat orEndpoint (configura tion, func tion(error , baseURL) { | |
| 2772 | if ( error ) return cal lback(erro r); | |
| 2773 | ne xt(null, b aseURL, cr edentials, server); | |
| 2774 | }); | |
| 2775 | }, | |
| 2776 | functi on( baseUR L, credent ials, serv er, next ) { | |
| 2777 | logi nToServer( baseURL, c redentials , server, function(e rror, resu lt) { | |
| 2778 | ne xt(error, result, ba seURL); | |
| 2779 | }); | |
| 2780 | } | |
| 2781 | ], funct ion(error, result, b aseURL) { | |
| 2782 | callba ck(error, error || { | |
| 2783 | logi nData: res ult.data.l oginData, | |
| 2784 | sess ionToken: result.dat a.vjsSessi onToken, | |
| 2785 | serv er: server , | |
| 2786 | fede ratorBaseU rl: baseUR L | |
| 2787 | }); | |
| 2788 | }); | |
| 2789 | } | |
| 2790 | ||
| 2791 | function f etchSearch PatientsBy NamePrefix (baseURL, session, p refix, pag eMarker, c allback) { | |
| 2792 | var serv er = sessi on.server; | |
| 2793 | var path = '/vista s/' + serv er + '/pat ients/find -by-name/' + encodeU RIComponen t(prefix) + '?limit= 20'; | |
| 2794 | if (page Marker){ | |
| 2795 | path + = "&from=" +encodeURI Component( pageMarker ); | |
| 2796 | } | |
| 2797 | fetchDat a('get', b aseURL, pa th, undefi ned, sessi on.session Token, cal lback); | |
| 2798 | } | |
| 2799 | ||
| 2800 | function s earchPatie ntsByNameP refix(conf iguration, session, prefix, pa geMarker, callback) { | |
| 2801 | resolveF ederatorEn dpoint(con figuration , function (error, ba seURL) { | |
| 2802 | if( er ror ) retu rn callbac k(error); | |
| 2803 | fetchS earchPatie ntsByNameP refix(base URL, sessi on, prefix , pageMark er, callba ck); | |
| 2804 | }); | |
| 2805 | } | |
| 2806 | ||
| 2807 | function f etchSearch ForCausati veAgentsBy SearchTerm (baseURL, session, s earch, cal lback) { | |
| 2808 | var serv er = sessi on.server; | |
| 2809 | var path = '/vista s/' + serv er + '/vet erans/caus ativeAgent s'; | |
| 2810 | var sess ionToken = session.s essionToke n; | |
| 2811 | ||
| 2812 | var para meters = { | |
| 2813 | search : search | |
| 2814 | }; | |
| 2815 | ||
| 2816 | fetchDat a('post', baseURL, p ath, param eters, ses sionToken, callback) ; | |
| 2817 | } | |
| 2818 | ||
| 2819 | function s earchForCa usativeAge ntsBySearc hTerm(conf iguration, session, search, ca llback) { | |
| 2820 | resolveF ederatorEn dpoint(con figuration , function (error, ba seURL) { | |
| 2821 | if( er ror ) retu rn callbac k(error); | |
| 2822 | fetchS earchForCa usativeAge ntsBySearc hTerm(base URL, sessi on, search , function (error, re sult, debu gInfo) { | |
| 2823 | call back(error , result ? result.da ta : null, debugInfo ); | |
| 2824 | }); | |
| 2825 | }); | |
| 2826 | } | |
| 2827 | ||
| 2828 | function f etchSearch ForProduct Descriptio nBySearchT erm(baseUR L, session , search, callback) { | |
| 2829 | var serv er = sessi on.server; | |
| 2830 | var path = '/vista s/' + serv er + '/vet erans/drug s'; | |
| 2831 | var sess ionToken = session.s essionToke n; | |
| 2832 | ||
| 2833 | var para meters = { | |
| 2834 | search : search | |
| 2835 | }; | |
| 2836 | ||
| 2837 | fetchDat a('post', baseURL, p ath, param eters, ses sionToken, callback) ; | |
| 2838 | } | |
| 2839 | ||
| 2840 | function s earchForPr oductDescr iptionBySe archTerm(c onfigurati on, sessio n, search, callback) { | |
| 2841 | resolveF ederatorEn dpoint(con figuration , function (error, ba seURL) { | |
| 2842 | if( er ror ) retu rn callbac k(error); | |
| 2843 | fetchS earchForPr oductDescr iptionBySe archTerm(b aseURL, se ssion, sea rch, funct ion(error, result, d ebugInfo) { | |
| 2844 | call back(error , result ? result.da ta : null, debugInfo ); | |
| 2845 | }); | |
| 2846 | }); | |
| 2847 | } | |
| 2848 | ||
| 2849 | function f etchAllerg ies(baseUR L, session , dfn, cal lback) { | |
| 2850 | var sess ionToken = session.s essionToke n; | |
| 2851 | var meth od = "get" ; | |
| 2852 | var path = "/vista s/patient- visited/ve terans/by- dfn/" + df n + "/alle rgies"; | |
| 2853 | var para ms = undef ined; | |
| 2854 | ||
| 2855 | fetchDat a(method, baseURL, p ath, param s, session Token, cal lback); | |
| 2856 | } | |
| 2857 | ||
| 2858 | function g etAllergie s(configur ation, ses sion, dfn, callback, UUID) { | |
| 2859 | resolveF ederatorEn dpoint(con figuration , function (endpointE rror, base Url) { | |
| 2860 | if( endpointEr ror ) retu rn callbac k(endpoint Error); | |
| 2861 | fetc hAllergies (baseUrl, session, d fn, functi on(error, data, debu g) { | |
| 2862 | ca llback(err or, error ? data : a rrayifyFed eratorResu lts(data), debug, UU ID); | |
| 2863 | }); | |
| 2864 | }); | |
| 2865 | } | |
| 2866 | ||
| 2867 | function f etchMedica tions(base URL, sessi on, dfn, c allback) { | |
| 2868 | var sess ionToken = session.s essionToke n; | |
| 2869 | var meth od = "get" ; | |
| 2870 | var path = "/vista s/patient- visited/ve terans/by- dfn/" + df n + "/meds "; | |
| 2871 | var para ms = undef ined; | |
| 2872 | ||
| 2873 | fetchDat a(method, baseURL, p ath, param s, session Token, cal lback); | |
| 2874 | } | |
| 2875 | ||
| 2876 | function g etMedicati ons(config uration, s ession, df n, callbac k, UUID) { | |
| 2877 | resolveF ederatorEn dpoint(con figuration , function (endpointE rror, base URL) { | |
| 2878 | if( en dpointErro r ) return callback( endpointEr ror); | |
| 2879 | fetchM edications (baseURL, session, d fn, functi on(error, data, debu g) { | |
| 2880 | call back(error , error ? data : arr ayifyFeder atorResult s(data), d ebug, UUID ); | |
| 2881 | }); | |
| 2882 | }); | |
| 2883 | } | |
| 2884 | ||
| 2885 | function f etchDemogr aphics(bas eURL, sess ion, vista , dfn, cal lback) { | |
| 2886 | var sess ionToken = session.s essionToke n; | |
| 2887 | var meth od = "get" ; | |
| 2888 | var path = "/vista s/" + vist a + "/vete rans/by-df n/" + dfn + "/demogr aphics"; | |
| 2889 | var para ms = undef ined; | |
| 2890 | ||
| 2891 | fetchDat a(method, baseURL, p ath, param s, session Token, cal lback); | |
| 2892 | } | |
| 2893 | ||
| 2894 | function g etDemograp hics(confi guration, session, v ista, dfn, callback) { | |
| 2895 | resolveF ederatorEn dpoint(con figuration , function (error, ba seURL) { | |
| 2896 | if( er ror ) retu rn callbac k(error); | |
| 2897 | fetchD emographic s(baseURL, session, vista, dfn , callback ); | |
| 2898 | }); | |
| 2899 | } | |
| 2900 | ||
| 2901 | function p ostNote(ba seURL, ses sion, vist a, dfn, au thorId, da teTime, do cumentTitl e, documen tLines, lo cationId, attemptToS ign, signe rsId, call back) { | |
| 2902 | var sess ionToken = session.s essionToke n; | |
| 2903 | var meth od = "post "; | |
| 2904 | var path = "/vista s/" + vist a + "/vete rans/by-df n/" + dfn + "/notes" ; | |
| 2905 | var para ms = { | |
| 2906 | dfn: d fn, | |
| 2907 | author Id: author Id, | |
| 2908 | dateTi me: dateTi me, | |
| 2909 | docume ntTitle: d ocumentTit le, | |
| 2910 | docume ntLines: d ocumentLin es, | |
| 2911 | locati onId: loca tionId, | |
| 2912 | attemp tToSign: a ttemptToSi gn, | |
| 2913 | signer sId: signe rsId | |
| 2914 | }; | |
| 2915 | ||
| 2916 | fetchDat a(method, baseURL, p ath, param s, session Token, cal lback); | |
| 2917 | } | |
| 2918 | ||
| 2919 | function c reateNote( configurat ion, sessi on, vista, dfn, auth orId, date Time, docu mentTitle, documentL ines, loca tionId, at temptToSig n, signers Id, callba ck) { | |
| 2920 | resolveF ederatorEn dpoint(con figuration , function (error, ba seURL) { | |
| 2921 | if( er ror ) retu rn callbac k(error); | |
| 2922 | postNo te(baseURL , session, vista, df n, authorI d, dateTim e, documen tTitle, do cumentLine s, locatio nId, attem ptToSign, signersId, callback) ; | |
| 2923 | }); | |
| 2924 | } | |
| 2925 | ||
| 2926 | function p ostCheckSi gnature(se ssion, bas eURL, sign ature, cal lback) { | |
| 2927 | var sess ionToken = session.s essionToke n; | |
| 2928 | var vist a = sessio n.server; | |
| 2929 | var meth od = "post "; | |
| 2930 | var path = "/vista s/" + vist a + "/vete rans/check Signature" ; | |
| 2931 | var para ms = { sig nature: si gnature }; | |
| 2932 | ||
| 2933 | fetchDat a(method, baseURL, p ath, param s, session Token, cal lback); | |
| 2934 | } | |
| 2935 | ||
| 2936 | function c heckSignat ure(config uration, s ession, si gnature, c allback) { | |
| 2937 | resolveF ederatorEn dpoint(con figuration , function (error, ba seURL) { | |
| 2938 | if( er ror ) retu rn callbac k(error); | |
| 2939 | postCh eckSignatu re(session , baseURL, signature , callback ); | |
| 2940 | }); | |
| 2941 | } | |
| 2942 | ||
| 2943 | function f ederatedCa llErrors(f ederatorRe sponse) { | |
| 2944 | return _ .filter(fe deratorRes ponse, fun ction(each ) { return each.erro r; }); | |
| 2945 | } | |
| 2946 | ||
| 2947 | module.exp orts = { | |
| 2948 | /** [Ext ra functio n mapping added here - DO NOT REMOVE] ** / | |
| 2949 | getFeder atorVistAN ames: getF ederatorVi stANames, | |
| 2950 | loginByA ccessVerif yCodes: lo ginByAcces sVerifyCod es, | |
| 2951 | searchPa tientsByNa mePrefix: searchPati entsByName Prefix, | |
| 2952 | getDemog raphics: g etDemograp hics, | |
| 2953 | getAller gies: getA llergies, | |
| 2954 | getMedic ations: ge tMedicatio ns, | |
| 2955 | searchFo rCausative AgentsBySe archTerm: searchForC ausativeAg entsBySear chTerm, | |
| 2956 | searchFo rProductDe scriptionB ySearchTer m: searchF orProductD escription BySearchTe rm, | |
| 2957 | checkSig nature: ch eckSignatu re, | |
| 2958 | createNo te: create Note, | |
| 2959 | federate dCallError s: federat edCallErro rs | |
| 2960 | }; | |
| 2961 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000p ackage/lib /util/cloc k.js\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x00000 000644\x0000000 1750\x000000017 50\x00000000000 1632\x000013051 754140\x0000012 547\x0000 0\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000usta r \x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000/******** ********** ********** ********** ********** ********** ********** **** | |
| 2962 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 2963 | http://ww w.apexdata solutions. net/ | |
| 2964 | ||
| 2965 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 2966 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 2967 | You may o btain a co py of the License at | |
| 2968 | ||
| 2969 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 2970 | ||
| 2971 | Unless re quired by applicable law or ag reed to in writing, software | |
| 2972 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 2973 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 2974 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 2975 | limitatio ns under t he License . | |
| 2976 | ||
| 2977 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 2978 | ||
| 2979 | // clock a nd clock r elated hel pers | |
| 2980 | var uuidFa ctory = re quire('nod e-uuid'); | |
| 2981 | ||
| 2982 | module.exp orts = { | |
| 2983 | now: fun ction() { return new Date();}, | |
| 2984 | timeUuid : uuidFact ory.v1 | |
| 2985 | } | |
| 2986 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000package/ lib/util/h elpers.js\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x00000000644\x0000 0001750\x000000 01750\x00000000 0003301\x000013 051754140\x0000 013111\x0000 0\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000u star \x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000/***** ********** ********** ********** ********** ********** ********** ******* | |
| 2987 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 2988 | http://ww w.apexdata solutions. net/ | |
| 2989 | ||
| 2990 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 2991 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 2992 | You may o btain a co py of the License at | |
| 2993 | ||
| 2994 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 2995 | ||
| 2996 | Unless re quired by applicable law or ag reed to in writing, software | |
| 2997 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 2998 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 2999 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3000 | limitatio ns under t he License . | |
| 3001 | ||
| 3002 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3003 | ||
| 3004 | var moment = require ('moment') ; | |
| 3005 | ||
| 3006 | var standa rdDateMome nt = funct ion(dateSt ring) { | |
| 3007 | return m oment(date String, 'M MM DD, YYY Y'); | |
| 3008 | }; | |
| 3009 | ||
| 3010 | var standa rdDateTime Moment = f unction(da teTimeStri ng) { | |
| 3011 | return m oment(date TimeString , ['MMM DD , YYYY@HH: mm', 'MMM DD, YYYY'] , true); | |
| 3012 | }; | |
| 3013 | ||
| 3014 | var trimTi me = funct ion(date) { | |
| 3015 | return d ate ? date .split('@' )[0] : dat e; | |
| 3016 | } | |
| 3017 | ||
| 3018 | var create UUID = fun ction () { | |
| 3019 | // http: //www.ietf .org/rfc/r fc4122.txt | |
| 3020 | var s = []; | |
| 3021 | var hexD igits = "0 123456789a bcdef"; | |
| 3022 | for (var i = 0; i < 36; i++) { | |
| 3023 | s[i] = hexDigits .substr(Ma th.floor(M ath.random () * 0x10) , 1); | |
| 3024 | } | |
| 3025 | s[14] = "4"; // b its 12-15 of the tim e_hi_and_v ersion fie ld to 0010 | |
| 3026 | s[19] = hexDigits. substr((s[ 19] & 0x3) | 0x8, 1) ; // bits 6-7 of th e clock_se q_hi_and_r eserved to 01 | |
| 3027 | s[8] = s [13] = s[1 8] = s[23] = "-"; | |
| 3028 | ||
| 3029 | return s .join(""); | |
| 3030 | } | |
| 3031 | ||
| 3032 | module.exp orts = { | |
| 3033 | trimTime : trimTime , | |
| 3034 | standard DateMoment : standard DateMoment , | |
| 3035 | standard DateTimeMo ment: stan dardDateTi meMoment, | |
| 3036 | createUU ID: create UUID | |
| 3037 | } | |
| 3038 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000p ackage/lib /constants /\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x00000 000755\x0000000 0000\x000000000 00\x00000000000 0000\x000013052 061137\x0000013 727\x0000 5\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000usta r \x0000root\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000root \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000package/l ib/constan ts/actions .js\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x00000000644\x00000 001750\x0000000 1750\x000000000 002511\x0000130 51754140\x00000 14150\x0000 0\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000us tar \x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000/****** ********** ********** ********** ********** ********** ********** ****** | |
| 3039 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3040 | http://ww w.apexdata solutions. net/ | |
| 3041 | ||
| 3042 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3043 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3044 | You may o btain a co py of the License at | |
| 3045 | ||
| 3046 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3047 | ||
| 3048 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3049 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3050 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3051 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3052 | limitatio ns under t he License . | |
| 3053 | ||
| 3054 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3055 | ||
| 3056 | /** | |
| 3057 | * MRAR Fa ct types | |
| 3058 | */ | |
| 3059 | ||
| 3060 | module.exp orts = { | |
| 3061 | MRAR_SES SION_EXIT: 'MRAR_SES SION_EXIT' , | |
| 3062 | MRAR_SES SION_CREAT ED: 'MRAR_ SESSION_CR EATED', | |
| 3063 | MRAR_SES SION_CLOSE D: 'MRAR_S ESSION_CLO SED', | |
| 3064 | DATA_MED ICATIONS_F ETCH: 'DA TA_MEDICAT IONS_FETCH ', | |
| 3065 | DATA_MED ICATIONS_F ETCH_SUCCE SS: 'DATA_ MEDICATION S_FETCH_SU CCESS', | |
| 3066 | DATA_MED ICATIONS_F ETCH_FAILE D: 'DATA_M EDICATIONS _FETCH_FAI LED', | |
| 3067 | DATA_ALL ERGIES_FET CH: 'DATA_ ALLERGIES_ FETCH', | |
| 3068 | DATA_ALL ERGIES_FET CH_SUCCESS : 'DATA_AL LERGIES_FE TCH_SUCCES S', | |
| 3069 | DATA_ALL ERGIES_FET CH_FAILED: 'DATA_ALL ERGIES_FET CH_FAILED' , | |
| 3070 | TIU_NOTE _SIGN_SUCC ESS: 'TIU_ NOTE_SIGN_ SUCCESS' | |
| 3071 | }; | |
| 3072 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000package /lib/const ants/error s.js\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x00000000644 \x00000001750\x00000 001750\x0000000 00002670\x00001 3051754140 \x0000014032\x0000 0 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 ustar \x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000/**** ********** ********** ********** ********** ********** ********** ******** | |
| 3073 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3074 | http://ww w.apexdata solutions. net/ | |
| 3075 | ||
| 3076 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3077 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3078 | You may o btain a co py of the License at | |
| 3079 | ||
| 3080 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3081 | ||
| 3082 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3083 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3084 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3085 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3086 | limitatio ns under t he License . | |
| 3087 | ||
| 3088 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3089 | ||
| 3090 | module.exp orts = { | |
| 3091 | ERROR_CO NFIGIURATI ON_NO_FEDE RATOR_SERV ERS: 'ERRO R_CONFIGIU RATION_NO_ FEDERATOR_ SERVERS', | |
| 3092 | ERROR_DA TABASE_REA D: 'ERROR_ DATABASE_R EAD', | |
| 3093 | ERROR_DA TABASE_SET _VALUE: 'E RROR_DATAB ASE_SET_VA LUE', | |
| 3094 | ERROR_DA TABASE_INC REMENT: 'E RROR_DATAB ASE_INCREM ENT', | |
| 3095 | ERROR_FE DERATOR_VI STA_NAMES_ UNAVAILABL E: 'ERROR_ FEDERATOR_ VISTA_NAME S_UNAVAILA BLE', | |
| 3096 | ERROR_MR AR_CREATE_ ARCHIVE_FA ILED: 'ERR OR_MRAR_CR EATE_ARCHI VE_FAILED' , | |
| 3097 | ERROR_MR AR_SESSION _CREATED_C LOSED: 'ER ROR_MRAR_S ESSION_CRE ATED_CLOSE D', | |
| 3098 | ERROR_MR AR_SESSION _CREATED_C ORRUPT: 'E RROR_MRAR_ SESSION_CR EATED_CORR UPT', | |
| 3099 | ERROR_MR AR_RESOLVE _SESSION_F AILED: 'ER ROR_MRAR_R ESOLVE_SES SION_FAILE D', | |
| 3100 | ERROR_IN VALID_ESIG NATURE: 'E RROR_INVAL ID_ESIGNAT URE' | |
| 3101 | }; | |
| 3102 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000package/ lib/metric s.js\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x00000000644\x0000 0001750\x000000 01750\x00000000 0001643\x000013 051754140\x0000 012147\x0000 0\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000u star \x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000/***** ********** ********** ********** ********** ********** ********** ******* | |
| 3103 | Copyrigh t 2016 Ape x Data Sol utions, LL C. | |
| 3104 | http://ww w.apexdata solutions. net/ | |
| 3105 | ||
| 3106 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3107 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3108 | You may o btain a co py of the License at | |
| 3109 | ||
| 3110 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3111 | ||
| 3112 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3113 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3114 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3115 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3116 | limitatio ns under t he License . | |
| 3117 | ||
| 3118 | ********* ********** ********** ********** ********** ********** ********** ***/ | |
| 3119 | var archiv e = requir e('./archi ve'); | |
| 3120 | ||
| 3121 | exports.ex portMetric s = functi on(configu ration, da tabase, ap i) { | |
| 3122 | ||
| 3123 | archive. findMrarSe ssionsToEx port(confi guration, database, api) | |
| 3124 | ||
| 3125 | }; | |
| 3126 | ||
| 3127 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000package /lib/error s.js\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x00000000644 \x00000001750\x00000 001750\x0000000 00005127\x00001 3051754140 \x0000012016\x0000 0 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 ustar \x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000/**** ********** ********** ********** ********** ********** ********** ******** | |
| 3128 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3129 | http://ww w.apexdata solutions. net/ | |
| 3130 | ||
| 3131 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3132 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3133 | You may o btain a co py of the License at | |
| 3134 | ||
| 3135 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3136 | ||
| 3137 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3138 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3139 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3140 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3141 | limitatio ns under t he License . | |
| 3142 | ||
| 3143 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3144 | ||
| 3145 | var errors = require ('./consta nts/errors '); | |
| 3146 | ||
| 3147 | exports.no FederatorS erversConf igured = f unction(in ner) { | |
| 3148 | return { | |
| 3149 | code: errors.ERR OR_CONFIGI URATION_NO _FEDERATOR _SERVERS, | |
| 3150 | detail s: { | |
| 3151 | inne r: inner | |
| 3152 | } | |
| 3153 | }; | |
| 3154 | }; | |
| 3155 | ||
| 3156 | exports.vi staNamesUn available = function (inner) { | |
| 3157 | return { | |
| 3158 | code: errors.ERR OR_FEDERAT OR_VISTA_N AMES_UNAVA ILABLE, | |
| 3159 | detail s: { | |
| 3160 | inne r: inner | |
| 3161 | } | |
| 3162 | }; | |
| 3163 | }; | |
| 3164 | ||
| 3165 | exports.da tabaseUnab leToSetVal ue = funct ion(writeP urpose, in ner) { | |
| 3166 | return { | |
| 3167 | code: errors.ERR OR_DATABAS E_SET_VALU E, | |
| 3168 | detail s: { | |
| 3169 | mess age: write Purpose, | |
| 3170 | inne r: inner | |
| 3171 | } | |
| 3172 | }; | |
| 3173 | }; | |
| 3174 | ||
| 3175 | exports.da tabaseUnab leToRead = function( readPurpos e, inner) { | |
| 3176 | return { | |
| 3177 | code: errors.ERR OR_DATABAS E_READ, | |
| 3178 | detail s: { | |
| 3179 | mess age: readP urpose, | |
| 3180 | inne r: inner | |
| 3181 | } | |
| 3182 | }; | |
| 3183 | }; | |
| 3184 | ||
| 3185 | exports.da tabaseUnab leToIncrem ent = func tion(incre mentPurpos e, inner) { | |
| 3186 | return { | |
| 3187 | code: errors.ERR OR_DATABAS E_INCREMEN T, | |
| 3188 | detail s: { | |
| 3189 | mess age: incre mentPurpos e, | |
| 3190 | inne r: inner | |
| 3191 | } | |
| 3192 | }; | |
| 3193 | }; | |
| 3194 | ||
| 3195 | exports.cr eateMrarAr chiveFaile d = functi on(inner) { | |
| 3196 | return { | |
| 3197 | code: errors.ERR OR_MRAR_CR EATE_ARCHI VE_FAILED, | |
| 3198 | detail s: { | |
| 3199 | inne r: inner | |
| 3200 | } | |
| 3201 | }; | |
| 3202 | }; | |
| 3203 | ||
| 3204 | exports.mr arSessionC reatedClos ed = funct ion(sessio nStatus, i nner) { | |
| 3205 | var clos edDetails = sessionS tatus.clos edDetails; | |
| 3206 | ||
| 3207 | return { | |
| 3208 | code: errors.ERR OR_MRAR_SE SSION_CREA TED_CLOSED , | |
| 3209 | detail s: { | |
| 3210 | stat us: closed Details, | |
| 3211 | inne r: inner | |
| 3212 | } | |
| 3213 | }; | |
| 3214 | }; | |
| 3215 | ||
| 3216 | exports.mr arSessionC reatedCorr upt = func tion(inner ) { | |
| 3217 | return { | |
| 3218 | code: errors.ERR OR_MRAR_SE SSION_CREA TED_CORRUP T, | |
| 3219 | detail s: { | |
| 3220 | inne r: inner | |
| 3221 | } | |
| 3222 | }; | |
| 3223 | }; | |
| 3224 | ||
| 3225 | exports.un ableToReso lveSession = functio n(inner) { | |
| 3226 | return { | |
| 3227 | code: errors.ERR OR_MRAR_RE SOLVE_SESS ION_FAILED , | |
| 3228 | detail s: { | |
| 3229 | inne r: inner | |
| 3230 | } | |
| 3231 | }; | |
| 3232 | }; | |
| 3233 | ||
| 3234 | ||
| 3235 | exports.in validEsign ature = fu nction(inn er) { | |
| 3236 | return { | |
| 3237 | code: errors.ERR OR_INVALID _ESIGNATUR E, | |
| 3238 | detail s: { | |
| 3239 | inne r: inner | |
| 3240 | } | |
| 3241 | }; | |
| 3242 | }; | |
| 3243 | ||
| 3244 | ||
| 3245 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000packa ge/config/ \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x000000007 55\x00000000000 \x00000000000\x00000 0000000000 \x0000130520611 37\x0000012412\x0000 5\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000ustar \x0000 root\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000root\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000pac kage/confi g/ehmp-mra r-services .js.prod\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000000 0644\x000000017 50\x00000001750 \x0000000000044 04\x00001305175 4140\x000001565 2\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000/ ********** ********** ********** ********** ********** ********** ********** ** | |
| 3246 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3247 | http://ww w.apexdata solutions. net/ | |
| 3248 | ||
| 3249 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3250 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3251 | You may o btain a co py of the License at | |
| 3252 | ||
| 3253 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3254 | ||
| 3255 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3256 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3257 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3258 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3259 | limitatio ns under t he License . | |
| 3260 | ||
| 3261 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3262 | "use stric t"; | |
| 3263 | ||
| 3264 | exports.de fault = { | |
| 3265 | "ehmp-mr ar-service s": functi on(api){ | |
| 3266 | return { | |
| 3267 | serv iceName : "ehmp-mra r-services ", | |
| 3268 | titl e : "EHMP MRA R Services ", | |
| 3269 | desc ription : "API to s upport MRA R", | |
| 3270 | base path : "mrar", | |
| 3271 | rootR esource : 'mrar', | |
| 3272 | conf ig : { | |
| 3273 | fe derationSe rvers: [ | |
| 3274 | { name: 'f ederator', host: 'fe derator', port: '80' } | |
| 3275 | ], | |
| 3276 | mi lServer: { | |
| 3277 | host: '5 2.202.247. 8', | |
| 3278 | port: '8 0', | |
| 3279 | AcceptSe lfSignedCe rtificates : true | |
| 3280 | }, | |
| 3281 | gl obals: { | |
| 3282 | MRARSESSIO NS: "MRAR. SESSIONS", | |
| 3283 | MRARSESSIO NSIX: "MRA R.SESSIONS IX", | |
| 3284 | MRAREXPORT LOG: "MRAR .EXPORT.LO G" | |
| 3285 | }, | |
| 3286 | me dicationLo calExpired Discontinu edFilterTh reshold: 1 80, | |
| 3287 | au toDisconne ctSeconds: 1800, | |
| 3288 | pd oInvokable Period: 10 , | |
| 3289 | ma xAgeOfSess ionsToFind InHours: 3 6, | |
| 3290 | mr arSessionV alidPeriod : { | |
| 3291 | inpatient: 12, | |
| 3292 | observatio n: 12, | |
| 3293 | outpatient : 24, | |
| 3294 | default: 1 2 | |
| 3295 | }, | |
| 3296 | me tricsExpor t: { | |
| 3297 | useSchedul er: true, | |
| 3298 | scheduledT ime: '12:0 0', | |
| 3299 | exportDire ctory: '/p rofiles/mr ar/node_mo dules/ehmp -mrar-serv ices/metri csExportFi les' | |
| 3300 | }, | |
| 3301 | mr arSessionC onfig: { | |
| 3302 | checkForSe lectPatien tAutoSessi onTimeoutI ntervalSec onds: 10, | |
| 3303 | selectPati entTimeout Seconds: 1 20, | |
| 3304 | updateLoca lSessionsS tatusInter valSeconds : 10, | |
| 3305 | checkForMr arAutoSess ionTimeout IntervalSe conds: 30, | |
| 3306 | checkForSo cketRespon seInterval MS: 7000 | |
| 3307 | } | |
| 3308 | } | |
| 3309 | } | |
| 3310 | } | |
| 3311 | }; | |
| 3312 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000package/ README.md\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x00000000644\x0000 0001750\x000000 01750\x00000000 0002452\x000013 051754072\x0000 010657\x0000 0\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000u star \x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000# ehmp -mrar-serv ices | |
| 3313 | ||
| 3314 | Theehmp-mr ar-service s is the s erver side of the MR AR applica tion. It i s a node.j s based ap plication running on a forked Action Her o framewor k called v sa-server. | |
| 3315 | ||
| 3316 | ## File st ructure | |
| 3317 | ||
| 3318 | **/actions ** | |
| 3319 | These are all the st andard AH endpoints. | |
| 3320 | ||
| 3321 | **/config* * | |
| 3322 | The config uration fi le | |
| 3323 | ||
| 3324 | **/initial izers** | |
| 3325 | All the AH initializ ers that r uns at sta rtup | |
| 3326 | ||
| 3327 | **/lib** | |
| 3328 | Contains t he main ro utines to process: | |
| 3329 | archive.js : all MUMP S related code | |
| 3330 | errors,js: error han dler | |
| 3331 | helper.js: generic h elpers | |
| 3332 | metrics.js : all the metrics co de (beside MUMPS rel ated code) | |
| 3333 | realtime.j s: Facts s ocket disp atcher | |
| 3334 | ||
| 3335 | **/lib/con stants** | |
| 3336 | Project wi de constan ts for act ions and e rrors | |
| 3337 | ||
| 3338 | **/lib/crs ** | |
| 3339 | Here is wh ere the Vi stA data g et parsed, modeled a nd loaded in reducer s for disp atching | |
| 3340 | ||
| 3341 | **/ib/mil* * | |
| 3342 | MIL server pass-thro ugh handle rs | |
| 3343 | ||
| 3344 | **/lib/mod el** | |
| 3345 | Redux mode l | |
| 3346 | ||
| 3347 | **/lib/uti l** | |
| 3348 | Generic ut il functio ns. The mo st importa nt file is : federato r.js, that handles a ll the fed erator com munication | |
| 3349 | ||
| 3350 | **/metrics Export** | |
| 3351 | Metric exp orts code | |
| 3352 | ||
| 3353 | **/metrics ExportFile s** | |
| 3354 | Exported f iles drop in this di rectory | |
| 3355 | ||
| 3356 | **/routes* * | |
| 3357 | vsa-server routes | |
| 3358 | ||
| 3359 | **/scripts ** | |
| 3360 | post-insta ll script | |
| 3361 | ||
| 3362 | **/test** | |
| 3363 | Unit testi ng. Tests are execut ed when co mmitting c ode in a s emantic wa y (package .json, npm run commi t) and whe n publishi ng code (t ravis) | |
| 3364 | To run uni t tests ma nually sim ply run np m test | |
| 3365 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000packag e/routes/\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000000075 5\x00000000000\x0000 0000000\x000000 000000000\x0000 1305206113 7\x0000012466\x0000 5\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000ustar \x0000r oot\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000root\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000pack age/routes /swagger.s ubmitComma nd.json\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x00000000 644\x0000000175 0\x00000001750\x0000 0000000045 7\x000013051754 072\x0000016057 \x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000{ | |
| 3366 | "paths": { | |
| 3367 | "/temp /temp": { | |
| 3368 | "pos t": { | |
| 3369 | "s ummary": " temp", | |
| 3370 | "d escription ": "temp", | |
| 3371 | "p roduces": [ | |
| 3372 | "applicati on/json" | |
| 3373 | ], | |
| 3374 | "p arameters" : [ | |
| 3375 | ||
| 3376 | ], | |
| 3377 | "t ags": [], | |
| 3378 | "r esponses": { | |
| 3379 | } | |
| 3380 | } | |
| 3381 | } | |
| 3382 | }, | |
| 3383 | "definit ions": { | |
| 3384 | } | |
| 3385 | }\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 package/ro utes/route .searchPat ient.js\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 0000644\x000000 01750\x00000001 750\x0000000000 01540\x00001305 1754140\x000001 5177\x0000 0\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000ust ar \x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000/******* ********** ********** ********** ********** ********** ********** ***** | |
| 3386 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3387 | http://ww w.apexdata solutions. net/ | |
| 3388 | ||
| 3389 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3390 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3391 | You may o btain a co py of the License at | |
| 3392 | ||
| 3393 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3394 | ||
| 3395 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3396 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3397 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3398 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3399 | limitatio ns under t he License . | |
| 3400 | ||
| 3401 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3402 | ||
| 3403 | "use stric t"; | |
| 3404 | ||
| 3405 | module.exp orts = { | |
| 3406 | method: 'get', | |
| 3407 | path: '/ patient/se arch', | |
| 3408 | action: 'searchPat ient' | |
| 3409 | }; | |
| 3410 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 package/ro utes/route .submitCom mand.js\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 0000644\x000000 01750\x00000001 750\x0000000000 01633\x00001305 1754140\x000001 5212\x0000 0\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000ust ar \x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000/******* ********** ********** ********** ********** ********** ********** ***** | |
| 3411 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3412 | http://ww w.apexdata solutions. net/ | |
| 3413 | ||
| 3414 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3415 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3416 | You may o btain a co py of the License at | |
| 3417 | ||
| 3418 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3419 | ||
| 3420 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3421 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3422 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3423 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3424 | limitatio ns under t he License . | |
| 3425 | ||
| 3426 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3427 | ||
| 3428 | "use stric t"; | |
| 3429 | ||
| 3430 | module.exp orts = { | |
| 3431 | method: 'post', | |
| 3432 | path: '/ archive/:i d/commands ', | |
| 3433 | action: 'submitCom mand', | |
| 3434 | swagger: require(' ./swagger. submitComm and.json') | |
| 3435 | }; | |
| 3436 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000package/r outes/swag ger.resolv eMrarSessi on.json\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x00000000644\x00000 001750\x0000000 1750\x000000000 000457\x0000130 51754072\x00000 17122\x0000 0\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000us tar \x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000{ | |
| 3437 | "paths": { | |
| 3438 | "/temp /temp": { | |
| 3439 | "pos t": { | |
| 3440 | "s ummary": " temp", | |
| 3441 | "d escription ": "temp", | |
| 3442 | "p roduces": [ | |
| 3443 | "applicati on/json" | |
| 3444 | ], | |
| 3445 | "p arameters" : [ | |
| 3446 | ||
| 3447 | ], | |
| 3448 | "t ags": [], | |
| 3449 | "r esponses": { | |
| 3450 | } | |
| 3451 | } | |
| 3452 | } | |
| 3453 | }, | |
| 3454 | "definit ions": { | |
| 3455 | } | |
| 3456 | }\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 package/ro utes/swagg er.searchC ausativeAg ent.json\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 0000644\x000000 01750\x00000001 750\x0000000000 00456\x00001305 1754072\x000001 7345\x0000 0\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000ust ar \x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000{ | |
| 3457 | "paths": { | |
| 3458 | "/temp /temp": { | |
| 3459 | "get ": { | |
| 3460 | "s ummary": " temp", | |
| 3461 | "d escription ": "temp", | |
| 3462 | "p roduces": [ | |
| 3463 | "applicati on/json" | |
| 3464 | ], | |
| 3465 | "p arameters" : [ | |
| 3466 | ||
| 3467 | ], | |
| 3468 | "t ags": [], | |
| 3469 | "r esponses": { | |
| 3470 | } | |
| 3471 | } | |
| 3472 | } | |
| 3473 | }, | |
| 3474 | "definit ions": { | |
| 3475 | } | |
| 3476 | }\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000package/r outes/rout e.setConne ctionPredi sconnect.j s\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x00000000644\x00000 001750\x0000000 1750\x000000000 001556\x0000130 51754140\x00000 17750\x0000 0\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000us tar \x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000/****** ********** ********** ********** ********** ********** ********** ****** | |
| 3477 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3478 | http://ww w.apexdata solutions. net/ | |
| 3479 | ||
| 3480 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3481 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3482 | You may o btain a co py of the License at | |
| 3483 | ||
| 3484 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3485 | ||
| 3486 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3487 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3488 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3489 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3490 | limitatio ns under t he License . | |
| 3491 | ||
| 3492 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3493 | ||
| 3494 | "use stric t"; | |
| 3495 | ||
| 3496 | module.exp orts = { | |
| 3497 | method: 'post', | |
| 3498 | path: '/ connection /:id', | |
| 3499 | action: 'setConnec tionPredis connect' | |
| 3500 | }; | |
| 3501 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000pack age/routes /swagger.g etFacts.js on\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x00000000 644\x0000000175 0\x00000001750\x0000 0000000161 1\x000013051754 072\x0000015006 \x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000{ | |
| 3502 | "paths": { | |
| 3503 | "archi ve/{archiv eId}/facts ": { | |
| 3504 | "get ": { | |
| 3505 | "s ummary": " Answer all facts for a given a rchive", | |
| 3506 | "d escription ": "An arc hive is a sequence o f recorded facts. R ead and re turn all f acts for t he given a rchive.", | |
| 3507 | "p roduces": [ | |
| 3508 | "applicati on/json" | |
| 3509 | ], | |
| 3510 | "p arameters" : [ | |
| 3511 | { | |
| 3512 | "name": "archiveId ", | |
| 3513 | "in": "p ath", | |
| 3514 | "descrip tion": "Un ique id of an archiv e", | |
| 3515 | "require d": true, | |
| 3516 | "type": "string" | |
| 3517 | } | |
| 3518 | ], | |
| 3519 | "t ags": [ "A rchive", " Facts"], | |
| 3520 | "r esponses" : { | |
| 3521 | "200" : { | |
| 3522 | "descrip tion" : "A n array of facts", | |
| 3523 | "schema" : { | |
| 3524 | "type" : "array", | |
| 3525 | "items ": { | |
| 3526 | "$re f": "#/def initions/F act" | |
| 3527 | } | |
| 3528 | } | |
| 3529 | } | |
| 3530 | } | |
| 3531 | } | |
| 3532 | } | |
| 3533 | }, | |
| 3534 | "definit ions": { | |
| 3535 | "Fact" : {} | |
| 3536 | } | |
| 3537 | } | |
| 3538 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000p ackage/rou tes/swagge r.submitNo te.json\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x00000 000644\x0000000 1750\x000000017 50\x00000000000 0457\x000013051 754072\x0000015 406\x0000 0\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000usta r \x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000{ | |
| 3539 | "paths": { | |
| 3540 | "/temp /temp": { | |
| 3541 | "pos t": { | |
| 3542 | "s ummary": " temp", | |
| 3543 | "d escription ": "temp", | |
| 3544 | "p roduces": [ | |
| 3545 | "applicati on/json" | |
| 3546 | ], | |
| 3547 | "p arameters" : [ | |
| 3548 | ||
| 3549 | ], | |
| 3550 | "t ags": [], | |
| 3551 | "r esponses": { | |
| 3552 | } | |
| 3553 | } | |
| 3554 | } | |
| 3555 | }, | |
| 3556 | "definit ions": { | |
| 3557 | } | |
| 3558 | }\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 package/ro utes/swagg er.getMilI mageUrl.js on\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 0000644\x000000 01750\x00000001 750\x0000000000 01014\x00001305 1754072\x000001 6112\x0000 0\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000ust ar \x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000{ | |
| 3559 | "paths": { | |
| 3560 | "/mil/ {ndc}": { | |
| 3561 | "get ": { | |
| 3562 | "s ummary": " Answer ava ilable ima ge and thu mbnail URL s for the given NDC" , | |
| 3563 | "d escription ": "", | |
| 3564 | "p roduces": [ | |
| 3565 | "applicati on/json" | |
| 3566 | ], | |
| 3567 | "p arameters" : [{ | |
| 3568 | "name": "ndc", | |
| 3569 | "in": "p ath", | |
| 3570 | "descrip tion": "11 character NDC", | |
| 3571 | "require d": true, | |
| 3572 | "type": "string" | |
| 3573 | } | |
| 3574 | ], | |
| 3575 | "t ags": [], | |
| 3576 | "r esponses": { | |
| 3577 | } | |
| 3578 | } | |
| 3579 | } | |
| 3580 | }, | |
| 3581 | "definit ions": { | |
| 3582 | } | |
| 3583 | }\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000package/r outes/rout e.signTiuN ote.js\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x00000000644\x00000 001750\x0000000 1750\x000000000 001564\x0000130 51754140\x00000 14663\x0000 0\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000us tar \x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000/****** ********** ********** ********** ********** ********** ********** ****** | |
| 3584 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3585 | http://ww w.apexdata solutions. net/ | |
| 3586 | ||
| 3587 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3588 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3589 | You may o btain a co py of the License at | |
| 3590 | ||
| 3591 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3592 | ||
| 3593 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3594 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3595 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3596 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3597 | limitatio ns under t he License . | |
| 3598 | ||
| 3599 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3600 | ||
| 3601 | "use stric t"; | |
| 3602 | ||
| 3603 | module.exp orts = { | |
| 3604 | method: 'post', | |
| 3605 | action: 'submitNot e', | |
| 3606 | swagger: require(' ./swagger. submitNote .json') | |
| 3607 | }; | |
| 3608 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 package/ro utes/route .LoginByVA .js\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 0000644\x000000 01750\x00000001 750\x0000000000 01524\x00001305 1754140\x000001 4201\x0000 0\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000ust ar \x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000/******* ********** ********** ********** ********** ********** ********** ***** | |
| 3609 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3610 | http://ww w.apexdata solutions. net/ | |
| 3611 | ||
| 3612 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3613 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3614 | You may o btain a co py of the License at | |
| 3615 | ||
| 3616 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3617 | ||
| 3618 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3619 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3620 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3621 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3622 | limitatio ns under t he License . | |
| 3623 | ||
| 3624 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3625 | ||
| 3626 | "use stric t"; | |
| 3627 | ||
| 3628 | module.exp orts = { | |
| 3629 | method: 'post', | |
| 3630 | path: '/ login', | |
| 3631 | action: 'LoginByAV ' | |
| 3632 | }; | |
| 3633 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000package/ routes/rou te.setConn ectionPost Connect.js \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x00000000644\x0000 0001750\x000000 01750\x00000000 0001554\x000013 051754140\x0000 017405\x0000 0\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000u star \x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000/***** ********** ********** ********** ********** ********** ********** ******* | |
| 3634 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3635 | http://ww w.apexdata solutions. net/ | |
| 3636 | ||
| 3637 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3638 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3639 | You may o btain a co py of the License at | |
| 3640 | ||
| 3641 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3642 | ||
| 3643 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3644 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3645 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3646 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3647 | limitatio ns under t he License . | |
| 3648 | ||
| 3649 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3650 | ||
| 3651 | "use stric t"; | |
| 3652 | ||
| 3653 | module.exp orts = { | |
| 3654 | method: 'post', | |
| 3655 | path: '/ connection /:id', | |
| 3656 | action: 'setConnec tionPostCo nnect' | |
| 3657 | }; | |
| 3658 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000pa ckage/rout es/route.r esolveMrar Session.js \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x000000 00644\x00000001 750\x0000000175 0\x000000000001 513\x0000130517 54140\x00000162 52\x0000 0\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 /********* ********** ********** ********** ********** ********** ********** *** | |
| 3659 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3660 | http://ww w.apexdata solutions. net/ | |
| 3661 | ||
| 3662 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3663 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3664 | You may o btain a co py of the License at | |
| 3665 | ||
| 3666 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3667 | ||
| 3668 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3669 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3670 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3671 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3672 | limitatio ns under t he License . | |
| 3673 | ||
| 3674 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3675 | ||
| 3676 | "use stric t"; | |
| 3677 | ||
| 3678 | module.exp orts = { | |
| 3679 | method: 'post', | |
| 3680 | action: 'resolveMr arSession' | |
| 3681 | }; | |
| 3682 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000package/r outes/swag ger.search Medication ProductDes cription.j son\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x00000000644\x00000 001750\x0000000 1750\x000000000 000456\x0000130 51754072\x00000 22263\x0000 0\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000us tar \x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000{ | |
| 3683 | "paths": { | |
| 3684 | "/temp /temp": { | |
| 3685 | "get ": { | |
| 3686 | "s ummary": " temp", | |
| 3687 | "d escription ": "temp", | |
| 3688 | "p roduces": [ | |
| 3689 | "applicati on/json" | |
| 3690 | ], | |
| 3691 | "p arameters" : [ | |
| 3692 | ||
| 3693 | ], | |
| 3694 | "t ags": [], | |
| 3695 | "r esponses": { | |
| 3696 | } | |
| 3697 | } | |
| 3698 | } | |
| 3699 | }, | |
| 3700 | "definit ions": { | |
| 3701 | } | |
| 3702 | }\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000package/r outes/rout e.getMilIm ageUrl.js\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x00000000644\x00000 001750\x0000000 1750\x000000000 001620\x0000130 51754140\x00000 15253\x0000 0\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000us tar \x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000/****** ********** ********** ********** ********** ********** ********** ****** | |
| 3703 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3704 | http://ww w.apexdata solutions. net/ | |
| 3705 | ||
| 3706 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3707 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3708 | You may o btain a co py of the License at | |
| 3709 | ||
| 3710 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3711 | ||
| 3712 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3713 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3714 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3715 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3716 | limitatio ns under t he License . | |
| 3717 | ||
| 3718 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3719 | ||
| 3720 | "use stric t"; | |
| 3721 | ||
| 3722 | module.exp orts = { | |
| 3723 | method: 'get', | |
| 3724 | path: '/ mil/:ndc', | |
| 3725 | action: 'getMilIma geUrl', | |
| 3726 | swagger: require(' ./swagger. getMilImag eUrl.json' ) | |
| 3727 | }; | |
| 3728 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000package/ routes/rou te.getFact s.js\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x00000000644\x0000 0001750\x000000 01750\x00000000 0001624\x000013 051754140\x0000 014150\x0000 0\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000u star \x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000/***** ********** ********** ********** ********** ********** ********** ******* | |
| 3729 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3730 | http://ww w.apexdata solutions. net/ | |
| 3731 | ||
| 3732 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3733 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3734 | You may o btain a co py of the License at | |
| 3735 | ||
| 3736 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3737 | ||
| 3738 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3739 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3740 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3741 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3742 | limitatio ns under t he License . | |
| 3743 | ||
| 3744 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3745 | ||
| 3746 | "use stric t"; | |
| 3747 | ||
| 3748 | module.exp orts = { | |
| 3749 | method: 'get', | |
| 3750 | path: '/ archive/:a rchiveId/f acts', | |
| 3751 | action: 'getFacts' , | |
| 3752 | swagger: require(' ./swagger. getFacts.j son') | |
| 3753 | }; | |
| 3754 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000pa ckage/rout es/route.s earchMedic ationProdu ctDescript ion.js\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x000000 00644\x00000001 750\x0000000175 0\x000000000001 643\x0000130517 54140\x00000214 20\x0000 0\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 /********* ********** ********** ********** ********** ********** ********** *** | |
| 3755 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3756 | http://ww w.apexdata solutions. net/ | |
| 3757 | ||
| 3758 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3759 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3760 | You may o btain a co py of the License at | |
| 3761 | ||
| 3762 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3763 | ||
| 3764 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3765 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3766 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3767 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3768 | limitatio ns under t he License . | |
| 3769 | ||
| 3770 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3771 | ||
| 3772 | "use stric t"; | |
| 3773 | ||
| 3774 | module.exp orts = { | |
| 3775 | method: 'get', | |
| 3776 | action: 'searchMed icationPro ductDescri ption', | |
| 3777 | swagger: require(' ./swagger. searchMedi cationProd uctDescrip tion.json' ) | |
| 3778 | }; | |
| 3779 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000package /routes/ro ute.search CausativeA gent.js\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x00000000644 \x00000001750\x00000 001750\x0000000 00001607\x00001 3051754140 \x0000016502\x0000 0 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 ustar \x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000/**** ********** ********** ********** ********** ********** ********** ******** | |
| 3780 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 3781 | http://ww w.apexdata solutions. net/ | |
| 3782 | ||
| 3783 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3784 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3785 | You may o btain a co py of the License at | |
| 3786 | ||
| 3787 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3788 | ||
| 3789 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3790 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3791 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3792 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3793 | limitatio ns under t he License . | |
| 3794 | ||
| 3795 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 3796 | ||
| 3797 | "use stric t"; | |
| 3798 | ||
| 3799 | module.exp orts = { | |
| 3800 | method: 'get', | |
| 3801 | action: 'searchCau sativeAgen t', | |
| 3802 | swagger: require(' ./swagger. searchCaus ativeAgent .json') | |
| 3803 | }; | |
| 3804 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000package/r outes/rout e.GetVistA ServerName s.js\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x00000000644\x00000 001750\x0000000 1750\x000000000 001603\x0000130 51754140\x00000 16246\x0000 0\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000us tar \x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000/****** ********** ********** ********** ********** ********** ********** ********** ********** * | |
| 3805 | Copyrigh t 2016 Ape x Data Sol utions, LL C. | |
| 3806 | http://ww w.apexdata solutions. net/ | |
| 3807 | ||
| 3808 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3809 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3810 | You may o btain a co py of the License at | |
| 3811 | ||
| 3812 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3813 | ||
| 3814 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3815 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3816 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3817 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3818 | limitatio ns under t he License . | |
| 3819 | ||
| 3820 | ********* ********** ********** ********** ********** ********** ********** ********** *******/ | |
| 3821 | ||
| 3822 | "use stric t"; | |
| 3823 | ||
| 3824 | module.exp orts = { | |
| 3825 | method: 'get', | |
| 3826 | path: '/ vistas/nam es', | |
| 3827 | action: 'GetVistAS erverNames ' | |
| 3828 | }; | |
| 3829 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000packa ge/scripts /\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x000000007 55\x00000000000 \x00000000000\x00000 0000000000 \x0000130520611 37\x0000012634\x0000 5\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000ustar \x0000 root\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000root\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000pac kage/scrip ts/postIns tall.js\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000000 0644\x000000017 50\x00000001750 \x0000000000036 72\x00001305175 4140\x000001374 2\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000# !/usr/bin/ env node | |
| 3830 | /********* ********** ********** ********** ********** ********** ********** ********** ******** | |
| 3831 | ||
| 3832 | Copyrigh t 2016 Ape x Data Sol utions, LL C. | |
| 3833 | http://ww w.apexdata solutions. net/ | |
| 3834 | ||
| 3835 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 3836 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 3837 | You may o btain a co py of the License at | |
| 3838 | ||
| 3839 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 3840 | ||
| 3841 | Unless re quired by applicable law or ag reed to in writing, software | |
| 3842 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 3843 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 3844 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 3845 | limitatio ns under t he License . | |
| 3846 | ||
| 3847 | ||
| 3848 | --------- ---------- -- | |
| 3849 | ||
| 3850 | Filename: postInsta ll.js | |
| 3851 | Purpose: Post insta llation sc ript for V SA plugin | |
| 3852 | ||
| 3853 | ********* ********** ********** ********** ********** ********** ********** ********** *******/ | |
| 3854 | ||
| 3855 | "use stric t"; | |
| 3856 | ||
| 3857 | var fs = r equire('fs '); | |
| 3858 | var path = require(' path'); | |
| 3859 | ||
| 3860 | var config Dir = path .normalize (__dirname + '/../co nfig/'); | |
| 3861 | ||
| 3862 | var exec = require(' child_proc ess').exec ; | |
| 3863 | var cmd = 'ls -1 ' + configDir ; | |
| 3864 | ||
| 3865 | exec(cmd, function(e rror, stdo ut) { | |
| 3866 | if( erro r ) return ; | |
| 3867 | var file s = stdout .toString( ); | |
| 3868 | if (file s.trim().l ength > 0) { | |
| 3869 | var co nfigFiles = files.sp lit('\n'); | |
| 3870 | config Files.forE ach(copyCo nfig); | |
| 3871 | } | |
| 3872 | }); | |
| 3873 | ||
| 3874 | function c opyConfig( configFile ) { | |
| 3875 | if (conf igFile.tri m().length === 0) re turn; | |
| 3876 | var targ etFile = c onfigFile. replace(". prod",""); | |
| 3877 | var loca lFile = pa th.normali ze(__dirna me + '/../ config/' + configFil e); | |
| 3878 | var proj ectPath = path.norma lize(__dir name + '/. ./../../co nfig/plugi ns'); | |
| 3879 | var proj ectFile = path.norma lize(proje ctPath + ' /' + targe tFile); | |
| 3880 | ||
| 3881 | // Only co py example if the re al thing d oesn't exi st | |
| 3882 | if (!fs. existsSync (projectFi le)) { | |
| 3883 | consol e.log("cop ying " + l ocalFile + " to " + projectFil e); | |
| 3884 | try { | |
| 3885 | fs.m kdirSync(p rojectPath ); | |
| 3886 | } catc h (e) { | |
| 3887 | } | |
| 3888 | fs.cre ateReadStr eam(localF ile).pipe( fs.createW riteStream (projectFi le)); | |
| 3889 | } | |
| 3890 | } | |
| 3891 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 package/.n pmignore\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 0000644\x000000 01750\x00000001 750\x0000000000 01073\x00001305 1754072\x000001 1375\x0000 0\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000ust ar \x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000# Logs | |
| 3892 | logs | |
| 3893 | *.log | |
| 3894 | ||
| 3895 | # Runtime data | |
| 3896 | pids | |
| 3897 | *.pid | |
| 3898 | *.seed | |
| 3899 | ||
| 3900 | # Director y for inst rumented l ibs genera ted by jsc overage/JS Cover | |
| 3901 | lib-cov | |
| 3902 | ||
| 3903 | # Coverage directory used by t ools like istanbul | |
| 3904 | coverage | |
| 3905 | ||
| 3906 | # Grunt in termediate storage ( http://gru ntjs.com/c reating-pl ugins#stor ing-task-f iles) | |
| 3907 | .grunt | |
| 3908 | ||
| 3909 | # node-waf configura tion | |
| 3910 | .lock-wscr ipt | |
| 3911 | ||
| 3912 | # Compiled binary ad dons (http ://nodejs. org/api/ad dons.html) | |
| 3913 | build/Rele ase | |
| 3914 | ||
| 3915 | # Dependen cy directo ry | |
| 3916 | # https:// www.npmjs. org/doc/mi sc/npm-faq .html#shou ld-i-check -my-node_m odules-fol der-into-g it | |
| 3917 | node_modul es | |
| 3918 | bin/cache. node | |
| 3919 | ||
| 3920 | # WebStorm | |
| 3921 | .idea | |
| 3922 | /.project | |
| 3923 | ||
| 3924 | ||
| 3925 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000package /metricsEx portFiles/ \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x00000000755 \x00000000000\x00000 000000\x0000000 00000000\x00001 3052061137 \x0000015000\x0000 5 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 ustar \x0000ro ot\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 root\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000packa ge/metrics ExportFile s/.dummy\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x000000006 44\x00000001750 \x00000001750\x00000 0000000000 \x0000130517540 72\x0000014352\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000ustar \x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000pac kage/test/ \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000000 0755\x000000000 00\x00000000000 \x0000000000000 00\x00001305206 1137\x000001212 4\x0000 5\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000ustar \x0000root\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000root\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000p ackage/tes t/allergie s/\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x00000 000755\x0000000 0000\x000000000 00\x00000000000 0000\x000013052 061137\x0000014 073\x0000 5\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000usta r \x0000root\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000root \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000package/t est/allerg ies/allerg yResponses TestData.j s\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x00000000644\x00000 001750\x0000000 1750\x000000000 027324\x0000130 51754072\x00000 17664\x0000 0\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000us tar \x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000 | |
| 3926 | ||
| 3927 | // single site shoul w wrap res ponse with site. | |
| 3928 | // wrap si ngle with location: { | |
| 3929 | ||
| 3930 | ||
| 3931 | /* | |
| 3932 | var single = { | |
| 3933 | "baypine s": { | |
| 3934 | "endpo int": { | |
| 3935 | "sta tionID": 5 48, | |
| 3936 | "sit eName": "W EST PALM B EACH VAMC" | |
| 3937 | }, | |
| 3938 | "data" : { | |
| 3939 | "a llergies": { | |
| 3940 | "516:100 856:983:12 0.8": { | |
| 3941 | "all ergyType": "DRUG", | |
| 3942 | "all ergyTypeMe chanism": "PHARMACOL OGIC", | |
| 3943 | "cau sativeAgen tName": "Q UETIAPINE" , | |
| 3944 | "cau sativeAgen tVUID": "u rn:va:vuid :4024080", | |
| 3945 | "fac ilityCode" : "516", | |
| 3946 | "fac ilityName" : "BAY PIN ES VAMC", | |
| 3947 | "his torical": "true", | |
| 3948 | "kin d": "Aller gy / Adver se Reactio n", | |
| 3949 | "loc alId": "98 3", | |
| 3950 | "obs erved": "f alse", | |
| 3951 | "ori ginationDa teTime": " 3130317.12 ^Mar 17, 2 013@12:00" , | |
| 3952 | "rea ctions": { | |
| 3953 | "1": { | |
| 3954 | "name" : "DYSPHAG IA", | |
| 3955 | "vuid" : "urn:va: vuid:45396 78" | |
| 3956 | }, | |
| 3957 | "2": { | |
| 3958 | "name" : "FEELING IRRITABLE ", | |
| 3959 | "vuid" : "urn:va: vuid:46372 81" | |
| 3960 | } | |
| 3961 | }, | |
| 3962 | "ref erence": " 3445;PSNDF (50.6,", | |
| 3963 | "sum mary": "QU ETIAPINE", | |
| 3964 | "uid ": "516:10 0856:983:1 20.8", | |
| 3965 | "ver ifiedDateT ime": "316 0426.20254 ^Apr 26, 2 016@20:25: 40" | |
| 3966 | }, | |
| 3967 | "516:100 856:984:12 0.8": { | |
| 3968 | "all ergyType": "DRUG", | |
| 3969 | "all ergyTypeMe chanism": "PHARMACOL OGIC", | |
| 3970 | "cau sativeAgen tName": "B ELLADONNA/ BUTABARBIT AL", | |
| 3971 | "cau sativeAgen tVUID": "u rn:va:vuid :4022369", | |
| 3972 | "fac ilityCode" : "516", | |
| 3973 | "fac ilityName" : "BAY PIN ES VAMC", | |
| 3974 | "his torical": "true", | |
| 3975 | "kin d": "Aller gy / Adver se Reactio n", | |
| 3976 | "loc alId": "98 4", | |
| 3977 | "obs erved": "f alse", | |
| 3978 | "ori ginationDa teTime": " 2850602.12 ^Jun 02, 1 985@12:00" , | |
| 3979 | "rea ctions": { | |
| 3980 | "1": { | |
| 3981 | "name" : "DRY MOU TH", | |
| 3982 | "vuid" : "urn:va: vuid:45385 97" | |
| 3983 | }, | |
| 3984 | "2": { | |
| 3985 | "name" : "DROWSY" , | |
| 3986 | "vuid" : "urn:va: vuid:46374 72" | |
| 3987 | } | |
| 3988 | }, | |
| 3989 | "ref erence": " 739;PSNDF( 50.6,", | |
| 3990 | "sum mary": "BE LLADONNA/B UTABARBITA L", | |
| 3991 | "uid ": "516:10 0856:984:1 20.8", | |
| 3992 | "ver ifiedDateT ime": "316 0426.20254 ^Apr 26, 2 016@20:25: 40" | |
| 3993 | }, | |
| 3994 | "516:100 856:985:12 0.8": { | |
| 3995 | "all ergyType": "DRUG", | |
| 3996 | "all ergyTypeMe chanism": "PHARMACOL OGIC", | |
| 3997 | "cau sativeAgen tName": "S UCCINYLCHO LINE", | |
| 3998 | "cau sativeAgen tVUID": "u rn:va:vuid :4019935", | |
| 3999 | "fac ilityCode" : "516", | |
| 4000 | "fac ilityName" : "BAY PIN ES VAMC", | |
| 4001 | "his torical": "false", | |
| 4002 | "kin d": "Aller gy / Adver se Reactio n", | |
| 4003 | "loc alId": "98 5", | |
| 4004 | "obs erved": "t rue", | |
| 4005 | "obs ervedDateT imes": { | |
| 4006 | "1": { | |
| 4007 | "dateT ime": "Jan 23, 2016@ 12:00", | |
| 4008 | "sever ity": "MOD ERATE" | |
| 4009 | }, | |
| 4010 | "2": { | |
| 4011 | "dateT ime": "Apr 27, 2016" | |
| 4012 | } | |
| 4013 | }, | |
| 4014 | "ori ginationDa teTime": " 3160125.12 ^Jan 25, 2 016@12:00" , | |
| 4015 | "rea ctions": { | |
| 4016 | "1": { | |
| 4017 | "name" : "CARDIAC ARREST", | |
| 4018 | "vuid" : "urn:va: vuid:46370 33" | |
| 4019 | } | |
| 4020 | }, | |
| 4021 | "ref erence": " 125;PSNDF( 50.6,", | |
| 4022 | "sum mary": "SU CCINYLCHOL INE", | |
| 4023 | "uid ": "516:10 0856:985:1 20.8" | |
| 4024 | } | |
| 4025 | }, | |
| 4026 | "s iteName": "BAY PINES VAMC", | |
| 4027 | "s tationNumb er": "516" | |
| 4028 | } | |
| 4029 | } | |
| 4030 | }; | |
| 4031 | ||
| 4032 | ||
| 4033 | var allWit hErrors = { | |
| 4034 | "haley ": { | |
| 4035 | "c ode": "ECO NNREFUSED" , | |
| 4036 | "e rror": "Co nnection R efused" | |
| 4037 | }, | |
| 4038 | "westp alm": { | |
| 4039 | "c ode": "ECO NNREFUSED" , | |
| 4040 | "e rror": "Co nnection R efused" | |
| 4041 | }, | |
| 4042 | "baypi nes": { | |
| 4043 | "d ata": { | |
| 4044 | "allergi es": { | |
| 4045 | "516 :100856:98 3:120.8": { | |
| 4046 | "allergyTy pe": "DRUG ", | |
| 4047 | "allergyTy peMechanis m": "PHARM ACOLOGIC", | |
| 4048 | "causative AgentName" : "QUETIAP INE", | |
| 4049 | "causative AgentVUID" : "urn:va: vuid:40240 80", | |
| 4050 | "facilityC ode": "516 ", | |
| 4051 | "facilityN ame": "BAY PINES VAM C", | |
| 4052 | "historica l": "true" , | |
| 4053 | "kind": "A llergy / A dverse Rea ction", | |
| 4054 | "localId": "983", | |
| 4055 | "observed" : "false", | |
| 4056 | "originati onDateTime ": "313031 7.12^Mar 1 7, 2013@12 :00", | |
| 4057 | "reactions ": { | |
| 4058 | "1": { | |
| 4059 | "n ame": "DYS PHAGIA", | |
| 4060 | "v uid": "urn :va:vuid:4 539678" | |
| 4061 | }, | |
| 4062 | "2": { | |
| 4063 | "n ame": "FEE LING IRRIT ABLE", | |
| 4064 | "v uid": "urn :va:vuid:4 637281" | |
| 4065 | } | |
| 4066 | }, | |
| 4067 | "reference ": "3445;P SNDF(50.6, ", | |
| 4068 | "summary": "QUETIAPI NE", | |
| 4069 | "uid": "51 6:100856:9 83:120.8", | |
| 4070 | "verifiedD ateTime": "3160426.2 0254^Apr 2 6, 2016@20 :25:40" | |
| 4071 | }, | |
| 4072 | "516 :100856:98 4:120.8": { | |
| 4073 | "allergyTy pe": "DRUG ", | |
| 4074 | "allergyTy peMechanis m": "PHARM ACOLOGIC", | |
| 4075 | "causative AgentName" : "BELLADO NNA/BUTABA RBITAL", | |
| 4076 | "causative AgentVUID" : "urn:va: vuid:40223 69", | |
| 4077 | "facilityC ode": "516 ", | |
| 4078 | "facilityN ame": "BAY PINES VAM C", | |
| 4079 | "historica l": "true" , | |
| 4080 | "kind": "A llergy / A dverse Rea ction", | |
| 4081 | "localId": "984", | |
| 4082 | "observed" : "false", | |
| 4083 | "originati onDateTime ": "285060 2.12^Jun 0 2, 1985@12 :00", | |
| 4084 | "reactions ": { | |
| 4085 | "1": { | |
| 4086 | "n ame": "DRY MOUTH", | |
| 4087 | "v uid": "urn :va:vuid:4 538597" | |
| 4088 | }, | |
| 4089 | "2": { | |
| 4090 | "n ame": "DRO WSY", | |
| 4091 | "v uid": "urn :va:vuid:4 637472" | |
| 4092 | } | |
| 4093 | }, | |
| 4094 | "reference ": "739;PS NDF(50.6," , | |
| 4095 | "summary": "BELLADON NA/BUTABAR BITAL", | |
| 4096 | "uid": "51 6:100856:9 84:120.8", | |
| 4097 | "verifiedD ateTime": "3160426.2 0254^Apr 2 6, 2016@20 :25:40" | |
| 4098 | }, | |
| 4099 | "516 :100856:98 5:120.8": { | |
| 4100 | "allergyTy pe": "DRUG ", | |
| 4101 | "allergyTy peMechanis m": "PHARM ACOLOGIC", | |
| 4102 | "causative AgentName" : "SUCCINY LCHOLINE", | |
| 4103 | "causative AgentVUID" : "urn:va: vuid:40199 35", | |
| 4104 | "facilityC ode": "516 ", | |
| 4105 | "facilityN ame": "BAY PINES VAM C", | |
| 4106 | "historica l": "false ", | |
| 4107 | "kind": "A llergy / A dverse Rea ction", | |
| 4108 | "localId": "985", | |
| 4109 | "observed" : "true", | |
| 4110 | "observedD ateTimes": { | |
| 4111 | "1": { | |
| 4112 | "d ateTime": "Jan 23, 2 016@12:00" , | |
| 4113 | "s everity": "MODERATE" | |
| 4114 | }, | |
| 4115 | "2": { | |
| 4116 | "d ateTime": "Apr 27, 2 016" | |
| 4117 | } | |
| 4118 | }, | |
| 4119 | "originati onDateTime ": "316012 5.12^Jan 2 5, 2016@12 :00", | |
| 4120 | "reactions ": { | |
| 4121 | "1": { | |
| 4122 | "n ame": "CAR DIAC ARRES T", | |
| 4123 | "v uid": "urn :va:vuid:4 637033" | |
| 4124 | } | |
| 4125 | }, | |
| 4126 | "reference ": "125;PS NDF(50.6," , | |
| 4127 | "summary": "SUCCINYL CHOLINE", | |
| 4128 | "uid": "51 6:100856:9 85:120.8" | |
| 4129 | } | |
| 4130 | }, | |
| 4131 | "siteNam e": "BAY P INES VAMC" , | |
| 4132 | "station Number": " 516" | |
| 4133 | } | |
| 4134 | } | |
| 4135 | }; | |
| 4136 | ||
| 4137 | var visite dWestPalmB ayPines = { | |
| 4138 | "548": { | |
| 4139 | "dat a": { | |
| 4140 | "allergies ": [], | |
| 4141 | "siteName" : "WEST PA LM BEACH V AMC", | |
| 4142 | "stationNu mber": "54 8" | |
| 4143 | }, | |
| 4144 | "end point": { | |
| 4145 | "stationID ": 548, | |
| 4146 | "siteName" : "WEST PA LM BEACH V AMC" | |
| 4147 | } | |
| 4148 | }, | |
| 4149 | "673": { | |
| 4150 | "dat a": { | |
| 4151 | "allergies ": [ | |
| 4152 | { | |
| 4153 | "a llergyType ": "DRUG", | |
| 4154 | "a llergyType Mechanism" : "PHARMAC OLOGIC", | |
| 4155 | "c ausativeAg entName": "MORPHINE" , | |
| 4156 | "c ausativeAg entVUID": "urn:va:vu id:4017530 ", | |
| 4157 | "f acilityCod e": "673", | |
| 4158 | "f acilityNam e": "TAMPA (JAH VAH) ", | |
| 4159 | "h istorical" : "true", | |
| 4160 | "k ind": "All ergy / Adv erse React ion", | |
| 4161 | "l ocalId": " 988", | |
| 4162 | "o bserved": "false", | |
| 4163 | "o rigination DateTime": "Feb 21, 2016@12:00 ", | |
| 4164 | "r eactions": [ | |
| 4165 | { | |
| 4166 | "nam e": "GENER ALIZED RAS H", | |
| 4167 | "vui d": "urn:v a:vuid:463 7102" | |
| 4168 | }, | |
| 4169 | { | |
| 4170 | "nam e": "LOSS OF APPETIT E", | |
| 4171 | "vui d": "urn:v a:vuid:463 7094" | |
| 4172 | } | |
| 4173 | ], | |
| 4174 | "r eference": "122;PS(5 0.416,", | |
| 4175 | "s ummary": " MORPHINE", | |
| 4176 | "u id": "673: 100863:988 :120.8", | |
| 4177 | "v erifiedDat eTime": "A pr 26, 201 6@16:42:27 " | |
| 4178 | }, | |
| 4179 | { | |
| 4180 | "a llergyType ": "DRUG", | |
| 4181 | "a llergyType Mechanism" : "ALLERGY ", | |
| 4182 | "c ausativeAg entName": "CONTRAST MEDIA", | |
| 4183 | "c ausativeAg entVUID": "urn:va:vu id:4636659 ", | |
| 4184 | "f acilityCod e": "673", | |
| 4185 | "f acilityNam e": "TAMPA (JAH VAH) ", | |
| 4186 | "h istorical" : "true", | |
| 4187 | "k ind": "All ergy / Adv erse React ion", | |
| 4188 | "l ocalId": " 989", | |
| 4189 | "o bserved": "false", | |
| 4190 | "o rigination DateTime": "Oct 09, 2015@12:00 ", | |
| 4191 | "r eactions": [ | |
| 4192 | { | |
| 4193 | "nam e": "BURNI NG SENSATI ON", | |
| 4194 | "vui d": "urn:v a:vuid:463 7035" | |
| 4195 | } | |
| 4196 | ], | |
| 4197 | "r eference": "199;GMRD (120.82,", | |
| 4198 | "s ummary": " CONTRAST M EDIA", | |
| 4199 | "u id": "673: 100863:989 :120.8", | |
| 4200 | "v erifiedDat eTime": "A pr 26, 201 6@16:42:27 " | |
| 4201 | }, | |
| 4202 | { | |
| 4203 | "a llergyType ": "DRUG", | |
| 4204 | "a llergyType Mechanism" : "PHARMAC OLOGIC", | |
| 4205 | "c ausativeAg entName": "AMOXICILL IN", | |
| 4206 | "c ausativeAg entVUID": "urn:va:vu id:4017605 ", | |
| 4207 | "f acilityCod e": "673", | |
| 4208 | "f acilityNam e": "TAMPA (JAH VAH) ", | |
| 4209 | "h istorical" : "true", | |
| 4210 | "k ind": "All ergy / Adv erse React ion", | |
| 4211 | "l ocalId": " 990", | |
| 4212 | "o bserved": "false", | |
| 4213 | "o rigination DateTime": "Aug 20, 2014@12:00 ", | |
| 4214 | "r eactions": [ | |
| 4215 | { | |
| 4216 | "nam e": "ANAPH YLAXIS", | |
| 4217 | "vui d": "urn:v a:vuid:463 7055" | |
| 4218 | } | |
| 4219 | ], | |
| 4220 | "r eference": "95;PSNDF (50.6,", | |
| 4221 | "s ummary": " AMOXICILLI N", | |
| 4222 | "u id": "673: 100863:990 :120.8", | |
| 4223 | "v erifiedDat eTime": "A pr 26, 201 6@16:42:27 " | |
| 4224 | } | |
| 4225 | ], | |
| 4226 | "siteName" : "TAMPA ( JAH VAH)", | |
| 4227 | "stationNu mber": "67 3" | |
| 4228 | }, | |
| 4229 | "end point": { | |
| 4230 | "stationID ": 673, | |
| 4231 | "siteName" : "TAMPA ( JAH VAH)" | |
| 4232 | } | |
| 4233 | } | |
| 4234 | }; | |
| 4235 | ||
| 4236 | module.exp orts = { | |
| 4237 | single: single, | |
| 4238 | allWithE rrors: all WithErrors , | |
| 4239 | visitedW estPalmBay Pines: vis itedWestPa lmBayPines | |
| 4240 | }; | |
| 4241 | ||
| 4242 | */\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000package/ test/aller gies/aller giesTransf orm.js\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x00000000644\x0000 0001750\x000000 01750\x00000000 0016711\x000013 051754140\x0000 016526\x0000 0\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000u star \x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000/***** ********** ********** ********** ********** ********** ********** ******* | |
| 4243 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 4244 | http://ww w.apexdata solutions. net/ | |
| 4245 | ||
| 4246 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 4247 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 4248 | You may o btain a co py of the License at | |
| 4249 | ||
| 4250 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 4251 | ||
| 4252 | Unless re quired by applicable law or ag reed to in writing, software | |
| 4253 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 4254 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 4255 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 4256 | limitatio ns under t he License . | |
| 4257 | ||
| 4258 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 4259 | /* | |
| 4260 | var rewire = require ('rewire') ; | |
| 4261 | var chai = require(' chai'); | |
| 4262 | chai.use(r equire('ch ai-moment' )); | |
| 4263 | var expect = chai.exp ect; | |
| 4264 | var moment = require ('moment') ; | |
| 4265 | ||
| 4266 | var module = '../../ lib/crs/al lergiesTra nsform'; | |
| 4267 | var transf orm = requ ire(module ).transfor m; | |
| 4268 | var subjec ts = rewir e(module); | |
| 4269 | ||
| 4270 | var dedupl icateAller gies = sub jects.__ge t__('dedup licateAlle rgies'); | |
| 4271 | var groupB yCausative Agent = su bjects.__g et__('grou pByCausati veAgent'); | |
| 4272 | var resolv eLocalAsse ssment = s ubjects.__ get__('res olveLocalA ssessment' ); | |
| 4273 | var conver tVpsAllerg yDataToMra rAllergyDa ta = subje cts.__get_ _('convert VpsAllergy DataToMrar AllergyDat a'); | |
| 4274 | ||
| 4275 | var testDa ta = requi re('./alle rgyRespons esTestData '); | |
| 4276 | ||
| 4277 | describe(' allergy de -duplicati on logic', function( ) { | |
| 4278 | ||
| 4279 | var loca lObserved = { | |
| 4280 | sour ce: { | |
| 4281 | lo cal: true, | |
| 4282 | }, | |
| 4283 | occu rrence: { | |
| 4284 | cl assificati on: 'obser ved', | |
| 4285 | da te: 'DEC 3 1, 2006' | |
| 4286 | }, | |
| 4287 | symp toms: [{na me: 'HOT'} ] | |
| 4288 | }; | |
| 4289 | ||
| 4290 | var lo calHistori cal = { | |
| 4291 | sour ce: { | |
| 4292 | lo cal: true, | |
| 4293 | }, | |
| 4294 | docu mentationD ate: 'DEC 31, 2006', | |
| 4295 | occu rrence: { | |
| 4296 | cl assificati on: 'histo rical' | |
| 4297 | }, | |
| 4298 | symp toms: [{na me: 'COLD' }] | |
| 4299 | }; | |
| 4300 | ||
| 4301 | var re centRemote Historical = { | |
| 4302 | sour ce: { | |
| 4303 | lo cal: false , | |
| 4304 | }, | |
| 4305 | occu rrence: { | |
| 4306 | cl assificati on: 'histo rical' | |
| 4307 | }, | |
| 4308 | docu mentationD ate: 'DEC 31, 2006', | |
| 4309 | symp toms: [{na me: 'HOT'} ] | |
| 4310 | }; | |
| 4311 | ||
| 4312 | var re motesHisto rical = [{ | |
| 4313 | so urce: { | |
| 4314 | local: fal se, | |
| 4315 | }, | |
| 4316 | oc currence: { | |
| 4317 | classifica tion: 'his torical' | |
| 4318 | }, | |
| 4319 | do cumentatio nDate: 'NO V 30, 2006 ' | |
| 4320 | }, | |
| 4321 | rece ntRemoteHi storical, | |
| 4322 | { | |
| 4323 | so urce: { | |
| 4324 | local: fal se, | |
| 4325 | }, | |
| 4326 | oc currence: { | |
| 4327 | classifica tion: 'his torical' | |
| 4328 | }, | |
| 4329 | do cumentatio nDate: 'OC T 31, 2006 ' | |
| 4330 | } | |
| 4331 | ]; | |
| 4332 | ||
| 4333 | ||
| 4334 | var re centRemote Observed = { | |
| 4335 | sour ce: { | |
| 4336 | lo cal: false , | |
| 4337 | }, | |
| 4338 | occu rrence: { | |
| 4339 | cl assificati on: 'obser ved', | |
| 4340 | da te: 'DEC 3 1, 2006' | |
| 4341 | }, | |
| 4342 | symp toms: [{na me: 'COLD' }] | |
| 4343 | }; | |
| 4344 | ||
| 4345 | var re motesObser ved = [{ | |
| 4346 | so urce: { | |
| 4347 | local: fal se, | |
| 4348 | }, | |
| 4349 | oc currence: { | |
| 4350 | classifica tion: 'obs erved', | |
| 4351 | date: 'NOV 30, 2006' | |
| 4352 | }, | |
| 4353 | sy mptoms: [{ name: 'COL D'}] | |
| 4354 | }, | |
| 4355 | rece ntRemoteOb served, | |
| 4356 | { | |
| 4357 | so urce: { | |
| 4358 | local: fal se, | |
| 4359 | }, | |
| 4360 | oc currence: { | |
| 4361 | classifica tion: 'obs erved', | |
| 4362 | date: 'OCT 31, 2006' | |
| 4363 | } | |
| 4364 | } | |
| 4365 | ]; | |
| 4366 | ||
| 4367 | var re motesHisto ricalSameD ate = [{ | |
| 4368 | so urce: { | |
| 4369 | local: fal se, | |
| 4370 | }, | |
| 4371 | oc currence: { | |
| 4372 | classifica tion: 'obs erved', | |
| 4373 | date: 'NOV 30, 2006' | |
| 4374 | } | |
| 4375 | }, | |
| 4376 | { | |
| 4377 | so urce: { | |
| 4378 | local: fal se, | |
| 4379 | }, | |
| 4380 | oc currence: { | |
| 4381 | classifica tion: 'obs erved', | |
| 4382 | date: 'NOV 30, 2006' | |
| 4383 | } | |
| 4384 | } | |
| 4385 | ]; | |
| 4386 | ||
| 4387 | var re motesObser vedSameDat e = [{ | |
| 4388 | te stKey: 1, | |
| 4389 | so urce: { | |
| 4390 | local: fal se, | |
| 4391 | }, | |
| 4392 | oc currence: { | |
| 4393 | classifica tion: 'obs erved', | |
| 4394 | date: 'NOV 30, 2006' | |
| 4395 | } | |
| 4396 | }, | |
| 4397 | { | |
| 4398 | te stKey: 2, | |
| 4399 | so urce: { | |
| 4400 | local: fal se, | |
| 4401 | }, | |
| 4402 | oc currence: { | |
| 4403 | classifica tion: 'obs erved', | |
| 4404 | date: 'NOV 30, 2006' | |
| 4405 | } | |
| 4406 | } | |
| 4407 | ]; | |
| 4408 | ||
| 4409 | var sour ce1 = { | |
| 4410 | locati on: 'Site 548', | |
| 4411 | locati onId: 548, | |
| 4412 | local: true, | |
| 4413 | type: 'vista' | |
| 4414 | }; | |
| 4415 | ||
| 4416 | var endp oint1 = { | |
| 4417 | statio nID: 548, | |
| 4418 | siteNa me: 'Site 548' | |
| 4419 | }; | |
| 4420 | ||
| 4421 | var sour ce2 = { | |
| 4422 | local: false, | |
| 4423 | }; | |
| 4424 | ||
| 4425 | describe ('groupByC ausativeAg ent', func tion() { | |
| 4426 | ||
| 4427 | var po pcorn = { | |
| 4428 | caus ativeAgent Name: 'POP CORN' | |
| 4429 | }; | |
| 4430 | ||
| 4431 | var ho ney = { | |
| 4432 | caus ativeAgent Name: 'HON EY' | |
| 4433 | }; | |
| 4434 | ||
| 4435 | it('no sources, no allergi es, no gro ups', func tion() { | |
| 4436 | ||
| 4437 | expe ct(groupBy CausativeA gent([])). to.be.empt y; | |
| 4438 | }); | |
| 4439 | ||
| 4440 | it('1 source, 1 allergies, one bucke t', functi on() { | |
| 4441 | ||
| 4442 | var data = { | |
| 4443 | so urce: sour ce1, | |
| 4444 | al lergies: [ popcorn ] | |
| 4445 | }; | |
| 4446 | ||
| 4447 | expe ct(groupBy CausativeA gent([data ])).to.dee p.be.equal ({ 'POPCOR N': [ popc orn]}); | |
| 4448 | }); | |
| 4449 | ||
| 4450 | it('1 source, 2 allergies, two bucke t', functi on() { | |
| 4451 | var data = { | |
| 4452 | so urce: sour ce1, | |
| 4453 | al lergies: [ popcorn, honey ] | |
| 4454 | }; | |
| 4455 | ||
| 4456 | expe ct(groupBy CausativeA gent([data ])).to.dee p.be.equal ({ 'POPCOR N': [ popc orn], 'HON EY': [ hon ey ]}); | |
| 4457 | }); | |
| 4458 | ||
| 4459 | it('2 sources, 2 allergies , one buck et', funct ion() { | |
| 4460 | ||
| 4461 | var data = [ { | |
| 4462 | so urce: sour ce1, | |
| 4463 | al lergies: [ popcorn ] | |
| 4464 | }, | |
| 4465 | { | |
| 4466 | so urce: sour ce2, | |
| 4467 | al lergies: [ popcorn ] | |
| 4468 | }]; | |
| 4469 | ||
| 4470 | expe ct(groupBy CausativeA gent(data) ).to.deep. be.equal({ 'POPCORN' : [ popcor n, popcorn ] }); | |
| 4471 | }); | |
| 4472 | ||
| 4473 | it('2 sources, 2 allergies , two buck et', funct ion() { | |
| 4474 | ||
| 4475 | ||
| 4476 | var data = [ { | |
| 4477 | so urce: sour ce1, | |
| 4478 | al lergies: [ honey ] | |
| 4479 | }, | |
| 4480 | { | |
| 4481 | so urce: sour ce2, | |
| 4482 | al lergies: [ popcorn ] | |
| 4483 | }]; | |
| 4484 | ||
| 4485 | expe ct(groupBy CausativeA gent(data) ).to.deep. be.equal({ 'POPCORN' : [ popcor n], 'HONEY ': [ honey ]}); | |
| 4486 | }); | |
| 4487 | }); | |
| 4488 | ||
| 4489 | describe ('resolveL ocalAssess ment', fun ction() { | |
| 4490 | ||
| 4491 | it ('f ind local assessment ', functio n() { | |
| 4492 | ||
| 4493 | var data = [ | |
| 4494 | { | |
| 4495 | source: so urce2, | |
| 4496 | localAsses sment: 'no t-this-one ', | |
| 4497 | allergies: [ remotes Observed ] | |
| 4498 | }, | |
| 4499 | { | |
| 4500 | source: so urce1, | |
| 4501 | localAsses sment: 'th is-one', | |
| 4502 | allergies: [ localOb served ] | |
| 4503 | } | |
| 4504 | ]; | |
| 4505 | ||
| 4506 | expe ct(resolve LocalAsses sment(data )).to.be.e qual('this -one'); | |
| 4507 | }); | |
| 4508 | }); | |
| 4509 | ||
| 4510 | describe ('transfor m', functi on() { | |
| 4511 | ||
| 4512 | it ('r eturn raw data, loca l assessme nt, and de duplicated allergies ', functio n() { | |
| 4513 | ||
| 4514 | var allergy = { | |
| 4515 | ui d: 'ABC', | |
| 4516 | or iginationD ateTime: ' NOV 1, 199 3', | |
| 4517 | ob served: "t rue", | |
| 4518 | ob servedDate Times: [ | |
| 4519 | { | |
| 4520 | dateTime : "Dec 09, 1993@15:5 4:15", | |
| 4521 | severity : "MILD" | |
| 4522 | }], | |
| 4523 | re actions: [ | |
| 4524 | { | |
| 4525 | name: "D YSPHAGIA", | |
| 4526 | vuid: "u rn:va:vuid :4539678" | |
| 4527 | }, | |
| 4528 | { | |
| 4529 | name: "F EELING IRR ITABLE", | |
| 4530 | vuid: "u rn:va:vuid :4637281" | |
| 4531 | } | |
| 4532 | ], | |
| 4533 | ca usativeAge ntName: "Q UETIAPINE" , | |
| 4534 | }; | |
| 4535 | ||
| 4536 | var data = [ | |
| 4537 | { | |
| 4538 | endpoint: endpoint1, | |
| 4539 | data: { | |
| 4540 | assessme nt: 'test- one-two-th ree', | |
| 4541 | allergie s: [ aller gy ] | |
| 4542 | } | |
| 4543 | } | |
| 4544 | ]; | |
| 4545 | ||
| 4546 | var expectatio n = { | |
| 4547 | al lergiesByS ource: [ | |
| 4548 | { | |
| 4549 | assessment : 'test-on e-two-thre e', | |
| 4550 | allergies: [ | |
| 4551 | { | |
| 4552 | id: 'A BC', | |
| 4553 | docume ntationDat e: 'NOV 1, 1993', | |
| 4554 | occurr ence: { | |
| 4555 | clas sification : 'observe d', | |
| 4556 | date : 'Dec 09, 1993@15:5 4:15' | |
| 4557 | }, | |
| 4558 | sympto ms: [{name : 'DYSPHAG IA'}, {nam e: 'FEELIN G IRRITABL E'}], | |
| 4559 | causat iveAgentNa me: "QUETI APINE" | |
| 4560 | }], | |
| 4561 | source: source1 | |
| 4562 | }] | |
| 4563 | }; | |
| 4564 | ||
| 4565 | expe ct(transfo rm(data, 5 48)).to.de ep.be.equa l(expectat ion); | |
| 4566 | }); | |
| 4567 | }); | |
| 4568 | ||
| 4569 | }); | |
| 4570 | */\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000pac kage/test/ util/\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000000 0755\x000000000 00\x00000000000 \x0000000000000 00\x00001305206 1137\x000001310 1\x0000 5\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000ustar \x0000root\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000root\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000p ackage/tes t/util/fed erator.js\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x00000 000644\x0000000 1750\x000000017 50\x00000000000 4156\x000013051 754140\x0000013 644\x0000 0\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000usta r \x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000/******** ********** ********** ********** ********** ********** ********** **** | |
| 4571 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 4572 | http://ww w.apexdata solutions. net/ | |
| 4573 | ||
| 4574 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 4575 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 4576 | You may o btain a co py of the License at | |
| 4577 | ||
| 4578 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 4579 | ||
| 4580 | Unless re quired by applicable law or ag reed to in writing, software | |
| 4581 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 4582 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 4583 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 4584 | limitatio ns under t he License . | |
| 4585 | ||
| 4586 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 4587 | ||
| 4588 | var rewire = require ('rewire') ; | |
| 4589 | var chai = require(' chai'); | |
| 4590 | chai.use(r equire('ch ai-moment' )); | |
| 4591 | var expect = chai.exp ect; | |
| 4592 | var moment = require ('moment') ; | |
| 4593 | ||
| 4594 | var module = '../../ lib/util/f ederator'; | |
| 4595 | var transf orm = requ ire(module ).transfor m; | |
| 4596 | var subjec ts = rewir e(module); | |
| 4597 | ||
| 4598 | var arrayi fyFederato rResults = subjects. __get__('a rrayifyFed eratorResu lts'); | |
| 4599 | ||
| 4600 | ||
| 4601 | describe(' federator util', fun ction() { | |
| 4602 | describe ('arrayify FederatorR esults', f unction() { | |
| 4603 | ||
| 4604 | it('wi th no resu lts', func tion() { | |
| 4605 | var data = {}; | |
| 4606 | var expected = []; | |
| 4607 | ||
| 4608 | expe ct(arrayif yFederator Results(da ta)).to.de ep.equal(e xpected); | |
| 4609 | }); | |
| 4610 | ||
| 4611 | it('wi th no data ', functio n() { | |
| 4612 | var data = {}; | |
| 4613 | var expected = []; | |
| 4614 | ||
| 4615 | expe ct(arrayif yFederator Results(da ta)).to.de ep.equal(e xpected); | |
| 4616 | }); | |
| 4617 | ||
| 4618 | it('wi th data fr om site A' , function () { | |
| 4619 | var data = { ' A': { data : 567, end point: 'A' }}; | |
| 4620 | var expected = [{ data: 567, endpo int: 'A'}] ; | |
| 4621 | ||
| 4622 | expe ct(arrayif yFederator Results(da ta)).to.de ep.equal(e xpected); | |
| 4623 | }); | |
| 4624 | ||
| 4625 | it('wi th data fr om sites A , B, C', f unction() { | |
| 4626 | var data = { | |
| 4627 | 'B ': { data: 567, endp oint: 'B'} , | |
| 4628 | 'C ': { data: 567, endp oint: 'C'} , | |
| 4629 | 'A ': { data: 567, endp oint: 'A'} , | |
| 4630 | }; | |
| 4631 | var expected = [{ data: 567, endpo int: 'B'}, {data: 56 7, endpoin t: 'C'}, { data: 567, endpoint: 'A'}]; | |
| 4632 | ||
| 4633 | expe ct(arrayif yFederator Results(da ta)).to.de ep.equal(e xpected); | |
| 4634 | }); | |
| 4635 | }); | |
| 4636 | }); | |
| 4637 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000package/ test/util/ helpers.js \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x00000000644\x0000 0001750\x000000 01750\x00000000 0004237\x000013 051754140\x0000 013333\x0000 0\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000u star \x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000/***** ********** ********** ********** ********** ********** ********** ******* | |
| 4638 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 4639 | http://ww w.apexdata solutions. net/ | |
| 4640 | ||
| 4641 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 4642 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 4643 | You may o btain a co py of the License at | |
| 4644 | ||
| 4645 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 4646 | ||
| 4647 | Unless re quired by applicable law or ag reed to in writing, software | |
| 4648 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 4649 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 4650 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 4651 | limitatio ns under t he License . | |
| 4652 | ||
| 4653 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 4654 | ||
| 4655 | var chai = require(' chai'); | |
| 4656 | var expect = chai.exp ect; | |
| 4657 | chai.use(r equire('ch ai-moment' )); | |
| 4658 | var expect = chai.exp ect; | |
| 4659 | var moment = require ('moment') ; | |
| 4660 | ||
| 4661 | var helper s = requir e('../../l ib/util/he lpers'); | |
| 4662 | var trimTi me = help ers.trimTi me; | |
| 4663 | var standa rdDateMome nt = helpe rs.standar dDateMomen t; | |
| 4664 | var standa rdDateTime Moment = h elpers.sta ndardDateT imeMoment; | |
| 4665 | ||
| 4666 | describe(' helpers', function() { | |
| 4667 | ||
| 4668 | describe ('trimTime ', functio n() { | |
| 4669 | ||
| 4670 | it('nu ll value', function( ) { | |
| 4671 | expe ct(trimTim e(null)).t o.be.null; | |
| 4672 | }); | |
| 4673 | ||
| 4674 | it('em pty value' , function () { | |
| 4675 | expe ct(trimTim e('')).to. be.equal(' '); | |
| 4676 | }); | |
| 4677 | ||
| 4678 | it('da te only', function() { | |
| 4679 | expe ct(trimTim e('APR 30, 2016')).t o.be.equal ('APR 30, 2016'); | |
| 4680 | }); | |
| 4681 | ||
| 4682 | it('da te time', function() { | |
| 4683 | expe ct(trimTim e('APR 30, 2016@12:0 0')).to.be .equal('AP R 30, 2016 '); | |
| 4684 | }); | |
| 4685 | }); | |
| 4686 | ||
| 4687 | describe ('standard DateMoment ', functio n() { | |
| 4688 | ||
| 4689 | it('DE C 30, 2016 ', functio n() { | |
| 4690 | expe ct(standar dDateMomen t('DEC 30, 2016').fo rmat("LL") ).to.be.eq ual("Decem ber 30, 20 16"); | |
| 4691 | }); | |
| 4692 | }); | |
| 4693 | ||
| 4694 | describe ('standard DateTimeMo ment', fun ction() { | |
| 4695 | ||
| 4696 | it('JA N 30, 2016 ', functio n() { | |
| 4697 | expe ct(standar dDateTimeM oment('JAN 30, 2016' ).format(" LL")).to.b e.equal("J anuary 30, 2016"); | |
| 4698 | }); | |
| 4699 | ||
| 4700 | it('JA N 30, 2016 @23:00', f unction() { | |
| 4701 | expe ct(standar dDateTimeM oment('JAN 30, 2016@ 23:00').fo rmat("LLL" )).to.be.e qual("Janu ary 30, 20 16 11:00 P M"); | |
| 4702 | }); | |
| 4703 | // Vie w your res ult using the m-vari able. | |
| 4704 | // eg m[0] etc. | |
| 4705 | }); | |
| 4706 | }); | |
| 4707 | ||
| 4708 | ||
| 4709 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000package /test/medi cations/\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x00000000755 \x00000000000\x00000 000000\x0000000 00000000\x00001 3052061137 \x0000014423\x0000 5 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 ustar \x0000ro ot\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 root\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000packa ge/test/me dications/ medication sTransform .js\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x000000006 44\x00000001750 \x00000001750\x00000 0000037722 \x0000130517541 40\x0000017413\x0000 0\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000ustar \x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000/** ********** ********** ********** ********** ********** ********** ********** | |
| 4710 | Copyright 2016 Apex Data Solu tions, LLC . | |
| 4711 | http://ww w.apexdata solutions. net/ | |
| 4712 | ||
| 4713 | Licensed under the Apache Lic ense, Vers ion 2.0 (t he "Licens e"); | |
| 4714 | you may n ot use thi s file exc ept in com pliance wi th the Lic ense. | |
| 4715 | You may o btain a co py of the License at | |
| 4716 | ||
| 4717 | http://ww w.apache.o rg/license s/LICENSE- 2.0 | |
| 4718 | ||
| 4719 | Unless re quired by applicable law or ag reed to in writing, software | |
| 4720 | distribut ed under t he License is distri buted on a n "AS IS" BASIS, | |
| 4721 | WITHOUT W ARRANTIES OR CONDITI ONS OF ANY KIND, eit her expres s or impli ed. | |
| 4722 | See the L icense for the speci fic langua ge governi ng permiss ions and | |
| 4723 | limitatio ns under t he License . | |
| 4724 | ||
| 4725 | ********** ********** ********** ********** ********** ********** ********** **/ | |
| 4726 | ||
| 4727 | /* | |
| 4728 | var rewire = require ('rewire') ; | |
| 4729 | var chai = require(' chai'); | |
| 4730 | chai.use(r equire('ch ai-moment' )); | |
| 4731 | var expect = chai.exp ect; | |
| 4732 | var moment = require ('moment') ; | |
| 4733 | ||
| 4734 | var module = '../../ lib/crs/me dicationsT ransform'; | |
| 4735 | var transf orm = requ ire(module ).transfor m; | |
| 4736 | var subjec ts = rewir e(module); | |
| 4737 | var conver tNonVaMedi cation = s ubjects.__ get__('con vertNonVaM edication' ); | |
| 4738 | var conver tEndpointT oSource = subjects._ _get__('co nvertEndpo intToSourc e'); | |
| 4739 | var conver tFindLastO utpatientF ill = subj ects.__get __('conver tFindLastO utpatientF ill'); | |
| 4740 | var conver tVpsMedica tionsToMed ications = subjects. __get__('c onvertVpsM edications ToMedicati ons'); | |
| 4741 | var findNd cInVpsMedi cation = s ubjects.__ get__('fin dNdcInVpsM edication' ); | |
| 4742 | var exclud eOldNonAct iveCategor yFilter = subjects._ _get__('ex cludeOldNo nActiveCat egoryFilte r'); | |
| 4743 | var medica tionCutoff Date = sub jects.__ge t__('medic ationCutof fDate'); | |
| 4744 | ||
| 4745 | ||
| 4746 | var testDa ta = requi re('./medi cationResp onsesTestD ata'); | |
| 4747 | ||
| 4748 | describe(' medication de-duplic ation', fu nction() { | |
| 4749 | ||
| 4750 | describe ('convert VPS to MRA R medicati ons', func tion() { | |
| 4751 | ||
| 4752 | descri be('find l ast outpat ient filll ', functio n() { | |
| 4753 | ||
| 4754 | it(' no refills or partia lFills', f unction() { | |
| 4755 | ||
| 4756 | va r input = { | |
| 4757 | refills: [ ], | |
| 4758 | partialFil ls: [], | |
| 4759 | qty: '2', | |
| 4760 | daysSupply : '2', | |
| 4761 | dispensedD ate: 'FEB 2, 2010', | |
| 4762 | dispensedU nit: 'TAB' , | |
| 4763 | fillDate: 'FEB 3, 20 10', | |
| 4764 | releasedDa teTime: 'F EB 4, 2010 ', | |
| 4765 | }; | |
| 4766 | ||
| 4767 | va r expected = { | |
| 4768 | stage: 'O' , | |
| 4769 | dispensedU nit: 'TAB' , | |
| 4770 | quantity: '2', | |
| 4771 | daysSupply : '2', | |
| 4772 | dispensedD ate: 'FEB 2, 2010', | |
| 4773 | fillDate: 'FEB 3, 20 10', | |
| 4774 | releasedDa teTime: 'F EB 4, 2010 ', | |
| 4775 | }; | |
| 4776 | ||
| 4777 | ex pect(conve rtFindLast Outpatient Fill(input )).to.deep .equal(exp ected); | |
| 4778 | }); | |
| 4779 | ||
| 4780 | it(' 2 refills and no par tialFills' , function () { | |
| 4781 | ||
| 4782 | va r input = { | |
| 4783 | refills: [ | |
| 4784 | { | |
| 4785 | qty: '2' , | |
| 4786 | daysSupp ly: '2', | |
| 4787 | dispense dDate: 'FE B 5, 2010' , | |
| 4788 | refillDa te: 'FEB 6 , 2010', | |
| 4789 | released DateTime: 'FEB 7, 20 10' | |
| 4790 | }, | |
| 4791 | { | |
| 4792 | qty: '2' , | |
| 4793 | daysSupp ly: '2', | |
| 4794 | dispense dDate: 'FE B 8, 2010' , | |
| 4795 | refillDa te: 'FEB 9 , 2010', | |
| 4796 | released DateTime: 'FEB 10, 2 010' | |
| 4797 | }], | |
| 4798 | partialFil ls: [], | |
| 4799 | dispensedU nit: 'TAB' , | |
| 4800 | qty: '2', | |
| 4801 | daysSupply : '2', | |
| 4802 | dispensedD ate: 'FEB 2, 2010', | |
| 4803 | fillDate: 'FEB 3, 20 10', | |
| 4804 | releasedDa teTime: 'F EB 4, 2010 ', | |
| 4805 | }; | |
| 4806 | ||
| 4807 | va r expected = { | |
| 4808 | stage: 'R' , | |
| 4809 | quantity: '2', | |
| 4810 | daysSupply : '2', | |
| 4811 | dispensedD ate: 'FEB 8, 2010', | |
| 4812 | dispensedU nit: 'TAB' , | |
| 4813 | fillDate: 'FEB 9, 20 10', | |
| 4814 | releasedDa teTime: 'F EB 10, 201 0', | |
| 4815 | }; | |
| 4816 | ||
| 4817 | ex pect(conve rtFindLast Outpatient Fill(input )).to.deep .equal(exp ected); | |
| 4818 | }); | |
| 4819 | ||
| 4820 | it(' 2 refills and 2 part ialFills, partial mo st recent' , function () { | |
| 4821 | ||
| 4822 | va r input = { | |
| 4823 | refills: [ | |
| 4824 | { | |
| 4825 | qty: '2' , | |
| 4826 | daysSupp ly: '2', | |
| 4827 | dispense dDate: 'FE B 5, 2010' , | |
| 4828 | refillDa te: 'FEB 6 , 2010', | |
| 4829 | released DateTime: 'FEB 7, 20 10' | |
| 4830 | }, | |
| 4831 | { | |
| 4832 | qty: '2' , | |
| 4833 | daysSupp ly: '2', | |
| 4834 | dispense dDate: 'FE B 8, 2010' , | |
| 4835 | refillDa te: 'FEB 9 , 2010', | |
| 4836 | released DateTime: 'FEB 10, 2 010' | |
| 4837 | }], | |
| 4838 | partialFil ls: [ | |
| 4839 | { | |
| 4840 | qty: '2' , | |
| 4841 | daysSupp ly: '2', | |
| 4842 | dispense dDate: 'FE B 14, 2010 ', | |
| 4843 | partialD ate: 'FEB 15, 2010', | |
| 4844 | released DateTime: 'FEB 16, 2 010' | |
| 4845 | }, | |
| 4846 | { | |
| 4847 | qty: '2' , | |
| 4848 | daysSupp ly: '2', | |
| 4849 | dispense dDate: 'FE B 11, 2010 ', | |
| 4850 | partialD ate: 'FEB 12, 2010', | |
| 4851 | released DateTime: 'FEB 13, 2 010' | |
| 4852 | }], | |
| 4853 | qty: '2', | |
| 4854 | daysSupply : '2', | |
| 4855 | dispensedD ate: 'FEB 2, 2010', | |
| 4856 | dispensedU nit: 'TAB' , | |
| 4857 | fillDate: 'FEB 3, 20 10', | |
| 4858 | releasedDa teTime: 'F EB 4, 2010 ', | |
| 4859 | }; | |
| 4860 | ||
| 4861 | va r expected = { | |
| 4862 | stage: 'P' , | |
| 4863 | quantity: '2', | |
| 4864 | daysSupply : '2', | |
| 4865 | dispensedD ate: 'FEB 14, 2010', | |
| 4866 | dispensedU nit: 'TAB' , | |
| 4867 | fillDate: 'FEB 15, 2 010', | |
| 4868 | releasedDa teTime: 'F EB 16, 201 0', | |
| 4869 | }; | |
| 4870 | ||
| 4871 | ex pect(conve rtFindLast Outpatient Fill(input )).to.deep .equal(exp ected); | |
| 4872 | }); | |
| 4873 | ||
| 4874 | it(' 2 refills and 2 part ialFills, refill mos t recent', function( ) { | |
| 4875 | ||
| 4876 | va r input = { | |
| 4877 | refills: [ | |
| 4878 | { | |
| 4879 | qty: '2' , | |
| 4880 | daysSupp ly: '2', | |
| 4881 | dispense dDate: 'FE B 21, 2010 ', | |
| 4882 | refillDa te: 'FEB 2 2, 2010', | |
| 4883 | released DateTime: 'FEB 23, 2 010' | |
| 4884 | }, | |
| 4885 | { | |
| 4886 | qty: '2' , | |
| 4887 | daysSupp ly: '2', | |
| 4888 | dispense dDate: 'FE B 8, 2010' , | |
| 4889 | refillDa te: 'FEB 9 , 2010', | |
| 4890 | released DateTime: 'FEB 10, 2 010' | |
| 4891 | }], | |
| 4892 | partialFil ls: [ | |
| 4893 | { | |
| 4894 | qty: '2' , | |
| 4895 | daysSupp ly: '2', | |
| 4896 | dispense dDate: 'FE B 14, 2010 ', | |
| 4897 | partialD ate: 'FEB 15, 2010', | |
| 4898 | released DateTime: 'FEB 16, 2 010' | |
| 4899 | }, | |
| 4900 | { | |
| 4901 | qty: '2' , | |
| 4902 | daysSupp ly: '2', | |
| 4903 | dispense dDate: 'FE B 11, 2010 ', | |
| 4904 | partialD ate: 'FEB 12, 2010', | |
| 4905 | released DateTime: 'FEB 13, 2 010' | |
| 4906 | }], | |
| 4907 | qty: '2', | |
| 4908 | daysSupply : '2', | |
| 4909 | dispensedD ate: 'FEB 2, 2010', | |
| 4910 | dispensedU nit: 'TAB' , | |
| 4911 | fillDate: 'FEB 3, 20 10', | |
| 4912 | releasedDa teTime: 'F EB 4, 2010 ', | |
| 4913 | }; | |
| 4914 | ||
| 4915 | va r expected = { | |
| 4916 | stage: 'R' , | |
| 4917 | quantity: '2', | |
| 4918 | daysSupply : '2', | |
| 4919 | dispensedD ate: 'FEB 21, 2010', | |
| 4920 | dispensedU nit: 'TAB' , | |
| 4921 | fillDate: 'FEB 22, 2 010', | |
| 4922 | releasedDa teTime: 'F EB 23, 201 0', | |
| 4923 | }; | |
| 4924 | ||
| 4925 | ex pect(conve rtFindLast Outpatient Fill(input )).to.deep .equal(exp ected); | |
| 4926 | }); | |
| 4927 | ||
| 4928 | it(' 1 refill a nd 1 parti alFills, r efill most recent by release d ate time', function( ) { | |
| 4929 | ||
| 4930 | var input = { | |
| 4931 | refills: [ | |
| 4932 | { | |
| 4933 | qty: ' 2', | |
| 4934 | daysSu pply: '2', | |
| 4935 | dispen sedDate: ' FEB 21, 20 10', | |
| 4936 | refill Date: 'FEB 22, 2010' , | |
| 4937 | releas edDateTime : 'FEB 23, 2010@15:0 0' | |
| 4938 | }], | |
| 4939 | partialF ills: [ | |
| 4940 | { | |
| 4941 | qty: ' 2', | |
| 4942 | daysSu pply: '2', | |
| 4943 | dispen sedDate: ' FEB 21, 20 10', | |
| 4944 | partia lDate: 'FE B 22, 2010 ', | |
| 4945 | releas edDateTime : 'FEB 23, 2010@14:0 0' | |
| 4946 | }], | |
| 4947 | qty: '2' , | |
| 4948 | daysSupp ly: '2', | |
| 4949 | dispense dDate: 'FE B 2, 2010' , | |
| 4950 | dispense dUnit: 'TA B', | |
| 4951 | fillDate : 'FEB 3, 2010', | |
| 4952 | released DateTime: 'FEB 4, 20 10@14:00' | |
| 4953 | }; | |
| 4954 | ||
| 4955 | var expect ed = { | |
| 4956 | stage: ' R', | |
| 4957 | quantity : '2', | |
| 4958 | daysSupp ly: '2', | |
| 4959 | dispense dDate: 'FE B 21, 2010 ', | |
| 4960 | dispense dUnit: 'TA B', | |
| 4961 | fillDate : 'FEB 22, 2010', | |
| 4962 | released DateTime: 'FEB 23, 2 010@15:00' | |
| 4963 | }; | |
| 4964 | ||
| 4965 | expect(con vertFindLa stOutpatie ntFill(inp ut)).to.de ep.equal(e xpected); | |
| 4966 | }); | |
| 4967 | ||
| 4968 | it(' no refills and 2 par tialFills' , function () { | |
| 4969 | ||
| 4970 | var input = { | |
| 4971 | refills: [], | |
| 4972 | partialF ills: [ | |
| 4973 | { | |
| 4974 | qty: ' 2', | |
| 4975 | daysSu pply: '2', | |
| 4976 | dispen sedDate: ' FEB 14, 20 10', | |
| 4977 | partia lDate: 'FE B 15, 2010 ', | |
| 4978 | releas edDateTime : 'FEB 16, 2010' | |
| 4979 | }, | |
| 4980 | { | |
| 4981 | qty: ' 2', | |
| 4982 | daysSu pply: '2', | |
| 4983 | dispen sedDate: ' FEB 11, 20 10', | |
| 4984 | partia lDate: 'FE B 12, 2010 ', | |
| 4985 | releas edDateTime : 'FEB 13, 2010' | |
| 4986 | }], | |
| 4987 | qty: '2' , | |
| 4988 | daysSupp ly: '2', | |
| 4989 | dispense dDate: 'FE B 2, 2010' , | |
| 4990 | dispense dUnit: 'TA B', | |
| 4991 | fillDate : 'FEB 3, 2010', | |
| 4992 | released DateTime: 'FEB 4, 20 10', | |
| 4993 | }; | |
| 4994 | ||
| 4995 | var expect ed = { | |
| 4996 | stage: ' P', | |
| 4997 | quantity : '2', | |
| 4998 | daysSupp ly: '2', | |
| 4999 | dispense dDate: 'FE B 14, 2010 ', | |
| 5000 | dispense dUnit: 'TA B', | |
| 5001 | fillDate : 'FEB 15, 2010', | |
| 5002 | released DateTime: 'FEB 16, 2 010', | |
| 5003 | }; | |
| 5004 | ||
| 5005 | expect(con vertFindLa stOutpatie ntFill(inp ut)).to.de ep.equal(e xpected); | |
| 5006 | }); | |
| 5007 | }); | |
| 5008 | ||
| 5009 | descri be('conver t Vps Medi cations re sponse to MRAR medic ations', f unction() { | |
| 5010 | ||
| 5011 | it(' full examp le', funct ion() { | |
| 5012 | ||
| 5013 | va r expected = [ | |
| 5014 | { | |
| 5015 | }] ; | |
| 5016 | ||
| 5017 | va r result = convertVp sMedicatio nsToMedica tions(test Data.feder atedRespon se, "516") ; | |
| 5018 | // expect(res ult).to.de ep.equal(e xpected); | |
| 5019 | }); | |
| 5020 | ||
| 5021 | ||
| 5022 | }); | |
| 5023 | ||
| 5024 | descri be('Non-VA ', functio n() { | |
| 5025 | ||
| 5026 | it(' all', func tion() { | |
| 5027 | va r source = { | |
| 5028 | "type": "v ista", | |
| 5029 | "location" : 'BAY PIN ES VAMC', | |
| 5030 | "locationI d": 516, | |
| 5031 | "local": f alse | |
| 5032 | }; | |
| 5033 | ||
| 5034 | va r expected = | |
| 5035 | { | |
| 5036 | id: '516:1 00873:1:55 NVA', | |
| 5037 | source: so urce, | |
| 5038 | product: ' LISINOPRIL TAB', | |
| 5039 | sig: '40MG MOUTH EVE RY DAY', | |
| 5040 | status: 'A CTIVE', | |
| 5041 | type: 'N' | |
| 5042 | }; | |
| 5043 | ||
| 5044 | ex pect(conve rtNonVaMed ication(te stData.lis t.nonVA[0] , source)) .to.deep.e qual(expec ted); | |
| 5045 | }); | |
| 5046 | }); | |
| 5047 | ||
| 5048 | descri be('endpoi nt to sour ce-VA', fu nction() { | |
| 5049 | ||
| 5050 | it(' local', fu nction() { | |
| 5051 | va r expected = { | |
| 5052 | "type": "v ista", | |
| 5053 | "location" : 'BAY PIN ES VAMC', | |
| 5054 | "locationI d": 516, | |
| 5055 | "local": t rue | |
| 5056 | }; | |
| 5057 | ||
| 5058 | ex pect(conve rtEndpoint ToSource(t estData.en dpoint, 51 6)).to.dee p.equal(ex pected); | |
| 5059 | }); | |
| 5060 | ||
| 5061 | it(' non-local' , function () { | |
| 5062 | va r expected = { | |
| 5063 | "type": "v ista", | |
| 5064 | "location" : 'BAY PIN ES VAMC', | |
| 5065 | "locationI d": 516, | |
| 5066 | "local": f alse | |
| 5067 | }; | |
| 5068 | ||
| 5069 | ex pect(conve rtEndpoint ToSource(t estData.en dpoint, 99 9)).to.dee p.equal(ex pected); | |
| 5070 | }); | |
| 5071 | }); | |
| 5072 | ||
| 5073 | descri be('Non-VA ', functio n() { | |
| 5074 | ||
| 5075 | it(' all', func tion() { | |
| 5076 | va r source = { | |
| 5077 | "type": "v ista", | |
| 5078 | "location" : 'BAY PIN ES VAMC', | |
| 5079 | "locationI d": 516, | |
| 5080 | "local": f alse | |
| 5081 | }; | |
| 5082 | ||
| 5083 | va r expected = { | |
| 5084 | id: '516:1 00873:1:55 NVA', | |
| 5085 | source: so urce, | |
| 5086 | product: ' LISINOPRIL TAB', | |
| 5087 | sig: '40MG MOUTH EVE RY DAY', | |
| 5088 | status: 'A CTIVE', | |
| 5089 | type: 'N' | |
| 5090 | }; | |
| 5091 | ||
| 5092 | ex pect(conve rtNonVaMed ication(te stData.lis t.nonVA[0] , source)) .to.deep.e qual(expec ted); | |
| 5093 | }); | |
| 5094 | }); | |
| 5095 | ||
| 5096 | descri be('Find N DC in VPS medication ', functio n() { | |
| 5097 | ||
| 5098 | desc ribe('for non-VA med ication', function() { | |
| 5099 | it ('non-VA m edication, NDC not u sed', func tion() { | |
| 5100 | var medica tion = { | |
| 5101 | type: 'N ' | |
| 5102 | }; | |
| 5103 | ||
| 5104 | expect(fin dNdcInVpsM edication( medication )).to.be.n ull; | |
| 5105 | }) ; | |
| 5106 | }); | |
| 5107 | ||
| 5108 | desc ribe('for inpatient medication ', functio n() { | |
| 5109 | it ('inpatien t medicati on, NDC no t used', f unction() { | |
| 5110 | var medica tion = { | |
| 5111 | type: 'I ' | |
| 5112 | }; | |
| 5113 | ||
| 5114 | expect(fin dNdcInVpsM edication( medication )).to.be.n ull; | |
| 5115 | }) ; | |
| 5116 | }); | |
| 5117 | ||
| 5118 | desc ribe('for outpatient medicatio n', functi on() { | |
| 5119 | ||
| 5120 | it ('no CMOP events', f unction() { | |
| 5121 | var medica tion = { | |
| 5122 | type: 'O ' | |
| 5123 | }; | |
| 5124 | ||
| 5125 | expect(fin dNdcInVpsM edication( medication )).to.be.n ull; | |
| 5126 | }) ; | |
| 5127 | ||
| 5128 | it ('1 dispen sed CMOP e vents', fu nction() { | |
| 5129 | var medica tion = { | |
| 5130 | type: 'O ', | |
| 5131 | cmop: [{ | |
| 5132 | "ndcRe ceived": " 12345-6789 -01", | |
| 5133 | "rxInd icator": " 0", | |
| 5134 | "statu s": "DISPE NSED" | |
| 5135 | }] | |
| 5136 | }; | |
| 5137 | ||
| 5138 | var expect ed = '1234 5678901'; | |
| 5139 | ||
| 5140 | expect(fin dNdcInVpsM edication( medication )).to.equa l(expected ); | |
| 5141 | }) ; | |
| 5142 | ||
| 5143 | it ('1 not di spensed CM OP events' , function () { | |
| 5144 | var medica tion = { | |
| 5145 | type: 'O ', | |
| 5146 | cmop: [{ | |
| 5147 | "ndcRe ceived": " 12345-6789 -01", | |
| 5148 | "rxInd icator": " 0", | |
| 5149 | "statu s": "OTHER STATUS" | |
| 5150 | }] | |
| 5151 | }; | |
| 5152 | ||
| 5153 | var expect ed = null; | |
| 5154 | ||
| 5155 | expect(fin dNdcInVpsM edication( medication )).to.equa l(expected ); | |
| 5156 | }) ; | |
| 5157 | ||
| 5158 | it ('2 dispen sed CMOP e vents incr easing rxI ndicator', function( ) { | |
| 5159 | var medica tion = { | |
| 5160 | type: 'O ', | |
| 5161 | cmop: [{ | |
| 5162 | "ndcRe ceived": " 12345-6789 -01", | |
| 5163 | "rxInd icator": " 0", | |
| 5164 | "statu s": "DISPE NSED" | |
| 5165 | }, | |
| 5166 | { | |
| 5167 | "ndcRe ceived": " 99999-9999 -99", | |
| 5168 | "rxInd icator": " 1", | |
| 5169 | "statu s": "DISPE NSED" | |
| 5170 | }] | |
| 5171 | }; | |
| 5172 | ||
| 5173 | var expect ed = '9999 9999999'; | |
| 5174 | ||
| 5175 | expect(fin dNdcInVpsM edication( medication )).to.equa l(expected ); | |
| 5176 | }) ; | |
| 5177 | ||
| 5178 | it ('2 dispen sed CMOP e vents decr easing rxI ndicator', function( ) { | |
| 5179 | var medica tion = { | |
| 5180 | type: 'O ', | |
| 5181 | cmop: [{ | |
| 5182 | "ndcRe ceived": " 12345-6789 -01", | |
| 5183 | "rxInd icator": " 1", | |
| 5184 | "statu s": "DISPE NSED" | |
| 5185 | }, | |
| 5186 | { | |
| 5187 | "ndcRe ceived": " 99999-9999 -99", | |
| 5188 | "rxInd icator": " 0", | |
| 5189 | "statu s": "DISPE NSED" | |
| 5190 | }] | |
| 5191 | }; | |
| 5192 | ||
| 5193 | var expect ed = '1234 5678901'; | |
| 5194 | ||
| 5195 | expect(fin dNdcInVpsM edication( medication )).to.equa l(expected ); | |
| 5196 | }) ; | |
| 5197 | ||
| 5198 | it( '2 CMOP ev ents with highest rx Indicator not DISPEN SED', func tion() { | |
| 5199 | var medica tion = { | |
| 5200 | type: 'O ', | |
| 5201 | cmop: [{ | |
| 5202 | "ndcRe ceived": " 12345-6789 -01", | |
| 5203 | "rxInd icator": " 0", | |
| 5204 | "statu s": "DISPE NSED" | |
| 5205 | }, | |
| 5206 | { | |
| 5207 | "ndcRe ceived": " 99999-9999 -99", | |
| 5208 | "rxInd icator": " 1", | |
| 5209 | "statu s": "OTHER STATUS" | |
| 5210 | }] | |
| 5211 | }; | |
| 5212 | ||
| 5213 | var expect ed = null; | |
| 5214 | ||
| 5215 | expect(fin dNdcInVpsM edication( medication )).to.equa l(expected ); | |
| 5216 | }) ; | |
| 5217 | ||
| 5218 | ||
| 5219 | }); | |
| 5220 | }); | |
| 5221 | ||
| 5222 | }); | |
| 5223 | ||
| 5224 | describe ('logic', function() { | |
| 5225 | ||
| 5226 | descri be('calcut e cutoff d ate', func tion() { | |
| 5227 | ||
| 5228 | it(' default cu teoff', fu nction() { | |
| 5229 | var now = moment('20 16-06-01') ; | |
| 5230 | var input = null; | |
| 5231 | expect(med icationCut offDate(no w, input)) .to.be.sam eMoment(mo ment('2015 -12-04')); | |
| 5232 | }); | |
| 5233 | ||
| 5234 | it(' given cute off', func tion() { | |
| 5235 | var now = moment('20 16-06-01') ; | |
| 5236 | var input = 5; | |
| 5237 | expect(med icationCut offDate(no w, input)) .to.be.sam eMoment(mo ment('2016 -05-27')); | |
| 5238 | }); | |
| 5239 | ||
| 5240 | }); | |
| 5241 | ||
| 5242 | descri be('exclud e old non- active cat egory medi cations ru le', funct ion() { | |
| 5243 | ||
| 5244 | it(' include ne w active c ategory', function() { | |
| 5245 | var input = { | |
| 5246 | status: 'ACTIVE', | |
| 5247 | issueDat e: 'MAY 1, 2016' | |
| 5248 | }; | |
| 5249 | ||
| 5250 | var cutoff Date = mom ent('2016- 01-01'); | |
| 5251 | expect(exc ludeOldNon ActiveCate goryFilter (input, cu toffDate)) .to.be.fal se; | |
| 5252 | }); | |
| 5253 | ||
| 5254 | it(' include ol d active c ategory', function() { | |
| 5255 | var input = { | |
| 5256 | status: 'ACTIVE', | |
| 5257 | issueDat e: 'MAY 1, 2016' | |
| 5258 | }; | |
| 5259 | ||
| 5260 | var cutoff Date = mom ent('2016- 01-01'); | |
| 5261 | expect(exc ludeOldNon ActiveCate goryFilter (input, cu toffDate)) .to.be.fal se; | |
| 5262 | }); | |
| 5263 | ||
| 5264 | it(' include ne w non-acti ve categor y', functi on() { | |
| 5265 | var input = { | |
| 5266 | status: 'EXPIRED', | |
| 5267 | issueDat e: 'MAY 1, 2016' | |
| 5268 | }; | |
| 5269 | ||
| 5270 | var cutoff Date = mom ent('2016- 01-01'); | |
| 5271 | expect(exc ludeOldNon ActiveCate goryFilter (input, cu toffDate)) .to.be.fal se; | |
| 5272 | }); | |
| 5273 | ||
| 5274 | it(' exclude ol d non-acti ve categor y', functi on() { | |
| 5275 | var input = { | |
| 5276 | status: 'EXPIRED', | |
| 5277 | issueDat e: 'MAY 1, 2015' | |
| 5278 | }; | |
| 5279 | ||
| 5280 | var cutoff Date = mom ent('2016- 01-01'); | |
| 5281 | expect(exc ludeOldNon ActiveCate goryFilter (input, cu toffDate)) .to.be.tru e; | |
| 5282 | }); | |
| 5283 | }); | |
| 5284 | ||
| 5285 | }); | |
| 5286 | }); | |
| 5287 | ||
| 5288 | */\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000pa ckage/test /medicatio ns/medicat ionRespons esTestData .js\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x000000 00644\x00000001 750\x0000000175 0\x000000000016 701\x0000130517 54072\x00000206 66\x0000 0\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000ustar \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 var list = { | |
| 5289 | "nonVA": [ | |
| 5290 | { | |
| 5291 | "dat eTimeOrder ed": "", | |
| 5292 | "dru g": "LISIN OPRIL TAB" , | |
| 5293 | "ins tructions" : "40MG MO UTH EVERY DAY", | |
| 5294 | "pat ientStatus ": "O", | |
| 5295 | "pla cerNumber" : "33779", | |
| 5296 | "sch edule": "E VERY DAY", | |
| 5297 | "sta tus": "ACT IVE", | |
| 5298 | "typ e": "N", | |
| 5299 | "uid ": "516:10 0873:1:55N VA" | |
| 5300 | } | |
| 5301 | ], | |
| 5302 | "outpati ent": [ | |
| 5303 | { | |
| 5304 | "cmo p": [ | |
| 5305 | { | |
| 5306 | "ndcReceiv ed": "0007 4-7068-19" , | |
| 5307 | "rxIndicat or": "0", | |
| 5308 | "status": "DISPENSED " | |
| 5309 | } | |
| 5310 | ], | |
| 5311 | "cop ies": "1", | |
| 5312 | "day sSupply": "30", | |
| 5313 | "dis pensedUnit ": "TAB", | |
| 5314 | "dis pensedDate ": "MAR 26 , 2016@12: 00", | |
| 5315 | "div ision": "I NACTIVE SI TE", | |
| 5316 | "dru g": "LEVOT HYROXINE N A (SYNTHRO ID) 0.125M G TAB", | |
| 5317 | "dru gClassific ationCode" : "HS851", | |
| 5318 | "dru gClassific ationName" : "THYROID SUPPLEMEN TS", | |
| 5319 | "ent eredBy": " TOMLIN,BRI AN", | |
| 5320 | "exp irationDat e": "APR 2 6, 2017", | |
| 5321 | "fil lDate": "M AR 26, 201 6@12:00", | |
| 5322 | "iss ueDate": " MAR 26, 20 16@12:00", | |
| 5323 | "las tDispensed Date": "MA R 26, 2016 @12:00", | |
| 5324 | "log inDate": " APR 26, 20 16@20:25:4 0", | |
| 5325 | "mai lWindow": "MAIL", | |
| 5326 | "nex tPossibleF ill": "APR 25, 2016@ 12:00", | |
| 5327 | "num berOfRefil ls": "11", | |
| 5328 | "ord erConverte d": "ORDER CONVERTED ", | |
| 5329 | "pat ient": "MR ARPATIENT, FOUR", | |
| 5330 | "pat ientStatus ": "NON-VA ", | |
| 5331 | "pro duct": "17 58^LEVOTHY ROXINE NA 0.125MG TA B (SYNTHRO ID)", | |
| 5332 | "pro ductId": " urn:va:vui d:", | |
| 5333 | "pro vider": "P ROVIDER,SE VENTY", | |
| 5334 | "qty ": "30", | |
| 5335 | "ref illsRemain ing": "11" , | |
| 5336 | "rel easedDateT ime": "MAR 27, 2016@ 12:00", | |
| 5337 | "rxN umber": "1 5", | |
| 5338 | "sig ": "EVERY DAY", | |
| 5339 | "sta tus": "PRO VIDER HOLD ", | |
| 5340 | "typ e": "O", | |
| 5341 | "uid ": "516:10 0856:40430 1:52", | |
| 5342 | "uni tPriceOfDr ug": "0.08 55" | |
| 5343 | }, | |
| 5344 | { | |
| 5345 | "cop ies": "1", | |
| 5346 | "day sSupply": "30", | |
| 5347 | "dis pensedUnit ": "TAB", | |
| 5348 | "dis pensedDate ": "NOV 08 , 2015@12: 00", | |
| 5349 | "div ision": "I NACTIVE SI TE", | |
| 5350 | "dru g": "ACARB OSE 100MG TAB", | |
| 5351 | "dru gClassific ationCode" : "HS502", | |
| 5352 | "dru gClassific ationName" : "ORAL HY POGLYCEMIC AGENTS,OR AL", | |
| 5353 | "ent eredBy": " TOMLIN,BRI AN", | |
| 5354 | "exp irationDat e": "JAN 2 7, 2016", | |
| 5355 | "fil lDate": "N OV 08, 201 5@12:00", | |
| 5356 | "iss ueDate": " NOV 08, 20 15@12:00", | |
| 5357 | "las tDispensed Date": "NO V 08, 2015 @12:00", | |
| 5358 | "log inDate": " APR 26, 20 16@20:25:4 0", | |
| 5359 | "mai lWindow": "WINDOW", | |
| 5360 | "nex tPossibleF ill": "DEC 08, 2015@ 12:00", | |
| 5361 | "num berOfRefil ls": "2", | |
| 5362 | "ord erConverte d": "ORDER CONVERTED ", | |
| 5363 | "pat ient": "MR ARPATIENT, TWENTYONE" , | |
| 5364 | "pat ientStatus ": "NON-VA ", | |
| 5365 | "pro duct": "12 469^ACARBO SE 100MG T AB", | |
| 5366 | "pro ductId": " urn:va:vui d:", | |
| 5367 | "pro vider": "P ROVIDER,TW OHUNDREDTH IRTYTHREE" , | |
| 5368 | "qty ": "30", | |
| 5369 | "ref illsRemain ing": "2", | |
| 5370 | "rel easedDateT ime": "NOV 09, 2015@ 20:25:40", | |
| 5371 | "rxN umber": "3 0", | |
| 5372 | "sig ": "EVERY DAY", | |
| 5373 | "sta tus": "EXP IRED", | |
| 5374 | "typ e": "O", | |
| 5375 | "uid ": "516:10 0873:40431 6:52", | |
| 5376 | "uni tPriceOfDr ug": "0.48 63" | |
| 5377 | }, | |
| 5378 | { | |
| 5379 | "bin goWaitTime ": "2", | |
| 5380 | "cop ies": "1", | |
| 5381 | "day sSupply": "30", | |
| 5382 | "dis pensedUnit ": "TAB", | |
| 5383 | "dis pensedDate ": "JAN 17 , 2016@12: 00", | |
| 5384 | "div ision": "I NACTIVE SI TE", | |
| 5385 | "dru g": "ACARB OSE 100MG TAB", | |
| 5386 | "dru gClassific ationCode" : "HS502", | |
| 5387 | "dru gClassific ationName" : "ORAL HY POGLYCEMIC AGENTS,OR AL", | |
| 5388 | "ent eredBy": " TOMLIN,BRI AN", | |
| 5389 | "exp irationDat e": "MAR 2 7, 2016", | |
| 5390 | "fil lDate": "J AN 17, 201 6@12:00", | |
| 5391 | "iss ueDate": " JAN 17, 20 16@12:00", | |
| 5392 | "las tDispensed Date": "JA N 17, 2016 @12:00", | |
| 5393 | "log inDate": " APR 26, 20 16@20:25:4 0", | |
| 5394 | "mai lWindow": "WINDOW", | |
| 5395 | "nex tPossibleF ill": "FEB 16, 2016@ 12:00", | |
| 5396 | "num berOfRefil ls": "1", | |
| 5397 | "ord erConverte d": "EXPIR ATION TO C PRS", | |
| 5398 | "par tialFills" : [ | |
| 5399 | { | |
| 5400 | "currentUn itPriceOfD rug": "0.4 863", | |
| 5401 | "daysSuppl y": "20", | |
| 5402 | "division" : "VEHU SI TE", | |
| 5403 | "loginDate ": "MAY 10 , 2016@14: 33", | |
| 5404 | "mailWindo w": "WINDO W", | |
| 5405 | "partialDa te": "APR 01, 2016", | |
| 5406 | "releasedD ateTime": "APR 3, 20 15@20:25:4 0", | |
| 5407 | "pharmacis tName": "P HARMACIST, EIGHT", | |
| 5408 | "provider" : "PROVIDE R,FIFTYFOU R", | |
| 5409 | "qty": "20 ", | |
| 5410 | "remarks": "fadsf" | |
| 5411 | }, | |
| 5412 | { | |
| 5413 | "currentUn itPriceOfD rug": "0.4 863", | |
| 5414 | "daysSuppl y": "20", | |
| 5415 | "division" : "VEHU SI TE", | |
| 5416 | "loginDate ": "MAY 10 , 2016@14: 51", | |
| 5417 | "mailWindo w": "WINDO W", | |
| 5418 | "partialDa te": "MAY 15, 2016", | |
| 5419 | "releasedD ateTime": "MAY 16, 2 015@20:25: 40", | |
| 5420 | "pharmacis tName": "P HARMACIST, EIGHT", | |
| 5421 | "provider" : "PROVIDE R,FIFTYFOU R", | |
| 5422 | "qty": "20 ", | |
| 5423 | "releasedD ateTime": "MAY 10, 2 016@14:53: 25", | |
| 5424 | "remarks": "fadsfdas " | |
| 5425 | } | |
| 5426 | ], | |
| 5427 | "ref ills": [ | |
| 5428 | { | |
| 5429 | "clerkCode ": "TOMLIN ,BRIAN", | |
| 5430 | "currentUn itPriceOfD rug": "11. 3533", | |
| 5431 | "daysSuppl y": "30", | |
| 5432 | "dispensed Date": "MA Y 11, 2016 ", | |
| 5433 | "division" : "VEHU SI TE", | |
| 5434 | "loginDate ": "MAY 11 , 2016", | |
| 5435 | "mailWindo w": "WINDO W", | |
| 5436 | "pharmacis tName": "P HARMACIST, EIGHT", | |
| 5437 | "provider" : "PROVIDE R,ELEVEN", | |
| 5438 | "qty": "4" , | |
| 5439 | "refillDat e": "MAY 1 1, 2016", | |
| 5440 | "releasedD ateTime": "MAY 11, 2 016@15:37" | |
| 5441 | } | |
| 5442 | ], | |
| 5443 | "pat ient": "MR ARPATIENT, TWENTYONE" , | |
| 5444 | "pat ientStatus ": "NON-VA ", | |
| 5445 | "pro duct": "12 469^ACARBO SE 100MG T AB", | |
| 5446 | "pro ductId": " urn:va:vui d:", | |
| 5447 | "pro vider": "P ROVIDER,FI FTYFOUR", | |
| 5448 | "qty ": "30", | |
| 5449 | "ref illsRemain ing": "1", | |
| 5450 | "rxN umber": "3 1", | |
| 5451 | "sig ": "EVERY DAY", | |
| 5452 | "sta tus": "EXP IRED", | |
| 5453 | "typ e": "O", | |
| 5454 | "uid ": "516:10 0873:40431 7:52", | |
| 5455 | "uni tPriceOfDr ug": "0.48 63" | |
| 5456 | }, | |
| 5457 | { | |
| 5458 | "bin goWaitTime ": "8", | |
| 5459 | "cop ies": "1", | |
| 5460 | "day sSupply": "30", | |
| 5461 | "dis pensedUnit ": "PATCH" , | |
| 5462 | "dis pensedDate ": "APR 01 , 2016", | |
| 5463 | "div ision": "V EHU SITE", | |
| 5464 | "dru g": "CLONI DINE 0.2MG /24HR PATC H", | |
| 5465 | "dru gClassific ationCode" : "CV490", | |
| 5466 | "dru gClassific ationName" : "ANTIHYP ERTENSIVES ,OTHER", | |
| 5467 | "ent eredBy": " TOMLIN,BRI AN", | |
| 5468 | "exp irationDat e": "APR 0 2, 2017", | |
| 5469 | "fil lDate": "A PR 01, 201 6", | |
| 5470 | "iss ueDate": " APR 01, 20 16", | |
| 5471 | "las tDispensed Date": "MA Y 11, 2016 ", | |
| 5472 | "log inDate": " MAY 11, 20 16@15:25:3 7", | |
| 5473 | "mai lWindow": "WINDOW", | |
| 5474 | "ndc ": "00597- 0032-12", | |
| 5475 | "nex tPossibleF ill": "MAY 31, 2016" , | |
| 5476 | "num berOfRefil ls": "11", | |
| 5477 | "pat ient": "MR ARPATIENT, SIXTEEN", | |
| 5478 | "pat ientStatus ": "HB/A&A /WW1", | |
| 5479 | "pha rmacist": "PHARMACIS T,EIGHT", | |
| 5480 | "pri orFillDate ": "APR 01 , 2016", | |
| 5481 | "pro duct": "18 89^CLONIDI NE 0.2MG/2 4HRS PATCH ", | |
| 5482 | "pro ductId": " urn:va:vui d:", | |
| 5483 | "pro vider": "P ROVIDER,EL EVEN", | |
| 5484 | "qty ": "4", | |
| 5485 | "ref ills": [ | |
| 5486 | { | |
| 5487 | "clerkCode ": "TOMLIN ,BRIAN", | |
| 5488 | "currentUn itPriceOfD rug": "11. 3533", | |
| 5489 | "daysSuppl y": "30", | |
| 5490 | "dispensed Date": "MA Y 11, 2016 ", | |
| 5491 | "division" : "VEHU SI TE", | |
| 5492 | "loginDate ": "MAY 11 , 2016", | |
| 5493 | "mailWindo w": "WINDO W", | |
| 5494 | "pharmacis tName": "P HARMACIST, EIGHT", | |
| 5495 | "provider" : "PROVIDE R,ELEVEN", | |
| 5496 | "qty": "4" , | |
| 5497 | "refillDat e": "MAY 1 1, 2016", | |
| 5498 | "releasedD ateTime": "MAY 11, 2 016@15:37" | |
| 5499 | } | |
| 5500 | ], | |
| 5501 | "ref illsRemain ing": "10" , | |
| 5502 | "rel easedDateT ime": "MAY 11, 2016@ 15:26:18", | |
| 5503 | "rem arks": "TE DWASHERE", | |
| 5504 | "rxN umber": "5 01067", | |
| 5505 | "sig ": "APPLY ONE APPLY TO AFFECTE D AREA QWE EK", | |
| 5506 | "sta tus": "ACT IVE", | |
| 5507 | "typ e": "O", | |
| 5508 | "uid ": "516:10 0868:40431 8:52", | |
| 5509 | "uni tPriceOfDr ug": "11.3 533" | |
| 5510 | } | |
| 5511 | ] | |
| 5512 | }; | |
| 5513 | ||
| 5514 | var endpoi nt = { | |
| 5515 | "station ID": 516, | |
| 5516 | "siteNam e": "BAY P INES VAMC" | |
| 5517 | }; | |
| 5518 | ||
| 5519 | var federa tedRespons e = [{ | |
| 5520 | data: list, | |
| 5521 | endpoi nt: endpoi nt | |
| 5522 | }]; | |
| 5523 | ||
| 5524 | module.exp orts = { | |
| 5525 | list: li st, | |
| 5526 | endpoint : endpoint , | |
| 5527 | federate dResponse: federated Response | |
| 5528 | }; | |
| 5529 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000package /package.j son\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x00000000644 \x00000000000\x00000 000000\x0000000 00002125\x00001 3052061137 \x0000013433\x0000 0 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 ustar \x0000ro ot\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 root\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000{ | |
| 5530 | "name": "ehmp-mrar -services" , | |
| 5531 | "version ": "1.17.1 ", | |
| 5532 | "mrarVer sion": "1. 0.9", | |
| 5533 | "license ": "Apache -2.0", | |
| 5534 | "descrip tion": "VS A Service module to support MR AR", | |
| 5535 | "depende ncies": { | |
| 5536 | "async ": "1.5.1" , | |
| 5537 | "lodas h": "4.5.1 ", | |
| 5538 | "momen t": "2.11. 1", | |
| 5539 | "node- uuid": "1. 4.7", | |
| 5540 | "objec t-assign": "4.0.1", | |
| 5541 | "redux ": "3.3.1" , | |
| 5542 | "reque st": "2.71 .0", | |
| 5543 | "vjs-g lobals": " 1.0.5", | |
| 5544 | "vjs-r esponse": "1.0.6", | |
| 5545 | "ws": "1.1.0" | |
| 5546 | }, | |
| 5547 | "devDepe ndencies": { | |
| 5548 | "chai" : "3.5.0", | |
| 5549 | "chai- moment": " 0.0.2", | |
| 5550 | "mocha ": "2.4.5" , | |
| 5551 | "rewir e": "2.5.1 ", | |
| 5552 | "seman tic-releas e": "^4.3. 5", | |
| 5553 | "commi tizen": "^ 2.4.6", | |
| 5554 | "cz-co nventional -changelog ": "^1.1.4 " | |
| 5555 | }, | |
| 5556 | "scripts ": { | |
| 5557 | "posti nstall": " node scrip ts/postIns tall.js", | |
| 5558 | "commi t": "npm r un test && git-cz", | |
| 5559 | "seman tic-releas e": "seman tic-releas e pre && n pm publish && semant ic-release post", | |
| 5560 | "test" : "mocha - -recursive " | |
| 5561 | }, | |
| 5562 | "config" : { | |
| 5563 | "commi tizen": { | |
| 5564 | "pat h": "node_ modules/cz -conventio nal-change log" | |
| 5565 | } | |
| 5566 | }, | |
| 5567 | "reposit ory": { | |
| 5568 | "type" : "git", | |
| 5569 | "url": "https:// github.com /apexdatas olutions/e hmp-mrar-s ervices.gi t" | |
| 5570 | } | |
| 5571 | } | |
| 5572 | \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000\x0000 \x0000 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.