@webos-tools/cli 3.1.3 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1396) hide show
  1. package/.eslintignore +1 -1
  2. package/.eslintrc.js +52 -52
  3. package/APIs.js +79 -79
  4. package/CHANGELOG.md +32 -4
  5. package/LICENSE +201 -201
  6. package/README.md +226 -219
  7. package/bin/ares-config.js +211 -202
  8. package/bin/ares-device-info.js +30 -30
  9. package/bin/ares-device.js +222 -219
  10. package/bin/ares-generate.js +274 -274
  11. package/bin/ares-inspect.js +179 -179
  12. package/bin/ares-install.js +223 -223
  13. package/bin/ares-launch.js +318 -318
  14. package/bin/ares-log.js +259 -259
  15. package/bin/ares-novacom.js +220 -220
  16. package/bin/ares-package.js +347 -336
  17. package/bin/ares-pull.js +156 -156
  18. package/bin/ares-push.js +155 -155
  19. package/bin/ares-server.js +174 -174
  20. package/bin/ares-setup-device.js +10 -6
  21. package/bin/ares-shell.js +132 -132
  22. package/bin/ares.js +166 -166
  23. package/files/conf/ares.json +50 -49
  24. package/files/conf/command-service.json +78 -73
  25. package/files/conf/config.json +31 -31
  26. package/files/conf/ipk.json +30 -30
  27. package/files/conf/novacom-devices.json +69 -52
  28. package/files/conf/query/query-app.json +14 -14
  29. package/files/conf/query/query-hosted.json +18 -18
  30. package/files/conf/query/query-package.json +10 -10
  31. package/files/conf/query/query-service.json +6 -6
  32. package/files/conf/sdk.json +8 -8
  33. package/files/conf/template.json +57 -57
  34. package/files/conf/webos_emul +27 -27
  35. package/files/conf-base/env/sdk-apollo.json +8 -8
  36. package/files/conf-base/env/sdk-ose.json +8 -8
  37. package/files/conf-base/env/sdk-signage.json +8 -0
  38. package/files/conf-base/env/sdk-tv.json +8 -8
  39. package/files/conf-base/key/pubkey-signage.pem +9 -0
  40. package/files/conf-base/profile/config-apollo.json +29 -29
  41. package/files/conf-base/profile/config-ose.json +29 -29
  42. package/files/conf-base/profile/config-signage.json +29 -0
  43. package/files/conf-base/profile/config-tv.json +31 -31
  44. package/files/conf-base/query/query-app.json +14 -14
  45. package/files/conf-base/query/query-hosted.json +18 -18
  46. package/files/conf-base/query/query-package.json +10 -10
  47. package/files/conf-base/query/query-service.json +6 -6
  48. package/files/conf-base/query/signage/query-app.json +14 -0
  49. package/files/conf-base/query/signage/query-service.json +6 -0
  50. package/files/conf-base/template-conf/ose-templates.json +67 -67
  51. package/files/conf-base/template-conf/signage-sdk-templates.json +239 -0
  52. package/files/conf-base/template-conf/tv-sdk-templates.json +57 -57
  53. package/files/help/ares-config.help +48 -48
  54. package/files/help/ares-device.help +109 -109
  55. package/files/help/ares-generate.help +101 -91
  56. package/files/help/ares-inspect.help +77 -76
  57. package/files/help/ares-install.help +95 -95
  58. package/files/help/ares-launch.help +111 -105
  59. package/files/help/ares-log-pmlogd.help +84 -84
  60. package/files/help/ares-log.help +101 -101
  61. package/files/help/ares-novacom.help +68 -68
  62. package/files/help/ares-package.help +103 -101
  63. package/files/help/ares-pull.help +38 -38
  64. package/files/help/ares-push.help +38 -38
  65. package/files/help/ares-server.help +44 -44
  66. package/files/help/ares-setup-device.help +196 -156
  67. package/files/help/ares-shell.help +42 -42
  68. package/files/help/ares.help +52 -52
  69. package/files/help/readme.help +23 -23
  70. package/files/schema/ApplicationDescription.schema +319 -319
  71. package/files/schema/NovacomDevices.schema +63 -62
  72. package/files/templates/apollo-sdk-templates/appinfo/appinfo.json +10 -10
  73. package/files/templates/apollo-sdk-templates/bootplate-web/index.html +88 -88
  74. package/files/templates/apollo-sdk-templates/hosted-webapp/index.html +13 -13
  75. package/files/templates/apollo-sdk-templates/js-service/helloclient.js +31 -31
  76. package/files/templates/apollo-sdk-templates/js-service/helloworld_webos_service.js +188 -188
  77. package/files/templates/apollo-sdk-templates/serviceinfo/package.json +11 -11
  78. package/files/templates/apollo-sdk-templates/serviceinfo/services.json +8 -8
  79. package/files/templates/ose-sdk-templates/appinfo/appinfo.json +10 -10
  80. package/files/templates/ose-sdk-templates/bootplate-web/index.html +88 -88
  81. package/files/templates/ose-sdk-templates/hosted-webapp/index.html +13 -13
  82. package/files/templates/ose-sdk-templates/js-service/helloclient.js +31 -31
  83. package/files/templates/ose-sdk-templates/js-service/helloworld_webos_service.js +188 -188
  84. package/files/templates/ose-sdk-templates/qml-app/main.qml +68 -68
  85. package/files/templates/ose-sdk-templates/qmlappinfo/appinfo.json +10 -10
  86. package/files/templates/ose-sdk-templates/serviceinfo/package.json +11 -11
  87. package/files/templates/ose-sdk-templates/serviceinfo/services.json +8 -8
  88. package/files/templates/signage-sdk-templates/Backlight_Scheduling/clockTable.js +29 -0
  89. package/files/templates/signage-sdk-templates/Backlight_Scheduling/index.html +53 -0
  90. package/files/templates/signage-sdk-templates/Backlight_Scheduling/js/idcap.js +21 -0
  91. package/files/templates/signage-sdk-templates/Backlight_Scheduling/remocon.js +214 -0
  92. package/files/templates/signage-sdk-templates/Backlight_Scheduling/scheduler.js +123 -0
  93. package/files/templates/signage-sdk-templates/Backlight_Scheduling/setanddelete.js +25 -0
  94. package/files/templates/signage-sdk-templates/Backlight_Scheduling/style.css +213 -0
  95. package/files/templates/signage-sdk-templates/Download_Progress/app.css +27 -0
  96. package/files/templates/signage-sdk-templates/Download_Progress/app.js +407 -0
  97. package/files/templates/signage-sdk-templates/Download_Progress/index.html +32 -0
  98. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova/2.7.0/cordova.webos.js +7038 -0
  99. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova/LICENSE +201 -0
  100. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/configuration.js +1 -0
  101. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/deviceInfo.js +1 -0
  102. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/inputSource.js +1 -0
  103. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/power.js +1 -0
  104. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/signage.js +1 -0
  105. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/sound.js +1 -0
  106. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/storage.js +1 -0
  107. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/video.js +1 -0
  108. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/configuration.js +1 -0
  109. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/deviceInfo.js +1 -0
  110. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/inputSource.js +1 -0
  111. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/power.js +1 -0
  112. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/signage.js +1 -0
  113. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/sound.js +1 -0
  114. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/storage.js +1 -0
  115. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/video.js +1 -0
  116. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/configuration.js +1 -0
  117. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/deviceInfo.js +1 -0
  118. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/inputSource.js +1 -0
  119. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/power.js +1 -0
  120. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/signage.js +1 -0
  121. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/sound.js +1 -0
  122. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/storage.js +23 -0
  123. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/video.js +1 -0
  124. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/configuration.js +1 -0
  125. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/deviceInfo.js +1 -0
  126. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/inputSource.js +1 -0
  127. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/power.js +1 -0
  128. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/signage.js +1 -0
  129. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/sound.js +1 -0
  130. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/storage.js +1 -0
  131. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/video.js +1 -0
  132. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/configuration.js +9 -0
  133. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/deviceInfo.js +9 -0
  134. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/inputSource.js +9 -0
  135. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/power.js +9 -0
  136. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/security.js +9 -0
  137. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/signage.js +9 -0
  138. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/sound.js +9 -0
  139. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/storage.js +9 -0
  140. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/time.js +9 -0
  141. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/utility.js +9 -0
  142. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/video.js +9 -0
  143. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/configuration.js +9 -0
  144. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/deviceInfo.js +9 -0
  145. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/inputSource.js +9 -0
  146. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/power.js +9 -0
  147. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/security.js +9 -0
  148. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/signage.js +9 -0
  149. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/sound.js +9 -0
  150. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/storage.js +9 -0
  151. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/time.js +9 -0
  152. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/utility.js +9 -0
  153. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/video.js +9 -0
  154. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/configuration.js +9 -0
  155. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/deviceInfo.js +9 -0
  156. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/inputSource.js +9 -0
  157. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/power.js +9 -0
  158. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/security.js +9 -0
  159. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/signage.js +8 -0
  160. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/sound.js +9 -0
  161. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/storage.js +9 -0
  162. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/time.js +9 -0
  163. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/utility.js +9 -0
  164. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/video.js +9 -0
  165. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/configuration.js +9 -0
  166. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/deviceInfo.js +9 -0
  167. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/inputSource.js +9 -0
  168. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/power.js +9 -0
  169. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/security.js +9 -0
  170. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/signage.js +9 -0
  171. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/sound.js +9 -0
  172. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/storage.js +9 -0
  173. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/time.js +9 -0
  174. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/utility.js +9 -0
  175. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/video.js +9 -0
  176. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/configuration.js +1 -0
  177. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/deviceInfo.js +1 -0
  178. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/inputSource.js +1 -0
  179. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/power.js +1 -0
  180. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/security.js +1 -0
  181. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/signage.js +1 -0
  182. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/sound.js +1 -0
  183. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/storage.js +1 -0
  184. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/time.js +1 -0
  185. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/utility.js +1 -0
  186. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/video.js +1 -0
  187. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/configuration.js +1 -0
  188. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/deviceInfo.js +1 -0
  189. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/inputSource.js +1 -0
  190. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/power.js +1 -0
  191. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/security.js +1 -0
  192. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/signage.js +1 -0
  193. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/sound.js +1 -0
  194. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/storage.js +1 -0
  195. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/time.js +1 -0
  196. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/utility.js +1 -0
  197. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/video.js +1 -0
  198. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/configuration.js +1 -0
  199. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/deviceInfo.js +1 -0
  200. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/inputSource.js +1 -0
  201. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/power.js +1 -0
  202. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/security.js +1 -0
  203. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/signage.js +1 -0
  204. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/sound.js +1 -0
  205. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/storage.js +1 -0
  206. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/time.js +1 -0
  207. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/utility.js +1 -0
  208. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/video.js +1 -0
  209. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/configuration.js +1 -0
  210. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/deviceInfo.js +1 -0
  211. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/inputSource.js +1 -0
  212. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/power.js +1 -0
  213. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/security.js +1 -0
  214. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/signage.js +1 -0
  215. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/sound.js +1 -0
  216. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/storage.js +1 -0
  217. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/time.js +1 -0
  218. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/utility.js +1 -0
  219. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/video.js +1 -0
  220. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/configuration.js +1 -0
  221. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/deviceInfo.js +1 -0
  222. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/inputSource.js +1 -0
  223. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/power.js +1 -0
  224. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/security.js +1 -0
  225. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/signage.js +1 -0
  226. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/sound.js +1 -0
  227. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/storage.js +1 -0
  228. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/time.js +1 -0
  229. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/utility.js +1 -0
  230. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/video.js +1 -0
  231. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/configuration.js +1 -0
  232. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/deviceInfo.js +1 -0
  233. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/inputSource.js +1 -0
  234. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/power.js +1 -0
  235. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/security.js +1 -0
  236. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/signage.js +1 -0
  237. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/sound.js +1 -0
  238. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/storage.js +1 -0
  239. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/time.js +1 -0
  240. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/utility.js +1 -0
  241. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/video.js +1 -0
  242. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/configuration.js +1 -0
  243. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/deviceInfo.js +1 -0
  244. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/inputSource.js +1 -0
  245. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/power.js +1 -0
  246. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/security.js +1 -0
  247. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/signage.js +1 -0
  248. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/sound.js +1 -0
  249. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/storage.js +1 -0
  250. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/time.js +1 -0
  251. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/utility.js +1 -0
  252. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/video.js +1 -0
  253. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/configuration.js +1 -0
  254. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/deviceInfo.js +1 -0
  255. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/inputSource.js +1 -0
  256. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/power.js +1 -0
  257. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/security.js +1 -0
  258. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/signage.js +1 -0
  259. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/sound.js +1 -0
  260. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/storage.js +1 -0
  261. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/time.js +1 -0
  262. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/utility.js +1 -0
  263. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/video.js +1 -0
  264. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/configuration.js +1 -0
  265. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/deviceInfo.js +1 -0
  266. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/inputSource.js +1 -0
  267. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/power.js +1 -0
  268. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/security.js +1 -0
  269. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/signage.js +1 -0
  270. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/sound.js +1 -0
  271. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/storage.js +1 -0
  272. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/time.js +1 -0
  273. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/utility.js +1 -0
  274. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/video.js +1 -0
  275. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/configuration.js +1 -0
  276. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/deviceInfo.js +1 -0
  277. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/inputSource.js +1 -0
  278. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/power.js +1 -0
  279. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/security.js +1 -0
  280. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/signage.js +1 -0
  281. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/sound.js +1 -0
  282. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/storage.js +1 -0
  283. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/time.js +1 -0
  284. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/utility.js +1 -0
  285. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/video.js +1 -0
  286. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/configuration.js +1 -0
  287. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/deviceInfo.js +1 -0
  288. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/inputSource.js +1 -0
  289. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/power.js +1 -0
  290. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/security.js +1 -0
  291. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/signage.js +1 -0
  292. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/sound.js +1 -0
  293. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/storage.js +1 -0
  294. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/time.js +1 -0
  295. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/utility.js +1 -0
  296. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/video.js +1 -0
  297. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/configuration.js +1 -0
  298. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/deviceInfo.js +1 -0
  299. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/inputSource.js +1 -0
  300. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/power.js +1 -0
  301. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/security.js +1 -0
  302. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/signage.js +1 -0
  303. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/sound.js +1 -0
  304. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/storage.js +1 -0
  305. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/time.js +1 -0
  306. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/utility.js +1 -0
  307. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/video.js +1 -0
  308. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/configuration.js +1 -0
  309. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/deviceInfo.js +1 -0
  310. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/inputSource.js +1 -0
  311. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/power.js +1 -0
  312. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/security.js +1 -0
  313. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/signage.js +1 -0
  314. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/sound.js +1 -0
  315. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/storage.js +1 -0
  316. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/time.js +1 -0
  317. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/utility.js +1 -0
  318. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/video.js +1 -0
  319. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/configuration.js +1 -0
  320. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/deviceInfo.js +1 -0
  321. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/inputSource.js +1 -0
  322. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/power.js +1 -0
  323. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/security.js +1 -0
  324. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/signage.js +1 -0
  325. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/sound.js +1 -0
  326. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/storage.js +1 -0
  327. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/time.js +1 -0
  328. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/utility.js +1 -0
  329. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/video.js +1 -0
  330. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/configuration.js +1 -0
  331. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/deviceInfo.js +1 -0
  332. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/inputSource.js +1 -0
  333. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/power.js +1 -0
  334. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/security.js +1 -0
  335. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/signage.js +1 -0
  336. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/sound.js +1 -0
  337. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/storage.js +1 -0
  338. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/time.js +1 -0
  339. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/utility.js +1 -0
  340. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/video.js +1 -0
  341. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/configuration.js +1 -0
  342. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/deviceInfo.js +1 -0
  343. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/inputSource.js +1 -0
  344. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/power.js +1 -0
  345. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/security.js +1 -0
  346. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/signage.js +1 -0
  347. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/sound.js +1 -0
  348. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/storage.js +1 -0
  349. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/time.js +1 -0
  350. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/utility.js +1 -0
  351. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/video.js +1 -0
  352. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/configuration.js +1 -0
  353. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/deviceInfo.js +1 -0
  354. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/inputSource.js +1 -0
  355. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/power.js +1 -0
  356. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/security.js +1 -0
  357. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/signage.js +1 -0
  358. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/sound.js +1 -0
  359. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/storage.js +1 -0
  360. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/time.js +1 -0
  361. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/utility.js +1 -0
  362. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/video.js +1 -0
  363. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/configuration.js +1 -0
  364. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/deviceInfo.js +1 -0
  365. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/inputSource.js +1 -0
  366. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/led.js +1 -0
  367. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/power.js +1 -0
  368. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/security.js +1 -0
  369. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/signage.js +1 -0
  370. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/sound.js +1 -0
  371. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/storage.js +1 -0
  372. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/time.js +1 -0
  373. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/utility.js +1 -0
  374. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/video.js +1 -0
  375. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/configuration.js +1 -0
  376. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/deviceInfo.js +1 -0
  377. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/inputSource.js +1 -0
  378. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/led.js +1 -0
  379. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/power.js +1 -0
  380. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/security.js +1 -0
  381. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/signage.js +1 -0
  382. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/sound.js +1 -0
  383. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/storage.js +1 -0
  384. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/time.js +1 -0
  385. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/utility.js +1 -0
  386. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/video.js +1 -0
  387. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/configuration.js +1 -0
  388. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/deviceInfo.js +1 -0
  389. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/inputSource.js +1 -0
  390. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/iot.js +1 -0
  391. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/power.js +1 -0
  392. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/security.js +1 -0
  393. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/signage.js +1 -0
  394. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/sound.js +1 -0
  395. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/storage.js +1 -0
  396. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/time.js +1 -0
  397. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/utility.js +1 -0
  398. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/video.js +1 -0
  399. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/configuration.js +1 -0
  400. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/deviceInfo.js +1 -0
  401. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/inputSource.js +1 -0
  402. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/iot.js +1 -0
  403. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/power.js +1 -0
  404. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/security.js +1 -0
  405. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/signage.js +1 -0
  406. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/sound.js +1 -0
  407. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/storage.js +1 -0
  408. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/time.js +1 -0
  409. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/utility.js +1 -0
  410. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/video.js +1 -0
  411. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/configuration.js +1 -0
  412. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/deviceInfo.js +1 -0
  413. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/inputSource.js +1 -0
  414. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/iot.js +1 -0
  415. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/led.js +1 -0
  416. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/power.js +1 -0
  417. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/security.js +1 -0
  418. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/signage.js +1 -0
  419. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/sound.js +1 -0
  420. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/storage.js +1 -0
  421. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/time.js +1 -0
  422. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/utility.js +1 -0
  423. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/video.js +1 -0
  424. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/configuration.js +1 -0
  425. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/deviceInfo.js +1 -0
  426. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/inputSource.js +1 -0
  427. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/iot.js +1 -0
  428. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/led.js +1 -0
  429. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/power.js +1 -0
  430. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/security.js +1 -0
  431. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/signage.js +1 -0
  432. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/sound.js +1 -0
  433. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/storage.js +1 -0
  434. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/time.js +1 -0
  435. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/utility.js +1 -0
  436. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/video.js +1 -0
  437. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/configuration.js +1 -0
  438. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/deviceInfo.js +1 -0
  439. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/inputSource.js +1 -0
  440. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/iot.js +1 -0
  441. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/power.js +1 -0
  442. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/security.js +1 -0
  443. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/signage.js +1 -0
  444. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/sound.js +1 -0
  445. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/storage.js +1 -0
  446. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/time.js +1 -0
  447. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/utility.js +1 -0
  448. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/video.js +1 -0
  449. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/configuration.js +1 -0
  450. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/deviceInfo.js +1 -0
  451. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/inputSource.js +1 -0
  452. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/iot.js +1 -0
  453. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/power.js +1 -0
  454. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/security.js +1 -0
  455. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/signage.js +1 -0
  456. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/sound.js +1 -0
  457. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/storage.js +1 -0
  458. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/time.js +1 -0
  459. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/utility.js +1 -0
  460. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/video.js +1 -0
  461. package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.2.js +14 -0
  462. package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.3.1.js +1 -0
  463. package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.3.js +1 -0
  464. package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.4.js +14 -0
  465. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/README.txt +40 -0
  466. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/gpio.js +16 -0
  467. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/gps.js +16 -0
  468. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/humidity.js +16 -0
  469. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/light.js +16 -0
  470. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/nfc.js +16 -0
  471. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/rfid.js +16 -0
  472. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/temperature.js +16 -0
  473. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/thermalPrinter.js +16 -0
  474. package/files/templates/signage-sdk-templates/Download_Progress/js/idcap.js +21 -0
  475. package/files/templates/signage-sdk-templates/Download_Progress/js/webOS/LICENSE-2.0.txt +202 -0
  476. package/files/templates/signage-sdk-templates/Download_Progress/js/webOS/webOS.js +1 -0
  477. package/files/templates/signage-sdk-templates/Download_Progress/res/webossignage_logo.png +0 -0
  478. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/css/styles.css +270 -0
  479. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/data/data.json +12 -0
  480. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/fonts/MuseoSans300.otf +0 -0
  481. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/fonts/MuseoSans700Italic.otf +0 -0
  482. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/index.html +43 -0
  483. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/js/controller.js +263 -0
  484. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/js/helpers/util.js +130 -0
  485. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/readme.txt +26 -0
  486. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/images/tpl_01_img_sign.png +0 -0
  487. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/images/tpl_01_logo_nike.png +0 -0
  488. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/videos/tpl_01_video.mp4 +0 -0
  489. package/files/templates/signage-sdk-templates/File_Explorer/README.txt +16 -0
  490. package/files/templates/signage-sdk-templates/File_Explorer/index.html +44 -0
  491. package/files/templates/signage-sdk-templates/File_Explorer/js/Root.js +48 -0
  492. package/files/templates/signage-sdk-templates/File_Explorer/js/definition.js +59 -0
  493. package/files/templates/signage-sdk-templates/File_Explorer/js/explorer.js +367 -0
  494. package/files/templates/signage-sdk-templates/File_Explorer/js/explorerController.js +462 -0
  495. package/files/templates/signage-sdk-templates/File_Explorer/js/idcap.js +21 -0
  496. package/files/templates/signage-sdk-templates/File_Explorer/js/mainController.js +261 -0
  497. package/files/templates/signage-sdk-templates/File_Explorer/style.css +233 -0
  498. package/files/templates/signage-sdk-templates/Flight_Schedule/appinfo.json +11 -0
  499. package/files/templates/signage-sdk-templates/Flight_Schedule/css/styles.css +168 -0
  500. package/files/templates/signage-sdk-templates/Flight_Schedule/data/data.json +5 -0
  501. package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans300.otf +0 -0
  502. package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans500.otf +0 -0
  503. package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans700.otf +0 -0
  504. package/files/templates/signage-sdk-templates/Flight_Schedule/images/AAir.png +0 -0
  505. package/files/templates/signage-sdk-templates/Flight_Schedule/images/BAirline.png +0 -0
  506. package/files/templates/signage-sdk-templates/Flight_Schedule/images/CAirline.png +0 -0
  507. package/files/templates/signage-sdk-templates/Flight_Schedule/images/DAir.png +0 -0
  508. package/files/templates/signage-sdk-templates/Flight_Schedule/images/EAirline.png +0 -0
  509. package/files/templates/signage-sdk-templates/Flight_Schedule/images/tpl_05_img_flight.png +0 -0
  510. package/files/templates/signage-sdk-templates/Flight_Schedule/index.html +32 -0
  511. package/files/templates/signage-sdk-templates/Flight_Schedule/js/controller.js +235 -0
  512. package/files/templates/signage-sdk-templates/Flight_Schedule/js/helpers/util.js +183 -0
  513. package/files/templates/signage-sdk-templates/Flight_Schedule/readme.txt +29 -0
  514. package/files/templates/signage-sdk-templates/Flight_Schedule/server/example.json +4 -0
  515. package/files/templates/signage-sdk-templates/Flight_Schedule/server/package.json +9 -0
  516. package/files/templates/signage-sdk-templates/Flight_Schedule/server/readme.txt +30 -0
  517. package/files/templates/signage-sdk-templates/Flight_Schedule/server/routes/flights.js +493 -0
  518. package/files/templates/signage-sdk-templates/Flight_Schedule/server/server.js +43 -0
  519. package/files/templates/signage-sdk-templates/Information_Board/css/styles.css +239 -0
  520. package/files/templates/signage-sdk-templates/Information_Board/data/data.json +49 -0
  521. package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 300.otf +0 -0
  522. package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 500.otf +0 -0
  523. package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 700.otf +0 -0
  524. package/files/templates/signage-sdk-templates/Information_Board/index.html +101 -0
  525. package/files/templates/signage-sdk-templates/Information_Board/js/controller.js +111 -0
  526. package/files/templates/signage-sdk-templates/Information_Board/js/helpers/util.js +130 -0
  527. package/files/templates/signage-sdk-templates/Information_Board/readme.txt +22 -0
  528. package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_img_main_01.png +0 -0
  529. package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_img_news.png +0 -0
  530. package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_logo_harvard.png +0 -0
  531. package/files/templates/signage-sdk-templates/Information_Kiosk/css/styles.css +387 -0
  532. package/files/templates/signage-sdk-templates/Information_Kiosk/data/data.json +185 -0
  533. package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 300 Italic.otf +0 -0
  534. package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 300.otf +0 -0
  535. package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 500 Italic.otf +0 -0
  536. package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 500.otf +0 -0
  537. package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 700 Italic.otf +0 -0
  538. package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 700.otf +0 -0
  539. package/files/templates/signage-sdk-templates/Information_Kiosk/index.html +320 -0
  540. package/files/templates/signage-sdk-templates/Information_Kiosk/js/controller.js +373 -0
  541. package/files/templates/signage-sdk-templates/Information_Kiosk/js/helpers/util.js +130 -0
  542. package/files/templates/signage-sdk-templates/Information_Kiosk/readme.txt +26 -0
  543. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_l_n.png +0 -0
  544. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_l_p.png +0 -0
  545. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_r_n.png +0 -0
  546. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_r_p.png +0 -0
  547. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_close_n.png +0 -0
  548. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_close_p.png +0 -0
  549. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_rotation_n.png +0 -0
  550. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_rotation_p.png +0 -0
  551. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_bg_01.png +0 -0
  552. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_01.png +0 -0
  553. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_02.png +0 -0
  554. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_03.png +0 -0
  555. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_04.png +0 -0
  556. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_05.png +0 -0
  557. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_06.png +0 -0
  558. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_07.png +0 -0
  559. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_08.png +0 -0
  560. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_09.png +0 -0
  561. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_10.png +0 -0
  562. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_11.png +0 -0
  563. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_12.png +0 -0
  564. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_01.png +0 -0
  565. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_02.png +0 -0
  566. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_03.png +0 -0
  567. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_04.png +0 -0
  568. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_05.png +0 -0
  569. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_06.png +0 -0
  570. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_01.png +0 -0
  571. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_02.png +0 -0
  572. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_03.png +0 -0
  573. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_04.png +0 -0
  574. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_05.png +0 -0
  575. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_06.png +0 -0
  576. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_07.png +0 -0
  577. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_08.png +0 -0
  578. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_09.png +0 -0
  579. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_10.png +0 -0
  580. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_11.png +0 -0
  581. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_12.png +0 -0
  582. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_style_01.png +0 -0
  583. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_style_02.png +0 -0
  584. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_logo.png +0 -0
  585. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/index.html +40 -0
  586. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova/2.7.0/cordova.webos.js +7038 -0
  587. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova/LICENSE +201 -0
  588. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/configuration.js +1 -0
  589. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/deviceInfo.js +1 -0
  590. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/inputSource.js +1 -0
  591. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/power.js +1 -0
  592. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/signage.js +1 -0
  593. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/sound.js +1 -0
  594. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/storage.js +23 -0
  595. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/video.js +1 -0
  596. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/configuration.js +1 -0
  597. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/deviceInfo.js +1 -0
  598. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/inputSource.js +1 -0
  599. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/power.js +1 -0
  600. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/signage.js +1 -0
  601. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/sound.js +1 -0
  602. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/storage.js +1 -0
  603. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/video.js +1 -0
  604. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/configuration.js +1 -0
  605. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/deviceInfo.js +1 -0
  606. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/inputSource.js +1 -0
  607. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/power.js +1 -0
  608. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/security.js +1 -0
  609. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/signage.js +1 -0
  610. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/sound.js +1 -0
  611. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/storage.js +1 -0
  612. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/time.js +1 -0
  613. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/utility.js +1 -0
  614. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/video.js +1 -0
  615. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/configuration.js +1 -0
  616. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/deviceInfo.js +1 -0
  617. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/inputSource.js +1 -0
  618. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/power.js +1 -0
  619. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/security.js +1 -0
  620. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/signage.js +1 -0
  621. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/sound.js +1 -0
  622. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/storage.js +1 -0
  623. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/time.js +1 -0
  624. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/utility.js +1 -0
  625. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/video.js +1 -0
  626. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/configuration.js +1 -0
  627. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/deviceInfo.js +1 -0
  628. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/inputSource.js +1 -0
  629. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/led.js +1 -0
  630. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/power.js +1 -0
  631. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/security.js +1 -0
  632. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/signage.js +1 -0
  633. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/sound.js +1 -0
  634. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/storage.js +1 -0
  635. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/time.js +1 -0
  636. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/utility.js +1 -0
  637. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/video.js +1 -0
  638. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/configuration.js +1 -0
  639. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/deviceInfo.js +1 -0
  640. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/inputSource.js +1 -0
  641. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/iot.js +1 -0
  642. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/led.js +1 -0
  643. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/power.js +1 -0
  644. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/security.js +1 -0
  645. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/signage.js +1 -0
  646. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/sound.js +1 -0
  647. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/storage.js +1 -0
  648. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/time.js +1 -0
  649. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/utility.js +1 -0
  650. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/video.js +1 -0
  651. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/configuration.js +1 -0
  652. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/deviceInfo.js +1 -0
  653. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/inputSource.js +1 -0
  654. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/iot.js +1 -0
  655. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/power.js +1 -0
  656. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/security.js +1 -0
  657. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/signage.js +1 -0
  658. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/sound.js +1 -0
  659. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/storage.js +1 -0
  660. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/time.js +1 -0
  661. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/utility.js +1 -0
  662. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/video.js +1 -0
  663. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/custom1.4.js +14 -0
  664. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/idcap.js +21 -0
  665. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/initializer.js +234 -0
  666. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/remocon.js +73 -0
  667. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/scheduler.js +84 -0
  668. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/videoPlayer.js +352 -0
  669. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/remocon.png +0 -0
  670. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/style.css +99 -0
  671. package/files/templates/signage-sdk-templates/Mart/css/styles.css +248 -0
  672. package/files/templates/signage-sdk-templates/Mart/data/data.json +37 -0
  673. package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 300 Italic.otf +0 -0
  674. package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 300.otf +0 -0
  675. package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 500.otf +0 -0
  676. package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 700.otf +0 -0
  677. package/files/templates/signage-sdk-templates/Mart/index.html +81 -0
  678. package/files/templates/signage-sdk-templates/Mart/js/controller.js +102 -0
  679. package/files/templates/signage-sdk-templates/Mart/js/helpers/util.js +130 -0
  680. package/files/templates/signage-sdk-templates/Mart/readme.txt +26 -0
  681. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img.png +0 -0
  682. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_bg.png +0 -0
  683. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_brand.png +0 -0
  684. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_01.png +0 -0
  685. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_02.png +0 -0
  686. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_03.png +0 -0
  687. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_04.png +0 -0
  688. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_tag.png +0 -0
  689. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_logo.png +0 -0
  690. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/css/styles.css +40 -0
  691. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/data/data.json +6 -0
  692. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/index.html +28 -0
  693. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/js/controller.js +427 -0
  694. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/js/helpers/util.js +134 -0
  695. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/readme.txt +26 -0
  696. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/images/tpl_02_img_poster.jpg +0 -0
  697. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/videos/tpl_02_video_01.mp4 +0 -0
  698. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/videos/tpl_02_video_02.mp4 +0 -0
  699. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/css/styles.css +163 -0
  700. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/data/data.json +92 -0
  701. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans300.otf +0 -0
  702. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans500.otf +0 -0
  703. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans700.otf +0 -0
  704. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans700Italic.otf +0 -0
  705. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/index.html +197 -0
  706. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/js/controller.js +158 -0
  707. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/js/helpers/util.js +130 -0
  708. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/readme.txt +26 -0
  709. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_bg_top.png +0 -0
  710. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_01.png +0 -0
  711. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_02.png +0 -0
  712. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_03.png +0 -0
  713. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_04.png +0 -0
  714. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_05.png +0 -0
  715. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_06.png +0 -0
  716. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_07.png +0 -0
  717. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_08.png +0 -0
  718. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_09.png +0 -0
  719. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_logo.png +0 -0
  720. package/files/templates/signage-sdk-templates/Simple_Network_FailOver/index.html +29 -0
  721. package/files/templates/signage-sdk-templates/Simple_Network_FailOver/js/idcap.js +21 -0
  722. package/files/templates/signage-sdk-templates/Simple_Network_FailOver/networkMonitor.js +136 -0
  723. package/files/templates/signage-sdk-templates/Simple_Network_FailOver/style.css +142 -0
  724. package/files/templates/signage-sdk-templates/Special_Menu_Board/css/styles.css +281 -0
  725. package/files/templates/signage-sdk-templates/Special_Menu_Board/data/data.json +33 -0
  726. package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 300 Italic.otf +0 -0
  727. package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 300.otf +0 -0
  728. package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 500 Italic.otf +0 -0
  729. package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 500.otf +0 -0
  730. package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 700 Italic.otf +0 -0
  731. package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 700.otf +0 -0
  732. package/files/templates/signage-sdk-templates/Special_Menu_Board/index.html +110 -0
  733. package/files/templates/signage-sdk-templates/Special_Menu_Board/js/controller.js +171 -0
  734. package/files/templates/signage-sdk-templates/Special_Menu_Board/js/helpers/util.js +130 -0
  735. package/files/templates/signage-sdk-templates/Special_Menu_Board/readme.txt +26 -0
  736. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_bg.png +0 -0
  737. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_01.png +0 -0
  738. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_01_l.png +0 -0
  739. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_02.png +0 -0
  740. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_03.png +0 -0
  741. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_04.png +0 -0
  742. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_05.png +0 -0
  743. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_logo_01.png +0 -0
  744. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_logo_02.png +0 -0
  745. package/files/templates/signage-sdk-templates/Wayfinder/css/styles.css +634 -0
  746. package/files/templates/signage-sdk-templates/Wayfinder/data/data.json +339 -0
  747. package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans300.otf +0 -0
  748. package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans500.otf +0 -0
  749. package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans700.otf +0 -0
  750. package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans700Italic.otf +0 -0
  751. package/files/templates/signage-sdk-templates/Wayfinder/index.html +171 -0
  752. package/files/templates/signage-sdk-templates/Wayfinder/js/controller.js +447 -0
  753. package/files/templates/signage-sdk-templates/Wayfinder/js/helpers/util.js +175 -0
  754. package/files/templates/signage-sdk-templates/Wayfinder/readme.txt +26 -0
  755. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_btn_back_n.png +0 -0
  756. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_icon_dot_n.png +0 -0
  757. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_icon_dot_s.png +0 -0
  758. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_01.png +0 -0
  759. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_02.png +0 -0
  760. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_03.png +0 -0
  761. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_01_d.png +0 -0
  762. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_01_n.png +0 -0
  763. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_02_d.png +0 -0
  764. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_02_n.png +0 -0
  765. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_03_d.png +0 -0
  766. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_03_n.png +0 -0
  767. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_shadow.png +0 -0
  768. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_01_n.png +0 -0
  769. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_02_n.png +0 -0
  770. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_03_n.png +0 -0
  771. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_point.png +0 -0
  772. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_point_shadow.png +0 -0
  773. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_elevator.png +0 -0
  774. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_escalator.png +0 -0
  775. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_exit.png +0 -0
  776. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_info.png +0 -0
  777. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_parking.png +0 -0
  778. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_toilet.png +0 -0
  779. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_lg.png +0 -0
  780. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_shoppingmall_name.png +0 -0
  781. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_store.png +0 -0
  782. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_popup_bg.png +0 -0
  783. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/css/styles.css +136 -0
  784. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/data/data.json +33 -0
  785. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 300.otf +0 -0
  786. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 500.otf +0 -0
  787. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 700.otf +0 -0
  788. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/index.html +51 -0
  789. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/js/controller.js +265 -0
  790. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/js/helpers/util.js +130 -0
  791. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/readme.txt +26 -0
  792. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/ajax.gif +0 -0
  793. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_cloudy.png +0 -0
  794. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_partlycloudy.png +0 -0
  795. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_rainy.png +0 -0
  796. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_snowy.png +0 -0
  797. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_sunny.png +0 -0
  798. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_thunder.png +0 -0
  799. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_windy.png +0 -0
  800. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_01.png +0 -0
  801. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_02.png +0 -0
  802. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_03.png +0 -0
  803. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_04.png +0 -0
  804. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_05.png +0 -0
  805. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_06.png +0 -0
  806. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_07.png +0 -0
  807. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_logo.png +0 -0
  808. package/files/templates/signage-sdk-templates/Widget_Overlay/css/styles.css +312 -0
  809. package/files/templates/signage-sdk-templates/Widget_Overlay/data/data.json +16 -0
  810. package/files/templates/signage-sdk-templates/Widget_Overlay/data/newsWidget.json +21 -0
  811. package/files/templates/signage-sdk-templates/Widget_Overlay/data/shareWidget.json +112 -0
  812. package/files/templates/signage-sdk-templates/Widget_Overlay/data/weatherWidget.json +45 -0
  813. package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans300.otf +0 -0
  814. package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans500.otf +0 -0
  815. package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans700.otf +0 -0
  816. package/files/templates/signage-sdk-templates/Widget_Overlay/index.html +62 -0
  817. package/files/templates/signage-sdk-templates/Widget_Overlay/js/controller.js +390 -0
  818. package/files/templates/signage-sdk-templates/Widget_Overlay/js/helpers/util.js +162 -0
  819. package/files/templates/signage-sdk-templates/Widget_Overlay/readme.txt +26 -0
  820. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/Namo.jpg +0 -0
  821. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/NotAvailable.png +0 -0
  822. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/clear.png +0 -0
  823. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/clouds.png +0 -0
  824. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/default.png +0 -0
  825. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/koreanFt.jpg +0 -0
  826. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/mist.png +0 -0
  827. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/rain.png +0 -0
  828. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/snow.png +0 -0
  829. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/thunder.png +0 -0
  830. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_down_01.png +0 -0
  831. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_down_02.png +0 -0
  832. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_up_01.png +0 -0
  833. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_up_02.png +0 -0
  834. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_img_news.png +0 -0
  835. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_img_news1.png +0 -0
  836. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_video_dim.png +0 -0
  837. package/files/templates/signage-sdk-templates/Widget_Overlay/res/videos/tpl_07_video.mp4 +0 -0
  838. package/files/templates/signage-sdk-templates/appinfo/appinfo.json +11 -0
  839. package/files/templates/signage-sdk-templates/idcap_api/1.1.0/js/idcap.js +21 -0
  840. package/files/templates/signage-sdk-templates/idcap_api/1.1.0/js/release_notes.txt +25 -0
  841. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova/2.7.0/cordova.webos.js +7025 -0
  842. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova/LICENSE +7025 -0
  843. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/configuration.js +1 -0
  844. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/deviceInfo.js +1 -0
  845. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/inputSource.js +1 -0
  846. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/power.js +1 -0
  847. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/signage.js +1 -0
  848. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/sound.js +1 -0
  849. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/storage.js +1 -0
  850. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/video.js +1 -0
  851. package/files/templates/signage-sdk-templates/scap_api/1.3/js/release_notes.txt +109 -0
  852. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova/2.7.0/cordova.webos.js +7038 -0
  853. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova/LICENSE +201 -0
  854. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/configuration.js +1 -0
  855. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/deviceInfo.js +1 -0
  856. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/inputSource.js +1 -0
  857. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/power.js +1 -0
  858. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/security.js +1 -0
  859. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/signage.js +1 -0
  860. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/sound.js +1 -0
  861. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/storage.js +1 -0
  862. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/time.js +1 -0
  863. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/utility.js +1 -0
  864. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/video.js +1 -0
  865. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/all.css +358 -0
  866. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.eot +0 -0
  867. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.svg +134 -0
  868. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.ttf +0 -0
  869. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.woff +0 -0
  870. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.eot +0 -0
  871. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.svg +134 -0
  872. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.ttf +0 -0
  873. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.woff +0 -0
  874. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/handheld.css +217 -0
  875. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/screen.css +405 -0
  876. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/files.html +577 -0
  877. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/index.html +1203 -0
  878. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/intro.html +100 -0
  879. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/all.js +326 -0
  880. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/dessert.css +34 -0
  881. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-apollo.js +51 -0
  882. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-clj.js +64 -0
  883. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-css.js +78 -0
  884. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-go.js +58 -0
  885. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-hs.js +101 -0
  886. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-lisp.js +93 -0
  887. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-lua.js +59 -0
  888. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-ml.js +56 -0
  889. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-n.js +62 -0
  890. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-proto.js +35 -0
  891. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-scala.js +54 -0
  892. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-sql.js +57 -0
  893. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-tex.js +46 -0
  894. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-vb.js +61 -0
  895. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-vhdl.js +34 -0
  896. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-wiki.js +53 -0
  897. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-xq.js +67 -0
  898. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-yaml.js +27 -0
  899. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/prettify.css +52 -0
  900. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/prettify.js +1477 -0
  901. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/html5.js +6 -0
  902. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#clearCache.html +550 -0
  903. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getCurrentTime.html +560 -0
  904. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getLocaleList.html +560 -0
  905. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getOSDLanguage.html +560 -0
  906. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getOSDLock.html +560 -0
  907. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getPictureMode.html +560 -0
  908. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getPictureProperty.html +560 -0
  909. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getProperty.html +561 -0
  910. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getServerProperty.html +560 -0
  911. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getTimeZone.html +560 -0
  912. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getTimeZoneList.html +560 -0
  913. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getUSBLock.html +560 -0
  914. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getVirtualKeyboardLanguage.html +560 -0
  915. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#restartApplication.html +550 -0
  916. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setCurrentTime.html +566 -0
  917. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setOSDLanguage.html +566 -0
  918. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setOSDLock.html +566 -0
  919. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setPictureMode.html +566 -0
  920. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setPictureProperty.html +566 -0
  921. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setProperty.html +561 -0
  922. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setServerProperty.html +610 -0
  923. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setTimeZone.html +566 -0
  924. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setUSBLock.html +566 -0
  925. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setVirtualKeyboardLanguage.html +566 -0
  926. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.AppMode.html +685 -0
  927. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.AppType.html +640 -0
  928. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.PictureMode.html +910 -0
  929. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#connectWifi.html +561 -0
  930. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getBeaconInfo.html +560 -0
  931. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getEddystoneInfo.html +560 -0
  932. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getNetworkInfo.html +560 -0
  933. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getNetworkMacInfo.html +560 -0
  934. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getPlatformInfo.html +560 -0
  935. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getProxyInfo.html +560 -0
  936. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getSoftApInfo.html +560 -0
  937. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getSystemUsageInfo.html +566 -0
  938. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getWifiList.html +560 -0
  939. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getiBeaconInfo.html +560 -0
  940. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setBeaconInfo.html +561 -0
  941. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setEddystoneInfo.html +566 -0
  942. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setNetworkInfo.html +561 -0
  943. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setProxyInfo.html +566 -0
  944. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setSoftApInfo.html +561 -0
  945. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setiBeaconInfo.html +566 -0
  946. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#startWps.html +566 -0
  947. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#stopWps.html +555 -0
  948. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo.EddystoneFrame.html +640 -0
  949. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Error.ERROR_CODE.html +820 -0
  950. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Error.html +460 -0
  951. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#changeInputSource.html +566 -0
  952. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#getInputSourceStatus.html +560 -0
  953. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#initialize.html +561 -0
  954. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#addOffTimer.html +566 -0
  955. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#addOnTimer.html +566 -0
  956. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#deleteOffTimer.html +566 -0
  957. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#deleteOnTimer.html +566 -0
  958. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableAllOffTimer.html +566 -0
  959. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableAllOnTimer.html +566 -0
  960. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableWakeOnLan.html +566 -0
  961. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#executePowerCommand.html +566 -0
  962. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getDPMWakeup.html +560 -0
  963. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getOffTimerList.html +560 -0
  964. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getOnTimerList.html +560 -0
  965. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPMMode.html +560 -0
  966. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPowerOnDelay.html +560 -0
  967. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPowerStatus.html +560 -0
  968. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setDPMWakeup.html +566 -0
  969. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setDisplayMode.html +566 -0
  970. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setPMMode.html +566 -0
  971. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setPowerOnDelay.html +566 -0
  972. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.DPMSignalType.html +640 -0
  973. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.DisplayMode.html +640 -0
  974. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.PMMode.html +775 -0
  975. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.PowerCommand.html +640 -0
  976. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.TimerWeek.html +910 -0
  977. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#existServerCertificate.html +561 -0
  978. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#registerServerCertificate.html +561 -2
  979. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#unregisterServerCertificate.html +561 -0
  980. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#captureScreen.html +561 -0
  981. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#enableCheckScreen.html +566 -0
  982. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getFailoverMode.html +555 -0
  983. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getIntelligentAuto.html +560 -0
  984. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getLanDaisyChain.html +560 -0
  985. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getPowerSaveMode.html +555 -0
  986. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getSignageInfo.html +555 -0
  987. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getStudioMode.html +560 -0
  988. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getSystemMonitoringInfo.html +555 -0
  989. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getTileInfo.html +555 -0
  990. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getUsageData.html +555 -0
  991. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getUsagePermission.html +555 -0
  992. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#registerSystemMonitor.html +573 -0
  993. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setDigitalAudioInputMode.html +567 -0
  994. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setFailoverMode.html +567 -0
  995. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setIntelligentAuto.html +566 -0
  996. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setIsmMethod.html +567 -0
  997. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setLanDaisyChain.html +566 -0
  998. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setPortraitMode.html +567 -0
  999. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setPowerSaveMode.html +567 -0
  1000. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setStudioMode.html +566 -0
  1001. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setTileInfo.html +567 -0
  1002. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setUsagePermission.html +567 -0
  1003. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#unregisterSystemMonitor.html +555 -0
  1004. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.AutomaticStandbyMode.html +640 -0
  1005. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.DigitalAudioInput.html +640 -0
  1006. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.DpmMode.html +910 -0
  1007. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.EventType.html +775 -0
  1008. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.FailoverMode.html +685 -0
  1009. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.ImgResolution.html +640 -0
  1010. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.IsmMethod.html +910 -0
  1011. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.KeyOperationMode.html +685 -0
  1012. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.MonitoringSource.html +775 -0
  1013. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.OsdPortraitMode.html +640 -0
  1014. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundMode.html +560 -0
  1015. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundOut.html +560 -0
  1016. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundStatus.html +560 -0
  1017. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setExternalSpeaker.html +566 -0
  1018. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setMuted.html +566 -0
  1019. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setSoundMode.html +566 -0
  1020. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setSoundOut.html +566 -0
  1021. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setVolumeLevel.html +566 -0
  1022. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound.SoundMode.html +820 -0
  1023. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound.SpeakerType.html +640 -0
  1024. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#changeLogoImage.html +566 -0
  1025. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#copyFile.html +561 -0
  1026. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#downloadFirmware.html +566 -0
  1027. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#exists.html +561 -0
  1028. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#fsync.html +561 -0
  1029. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#getFirmwareUpgradeStatus.html +560 -0
  1030. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#getStorageInfo.html +555 -0
  1031. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#listFiles.html +561 -0
  1032. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#mkdir.html +561 -0
  1033. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#moveFile.html +561 -0
  1034. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#readFile.html +563 -0
  1035. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeAll.html +561 -0
  1036. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeApplication.html +566 -0
  1037. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeFile.html +561 -0
  1038. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#statFile.html +561 -0
  1039. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#unzipFile.html +561 -0
  1040. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#upgradeApplication.html +566 -0
  1041. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#upgradeFirmware.html +560 -0
  1042. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#writeFile.html +561 -0
  1043. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.AppMode.html +640 -0
  1044. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.AppType.html +640 -0
  1045. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.SCAP_URI.html +512 -0
  1046. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#addHolidaySchedule.html +566 -0
  1047. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#delAllHolidaySchedules.html +566 -0
  1048. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#delHolidaySchedule.html +566 -0
  1049. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#getAllHolidaySchedules.html +560 -0
  1050. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#getHolidayScheduleMode.html +560 -0
  1051. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#setHolidayScheduleMode.html +566 -0
  1052. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Utility#createToast.html +561 -0
  1053. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#getContentRotation.html +560 -0
  1054. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#getVideoStatus.html +560 -0
  1055. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setContentRotation.html +566 -0
  1056. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setRotatedVideoTransform.html +566 -0
  1057. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setVideoSize.html +566 -0
  1058. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setVideoViewTransform.html +566 -0
  1059. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/_global_.html +453 -0
  1060. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/image/media_status.jpg +0 -0
  1061. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/image/setVideoSize.png +0 -0
  1062. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_configuration.js.html +2651 -0
  1063. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_deviceInfo.js.html +1860 -0
  1064. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_inputSource.js.html +1382 -0
  1065. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_power.js.html +2697 -0
  1066. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_security.js.html +357 -0
  1067. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_signage.js.html +3601 -0
  1068. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_sound.js.html +1123 -0
  1069. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_storage.js.html +2615 -0
  1070. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_time.js.html +720 -0
  1071. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_utility.js.html +196 -0
  1072. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_video.js.html +1090 -0
  1073. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/release_notes.txt +148 -0
  1074. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova/2.7.0/cordova.webos.js +7038 -0
  1075. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova/LICENSE +201 -0
  1076. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/configuration.js +1 -0
  1077. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/deviceInfo.js +1 -0
  1078. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/inputSource.js +1 -0
  1079. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/power.js +1 -0
  1080. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/security.js +1 -0
  1081. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/signage.js +1 -0
  1082. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/sound.js +1 -0
  1083. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/storage.js +1 -0
  1084. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/time.js +1 -0
  1085. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/utility.js +1 -0
  1086. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/video.js +1 -0
  1087. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/all.css +358 -0
  1088. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.eot +0 -0
  1089. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.svg +134 -0
  1090. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.ttf +0 -0
  1091. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.woff +0 -0
  1092. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.eot +0 -0
  1093. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.svg +134 -0
  1094. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.ttf +0 -0
  1095. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.woff +0 -0
  1096. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/handheld.css +217 -0
  1097. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/screen.css +405 -0
  1098. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/files.html +599 -0
  1099. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/index.html +1280 -0
  1100. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/intro.html +100 -0
  1101. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/all.js +326 -0
  1102. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/dessert.css +34 -0
  1103. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-apollo.js +51 -0
  1104. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-clj.js +64 -0
  1105. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-css.js +78 -0
  1106. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-go.js +58 -0
  1107. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-hs.js +101 -0
  1108. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-lisp.js +93 -0
  1109. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-lua.js +59 -0
  1110. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-ml.js +56 -0
  1111. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-n.js +62 -0
  1112. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-proto.js +35 -0
  1113. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-scala.js +54 -0
  1114. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-sql.js +57 -0
  1115. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-tex.js +46 -0
  1116. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-vb.js +61 -0
  1117. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-vhdl.js +34 -0
  1118. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-wiki.js +53 -0
  1119. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-xq.js +67 -0
  1120. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-yaml.js +27 -0
  1121. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/prettify.css +52 -0
  1122. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/prettify.js +1477 -0
  1123. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/html5.js +6 -0
  1124. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#clearCache.html +572 -0
  1125. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getCurrentTime.html +582 -0
  1126. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getLocaleList.html +582 -0
  1127. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getOSDLanguage.html +582 -0
  1128. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getOSDLock.html +582 -0
  1129. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getPictureMode.html +582 -0
  1130. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getPictureProperty.html +582 -0
  1131. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getProperty.html +583 -0
  1132. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getServerProperty.html +582 -0
  1133. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getTimeZone.html +582 -0
  1134. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getTimeZoneList.html +582 -0
  1135. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getUSBLock.html +582 -0
  1136. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getVirtualKeyboardLanguage.html +582 -0
  1137. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#restartApplication.html +572 -0
  1138. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setCurrentTime.html +588 -0
  1139. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setOSDLanguage.html +588 -0
  1140. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setOSDLock.html +588 -0
  1141. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setPictureMode.html +588 -0
  1142. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setPictureProperty.html +588 -0
  1143. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setProperty.html +583 -0
  1144. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setServerProperty.html +632 -0
  1145. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setTimeZone.html +588 -0
  1146. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setUSBLock.html +588 -0
  1147. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setVirtualKeyboardLanguage.html +588 -0
  1148. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.AppMode.html +707 -0
  1149. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.AppType.html +662 -0
  1150. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.PictureMode.html +932 -0
  1151. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#connectWifi.html +583 -0
  1152. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getBeaconInfo.html +582 -0
  1153. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getEddystoneInfo.html +582 -0
  1154. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getExternalInputList.html +588 -0
  1155. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getNetworkInfo.html +582 -0
  1156. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getNetworkMacInfo.html +582 -0
  1157. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getPlatformInfo.html +582 -0
  1158. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getProxyInfo.html +582 -0
  1159. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getSoftApInfo.html +582 -0
  1160. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getSystemUsageInfo.html +588 -0
  1161. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getWifiList.html +582 -0
  1162. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getiBeaconInfo.html +582 -0
  1163. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setBeaconInfo.html +583 -0
  1164. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setEddystoneInfo.html +588 -0
  1165. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setNetworkInfo.html +583 -0
  1166. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setProxyInfo.html +588 -0
  1167. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setSoftApInfo.html +583 -0
  1168. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setiBeaconInfo.html +588 -0
  1169. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#startWps.html +588 -0
  1170. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#stopWps.html +577 -0
  1171. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo.EddystoneFrame.html +662 -0
  1172. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Error.ERROR_CODE.html +842 -0
  1173. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Error.html +482 -0
  1174. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#changeInputSource.html +588 -0
  1175. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#getInputSourceStatus.html +582 -0
  1176. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#initialize.html +583 -0
  1177. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#addOffTimer.html +588 -0
  1178. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#addOnTimer.html +588 -0
  1179. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#deleteOffTimer.html +588 -0
  1180. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#deleteOnTimer.html +588 -0
  1181. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableAllOffTimer.html +588 -0
  1182. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableAllOnTimer.html +588 -0
  1183. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableWakeOnLan.html +588 -0
  1184. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#executePowerCommand.html +588 -0
  1185. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getDPMWakeup.html +582 -0
  1186. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOffTimerList.html +582 -0
  1187. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOnOffTimeSchedule.html +582 -0
  1188. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOnTimerList.html +582 -0
  1189. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPMMode.html +582 -0
  1190. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPowerOnDelay.html +582 -0
  1191. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPowerStatus.html +582 -0
  1192. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setDPMWakeup.html +588 -0
  1193. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setDisplayMode.html +588 -0
  1194. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setOnOffTimeSchedule.html +583 -0
  1195. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setPMMode.html +588 -0
  1196. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setPowerOnDelay.html +588 -0
  1197. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#unsetOnOffTimeSchedule.html +582 -0
  1198. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.DPMSignalType.html +662 -0
  1199. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.DisplayMode.html +662 -0
  1200. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.PMMode.html +797 -0
  1201. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.PowerCommand.html +662 -0
  1202. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.TimerWeek.html +932 -0
  1203. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#existServerCertificate.html +583 -0
  1204. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#registerServerCertificate.html +583 -2
  1205. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#unregisterServerCertificate.html +583 -0
  1206. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#captureScreen.html +583 -0
  1207. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#enableCheckScreen.html +588 -0
  1208. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getFailoverMode.html +577 -0
  1209. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getIntelligentAuto.html +582 -0
  1210. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getLanDaisyChain.html +582 -0
  1211. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getPowerSaveMode.html +577 -0
  1212. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getSignageInfo.html +577 -0
  1213. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getStudioMode.html +582 -0
  1214. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getSystemMonitoringInfo.html +577 -0
  1215. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getTileInfo.html +577 -0
  1216. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getUsageData.html +577 -0
  1217. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getUsagePermission.html +577 -0
  1218. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#registerRS232CEventListener.html +594 -0
  1219. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#registerSystemMonitor.html +595 -0
  1220. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setDigitalAudioInputMode.html +589 -0
  1221. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setFailoverMode.html +589 -0
  1222. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setIntelligentAuto.html +588 -0
  1223. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setIsmMethod.html +589 -0
  1224. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setLanDaisyChain.html +588 -0
  1225. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setPortraitMode.html +589 -0
  1226. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setPowerSaveMode.html +589 -0
  1227. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setStudioMode.html +588 -0
  1228. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setTileInfo.html +589 -0
  1229. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setUsagePermission.html +589 -0
  1230. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#unregisterRS232CEventListener.html +582 -0
  1231. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#unregisterSystemMonitor.html +577 -0
  1232. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.AutomaticStandbyMode.html +662 -0
  1233. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.DigitalAudioInput.html +662 -0
  1234. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.DpmMode.html +932 -0
  1235. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.EventType.html +797 -0
  1236. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.FailoverMode.html +707 -0
  1237. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.ImgResolution.html +662 -0
  1238. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.IsmMethod.html +932 -0
  1239. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.KeyOperationMode.html +707 -0
  1240. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.MonitoringSource.html +797 -0
  1241. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.OsdPortraitMode.html +662 -0
  1242. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundMode.html +582 -0
  1243. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundOut.html +582 -0
  1244. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundStatus.html +582 -0
  1245. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setExternalSpeaker.html +588 -0
  1246. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setMuted.html +588 -0
  1247. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setSoundMode.html +588 -0
  1248. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setSoundOut.html +588 -0
  1249. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setVolumeLevel.html +588 -0
  1250. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound.SoundMode.html +842 -0
  1251. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound.SpeakerType.html +662 -0
  1252. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#changeLogoImage.html +588 -0
  1253. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#copyFile.html +583 -0
  1254. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#decryptFile.html +583 -0
  1255. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#downloadFirmware.html +588 -0
  1256. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#exists.html +583 -0
  1257. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#fsync.html +583 -0
  1258. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getFirmwareUpgradeStatus.html +582 -0
  1259. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getMD5Hash.html +583 -0
  1260. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getStorageInfo.html +577 -0
  1261. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#listFiles.html +583 -0
  1262. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#mkdir.html +583 -0
  1263. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#moveFile.html +583 -0
  1264. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#readFile.html +585 -0
  1265. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeAll.html +583 -0
  1266. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeApplication.html +588 -0
  1267. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeFile.html +583 -0
  1268. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#statFile.html +583 -0
  1269. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#unzipFile.html +583 -0
  1270. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#upgradeApplication.html +588 -0
  1271. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#upgradeFirmware.html +582 -0
  1272. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#writeFile.html +583 -0
  1273. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.AppMode.html +662 -0
  1274. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.AppType.html +662 -0
  1275. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.SCAP_URI.html +534 -0
  1276. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#addHolidaySchedule.html +588 -0
  1277. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#delAllHolidaySchedules.html +588 -0
  1278. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#delHolidaySchedule.html +588 -0
  1279. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getAllHolidaySchedules.html +582 -0
  1280. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getHolidaySchedule.html +582 -0
  1281. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getHolidayScheduleMode.html +582 -0
  1282. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#setHolidaySchedule.html +583 -0
  1283. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#setHolidayScheduleMode.html +588 -0
  1284. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#unsetHolidaySchedule.html +582 -0
  1285. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Utility#createToast.html +583 -0
  1286. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#getContentRotation.html +586 -0
  1287. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#getVideoStatus.html +582 -0
  1288. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setContentRotation.html +592 -0
  1289. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setRotatedVideoTransform.html +592 -0
  1290. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setVideoSize.html +588 -0
  1291. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setVideoViewTransform.html +592 -0
  1292. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/_global_.html +475 -0
  1293. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/image/media_status.jpg +0 -0
  1294. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/image/setVideoSize.png +0 -0
  1295. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_configuration.js.html +2651 -0
  1296. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_deviceInfo.js.html +1930 -0
  1297. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_inputSource.js.html +1383 -0
  1298. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_power.js.html +2942 -0
  1299. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_security.js.html +352 -0
  1300. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_signage.js.html +3853 -0
  1301. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_sound.js.html +1123 -0
  1302. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_storage.js.html +2747 -0
  1303. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_time.js.html +976 -0
  1304. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_utility.js.html +196 -0
  1305. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_video.js.html +754 -0
  1306. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/release_notes.txt +148 -0
  1307. package/files/templates/signage-sdk-templates/serviceinfo/package.json +11 -0
  1308. package/files/templates/signage-sdk-templates/serviceinfo/services.json +8 -0
  1309. package/files/templates/signage-sdk-templates/signageicon/icon.png +0 -0
  1310. package/files/templates/signage-sdk-templates/signageicon/largeIcon.png +0 -0
  1311. package/files/templates/signage-sdk-templates/webos-service/helloclient.js +23 -0
  1312. package/files/templates/signage-sdk-templates/webos-service/helloworld_webos_service.js +128 -0
  1313. package/files/templates/tv-sdk-templates/appinfo/appinfo.json +10 -10
  1314. package/files/templates/tv-sdk-templates/bootplate-web/index.html +58 -58
  1315. package/files/templates/tv-sdk-templates/bootplate-web/webOSTVjs-1.2.10/LICENSE-2.0.txt +202 -202
  1316. package/files/templates/tv-sdk-templates/hosted-webapp/index.html +14 -14
  1317. package/files/templates/tv-sdk-templates/js-service/helloworld_service.js +39 -39
  1318. package/files/templates/tv-sdk-templates/packageinfo/packageinfo.json +3 -3
  1319. package/files/templates/tv-sdk-templates/serviceinfo/package.json +11 -11
  1320. package/files/templates/tv-sdk-templates/serviceinfo/services.json +8 -8
  1321. package/lib/base/ares.html +40 -40
  1322. package/lib/base/cli-appdata.js +289 -290
  1323. package/lib/base/cli-control.js +44 -44
  1324. package/lib/base/common-tools.js +29 -29
  1325. package/lib/base/error-handler.js +265 -265
  1326. package/lib/base/file-watcher.js +155 -155
  1327. package/lib/base/help-format.js +147 -147
  1328. package/lib/base/luna.js +178 -178
  1329. package/lib/base/novacom.js +1214 -1202
  1330. package/lib/base/sdkenv.js +59 -59
  1331. package/lib/base/server.js +137 -137
  1332. package/lib/base/setup-device.js +26 -8
  1333. package/lib/base/version-tools.js +79 -79
  1334. package/lib/com.sdk.ares.signage.hostedapp.ipk +0 -0
  1335. package/lib/device.js +1419 -1419
  1336. package/lib/generator.js +1 -1
  1337. package/lib/inspect.js +493 -493
  1338. package/lib/install.js +465 -463
  1339. package/lib/launch.js +607 -605
  1340. package/lib/log.js +584 -584
  1341. package/lib/package.js +2253 -2149
  1342. package/lib/pull.js +231 -231
  1343. package/lib/pusher.js +210 -210
  1344. package/lib/session.js +74 -74
  1345. package/lib/shell.js +193 -193
  1346. package/lib/tar-filter-pack.js +62 -62
  1347. package/lib/util/copy.js +31 -31
  1348. package/lib/util/createFileName.js +40 -40
  1349. package/lib/util/eof.js +30 -30
  1350. package/lib/util/json.js +63 -63
  1351. package/lib/util/merge.js +14 -14
  1352. package/lib/util/objclone.js +40 -40
  1353. package/lib/util/spinner.js +37 -37
  1354. package/npm-shrinkwrap.json +2 -2
  1355. package/package.json +1 -1
  1356. package/scripts/postinstall.js +24 -24
  1357. package/spec/helpers/reporter.js +65 -65
  1358. package/spec/jsSpecs/apiTest/generator.spec.js +372 -372
  1359. package/spec/jsSpecs/apiTest/inspector.spec.js +89 -89
  1360. package/spec/jsSpecs/apiTest/installer.spec.js +67 -67
  1361. package/spec/jsSpecs/apiTest/launcher.spec.js +150 -150
  1362. package/spec/jsSpecs/apiTest/packager.spec.js +194 -194
  1363. package/spec/jsSpecs/apiTest/puller.spec.js +101 -101
  1364. package/spec/jsSpecs/apiTest/pusher.spec.js +103 -103
  1365. package/spec/jsSpecs/apiTest/server.spec.js +115 -115
  1366. package/spec/jsSpecs/apiTest/setupDevice.spec.js +93 -93
  1367. package/spec/jsSpecs/apiTest/shell.spec.js +49 -49
  1368. package/spec/jsSpecs/ares-config.spec.js +88 -88
  1369. package/spec/jsSpecs/ares-device.spec.js +443 -443
  1370. package/spec/jsSpecs/ares-generate.spec.js +401 -397
  1371. package/spec/jsSpecs/ares-inspect.spec.js +252 -252
  1372. package/spec/jsSpecs/ares-install.spec.js +150 -150
  1373. package/spec/jsSpecs/ares-launch.spec.js +303 -301
  1374. package/spec/jsSpecs/ares-log.spec.js +824 -824
  1375. package/spec/jsSpecs/ares-novacom.spec.js +149 -149
  1376. package/spec/jsSpecs/ares-package.spec.js +1277 -1211
  1377. package/spec/jsSpecs/ares-pull.spec.js +157 -157
  1378. package/spec/jsSpecs/ares-push.spec.js +146 -146
  1379. package/spec/jsSpecs/ares-server.spec.js +160 -160
  1380. package/spec/jsSpecs/ares-setup-device.spec.js +299 -300
  1381. package/spec/jsSpecs/ares-shell.spec.js +220 -220
  1382. package/spec/jsSpecs/ares.spec.js +83 -83
  1383. package/spec/jsSpecs/common-spec.js +177 -169
  1384. package/spec/support/jasmine.json +22 -22
  1385. package/spec/tempFiles/com.lg.app.signage.dev_0.0.1_all.ipk +0 -0
  1386. package/spec/tempFiles/nativeApp/auto/pkg_arm64/appinfo.json +9 -9
  1387. package/spec/tempFiles/nativeApp/ose/pkg_arm/appinfo.json +8 -8
  1388. package/spec/tempFiles/nativeApp/ose/pkg_arm/package.properties +2 -2
  1389. package/spec/tempFiles/nativeApp/oseEmul/pkg_x86/appinfo.json +9 -9
  1390. package/spec/tempFiles/nativeApp/rsi/pkg_x86/appinfo.json +9 -9
  1391. package/spec/tempFiles/sign/sign.crt +32 -32
  1392. package/spec/tempFiles/sign/signPriv.key +52 -52
  1393. package/spec/test_data/ares-generate.json +91 -58
  1394. package/spec/test_data/ares.json +50 -50
  1395. package/webos-tools-cli-3.2.0.tgz +0 -0
  1396. package/webos-tools-cli-3.1.3.tgz +0 -0
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/signage",function(j,z,c){var A;function h(B){console.log(B)}if(window.PalmSystem){h("Window.PalmSystem Available");A=j("cordova/plugin/webos/service")}else{h("Window.PalmSystem is NOT Available");A={Request:function(B,C){h(B+" invoked. But I am a dummy because PalmSystem is not available");if(typeof C.onFailure==="function"){C.onFailure({returnValue:false,errorCode:"CORDOVA_ERR",errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var u=function(B){var C=l[B];h(JSON.stringify(C,null,3));if(C&&C.getEvent===true){if(l[B].listenerObj){l[B].listenerObj.cancel();l[B].getEvent=false;l[B].listenerObj=null}}};var m=function(C,B){var D=l[C];if(D&&typeof D.createListener==="function"){D.listenerObj=D.createListener(B);D.getEvent=true}};function k(C){if(C.substring(0,"ext://".length)!=="ext://"){return false}var B=C.substring("ext://".length);h("Type :"+B);var D=B.split(":");h("splited :"+D);if(D.length===1){if(D[0]==="internal_memory"){return true}}else{if(D.length===2){if(D[0]==="hdmi"||D[0]==="dvi"||D[0]==="dp"){if(D[1].match(/[0-9]/m)){return true}}return false}else{return false}}}function g(B){if(B==="internal_usb"){return"ext://internal_memory"}else{if(B==="dp"){return"ext://dp:1"}else{if(B==="dvi"){return"ext://dvi:1"}else{if(B==="hdmi1"){return"ext://hdmi:1"}else{if(B==="hdmi2"){return"ext://hdmi:2"}else{return false}}}}}}function d(C){if(C.substring(0,"ext://".length)!=="ext://"){h("Bad prefix: "+C);return false}var B=C.substring("ext://".length);h("body is: "+B);if(B==="internal_memory"){return"internal_usb"}else{var D=B.split(":");if(D.length!==2){h("Bad Syntax: "+C);return false}if(D[0]==="hdmi"){return D[0]+D[1]}else{return D[0]}}}function s(B,D){for(var C in B){if(B[C]===D){return true}}return false}var p={FAILOVER_MODE:"failover",FAILOVER_PRIORITY:"failoverPriority",IR_OPERATION_MODE:"enableIrRemote",LOCALKEY_OPERATION_MODE:"enableLocalKey",OSD_PORTRAIT_MODE:"osdPortraitMode",TILE_MODE:"tileMode",TILE_ID:"tileId",TILE_ROW:"tileRow",TILE_COLUME:"tileCol",TILE_NATURALMODE:"naturalMode",DPM_MODE:"dpmMode",AUTOMATIC_STANDBY_MODE:"autoSB",ISM_METHOD:"ismmethod",SES_MODE:"smartEnergy",DO_15OFF_MODE:"15off",MONITOR_FAN:"monitorFan",MONITOR_SIGNAL:"monitorSignal",MONITOR_LAMP:"monitorLamp",MONITOR_SCREEN:"monitorScreen",MONITOR_AUDIO:"monitorAudio",AUDIO_SOURCE_HDMI1:"audioSourceHdmi1",AUDIO_SOURCE_HDMI2:"audioSourceHdmi2",AUDIO_SOURCE_DP:"audioSourceDp",};var q=function(B){h("Create Listener for monitorTemperature");var C=A.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getTemperature",parameters:{subscribe:true},onSuccess:function(D){h("temperature!!!!!!!!! : "+JSON.stringify(D,null,3));if(D.returnValue===true){var E={source:a.MonitoringSource.THERMOMETER,type:a.EventType.CURRENT_TEMPERATURE,data:{temperature:D.temperature}};if(B){B(E)}}},onFailure:function(D){h("monitor_temperature!!!!!!!!! : FAIL "+JSON.stringify(D,null,3))}});return C};var f=function(B){h("Create Listener for monitorFan");var C=A.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getFanEvent",parameters:{subscribe:true},onSuccess:function(D){h("monitor_fan!!!!!!!!! : "+JSON.stringify(D,null,3));if(D.returnValue===true){var E={source:a.MonitoringSource.FAN,type:a.EventType.FAN_STATUS,data:{status:D.fanFault}};if(B){B(E)}}},onFailure:function(D){h("monitor_fan!!!!!!!!! : FAIL "+JSON.stringify(D,null,3))}});return C};var i=function(B){h("Create Listener for monitorLamp");var C=A.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getLampEvent",parameters:{subscribe:true},onSuccess:function(D){h("monitor_lamp!!!!!!!!! : "+JSON.stringify(D,null,3));if(D.returnValue===true){var E={source:a.MonitoringSource.LAMP,type:a.EventType.LAMP_STATUS,data:{status:D.lampFault}};if(B){B(E)}}},onFailure:function(D){h("monitor_lamp!!!!!!!!! : FAIL "+JSON.stringify(D,null,3))}});return C};var o=function(B){h("Create Listener for monitorSignal");var C=A.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getSignalEvent",parameters:{subscribe:true},onSuccess:function(D){h("monitor_signal!!!!!!!!! : "+JSON.stringify(D,null,3));if(D.returnValue===true){var E={type:a.EventType.NO_SIGNAL,source:a.MonitoringSource.SIGNAL};if(D.noSignal===true){E.data.status="no_signal"}else{E.data.status="signal_available"}if(B){B(E)}}},onFailure:function(D){h("monitor_signal!!!!!!!!! : FAIL "+JSON.stringify(D,null,3))}});return C};var v=function(B){h("Create Listener for monitorScreen");var C=A.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getScreenEvent",parameters:{subscribe:true},onSuccess:function(D){h("monitor_screen!!!!!!!!! : "+JSON.stringify(D,null,3));if(D.returnValue===true){var E={source:a.MonitoringSource.SCREEN,type:a.EventType.SCREEN_STATUS,data:{status:D.screen}};if(B){B(E)}}},onFailure:function(D){h("monitor_screen!!!!!!!!! FAIL : "+JSON.stringify(D,null,3))}});return C};var l={fan:{getEvent:false,listenerObj:null,createListener:f},screen:{getEvent:false,listenerObj:null,createListener:v},temperature:{getEvent:false,listenerObj:null,createListener:q},signal:{getEvent:false,listenerObj:null,createListener:o},lamp:{getEvent:false,listenerObj:null,createListener:i}};var r={row:0,col:0};var a=function(){};a.UNDEFINED="___undefined___";a.OsdPortraitMode={ON:"90",OFF:"off"};a.AutomaticStandbyMode={OFF:"off",STANDBY_4HOURS:"4hours",};a.IsmMethod={NORMAL:"NORMAL",ORBITER:"ORBITER",INVERSION:"INVERSION",COLORWASH:"COLORWASH",WHITEWASH:"WHITEWASH"};a.FailoverMode={OFF:"off",AUTO:"auto",MANUAL:"manual"};a.DigitalAudioInput={HDMI_DP:"hdmi",AUDIO_IN:"audioIn"};a.DpmMode={OFF:"off",POWER_OFF_5SECOND:"5sec",POWER_OFF_10SECOND:"10sec",POWER_OFF_15SECOND:"15sec",POWER_OFF_1MINUTE:"1min",POWER_OFF_3MINUTE:"3min",POWER_OFF_5MINUTE:"5min",POWER_OFF_10MINUTE:"10min"};a.KeyOperationMode={ALLOW_ALL:"normal",POWER_ONLY:"usePwrOnly",BLOCK_ALL:"blockAll"};a.EventType={CURRENT_TEMPERATURE:"CURRENT_TEMPERATURE",FAN_STATUS:"FAN_STATUS",LAMP_STATUS:"LAMP_STATUS",SCREEN_STATUS:"SCREEN_STATUS",SIGNAL_STATUS:"SIGNAL_STATUS",};a.MonitoringSource={FAN:"FAN",LAMP:"LAMP",SIGNAL:"SIGNAL",SCREEN:"SCREEN",THERMOMETER:"THERMOMETER"};function t(E,D,F,B,C){var G={category:E,keys:D};A.Request("luna://com.lge.settingsservice/",{method:"getSystemSettings",parameters:G,onSuccess:function(H){h("On Success");if(H.returnValue===true){var I=F(H.settings);if(I===false){if(C&&typeof C==="function"){C({errorText:"Invalid DB value",errorCode:"DB_ERROR",})}}else{if(B&&typeof B==="function"){h("successCallback!!!!!!!!!");B(I)}else{h("successCallback not registered or is not a function: "+B)}}}else{h("Settings Failed: "+JSON.stringify(H,null,3));if(C&&typeof C==="function"){C({errorText:"Invalid DB value : "+H.errorText,errorCode:"DB_ERROR",})}}},onFailure:function(H){h("On Failure");delete H.returnValue;if(H.settings){h("settings = "+JSON.stringify(H.settings,null,3));var J=F(H.settings);h("errorKey = "+JSON.stringify(H.errorKey,null,3));for(var I=0;I<H.errorKey.length;++I){J[H.errorKey[I]]=a.UNDEFINED}h("cbObj = "+JSON.stringify(J,null,3));if(B&&typeof B==="function"){h("successCallback!!!!!!!!!");B(J)}}else{if(C&&typeof C==="function"){C({errorText:((typeof H.errorText==="undefined")?"DB Failure":H.errorText),errorCode:"DB_ERROR",})}}}});h("Requested Service: luna://com.lge.settingsservice/getSystemSettings");h("params : "+JSON.stringify(G))}function e(G,F,B,C){var H={category:G,settings:F};h("settings : "+JSON.stringify(F,null,3));var D=false;for(var E in F){if(E){h("has key : "+E);D=true;break}}if(D===false){h("Nothing to set!!!!!");B();return}A.Request("luna://com.lge.settingsservice/",{method:"setSystemSettings",parameters:H,onSuccess:function(){h("On Success");if(B&&typeof B==="function"){h("SUCCEES CALLBACK!!!!!!!");B()}},onFailure:function(I){h("On Failure");delete I.returnValue;if(C&&typeof C==="function"){h("ERROR CALLBACK!!!!!!!");C(I)}}});h("Requested Service: luna://com.lge.settingsservice/setSystemSettings");h("params : "+JSON.stringify(H))}a.prototype.setPortraitMode=function(B,D,G){var H={};var F;function E(J){if(J.portraitMode){for(var K in a.OsdPortraitMode){if(J.portraitMode===a.OsdPortraitMode[K]){return true}}F="Unrecognized OsdPortraintMode : "+J.portraitMode;return false}else{F="portraitMode does not exist.";return false}}if(E(G)){var C=G.portraitMode;h("portraitMode: "+G.portraitMode);H[p.OSD_PORTRAIT_MODE]=C;h("Set: "+JSON.stringify(H,null,3));e("commercial",H,B,D);h("setPortraitMode Done")}else{var I={errorCode:"BAD_PARAMETER",errorText:F};D(I)}};a.prototype.setFailoverMode=function(D,I,P){var G={};var J;function C(Q){h("options:"+JSON.stringify(Q,null,3));var U=Q.failoverMode;if(typeof U==="undefined"){J="Fail over mode not set : ";return false}if(U.mode===a.FailoverMode.MANUAL){if(typeof U.priority==="undefined"){J="priority should be present when mode is MANUAL.";return false}else{if(U.priority.length===0||typeof U.priority.length==="undefined"){return false}for(var S=0;S<U.priority.length;++S){if(!k(U.priority[S])){J="Invalid input value : "+U.priority[S];return false}}}}else{if(typeof U.priority!=="undefined"){J="This priority is available only if mode is : Signage.FailoverMode.MANUAL";return false}else{if(typeof U.mode!=="undefined"){var T=false;h("Mode is: "+U.mode);for(var R in a.FailoverMode){if(U.mode===a.FailoverMode[R]){h("Matched with: "+a.FailoverMode[R]);T=true}}if(!T){h("Unrecognized failoverMode : "+U.mode);J="Unrecognized failoverMode : "+U.mode;return false}}}}return true}if(C(P)){var M=P.failoverMode;if(M.mode===a.FailoverMode.MANUAL){var N=M.priority;h("priority: "+M.priority);for(var H=0;H<5;++H){var K=p.FAILOVER_PRIORITY+(H+1);h("attrName: "+K);var E="";if(H<N.length){var B=N[H];h("input: "+B);E=d(B);if(E===false){var F={errorCode:"API_ERROR",errorText:B+" is not valid"};I(F);return}}else{h("No more input URI")}h("inputValue: "+E);G[K]=E}G[p.FAILOVER_MODE]=M.mode}else{if(M.mode){var O=M.mode;h("mode: "+M.mode);G[p.FAILOVER_MODE]=O}}h("Set: "+JSON.stringify(G,null,3));e("commercial",G,D,I);h("setFailoverMode Done")}else{var L={errorCode:"BAD_PARAMETER",errorText:J};I(L)}};a.prototype.getFailoverMode=function(B,C){var E=function(H){var J={};J.mode=H[p.FAILOVER_MODE];var K=[];for(var G=1;G<6;++G){var F=p.FAILOVER_PRIORITY+G;h("Key is: "+F);var I=g(H[F]);h("Value is: "+I);if(I===false){return false}K.push(I)}J.priority=K;return J};var D=[p.FAILOVER_MODE,p.FAILOVER_PRIORITY+"1",p.FAILOVER_PRIORITY+"2",p.FAILOVER_PRIORITY+"3",p.FAILOVER_PRIORITY+"4",p.FAILOVER_PRIORITY+"5"];t("commercial",D,E,B,C)};function x(D,B){var C=typeof D;h("mytype: "+C);h("type: "+B);if(C==="undefined"){return true}else{if(C===B){return D}else{return false}}}a.prototype.setTileInfo=function(C,H,J){var I;var B=function(U){var K=typeof U.tileInfo.enabled;h("enabledType:"+K);if(K!=="undefined"&&K!=="boolean"){I="enabled should be a boolean";return false}var T=U.tileInfo.row;var M=x(T,"number");if(M===false){I="Invalid type for row"+T;return false}else{if(M===true){h("Row is not defined")}else{if(T>15||T<1){I="row should be 0<n<16 but :"+T;return false}}}var N=U.tileInfo.column;var P=x(N,"number");if(P===false){I="Invalid type for column"+N;return false}else{if(M===true){h("column is not defined")}else{if(N>15||N<1){I="column should be 0<n<16 but :"+N;return false}}}var L=U.tileInfo.tileId;var S=x(L,"number");if(S===false){I="Invalid type for "+N;return false}else{if(S===true){h("id is not defined")}else{if(L<1){I="tileId should be bigger than 0 but :"+L;return false}var Q=r.row;if(T){Q=T}var R=r.column;if(N){R=N}h("curRow : "+Q);h("curCol : "+R);h("id : "+L);if(L>R*Q){I="ID should be less than curRow*curCol";return false}}}var O=typeof U.tileInfo.naturalMode;if(O!=="undefined"&&O!=="boolean"){I="naturalMode should be a boolean";return false}return true};if(B(J)===true){var D=J.tileInfo;var F={};if(typeof D.enabled==="boolean"){if(D.enabled){F[p.TILE_MODE]="on"}else{F[p.TILE_MODE]="off"}}if(D.row){F[p.TILE_ROW]=D.row.toString()}if(D.column){F[p.TILE_COLUME]=D.column.toString()}if(D.tileId){F[p.TILE_ID]=D.tileId.toString()}if(typeof D.naturalMode==="boolean"){if(D.naturalMode){F[p.TILE_NATURALMODE]="on"}else{F[p.TILE_NATURALMODE]="off"}}h("Set: "+JSON.stringify(F,null,3));var G=function(){h("Do callback!!!!!!!!");if(D.row){r.row=D.row}if(D.column){r.column=D.column}if(C&&typeof C==="function"){h("Invoke successCallback");C();h("Invoked successCallback")}};e("commercial",F,G,H);h("setTileInfo Done")}else{var E={errorCode:"BAD_PARAMETER",errorText:I};H(E)}};function n(B){if(B==="on"){return true}else{if(B==="off"){return false}else{return false}}}a.prototype.getTileInfo=function(B,C){var E=function(F){var G={};h("settings Value: "+JSON.stringify(F,null,3));G.enabled=n(F[p.TILE_MODE]);G.row=parseInt(F[p.TILE_ROW],10);G.column=parseInt(F[p.TILE_COLUME],10);G.tileId=parseInt(F[p.TILE_ID],10);G.naturalMode=n(F[p.TILE_NATURALMODE]);h("Return Value: "+JSON.stringify(G,null,3));return G};var D=[p.TILE_MODE,p.TILE_ROW,p.TILE_COLUME,p.TILE_ID,p.TILE_NATURALMODE,];t("commercial",D,E,B,C)};a.prototype.getSignageInfo=function(B,C){var E=function(F){var G={};h("settings: "+JSON.stringify(F,null,3));G.portraitMode=F[p.OSD_PORTRAIT_MODE];G.ismMethod=F[p.ISM_METHOD];G.digitalAudioInputMode={"ext://hdmi:1":F[p.AUDIO_SOURCE_HDMI1],"ext://hdmi:2":F[p.AUDIO_SOURCE_HDMI2],"ext://dp:1":F[p.AUDIO_SOURCE_DP],};h("cbObj: "+JSON.stringify(G,null,3));return G};var D=[p.OSD_PORTRAIT_MODE,p.ISM_METHOD,p.AUDIO_SOURCE_HDMI1,p.AUDIO_SOURCE_HDMI2,p.AUDIO_SOURCE_DP,];t("commercial",D,E,B,C)};a.prototype.setIsmMethod=function(B,C,F){var H={};var E;function D(J){if(J.ismMethod){for(var K in a.IsmMethod){if(J.ismMethod===a.IsmMethod[K]){return true}}E="Unrecognized ismMethod : "+J.ismMethod;return false}else{E="ismMethod does not exist.";return false}}if(D(F)){if(F.ismMethod){var G=F.ismMethod;h("ismMethod : "+G);H[p.ISM_METHOD]=G}h("Set: "+JSON.stringify(H,null,3));e("commercial",H,B,C);h("setIsmMethod Done")}else{var I={errorCode:"BAD_PARAMETER",errorText:E};C(I)}};a.prototype.setDigitalAudioInputMode=function(B,D,G){var H={};var F;function E(J){if(J.digitalAudioInputList){for(var K in J.digitalAudioInputList){if(K){if(!k(K)){F="Invalid Input Type : "+K;return false}var N=J.digitalAudioInputList[K];var M=false;for(var L in a.DigitalAudioInput){if(N===a.DigitalAudioInput[L]){M=true}}if(!M){F="Invalid Audio Input : "+N;return false}}}return true}else{F="digitalAudioInputList does not exist.";return false}}if(E(G)){for(var C in G.digitalAudioInputList){if(C==="ext://hdmi:1"){H[p.AUDIO_SOURCE_HDMI1]=G.digitalAudioInputList[C]}else{if(C==="ext://hdmi:2"){H[p.AUDIO_SOURCE_HDMI2]=G.digitalAudioInputList[C]}else{if(C==="ext://dp:1"){H[p.AUDIO_SOURCE_DP]=G.digitalAudioInputList[C]}}}}A.Request("luna://com.lge.settingsservice/",{method:"setSystemSettings",parameters:{category:"commercial",settings:H},onSuccess:function(){if(typeof B==="function"){B()}},onFailure:function(J){delete J.returnValue;if(typeof D==="function"){D(J)}}})}else{var I={errorCode:"BAD_PARAMETER",errorText:F};D(I)}};var y=false;a.prototype.registerSystemMonitor=function(C,G,K){var J=["fan","signal","lamp","screen","temperature"];var H;var I="BAD_PARAMETER";h("Listeners are: "+JSON.stringify(l,null,3));function B(L){if(y===true){H="Not ready to register monitor now.";I="SYSTEM_ERROR";return false}h("options are: "+JSON.stringify(L,null,3));if(typeof L.eventHandler!=="function"){H="No event handler was given or event hadnler is not a function";return false}if(L.monitorConfiguration){for(var N in L.monitorConfiguration){if(N){var P=false;for(var M=0;M<J.length;++M){if(N===J[M]){h("Found key: "+J[M]);P=true}}if(!P){H="Invalid Monitoring source : "+N;return false}var O=L.monitorConfiguration[N];h("value: "+O);if(typeof O!=="boolean"){H="Invalid value : "+O;return false}}}return true}else{H="monitorConfiguration does not exist.";return false}}if(B(K)){var E=function(){h("Canceled all previous message subscriptions");var M=K.eventHandler;for(var L in K.monitorConfiguration){if(L){var N=K.monitorConfiguration[L];if(N===true){h("Add listener for : "+L);m(L,M)}}}h("Monitoring Setup : "+JSON.stringify(l,null,3));h("Start Polling : ");A.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/startMonitor",parameters:{},onSuccess:function(O){h("On Success");if(O.returnValue===true){if(C&&typeof C==="function"){C()}}else{if(G&&typeof G==="function"){G(O)}}y=false},onFailure:function(O){h("On Failure");delete O.returnValue;if(G&&typeof G==="function"){G(O)}y=false}})};var D=function(L){G(L)};h("Cancel all previous message subscriptions");y=true;b(E,D)}else{var F={errorCode:I,errorText:H};G(F)}};a.prototype.unregisterSystemMonitor=function(B,C){b(B,C);h("After unregister, _gSystemMonitoringSetup are: "+JSON.stringify(l,null,3))};function b(B,C){h("cancelAllSubscription> setup are: "+JSON.stringify(l,null,3));for(var D in l){if(D){u(D)}}h("Stop Polling");A.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/stopMonitor",parameters:{},onSuccess:function(E){h("On Success");if(E.returnValue===true){if(B&&typeof B==="function"){B()}}else{if(C&&typeof C==="function"){C(E)}}},onFailure:function(E){h("On Failure");delete E.returnValue;if(C&&typeof C==="function"){C(E)}}})}a.prototype.getSystemMonitoringInfo=function(B,C){if(l){B({fan:l.fan.getEvent,signal:l.signal.getEvent,lamp:l.lamp.getEvent,screen:l.screen.getEvent,temperature:l.temperature.getEvent,})}else{var D={errorCode:"ERROR",errorText:"Failed to get system monitoring setup"};C(D)}};a.prototype.setPowerSaveMode=function(D,J,R){var F={};var L;function C(S){if(S.powerSaveMode){for(var T in S.powerSaveMode){if(T){var U=S.powerSaveMode[T];if(T==="ses"||T==="do15MinOff"){if(typeof U!=="boolean"){L="Invalid value : "+U;return false}}else{if(T==="automaticStandby"){if(!s(a.AutomaticStandbyMode,U)){L="Invalid automaticStandby value : "+U;return false}}else{if(T==="dpmMode"){if(!s(a.DpmMode,U)){L="Invalid dpmMode value : "+U;return false}}else{L="Unknown value : "+T;return false}}}}}return true}else{L="powerSaveMode does not exist.";return false}}if(C(R)){var G=true;var H=false;var I=false;if(typeof R.powerSaveMode.ses==="boolean"){G=false;if(R.powerSaveMode.ses===true){F[p.SES_MODE]="on"}else{F[p.SES_MODE]="off"}}var B=false;if(typeof R.powerSaveMode.do15MinOff==="boolean"){B=R.powerSaveMode.do15MinOff}else{I=true}if(R.powerSaveMode.dpmMode){G=false;var Q=R.powerSaveMode.dpmMode;h("dpmMode: "+Q);F[p.DPM_MODE]=Q}var P=false;if(R.powerSaveMode.automaticStandby){P=R.powerSaveMode.automaticStandby;h("automaticStandby: "+P)}else{H=true}h("Set: "+JSON.stringify(F,null,3));var M=false;var K="";var O="";var N=function(){if(G===true&&H===true&&I===true){if(M===true){h("Has Error!!!!!"+O+" : "+K);J({errorCode:O,errorText:K});return}else{h("SUCCESS!!!!");D();return}}};if(G===false){e("commercial",F,function(){h("commercial success");G=true;N()},function(S){h("Commercial Failed");G=true;M=true;O=S.errorCode;K=S.errorText;N()})}if(H===false){e("commercial",{noActivityOff:P},function(){h("noActivityOff success");H=true;N()},function(S){h("noActivityOff failed");H=true;M=true;O=S.errorCode;K=S.errorText;N()})}if(I===false){w(B,function(){h("time success");I=true;N()},function(S){h("time failed");I=true;M=true;O=S.errorCode;K=S.errorText;N()})}h("setPowerSaveMode Done")}else{var E={errorCode:"BAD_PARAMETER",errorText:L};J(E)}};function w(C,E,B){var K;if(C){K="on"}else{K="off"}var J;if(C){J="true"}else{J="false"}var H=false;var I=false;var D=false;var F="";var G=function(){if(H===true&&I===true){h("set15MinOff DONE");if(D===true){h("errorText: "+F);B({errorCode:"SET_ERROR",errorText:F})}else{E()}}};A.Request("luna://com.lge.settingsservice/",{method:"setSystemSettings",parameters:{category:"time",settings:{autoOff15Min:K}},onSuccess:function(){h("set15MinOff getSystemSettings On Success");H=true;G()},onFailure:function(L){h("set15MinOff getSystemSettings On Failure");h("result.errorText: "+L.errorText);F+=L.errorText+";";D=true;H=true;G()}});A.Request("luna://com.webos.service.tv.signage/",{method:"setProperties",parameters:{autoPowerOff15Min:J},onSuccess:function(){h("set15MinOff setProperties On Success");I=true;G()},onFailure:function(L){h("set15MinOff setProperties On Failure");h("result.errorText: "+L.errorText);F+=L.errorText+";";D=true;I=true;G()}})}a.prototype.getPowerSaveMode=function(B,G){var D=false;var E=false;var F=false;var I=false;var H="";var K="";var C={ses:"",dpmMode:"",automaticStandby:"",do15MinOff:"",};var J=function(){if(D===true&&E===true&&F===true){if(I===true){h("Has Error!!!!!"+K+" : "+H);G({errorCode:K,errorText:H});return}else{h("SUCCESS!!!!");B(C);return}}};t("commercial",["dpmMode","smartEnergy"],function(L){C.dpmMode=L.dpmMode;if(L.smartEnergy==="on"){C.ses=true}else{if(L.smartEnergy==="off"){C.ses=false}}},function(){D=true;J()},function(L){D=true;I=true;K=L.errorCode;H=L.errorText;J()});t("commercial",["noActivityOff"],function(L){C.automaticStandby=L.noActivityOff},function(){E=true;J()},function(L){E=true;I=true;K=L.errorCode;H=L.errorText;J()});t("time",["autoOff15Min"],function(L){if(L.autoOff15Min==="on"){C.do15MinOff=true}else{if(L.autoOff15Min==="off"){C.do15MinOff=false}}},function(){F=true;J()},function(L){F=true;I=true;K=L.errorCode;H=L.errorText;J()})};a.prototype.setUsagePermission=function(C,F,J){var E={};var G;function B(K){if(K){h("Options: "+JSON.stringify(K,null,3))}else{h("Options not defined: "+K)}if(K.policy){for(var L in K.policy){if(L){var M=K.policy[L];if(L==="remoteKeyOperationMode"||L==="localKeyOperationMode"){if(!s(a.KeyOperationMode,M)){G="Invalid KeyOperationMode value : "+M;return false}}else{G="Unknown value : "+L;return false}}}return true}else{G="policy does not exist.";return false}}if(B(J)){if(J.policy.localKeyOperationMode){var I=J.policy.localKeyOperationMode;h("portraitMode: "+I);E[p.LOCALKEY_OPERATION_MODE]=I}if(J.policy.remoteKeyOperationMode){var H=J.policy.remoteKeyOperationMode;h("portraitMode: "+H);E[p.IR_OPERATION_MODE]=H}h("Set: "+JSON.stringify(E,null,3));e("hotelMode",E,C,F);h("setPolicy Done")}else{var D={errorCode:"BAD_PARAMETER",errorText:G};F(D)}};a.prototype.getUsagePermission=function(B,C){var E=function(F){var G={};h("settings: "+JSON.stringify(F,null,3));G.remoteKeyOperationMode=F[p.IR_OPERATION_MODE];G.localKeyOperationMode=F[p.LOCALKEY_OPERATION_MODE];h("cbObj: "+JSON.stringify(G,null,3));return G};var D=[p.IR_OPERATION_MODE,p.LOCALKEY_OPERATION_MODE,];t("hotelMode",D,E,B,C)};a.prototype.getUsageData=function(B,C){var D=false;var E=false;var G={uptime:false,totalUsed:false,};function F(){h("accessResult!!!!!!!!!!!!!!!!!!");if(D===true&&E===true){h("CB Object: "+JSON.stringify(G,null,3));if(G.uptime===false||G.totalUsed===false){C({errorCode:"CORDOVA_FAIL",errorText:"Failed to get usage data",});return}else{h("SUCCESS!!!!!!!!!!!!!!!!!!");B(G);return}}else{h("Not Yet!!!!!!!!!!!!!!!!!!")}}A.Request("luna://com.webos.service.tv.signage/",{method:"getUTT",parameters:{},onSuccess:function(H){h("On getUTT Success");D=true;if(H.returnValue===true){h("UTT is :"+H.UTT);G.totalUsed=H.UTT}F()},onFailure:function(H){h("On getUTT Failure :"+JSON.stringify(H,null,3));D=true;F()}});A.Request("luna://com.webos.service.tv.signage/",{method:"dsmp/getElapsedTime",parameters:{},onSuccess:function(H){h("On getElapsedTime Success");E=true;h("result: "+JSON.stringify(H,null,3));if(H.returnValue===true){var I=H.elapsedTime;h("Elapsed!!: "+I);G.uptime=I}F()},onFailure:function(H){h("On getSystemSettings Failure "+JSON.stringify(H,null,3));E=true;F()}})};a.prototype.captureScreen=function(B,C,D){var E={save:(D==undefined||D==null||D.save==undefined?false:D.save)};if(D!==undefined&&D!==null&&D.thumbnail!==undefined&&D.thumbnail===true){E.width=128;E.height=72}A.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"captureScreen",parameters:E,onSuccess:function(F){h("On Success");if(F.returnValue===true){B({data:F.data,size:F.size,encoding:F.encoding})}else{C({errorCode:F.errorCode,errorText:F.errorText})}},onFailure:function(F){h("On Failure");C({errorCode:F.errorCode,errorText:F.errorText})}})};a.prototype.addEventListener=m;a.prototype.removeEventListener=u;c.exports=a});Signage=cordova.require("cordova/plugin/signage");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/sound",function(e,c,f){function g(h){console.log(h)}var a;if(window.PalmSystem){g("Window.PalmSystem Available");a=e("cordova/plugin/webos/service")}else{a={Request:function(h,i){g(h+" invoked. But I am a dummy because PalmSystem is not available");if(typeof i.onFailure==="function"){i.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var d=function(){};function b(i,j,h){if(i.errorCode===undefined||i.errorCode===null){i.errorCode=j}if(i.errorText===undefined||i.errorText===null){i.errorText=h}}d.prototype.getSoundStatus=function(h,i){g("getSoundStatus: ");a.Request("luna://com.webos.audio/",{method:"getVolume",onSuccess:function(j){g("getSoundStatus: On Success");if(j.returnValue===true){var k={};k.level=j.volume;k.muted=j.muted;a.Request("luna://com.lge.settingsservice/",{method:"getSystemSettings",parameters:{category:"commercial",keys:["enableSpeaker"]},onSuccess:function(l){g("getSoundStatus: On Success 2");if(l.returnValue===true){k.externalSpeaker=(l.settings.enableSpeaker==="on"?true:false);if(h&&typeof h==="function"){h(k)}}},onFailure:function(l){g("getSoundStatus: On Failure 2");delete l.returnValue;if(i&&typeof i==="function"){b(l,"SGSS","Sound.getSoundStatus returns failure.");i(l)}}})}},onFailure:function(j){g("getSoundStatus: On Failure");delete j.returnValue;if(i&&typeof i==="function"){b(j,"SGSS","Sound.getSoundStatus returns failure.");i(j)}}});g("Sound.getSoundStatus Done")};d.prototype.setVolumeLevel=function(i,j,k){g("setVolumeLevel: "+JSON.stringify(k));if(typeof k.level!=="number"||k.level<0||k.level>100){if(j&&typeof j==="function"){var h={};b(h,"SSVL","Sound.setVolumeLevel returns failure. out of range or invalid parameter type.");j(h)}return}a.Request("luna://com.webos.audio/",{method:"setVolume",parameters:{volume:k.level},onSuccess:function(l){g("setVolumeLevel: On Success");if(l.returnValue===true){if(i&&typeof i==="function"){i()}}},onFailure:function(l){g("setVolumeLevel: On Failure");delete l.returnValue;if(j&&typeof j==="function"){b(l,"SSVL","Sound.setVolumeLevel returns failure.");j(l)}}});g("Sound.setVolumeLevel Done")};d.prototype.setExternalSpeaker=function(i,j,l){g("setExternalSpeaker: "+JSON.stringify(l));if(typeof l.externalSpeaker!=="boolean"){if(j&&typeof j==="function"){var h={};b(h,"SSVL","Sound.setExternalSpeaker returns failure. out of range or invalid parameter type.");j(h)}return}var k=null;switch(l.externalSpeaker){case true:k="on";break;case false:k="off";break}a.Request("luna://com.lge.settingsservice/",{method:"setSystemSettings",parameters:{category:"commercial",settings:{enableSpeaker:k}},onSuccess:function(){g("setExternalSpeaker: On Success");if(typeof i==="function"){i()}},onFailure:function(m){g("setExternalSpeaker: On Failure");delete m.returnValue;if(typeof j==="function"){b(m,"SSES","Sound.setExternalSpeaker returns failure.");j(m)}}});g("Sound.setExternalSpeaker Done")};d.prototype.setMuted=function(i,j,k){g("setMuted: "+JSON.stringify(k));if(typeof k.muted!=="boolean"){if(j&&typeof j==="function"){var h={};b(h,"SSVL","Sound.setMuted returns failure. out of range or invalid parameter type.");j(h)}return}a.Request("luna://com.webos.audio/",{method:"setMuted",parameters:{muted:k.muted},onSuccess:function(l){g("setMuted: On Success");if(l.returnValue===true){if(i&&typeof i==="function"){i()}}},onFailure:function(l){g("setMuted: On Failure");delete l.returnValue;if(j&&typeof j==="function"){b(l,"SSM","Sound.setMuted returns failure.");j(l)}}});g("Sound.setMuted Done")};f.exports=d});Sound=cordova.require("cordova/plugin/sound");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/storage",function(d,h,b){var i;function f(k){console.log(k)}if(window.PalmSystem){f("Window.PalmSystem Available");i=d("cordova/plugin/webos/service")}else{i={Request:function(k,l){f(k+" invoked. But I am a dummy because PalmSystem is not available");if(typeof l.onFailure==="function"){l.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}function g(q){var p=g.options,k=p.parser[p.strictMode?"strict":"loose"].exec(q),n={},l=14;while(l--){n[p.key[l]]=k[l]||""}n[p.q.name]={};n[p.key[12]].replace(p.q.parser,function(o,m,r){if(m){n[p.q.name][m]=r}});c(n);return n}g.options={strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};function c(k){if(k.protocol==="file"){if(k.host==="internal"){return a(k)}else{if(k.host==="usb"){e(k)}else{throw" Invalid Host: "+k.host}}}else{if(k.protocol==="http"||k.protocol==="https"){if(k.path.charAt(k.path.length-1)==="/"){throw"Invalid path: "+k.path}else{return}}else{throw"Invalid protocol: "+k.protocol}}}function a(k){if(k.path){f("Path: "+k.path);if(k.path.lastIndexOf("/")>0){throw"Invalid internal path: "+k.path}else{return}}else{f("No Path: ");throw"Invalid internal path: "+k.path}}function e(k){if(k.port){if(k.port.match("/[0-9]+/")){return{result:true}}else{throw"Invalid USB host: "+k.host}}else{throw"Invalid USB host: "+k.host}if(k.path){if(k.path.charAt(k.path.length-1)==="/"){throw"Invalid USB path: "+k.path}else{return{result:true}}}else{throw"Invalid USB path: "+k.path}}var j=function(){};j.AppMode={USB:"usb",LOCAL:"local",};j.prototype.upgradeApplication=function(k,l,m){i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"upgradeApplication",parameters:{from:"remote",to:(m==undefined||m==null?j.AppMode.LOCAL:m.to),recovery:(m==undefined||m==null?false:m.recovery)},onSuccess:function(n){if(n.returnValue===true){k()}else{l({errorCode:n.errorCode,errorText:n.errorText})}},onFailure:function(n){l({errorCode:n.errorCode,errorText:n.errorText})}})};j.prototype.removeApplication=function(k,l,m){i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"removeApplication",parameters:{to:m.to},onSuccess:function(n){if(n.returnValue===true){k()}else{l({errorCode:n.errorCode,errorText:n.errorText})}},onFailure:function(n){l({errorCode:n.errorCode,errorText:n.errorText})}})};j.prototype.copyFile=function(k,l,m){f("Options: "+JSON.stringify(m,null,3));if(typeof m==="undefined"||typeof m.destination!=="string"||typeof m.source!=="string"){f("Bad options");l({errorCode:"BAD_PARAM",errorText:JSON.stringify(m,null,3)});return}i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/copyFile",parameters:{dest:m.destination,src:m.source},onSuccess:function(n){if(n.returnValue===true){f("SUCCESS");k()}else{f("Err: "+n.errorText);l({errorCode:n.errorCode,errorText:n.errorText})}},onFailure:function(n){f("Err: "+n.errorText);l({errorCode:n.errorCode,errorText:n.errorText})}})};j.prototype.removeFile=function(k,l,m){if(typeof m.file!=="string"){l({errorCode:"BAD_PARAM",errorText:"options.file is a mandatory parameter"});return}var n={file:m.file};if(m.recursive===true){n.recursive=true}i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/removeFile",parameters:n,onSuccess:function(o){f("onSuccess");if(o.returnValue===true){k()}else{l({errorCode:o.errorCode,errorText:o.errorText})}},onFailure:function(o){f("onFailure");l({errorCode:o.errorCode,errorText:o.errorText})}})};j.prototype.listFiles=function(k,l,m){var n={};if(typeof m==="undefined"||typeof m.path==="undefined"){n.pathURI="file://internal/"}else{n.pathURI=m.path}i.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"fs/listFiles",parameters:n,onSuccess:function(o){if(o.returnValue===true){var p={files:o.files,totalCount:o.totalCount};k(p)}else{l({errorCode:o.errorCode,errorText:o.errorText})}},onFailure:function(o){l({errorCode:o.errorCode,errorText:o.errorText})}})};j.prototype.getStorageInfo=function(k,l){i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/storageInfo",parameters:{},onSuccess:function(m){f("returned : "+JSON.stringify(m,null,3));if(m.returnValue===true){f("returned : "+JSON.stringify(m,null,3));var n={free:m.spaceInfo.freeSize,total:m.spaceInfo.totalSize,used:m.spaceInfo.usedSize,externalMemory:m.externalStorage};k(n)}else{l({errorCode:m.errorCode,errorText:m.errorText})}},onFailure:function(m){l({errorCode:m.errorCode,errorText:m.errorText})}})};j.prototype.mkdir=function(k,l,m){if(typeof m.path!=="string"){l({errorCode:"BAD_PARAM",errorText:"options.path is a mandatory parameter"});return}var n={pathURI:m.path};i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/mkdir",parameters:n,onSuccess:function(o){f("onSuccess");if(o.returnValue===true){k()}else{l({errorCode:o.errorCode,errorText:o.errorText})}},onFailure:function(o){f("onFailure");l({errorCode:o.errorCode,errorText:o.errorText})}})};j.prototype.exists=function(k,l,m){if(typeof m.path!=="string"){f("BAD_PARAM");l({errorCode:"BAD_PARAM",errorText:"options.path is a mandatory parameter"});return}var n={pathURI:m.path};i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/exists",parameters:n,onSuccess:function(o){f("onSuccess");if(o.returnValue===true){f("returned : "+JSON.stringify(o,null,3));var p={exists:o.exists,};k(p)}else{l({errorCode:o.errorCode,errorText:o.errorText})}},onFailure:function(o){f("onFailure");l({errorCode:o.errorCode,errorText:o.errorText})}})};j.prototype.readFile=function(k,l,m){};j.prototype.writeFile=function(k,l,m){};j.prototype.statFile=function(k,l,m){};j.prototype.removeAll=function(k,l,m){};j.prototype.syncFile=function(k,l,m){};j.prototype.moveFile=function(k,l,m){};j.prototype.unzipFile=function(k,l,m){};b.exports=j});Storage=cordova.require("cordova/plugin/storage");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/video",function(e,d,f){function g(h){console.log(h)}var a;if(window.PalmSystem){g("Window.PalmSystem Available");a=e("cordova/plugin/webos/service")}else{a={Request:function(h,i){g(h+" invoked. But I am a dummy because PalmSystem is not available");if(typeof i.onFailure==="function"){i.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var b=function(){};function c(i,j,h){if(i.errorCode===undefined||i.errorCode===null){i.errorCode=j}if(i.errorText===undefined||i.errorText===null){i.errorText=h}}b.prototype.getVideoStatus=function(h,i){g("getVideoStatus: ");a.Request("luna://com.webos.service.tv.signage/",{method:"getVideoSize",onSuccess:function(j){g("getVideoStatus: On Success");if(j.returnValue===true){if(h&&typeof h==="function"){var k={};k.source=j.videoSize.source;h(k)}}},onFailure:function(j){g("getVideoStatus: On Failure");delete j.returnValue;if(i&&typeof i==="function"){c(j,"VGVS","Video.getVideoStatus returns failure.");i(j)}}});g("Video.getVideoStatus Done")};b.currentVideo={uri:null,source:null,tagId:null};b.prototype.setVideoSize=function(i,j,k){g("setVideoSize: "+JSON.stringify(k));if(k.source===undefined||typeof k.source.x!=="number"||typeof k.source.y!=="number"||typeof k.source.width!=="number"||typeof k.source.height!=="number"||k.source.x<0||k.source.y<0||k.source.width<=0||k.source.height<=0){if(j&&typeof j==="function"){var h={};c(h,"VSVS","Video.setVideoSize returns failure. out of range or type error.");j(h)}return}a.Request("luna://com.webos.service.tv.signage/",{method:"getVideoSize",onSuccess:function(l){g("setVideoSize: On Success");if(l.returnValue===true){var p={};p.x=l.videoSize.destination.x;p.y=l.videoSize.destination.y;p.width=l.videoSize.destination.width;p.height=l.videoSize.destination.height;var m=document.getElementsByTagName("video");var o=false;for(var n=0;n<m.length;n++){if(m[n].currentTime>0){o=true;if(b.currentVideo.uri!==m[n].src||(m[n].id!==null&&m[n].id!==undefined&&b.currentVideo.tagId!==null&&b.currentVideo.tagId!==undefined&&b.currentVideo.tagId!==m[n].id)){b.currentVideo.uri=m[n].src;b.currentVideo.source=l.videoSize.source;b.currentVideo.tagId=m[n].id}break}}if(o===false){a.Request("luna://com.webos.service.eim/",{method:"getCurrentInput",parameters:{},onSuccess:function(r){if(r.returnValue===true&&b.currentVideo.uri!==r.mainInputSourceId||(m[0].id!==null&&m[0].id!==undefined&&b.currentVideo.tagId!==null&&b.currentVideo.tagId!==undefined&&b.currentVideo.tagId!==m[0].id)){b.currentVideo.uri=r.mainInputSourceId;b.currentVideo.tagId=(m[0]!==null&&m[0].id!==null&&m[0].id!==undefined?m[0].id:null);a.Request("luna://com.webos.service.tv.signage/",{method:"getVideoSize",onSuccess:function(v){g("setVideoSize: On Success 1");if(v.returnValue===true){b.currentVideo.source=v.videoSize.source;if(v.videoSize.source.width===0&&v.videoSize.source.height===0){b.currentVideo={uri:null,source:null,tagId:null};var u={};c(u,"VSVS","Video.setVideoSize returns failure. Not ready to setVideoSize.");j(u);return}else{if(b.currentVideo.uri===null||b.currentVideo.source===null||(k.source.width+k.source.x)>(b.currentVideo.source.x+b.currentVideo.source.width)||(k.source.height+k.source.y)>(b.currentVideo.source.y+b.currentVideo.source.height)){var t={};c(t,"VSVS","Video.setVideoSize returns failure. out of range or type error. ("+b.currentVideo.source.width+" : "+b.currentVideo.source.height+")");j(t);return}}a.Request("luna://com.webos.service.tv.signage/",{method:"setVideoSize",parameters:{videoSize:{source:{x:k.source.x,y:k.source.y,width:k.source.width,height:k.source.height},destination:{x:p.x,y:p.y,width:p.width,height:p.height}}},onSuccess:function(w){g("setVideoSize: On Success 2");if(w.returnValue===true&&i&&typeof i==="function"){i();return}},onFailure:function(w){g("setVideoSize: On Failure 2");delete w.returnValue;if(j&&typeof j==="function"){c(w,"VSVS","Video.setVideoSize returns failure. Can't current video source size.");j(w);return}}})}}})}else{if(b.currentVideo.uri===null||b.currentVideo.source===null||(k.source.width+k.source.x)>(b.currentVideo.source.x+b.currentVideo.source.width)||(k.source.height+k.source.y)>(b.currentVideo.source.y+b.currentVideo.source.height)){var s={};c(s,"VSVS","Video.setVideoSize returns failure. out of range or type error. ("+b.currentVideo.source.width+" : "+b.currentVideo.source.height+")");j(s);return}a.Request("luna://com.webos.service.tv.signage/",{method:"setVideoSize",parameters:{videoSize:{source:{x:k.source.x,y:k.source.y,width:k.source.width,height:k.source.height},destination:{x:p.x,y:p.y,width:p.width,height:p.height}}},onSuccess:function(t){g("setVideoSize: On Success 3");if(t.returnValue===true&&i&&typeof i==="function"){i();return}},onFailure:function(t){g("setVideoSize: On Failure 3");delete t.returnValue;if(j&&typeof j==="function"){c(t,"VSVS","Video.setVideoSize returns failure. Can't current video source size.");j(t);return}}})}},onFailure:function(){}})}else{if(b.currentVideo.uri===null||b.currentVideo.source===null||(k.source.width+k.source.x)>(b.currentVideo.source.x+b.currentVideo.source.width)||(k.source.height+k.source.y)>(b.currentVideo.source.y+b.currentVideo.source.height)){var q={};c(q,"VSVS","Video.setVideoSize returns failure. out of range or type error. ("+b.currentVideo.source.width+" : "+b.currentVideo.source.height+")");j(q);return}a.Request("luna://com.webos.service.tv.signage/",{method:"setVideoSize",parameters:{videoSize:{source:{x:k.source.x,y:k.source.y,width:k.source.width,height:k.source.height},destination:{x:p.x,y:p.y,width:p.width,height:p.height}}},onSuccess:function(r){g("setVideoSize: On Success 4");if(r.returnValue===true&&i&&typeof i==="function"){i();return}},onFailure:function(r){g("setVideoSize: On Failure 4");delete r.returnValue;if(j&&typeof j==="function"){c(r,"VSVS","Video.setVideoSize returns failure. Can't current video source size.");j(r);return}}})}}},onFailure:function(l){g("setVideoSize: On Failure");delete l.returnValue;if(j&&typeof j==="function"){c(l,"VSVS","Video.setVideoSize returns failure.");j(l);return}}});g("Video.setVideoSize Done")};f.exports=b});Video=cordova.require("cordova/plugin/video");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/configuration",function(d,c,f){function h(i){}var a;if(window.PalmSystem){h("Window.PalmSystem Available");a=d("cordova/plugin/webos/service")}else{a={Request:function(i,j){h(i+" invoked. But I am a dummy because PalmSystem is not available");if(typeof j.onFailure==="function"){j.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var g=function(){};function b(j,k,i){if(j.errorCode===undefined||j.errorCode===null){j.errorCode=k}if(j.errorText===undefined||j.errorText===null){j.errorText=i}}g.PictureMode={VIVID:"vivid",STANDARD:"normal",APS:"eco",CINEMA:"cinema",GAME:"game",SPORTS:"sports",EXPERT1:"expert1",EXPERT2:"expert2"};g.AppMode={LOCAL:"local",USB:"usb",REMOTE:"remote"};g.prototype.setPictureMode=function(i,j,k){h("setPictureMode: "+JSON.stringify(k));a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"picture",settings:{pictureMode:k.mode}},onSuccess:function(l){h("setPictureMode: On Success");if(l.returnValue===true){if(i&&typeof i==="function"){i()}}},onFailure:function(l){h("setPictureMode: On Failure");delete l.returnValue;if(j&&typeof j==="function"){b(l,"CSPM","Configuration.setPictureMode returns failure.");j(l)}}});h("Configuration.setPictureMode Done")};g.prototype.getPictureMode=function(i,j){h("getPictureMode: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"picture",keys:["pictureMode"]},onSuccess:function(k){h("getPictureMode: On Success");if(k.returnValue===true){if(i&&typeof i==="function"){var l={};l.mode=k.settings.pictureMode;i(l)}}},onFailure:function(k){h("getPictureMode: On Failure");delete k.returnValue;if(j&&typeof j==="function"){b(k,"CGPM","Configuration.getPictureMode returns failure.");j(k)}}});h("Configuration.getPictureMode Done")};g.prototype.setPictureProperty=function(i,j,k){h("setPictureProperty: "+JSON.stringify(k));var m={};for(var l in k){if(l!==undefined&&l!==null){m[l]=k[l];if(l==="tint"||l==="colorTemperature"){m[l]-=50}else{if(l==="blackLevel"){m[l]={unknown:k[l]}}}}}h(JSON.stringify(m));a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"picture",settings:m},onSuccess:function(n){h("setPictureProperty: On Success");if(n.returnValue===true){if(i&&typeof i==="function"){i()}}},onFailure:function(n){h("setPictureProperty: On Failure");delete n.returnValue;if(j&&typeof j==="function"){b(n,"CSPP","Configuration.setPictureProperty returns failure.");j(n)}}});h("Configuration.setPictureProperty Done")};g.prototype.getPictureProperty=function(i,j){h("getPictureProperty: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"picture",keys:["brightness","contrast","color","tint","backlight","sharpness","hSharpness","vSharpness","colorTemperature","dynamicContrast","superResolution","colorGamut","dynamicColor","noiseReduction","mpegNoiseReduction","blackLevel","gamma"]},onSuccess:function(k){h("getPictureProperty: On Success");if(k.returnValue===true){if(i&&typeof i==="function"){var m={};for(var l in k.settings){if(l!==undefined&&l!==null){m[l]=(isNaN(k.settings[l])?k.settings[l]:Number(k.settings[l]));if(l==="tint"||l==="colorTemperature"){m[l]+=50}else{if(l==="blackLevel"){m[l]=k.settings[l].unknown}}}}i(m)}}},onFailure:function(k){h("getPictureProperty: On Failure");delete k.returnValue;if(j&&typeof j==="function"){b(k,"CGPP","Configuration.getPictureProperty returns failure.");j(k)}}});h("Configuration.getPictureProperty Done")};var e={alias:"signageName"};g.prototype.setProperty=function(i,j,l){h("setProperty: "+JSON.stringify(l));var k=JSON.parse(l);var n={};for(var m in k){if(e[m]!==undefined){n[(e[m])]=k[m]}}a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:n},onSuccess:function(o){h("setProperty: On Success");if(o.returnValue===true){if(i&&typeof i==="function"){i()}}},onFailure:function(o){h("setProperty: On Failure");delete o.returnValue;if(j&&typeof j==="function"){b(o,"CSP","Configuration.setProperty returns failure.");j(o)}}});h("Configuration.setProperty Done")};g.prototype.getProperty=function(j,k,m){h("getProperty: ");var l=JSON.parse(m);var o=l.keys;var i=[];for(var n in o){if(n!==null&&n!==undefined){h("key"+o[n]);i.push(e[o[n]])}}h(i);a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:i},onSuccess:function(p){h("getProperty: On Success");if(p.returnValue===true){if(j&&typeof j==="function"){var r={};for(var q in o){if(q!==null||q!==undefined){h("key"+o[q]);if(p.settings[e[o[q]]]!==undefined||p.settings[e[o[q]]]!==null){r[o[q]]=p.settings[e[o[q]]]}}}j(JSON.stringify(r))}}},onFailure:function(p){h("getProperty: On Failure");delete p.returnValue;if(k&&typeof k==="function"){b(p,"CGP","Configuration.getProperty returns failure.");k(p)}}});h("Configuration.getProperty Done")};g.prototype.setCurrentTime=function(j,l,m){h("setCurrentTime: "+JSON.stringify(m));var k=new Date(m.year,m.month-1,m.day,m.hour,m.minute,m.sec);if(m.year<2000||m.year>2037||k.getFullYear()!==m.year||k.getMonth()!==(m.month-1)||k.getDate()!==m.day||k.getHours()!==m.hour||k.getMinutes()!==m.minute||k.getSeconds()!==m.sec){if(typeof l==="function"){h("setCurrentTime: out of range or invalid parameter type");var i={};b(i,"CSCT","Configuration.setCurrentTime returns failure for out of range.");l(i);return}}h("setCurrentTime: "+k);var n=k.getTime()/1000;a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"setSystemTime",parameters:{utc:n},onSuccess:function(){h("setCurrentTime: On Success");if(typeof j==="function"){j()}},onFailure:function(o){h("setCurrentTime: On Failure");a.Request("luna://com.palm.systemservice/time/",{method:"setSystemTime",parameters:{utc:n},onSuccess:function(){h("setCurrentTime: On Success");if(typeof j==="function"){j()}},onFailure:function(p){h("setCurrentTime: On Failure");delete p.returnValue;if(typeof l==="function"){b(p,"CSCT","Configuration.setCurrentTime returns failure.");l(p)}}})}});h("Configuration.setCurrentTime Done")};g.prototype.getCurrentTime=function(i,j){h("getCurrentTime: ");a.Request("luna://com.palm.systemservice/time/",{method:"getEffectiveBroadcastTime",onSuccess:function(k){h("getCurrentTime : On Success");if(k.returnValue===true){var l={};var m=new Date(k.adjustedUtc*1000);l.year=m.getFullYear();l.month=m.getMonth()+1;l.day=m.getDate();l.hour=m.getHours();l.minute=m.getMinutes();l.sec=m.getSeconds();if(i&&typeof i==="function"){i(l)}}},onFailure:function(k){h("getCurrentTime: On Failure");delete k.returnValue;if(j&&typeof j==="function"){b(k,"CGCT","Configuration.getCurrentTime returns failure.");j(k)}}});h("Configuration.getCurrentTime Done")};g.prototype.restartApplication=function(i,j){h("restartApp: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"restart_application",onSuccess:function(k){h("restartApp: On Success");if(i&&typeof i==="function"){i(k)}},onFailure:function(k){h("restartApp: On Failure");delete k.returnValue;if(j&&typeof j==="function"){b(k,"CRA","Configuration.restartApp returns failure.");j(k)}}});h("Configuration.restartApp Done")};g.prototype.getServerProperty=function(i,j){h("getServerProperty: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["serverIpPort","siServerIp","secureConnection","appLaunchMode","fqdnAddr","fqdnMode"]},onSuccess:function(k){h("getPictureProperty: On Success");if(k.returnValue===true){if(i&&typeof i==="function"){var l={};l.serverIp=k.settings.siServerIp;l.serverPort=parseInt(k.settings.serverIpPort,10);l.secureConnection=(k.settings.secureConnection==="off"?false:true);l.appLaunchMode=k.settings.appLaunchMode;l.fqdnMode=(k.settings.fqdnMode==="off"?false:true);l.fqdnAddr=k.settings.fqdnAddr;i(l)}}},onFailure:function(k){h("getServerProperty: On Failure");delete k.returnValue;if(j&&typeof j==="function"){b(k,"CGSP","Configuration.getServerProperty returns failure.");j(k)}}});h("Configuration.getServerProperty Done")};g.prototype.setServerProperty=function(j,k,l){h("setServerProperty: "+JSON.stringify(l));if(l===undefined||typeof l.serverIp!=="string"||/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(l.serverIp)===false||isNaN(l.serverPort)||l.serverPort<0||l.serverPort>65535||typeof l.serverPort!=="number"||typeof l.secureConnection!=="boolean"||typeof l.appLaunchMode!=="string"||(l.appLaunchMode!==g.AppMode.USB&&l.appLaunchMode!==g.AppMode.LOCAL&&l.appLaunchMode!==g.AppMode.REMOTE)||typeof l.fqdnMode!=="boolean"||typeof l.fqdnAddr!=="string"){if(k&&typeof k==="function"){var i={};b(i,"CSSP","Configuration.setServerProperty, Invalid parameters.");h("options.serverIp : "+typeof l.serverIp+" options.serverPort : "+typeof l.serverPort+" options.secureConnection : "+typeof l.secureConnection+" options.appLaunchMode : "+typeof l.appLaunchMode+" options.fqdnMode : "+typeof l.fqdnMode+" options.fqdnAddr : "+l.fqdnAddr);k(i);return}}var m={};m.siServerIp=l.serverIp;m.serverIpPort=l.serverPort+"";m.secureConnection=(l.secureConnection===true?"on":"off");m.appLaunchMode=l.appLaunchMode;m.fqdnMode=(l.fqdnMode===true?"on":"off");m.fqdnAddr=l.fqdnAddr;h(JSON.stringify(m));a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:m},onSuccess:function(n){h("setServerProperty: On Success");if(n.returnValue===true){if(j&&typeof j==="function"){j()}}},onFailure:function(n){h("setServerProperty: On Failure");delete n.returnValue;if(k&&typeof k==="function"){b(n,"CSSP","Configuration.setServerProperty returns failure.");k(n)}}});h("Configuration.setServerProperty Done")};g.prototype.debug=function(i,j,k){h("debug: "+k.enabled);a.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"debug",parameters:{enabled:k.enabled},onSuccess:function(l){h("debug: On Success");if(i&&typeof i==="function"){i(l)}},onFailure:function(l){h("debug: On Failure");delete l.returnValue;if(j&&typeof j==="function"){b(l,"CD","Configuration.debug returns failure.");j(l)}}});h("Configuration.debug Done")};f.exports=g});Configuration=cordova.require("cordova/plugin/configuration");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/deviceInfo",function(c,b,d){var a;if(window.PalmSystem){console.log("Window.PalmSystem Available");a=c("cordova/plugin/webos/service")}else{a={Request:function(g,h){console.log(g+" invoked. But I am a dummy because PalmSystem is not available");if(typeof h.onFailure==="function"){h.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var f=function(){};function e(g){}f.prototype.getNetworkInfo=function(g,h){e("getNetworkInfo: ");a.Request("luna://com.palm.connectionmanager",{method:"getstatus",parameters:{},onSuccess:function(i){e("getNetworkInfo: onSuccess");delete i.returnValue;g&&g(i)},onFailure:function(i){e("getNetworkInfo: onFailure");delete i.returnValue;h&&h(i)}});e("DeviceInfo.getNetworkInfo Done")};f.prototype.getNetworkMacInfo=function(g,h){e("getNetworkMacInfo: ");a.Request("luna://com.webos.service.tv.signage",{method:"getinfo",parameters:{},onSuccess:function(i){e("getNetworkMacInfo: onSuccess");delete i.returnValue;g&&g(i)},onFailure:function(i){e("getNetworkMacInfo: onFailure");delete i.returnValue;h&&h(i)}});e("DeviceInfo.getNetworkMacInfo Done")};f.prototype.getPlatformInfo=function(g,h){e("getPlatformInfo: ");a.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["modelName","serialNumber","firmwareVersion","hardwareVersion","sdkVersion"]},onSuccess:function(i){e("getPlatformInfo: onSuccess");i.manufacturer="LGE";i.sdkVersion="1.2.21391";delete i.returnValue;delete i.errorText;g&&g(i)},onFailure:function(i){e("getPlatformInfo: onFailure");delete i.returnValue;h&&h(i)}});e("DeviceInfo.getPlatformInfo Done")};f.prototype.getSystemUsageInfo=function(g,h,i){e("getSystemUsageInfo: ");a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"getSystemUsageInfo",parameters:{cpus:i.cpus,memory:i.memory},onSuccess:function(j){if(j.returnValue===true){var k={};if(typeof j.memory!=="undefined"){k.memory=j.memory}if(typeof j.cpus!=="undefined"){k.cpus=j.cpus}g(k)}else{h({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){h({errorCode:j.errorCode,errorText:j.errorText})}});e("DeviceInfo.getSystemUsageInfo Done")};d.exports=f});DeviceInfo=cordova.require("cordova/plugin/deviceInfo");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/broadcast",function(k,s,c){var t=k("cordova/plugin/webos/service"),q=k("cordova/utils"),m=k("cordova/argscheck");var i=function(u){this.isATSC=false;this.tokenChannelChange=0;this.tokenSignalState=0;this.broadcastDivId=null;this.broadcastElement=null;this.currentInput=null;this.currentSource=null;this.isLastInput=true;this.isLastChannel=true;var v=this;t.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["atsc"]},onSuccess:function(w){v.isATSC=w.atsc},onFailure:function(w){}})};i.prototype.onchannelchange=function(u){};i.prototype.onsignalstatuschange=function(u){};i.prototype.initialize=function(u,w,x){m.checkArgs("fFo","broadcastCordova.initialize",arguments);var y=q.clone(x);this.broadcastDivId=document.getElementById(y.divId);y.broadcastPlugin=this;if(y.isLastInput==true||!y.src){this.isLastInput=true;e(u,w,y)}else{this.isLastInput=false;if(y.src.indexOf("tv://")!=-1){if(y.isLastChannel==true){this.isLastChannel=true;y.type="service/webos-broadcast"}else{this.isLastChannel=false;y.type="service/webos-broadcast-standalone"}this.currentInput="tv";this.currentSource=y.src.substr(5)}else{y.type="service/webos-external";var v=y.src.split(":");this.currentInput=v[1].substr(2).toLowerCase();this.currentSource=v[2]}g(y);u&&u()}};i.prototype.channelUp=function(u,v){m.checkArgs("fF","broadcastCordova.channelUp",arguments);var w={broadcastId:this.broadcastElement.mediaId};t.Request("luna://com.webos.service.tv.broadcast",{method:"changeChannelUp",parameters:w,onSuccess:function(x){u&&u()},onFailure:function(x){delete x.returnValue;v&&v(x)}})};i.prototype.channelDown=function(u,v){m.checkArgs("fF","broadcastCordova.channelDown",arguments);var w={broadcastId:this.broadcastElement.mediaId};t.Request("luna://com.webos.service.tv.broadcast",{method:"changeChannelDown",parameters:w,onSuccess:function(x){u&&u()},onFailure:function(x){delete x.returnValue;v&&v(x)}})};i.prototype.setChannel=function(u,v,w){m.checkArgs("fFo","broadcastCordova.setChannel",arguments);var x={broadcastId:this.broadcastElement.mediaId,channelId:w.id};t.Request("luna://com.webos.service.tv.broadcast",{method:"changeChannel",parameters:x,onSuccess:function(y){u&&u()},onFailure:function(y){delete y.returnValue;v&&v(y)}})};i.prototype.getCurrentChannel=function(u,v){m.checkArgs("fF","broadcastCordova.getCurrentChannel",arguments);var w={broadcastId:this.broadcastElement.mediaId,subscribe:false};t.Request("luna://com.webos.service.tv.broadcast",{method:"getCurrentChannel",parameters:w,onSuccess:function(x){var y={};y=l(x.channel,"api");u&&u(y)},onFailure:function(x){delete x.returnValue;v&&v(x)}})};i.prototype.getSignalStatus=function(u,v){m.checkArgs("fF","broadcastCordova.getSignalStatus",arguments);var w;if(this.currentInput=="tv"){w={broadcastId:this.broadcastElement.mediaId,subscribe:false};t.Request("luna://com.webos.service.tv.broadcast",{method:"getChannelState",parameters:w,onSuccess:function(x){var y=x.channelState;y.screensaverType=y.channelScreensaverType;delete y.channelScreensaverType;u&&u(y)},onFailure:function(x){delete x.returnValue;v&&v(x)}})}else{w={externalInputId:this.broadcastElement.mediaId,subscribe:false};t.Request("luna://com.webos.service.tv.externaldevice/input/",{method:"getSignalState",parameters:w,onSuccess:function(x){u&&u(x.signalState)},onFailure:function(x){delete x.returnValue;v&&v(x)}})}};i.prototype.getCurrentProgram=function(u,v,w){m.checkArgs("fFo","broadcastCordova.getCurrentProgram",arguments);t.Request("luna://com.palm.systemservice/time",{method:"getEffectiveBroadcastTime",parameters:{},onSuccess:function(x){var y={};y.id=w.id;y.startTime=x.localtime;y.endTime=x.localtime;y.request="nowInfo";f(u,v,y)},onFailure:function(x){delete x.returnValue;v&&v(x)}})};i.prototype.getNextProgram=function(u,v,w){m.checkArgs("fFo","broadcastCordova.getNextProgram",arguments);t.Request("luna://com.palm.systemservice/time",{method:"getEffectiveBroadcastTime",parameters:{},onSuccess:function(x){var y={};y.id=w.id;y.startTime=x.localtime;y.endTime=x.localtime;y.request="nextInfo";f(u,v,y)},onFailure:function(x){delete x.returnValue;v&&v(x)}})};i.prototype.getProgramCount=function(u,v,w){m.checkArgs("fFo","broadcastCordova.getProgramCount",arguments);var x=q.clone(w);x.request="count";f(u,v,x)};i.prototype.getProgramList=function(u,v,w){m.checkArgs("fFo","broadcastCordova.getProgramList",arguments);var x=q.clone(w);x.request="list";f(u,v,x)};i.prototype.getChannelCount=function(u,v,w){m.checkArgs("fFo","broadcastCordova.getChannelCount",arguments);var x={from:"com.webos.service.tv.channel.dblist:1",select:[""],where:[{prop:"channelType",op:"=",val:w.type}],filter:[{prop:"Invisible",op:"=",val:false}]};t.Request("luna://com.palm.db/",{method:"search",parameters:{query:x},onSuccess:function(y){var z={};z.count=y.results.length;u&&u(z)},onFailure:function(y){delete y.returnValue;v&&v(y)}})};i.prototype.getChannelList=function(u,v,w){m.checkArgs("fFo","broadcastCordova.getChannelList",arguments);var y=w.startIndex-1;if(y<0){y=0}var z=y+w.count;var x={from:"com.webos.service.tv.channel.dblist:1",select:["channelId","channelName","channelMode","channelNumber","channelType","skipped","locked","descrambled","scrambled"],where:[{prop:"channelType",op:"=",val:w.type}],filter:[{prop:"Invisible",op:"=",val:false}],limit:z};t.Request("luna://com.palm.db/",{method:"search",parameters:{query:x},onSuccess:function(A){var D={};D.channel=[];var C=A.results.length-y;if(C>0){for(var B=0;B<C;B++){D.channel[B]=l(A.results[B+y],"db8")}}u&&u(D)},onFailure:function(A){delete A.returnValue;v&&v(A)}})};i.prototype.getChannelListByName=function(u,v,w){m.checkArgs("fFo","broadcastCordova.getChannelListByName",arguments);var x={from:"com.webos.service.tv.channel.dblist:1",select:["channelId","channelName","channelMode","channelNumber","channelType","skipped","locked","descrambled","scrambled"],where:[{prop:"channelName",op:"%",val:w.name}],filter:[{prop:"Invisible",op:"=",val:false}]};if(w.type){x.filter.push({prop:"channelType",op:"=",val:w.type})}t.Request("luna://com.palm.db/",{method:"search",parameters:{query:x},onSuccess:function(y){var A={};A.channel=[];if(y.results.length>0){for(var z=0;z<y.results.length;z++){A.channel[z]=l(y.results[z],"db8")}}u&&u(A)},onFailure:function(y){delete y.returnValue;v&&v(y)}})};i.prototype.setInput=function(v){m.checkArgs("o","broadcastCordova.setInput",arguments);var x=false;if(v.src.indexOf("tv://")!=-1){if(this.isLastChannel==true){v.type="service/webos-broadcast"}else{v.type="service/webos-broadcast-standalone"}this.currentInput="tv";this.currentSource=v.src.substr(5)}else{v.type="service/webos-external";var u=v.src.split(":");this.currentInput=u[1].substr(2).toLowerCase();this.currentSource=u[2]}for(var w=0;w<this.broadcastElement.childNodes.length;w++){if(this.broadcastElement.childNodes[w].nodeName=="SOURCE"){this.broadcastElement.childNodes[w].src=v.src;this.broadcastElement.childNodes[w].type=v.type;this.broadcastElement.load();x=true}}return x};i.prototype.addEventListener=function(w,u,v){if(w=="channelchange"){this.tokenChannelChange=t.Request("luna://com.webos.service.tv.broadcast",{method:"getCurrentChannel",parameters:{broadcastId:this.broadcastElement.mediaId,subscribe:true},onSuccess:function(x){var y=x.channel;u&&u(y)},onFailure:function(x){}})}else{if(w=="signalstatus"){if(this.currentInput=="tv"){this.tokenSignalState=t.Request("luna://com.webos.service.tv.broadcast",{method:"getChannelState",parameters:{broadcastId:this.broadcastElement.mediaId,subscribe:true},onSuccess:function(x){var y=x.channelState;y.screensaverType=y.channelScreensaverType;delete y.channelScreensaverType;u&&u(y)},onFailure:function(x){}})}else{this.tokenSignalState=t.Request("luna://com.webos.service.tv.externaldevice/input/",{method:"getSignalState",parameters:{externalInputId:this.broadcastElement.mediaId,subscribe:true},onSuccess:function(x){var y=x.signalState;u&&u(y)},onFailure:function(x){}})}}}};var h=function(u,v){p(u);if(u.currentInput=="tv"){n(u);d(u)}else{o(u)}v()};var g=function(w){var u=document.createElement("VIDEO");u.setAttribute("id",w.videoId);u.setAttribute("width","100%");u.setAttribute("height","100%");u.setAttribute("autoplay","");u.addEventListener("loadedmetadata",function(){h(w.broadcastPlugin,w.callback)},false);var v=document.createElement("SOURCE");v.setAttribute("src",w.src);v.setAttribute("type",w.type);u.appendChild(v);w.broadcastPlugin.broadcastDivId.appendChild(u);w.broadcastPlugin.broadcastElement=u};var e=function(u,v,w){t.Request("luna://com.webos.service.eim",{method:"getCurrentInput",parameters:{},onSuccess:function(y){if(y.mainInputSourceId=="ATV"||y.mainInputSourceId=="DTV"){w.broadcastPlugin.currentInput="tv";r(u,v,w)}else{var x=y.mainInputSourceId.split("_");w.broadcastPlugin.currentInput=x[0].toLowerCase();w.broadcastPlugin.currentSource=x[1];w.src="ext://"+w.broadcastPlugin.currentInput+":"+w.broadcastPlugin.currentSource;w.type="service/webos-external";g(w);u&&u()}},onFailure:function(x){delete x.returnValue;v&&v(x)}})};var r=function(u,v,w){};var n=function(u){u.tokenChannelChange=t.Request("luna://com.webos.service.tv.broadcast",{method:"getCurrentChannel",parameters:{broadcastId:u.broadcastElement.mediaId,subscribe:true},onSuccess:function(v){u.currentSource=v.channel.channelId;var w={};w=l(v.channel,"api");u.onchannelchange(w)},onFailure:function(v){}})};var d=function(u){u.tokenSignalState=t.Request("luna://com.webos.service.tv.broadcast",{method:"getChannelState",parameters:{broadcastId:u.broadcastElement.mediaId,subscribe:true},onSuccess:function(v){var w=v.channelState;w.screensaverType=w.channelScreensaverType;delete w.channelScreensaverType;u.onsignalstatuschange(w)},onFailure:function(v){}})};var o=function(u){u.tokenSignalState=t.Request("luna://com.webos.service.tv.externaldevice/input/",{method:"getSignalState",parameters:{externalInputId:u.broadcastElement.mediaId,subscribe:true},onSuccess:function(v){var w=v.signalState;u.onsignalstatuschange(w)},onFailure:function(v){}})};var p=function(u){if(u.tokenChannelChange){u.tokenChannelChange.cancel()}if(u.tokenSignalState){u.tokenSignalState.cancel()}};var a=function(u,w,z){var x=b(z.startTime);var v=b(z.endTime);var y={};if(z.request=="count"){y={from:"com.webos.service.tv.programSCH:4",select:[""],where:[{prop:"signalChannelId",op:"=",val:z.signalChannelId}],filter:[{prop:"localStartTime",op:"<=",val:v},{prop:"localEndTime",op:">=",val:x}]}}else{if(z.request=="nextInfo"){y={from:"com.webos.service.tv.programSCH:4",select:["programId","eventId","localStartTime","localEndTime","duration","programName","description"],where:[{prop:"channelId",op:"=",val:z.signalChannelId}],filter:[{prop:"localStartTime",op:">",val:x}],orderBy:"localStartTime",limit:1}}else{if(z.request=="list"||z.request=="nowInfo"){y={from:"com.webos.service.tv.programSCH:4",select:["programId","eventId","localStartTime","localEndTime","duration","programName","description"],where:[{prop:"channelId",op:"=",val:z.signalChannelId}],filter:[{prop:"localStartTime",op:"<=",val:v},{prop:"localEndTime",op:">=",val:x}]}}}}};var f=function(u,v,x){var w={from:"com.webos.service.tv.channel.dblist:1",select:["signalChannelId"],where:[{prop:"channelId",op:"=",val:x.id}]};t.Request("luna://com.palm.db/",{method:"find",parameters:{query:w},onSuccess:function(y){x.signalChannelId=y.results[0].signalChannelId;a(u,v,x)},onFailure:function(y){delete y.returnValue;v&&v(y)}})};var l=function(u,w){var v={};v.id=u.channelId;v.number=u.channelNumber;v.name=u.channelName;if(w=="api"){v.mode=u.channelModeName;v.type=u.channelTypeName;v.isSkipped=u.isSkipped;v.isLocked=u.isLocked;v.isDescrambled=u.isDescrambled;v.isScrambled=u.isScrambled}else{v.mode=u.channelMode;v.type=u.channelType;v.isSkipped=u.skipped;v.isLocked=u.locked;v.isDescrambled=u.descrambled;v.isScrambled=u.scrambled}return v};var b=function(v){var u=v.year+",";u+=((v.month<10)?"0":"")+v.month+",";u+=((v.day<10)?"0":"")+v.day+",";u+=((v.hour<10)?"0":"")+v.hour+",";u+=((v.minute<10)?"0":"")+v.minute+",";u+=((v.second<10)?"0":"")+v.second;return u};var j=function(u){var w=u.split(",");var v={};v.year=+w[0];v.month=+w[1];v.day=+w[2];v.hour=+w[3];v.minute=+w[4];v.second=+w[5];return v};c.exports=i});Broadcast=cordova.require("cordova/plugin/broadcast");cordova.define("cordova/plugin/inputSource",function(b,d,a){function c(m){}var g;if(window.PalmSystem){c("Window.PalmSystem Available");g=b("cordova/plugin/webos/service")}else{g={Request:function(m,n){c(m+" invoked. But I am a dummy because PalmSystem is not available");if(typeof n.onFailure==="function"){n.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var i=function(){};var f=null;function k(n,o,m){if(n.errorCode===undefined||n.errorCode===null){n.errorCode=o}if(n.errorText===undefined||n.errorText===null){n.errorText=m}}i.prototype.initialize=function(n,o,q){c("initialize: "+JSON.stringify(q));if(q.divId===undefined||typeof q.divId!=="string"||q.divId===null||q.divId.length<=0||q.videoId===undefined||typeof q.videoId!=="string"||q.videoId===null||q.videoId.length<=0||q.callback===undefined||typeof q.callback!=="function"||q.src===undefined||typeof q.src!=="string"||q.src===null||q.src.length<=0){if(typeof o==="function"){var m={};k(m,"II","InputSource.initialize returns failure. invalid parameters.");o(m)}return}j(q.src,function r(s){q.src=s;f=new Broadcast();c("initialize: converted "+JSON.stringify(q));f.initialize(n,o,q)},function p(t){c("initialize: failure "+JSON.stringify(t));if(typeof o==="function"){var s={};k(s,"II","InputSource.initialize returns failure. invalid parameters.");o(s)}});c("initialize: Done")};i.prototype.changeInputSource=function(n,o,q){if(q.src===undefined||typeof q.src!=="string"||q.src===null||q.src.length<=0){if(typeof o==="function"){var m={};k(m,"ICIS","InputSource.changeInputSource returns failure. invalid argument. ");o(m)}return}c("changeInputSource: "+JSON.stringify(q));j(q.src,function r(t){q.src=t;if(f.setInput(q)){c("changeInputSource: On Success");n()}else{var s={};c("changeInputSource: On Failure");k(s,"ICIS","InputSource.changeInputSource returns failure.");o(s)}},function p(t){c("changeInputSource: failure "+JSON.stringify(t));if(typeof o==="function"){var s={};k(s,"ICIS","InputSource.changeInputSource returns failure. invalid argument. ");o(s)}});c("changeInputSource: Done")};i.prototype.getInputSourceStatus=function(m,n){c("getInputSourceStatus: ");g.Request("luna://com.webos.service.eim/",{method:"getAllInputStatus",onSuccess:function(p){c("getInputSourceStatus: On Success");if(p.returnValue===true){if(m&&typeof m==="function"){var s={};var r=new Array(p.totalCount);var t=new Array(p.totalCount);for(var q=0;q<r.length;q++){r[q]={};r[q].inputPort=e(p.devices[q].label);var o=p.devices[q].id.split("_");r[q].inputPort="ext://"+o[0].toLowerCase()+":"+o[1];if(r[q].inputPort==="ext://hdmi:3"){r[q].inputPort="ext://dp:1"}else{if(r[q].inputPort==="ext://hdmi:4"){r[q].inputPort="ext://dvi:1"}}t[q]={};t[q].inputPort=r[q].inputPort;t[q].id=p.devices[q].id}s.inputSourceList=r;g.Request("luna://com.webos.service.eim/",{method:"getCurrentInput",parameters:{},onSuccess:function(u){c("InputSource.getInputSourceStatus: On Success 3");if(u.returnValue===true){if(m&&typeof m==="function"){s.currentInputSource={};for(var v=0;v<t.length;v++){if(t[v].id===u.mainInputSourceId){s.currentInputSource=t[v].inputPort;break}}s.currentSignalState="unknown";if(f!==null){c("InputSource.getInputSourceStatus : broadcast is not null");f.getSignalStatus(function w(y){s.currentSignalState=y.videoSignalState;c("InputSource.getInputSourceStatus: On Success 2");if(m&&typeof m==="function"){c("getInputSourceStatus: On Success"+JSON.stringify(s));m(s);return}},function x(){c("InputSource.getInputSourceStatus : signal state is fail.");if(m&&typeof m==="function"){c("getInputSourceStatus: On Success"+JSON.stringify(s));m(s);return}})}else{c("InputSource.getInputSourceStatus : it does not initialize.");if(m&&typeof m==="function"){c("getInputSourceStatus: On Success"+JSON.stringify(s));m(s);return}}}}},onFailure:function(u){c("InputSource.getInputSourceStatus: On Failure 2");delete u.returnValue;if(n&&typeof n==="function"){k(u,"IGISS","InputSource.getInputSourceStatus returns failure.");n(u);return}}})}}},onFailure:function(o){c("getInputSourceStatus: On Failure");delete o.returnValue;if(n&&typeof n==="function"){k(o,"IGISS","InputSource.changeInputSource returns failure on gathering input list.");n(o)}}});c("InputSource.getInputSourceStatus Done")};function e(o){var m=1;var n=o.length;if(!isNaN(parseInt(o.charAt(n-1),10))){m=o.charAt(n-1);n--}o=o.substring(0,n)+":"+m;o="ext://"+o.toLowerCase();return o}var h=null;function l(m){if(h===null){g.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion"]},onSuccess:function(n){c("getPlatformInfo: onSuccess");var o=n.sdkVersion.split(".");if(o.length>=1&&o[0]==="1"){h=1}else{if(o.length>=1&&o[0]==="2"){h=2}else{h=0}}delete n.returnValue;m(h)},onFailure:function(n){c("getPlatformInfo: onFailure");delete n.returnValue;h=0;m(h)}})}else{m(h)}}function j(o,m,n){g.Request("luna://com.webos.service.eim/",{method:"getAllInputStatus",onSuccess:function(p){c("convertInputSource: On Success "+o);if(p.returnValue===true){if(m&&typeof m==="function"){var q=new Array(p.totalCount);l(function(s){c("convertInputSource: "+JSON.stringify(p.totalCount));c("convertInputSource: "+JSON.stringify(p.devices));c("version: "+s);switch(s){case 1:if(o==="ext://dp:1"){o="ext://hdmi:3"}else{if(o==="ext://dvi:1"){o="ext://hdmi:4"}}break;case 2:if(o==="ext://dp:1"){o="ext://hdmi:3"}else{if(o==="ext://dvi:1"){o="ext://hdmi:2"}else{if(o==="ext://ops:1"){o="ext://hdmi:4"}}}break;default:break}for(var u=0;u<q.length;u++){q[u]={};q[u].inputPort=e(p.devices[u].label);var r=p.devices[u].id.split("_");q[u].id="ext://"+r[0].toLowerCase()+":"+r[1];if(o===q[u].id){c("convertInputSource: On Success ok "+o);m(o);return}}for(var t=0;t<q.length;t++){if(o===q[t].inputPort){o=q[t].id;c("convertInputSource: On Success converted "+o);m(o);return}}})}}},onFailure:function(p){c("convertInputSource: On Failure");delete p.returnValue;if(n&&typeof n==="function"){k(p,"IGISS","convertInputSource returns failure on gathering input list.");n(p)}}})}a.exports=i});InputSource=cordova.require("cordova/plugin/inputSource");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/power",function(b,d,a){function c(k){}var f;if(window.PalmSystem){c("Window.PalmSystem Available");f=b("cordova/plugin/webos/service")}else{f={Request:function(k,l){c(k+" invoked. But I am a dummy because PalmSystem is not available");if(typeof l.onFailure==="function"){l.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var i=function(){};function h(l,m,k){if(l.errorCode===undefined||l.errorCode===null){l.errorCode=m}if(l.errorText===undefined||l.errorText===null){l.errorText=k}}i.PowerCommand={SHUTDOWN:"powerOff",REBOOT:"reboot"};i.DisplayMode={DISPLAY_OFF:"Screen Off",DISPLAY_ON:"Active"};i.TimerWeek={MONDAY:1,TUESDAY:2,WEDNESDAY:4,THURSDAY:8,FRIDAY:16,SATURDAY:32,SUNDAY:64,EVERYDAY:127};i.prototype.getPowerStatus=function(k,l){c("getPowerStatus: ");f.Request("luna://com.webos.service.tv.signage/",{method:"getPowerState",onSuccess:function(m){c("getPowerStatus: On Success");var n={};if(m.returnValue===true){n.displayMode=m.state}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["wolEnable"]},onSuccess:function(o){c("getPowerStatus: On Success 2");if(o.returnValue===true){n.wakeOnLan=(o.settings.wolEnable==="1"?true:false)}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"time",keys:["onTimerEnable","offTimerEnable"]},onSuccess:function(p){c("getPowerStatus: On Success 3");if(p.returnValue===true){n.allOnTimer=(p.settings.onTimerEnable==="on"?true:false);n.allOffTimer=(p.settings.offTimerEnable==="on"?true:false);if(k&&typeof k==="function"){k(n)}}},onFailure:function(p){c("getPowerStatus: On Failure 3");delete p.returnValue;if(l&&typeof l==="function"){h(p,"PGPS","Power.getPowerStatus returns failure.");l(p)}}})},onFailure:function(o){c("getPowerStatus: On Failure 2");delete o.returnValue;if(l&&typeof l==="function"){h(o,"PGPS","Power.getPowerStatus returns failure.");l(o)}}})},onFailure:function(m){c("getPowerStatus: On Failure");delete m.returnValue;if(l&&typeof l==="function"){h(m,"PGPS","Power.getPowerStatus returns failure.");l(m)}}});c("Power.getPowerStatus Done")};i.prototype.enableAllOnTimer=function(k,l,m){c("enableAllOnTimer: "+JSON.stringify(m));var n=null;switch(m.allOnTimer){case true:n="on";break;case false:n="off";break}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"time",settings:{onTimerEnable:n}},onSuccess:function(){if(typeof k==="function"){c("enableAllOnTimer: On Success");k()}},onFailure:function(o){delete o.returnValue;if(typeof l==="function"){h(o,"PEAOT","Power.enableAllOnTimer returns failure.");c("enableAllOnTimer: On Failure");l(o)}}});c("Power.enableAllOnTimer Done")};i.prototype.enableAllOffTimer=function(k,l,m){c("enableAllOffTimer: "+JSON.stringify(m));var n=null;switch(m.allOffTimer){case true:n="on";break;case false:n="off";break}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"time",settings:{offTimerEnable:n}},onSuccess:function(){if(typeof k==="function"){c("enableAllOffTimer: On Success");k()}},onFailure:function(o){delete o.returnValue;if(typeof l==="function"){h(o,"PEAOT","Power.enableAllOffTimer returns failure.");c("enableAllOffTimer: On Failure");l(o)}}});c("Power.enableAllOffTimer Done")};i.prototype.enableWakeOnLan=function(k,l,m){c("enableWakeOnLan: "+JSON.stringify(m));var n=null;switch(m.wakeOnLan){case true:n="1";break;case false:n="0";break}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{wolEnable:n}},onSuccess:function(){if(typeof k==="function"){c("enableWakeOnLan: On Success");k()}},onFailure:function(o){delete o.returnValue;if(typeof l==="function"){h(o,"PSWOL","Power.enableWakeOnLan returns failure.");c("enableWakeOnLan: On Failure");l(o)}}});c("Power.enableWakeOnLan Done")};var g=null;function j(k){if(g===null){f.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion"]},onSuccess:function(l){c("getPlatformInfo: onSuccess");c("version : "+l.sdkVersion);var m=l.sdkVersion.split(".");if(m.length>=1&&m[0]==="1"){g=1}else{if(m.length>=1&&m[0]==="2"){g=2}else{g=0}}delete l.returnValue;k(g)},onFailure:function(l){c("getPlatformInfo: onFailure");delete l.returnValue;g=0;k(g)}})}else{k(g)}}function e(k){switch(k){case"ext://hdmi:1":return(g===1?"HDMI1":"HDMI");case"ext://hdmi:2":return"HDMI2";case"ext://dvi:1":return"DVI";case"ext://dp:1":return"DISPLAYPORT";case"ext://rgb:1":return"RGB";case"HDMI1":return"ext://hdmi:1";case"HDMI":return"ext://hdmi:1";case"HDMI2":return"ext://hdmi:2";case"DVI":return"ext://dvi:1";case"DISPLAYPORT":return"ext://dp:1";case"RGB":return"ext://rgb:1"}return null}i.prototype.addOnTimer=function(l,m,n){c("addOnTimer: "+JSON.stringify(n));if(n.hour===undefined||isNaN(n.hour)||typeof n.hour!=="number"||n.hour<0||n.hour>23||n.minute===undefined||isNaN(n.minute)||typeof n.minute!=="number"||n.minute<0||n.minute>59||n.week===undefined||isNaN(n.week)||typeof n.week!=="number"||n.week<=0||n.week>127||n.inputSource===undefined||typeof n.inputSource!=="string"||n.inputSource.indexOf("ext://")!==0){if(typeof m==="function"){var k={};h(k,"PAOT","Power.addOnTimer returns failure. invalid parameters or out of range.");m(k)}return}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["multiOnTimerHour","multiOnTimerMinute","multiOnTimerWeekday","multiOnTimerSource","onTimerSchedule","onTimerCount"]},onSuccess:function(o){if(o.returnValue===true){j(function(p){c("version : "+p);if(typeof o.settings.multiOnTimerHour==="string"){o.settings.multiOnTimerHour=JSON.parse(o.settings.multiOnTimerHour)}if(typeof o.settings.multiOnTimerMinute==="string"){o.settings.multiOnTimerMinute=JSON.parse(o.settings.multiOnTimerMinute)}if(typeof o.settings.multiOnTimerWeekday==="string"){o.settings.multiOnTimerWeekday=JSON.parse(o.settings.multiOnTimerWeekday)}if(typeof o.settings.multiOnTimerSource==="string"){o.settings.multiOnTimerSource=JSON.parse(o.settings.multiOnTimerSource)}if(typeof o.settings.onTimerSchedule==="string"){o.settings.onTimerSchedule=JSON.parse(o.settings.onTimerSchedule)}var r=(o.settings.onTimerSchedule===null||o.settings.onTimerSchedule===undefined?0:o.settings.onTimerSchedule.length);if(o.settings.multiOnTimerHour.length<=r){if(typeof m==="function"){h(o,"PSOT","Power.addOnTimer returns failure. No space to add timer.");m(o)}return}o.settings.multiOnTimerHour[r]=n.hour;o.settings.multiOnTimerMinute[r]=n.minute;o.settings.multiOnTimerWeekday[r]=n.week;o.settings.multiOnTimerSource[r]=e(n.inputSource);var q=360;o.settings.onTimerSchedule[r]={_id:""+q++,hour:n.hour,input:e(n.inputSource),minute:n.minute,weekday:n.week};f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOnTimerHour:o.settings.multiOnTimerHour,multiOnTimerMinute:o.settings.multiOnTimerMinute,multiOnTimerWeekday:o.settings.multiOnTimerWeekday,multiOnTimerSource:o.settings.multiOnTimerSource,onTimerCount:r+1,onTimerSchedule:o.settings.onTimerSchedule}},onSuccess:function(){c("addOnTimer: On Success 2");if(typeof l==="function"){l()}},onFailure:function(s){c("addOnTimer: On Failure 2");delete s.returnValue;if(typeof m==="function"){h(s,"PAOT","Power.addOnTimer returns failure.");m(s)}}})})}},onFailure:function(o){c("addOnTimer: On Failure");delete o.returnValue;if(m&&typeof m==="function"){h(o,"PAOT","Power.addOnTimer returns failure.");m(o)}}});c("Power.addOnTimer Done")};i.prototype.deleteOnTimer=function(l,m,n){c("deleteOnTimer: "+JSON.stringify(n));if(n.hour===undefined||isNaN(n.hour)||typeof n.hour!=="number"||n.hour<0||n.hour>23||n.minute===undefined||isNaN(n.minute)||typeof n.minute!=="number"||n.minute<0||n.minute>59||n.week===undefined||isNaN(n.week)||typeof n.week!=="number"||n.week<=0||n.week>127||n.inputSource===undefined||typeof n.inputSource!=="string"||n.inputSource.indexOf("ext://")!==0){if(typeof m==="function"){var k={};h(k,"PDOT","Power.deleteOnTimer returns failure. invalid parameters or out of range.");m(k)}return}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["multiOnTimerHour","multiOnTimerMinute","multiOnTimerWeekday","multiOnTimerSource","onTimerSchedule","onTimerCount"]},onSuccess:function(o){if(o.returnValue===true){j(function(y){c("version : "+y);if(typeof o.settings.multiOnTimerHour==="string"){o.settings.multiOnTimerHour=JSON.parse(o.settings.multiOnTimerHour)}if(typeof o.settings.multiOnTimerMinute==="string"){o.settings.multiOnTimerMinute=JSON.parse(o.settings.multiOnTimerMinute)}if(typeof o.settings.multiOnTimerWeekday==="string"){o.settings.multiOnTimerWeekday=JSON.parse(o.settings.multiOnTimerWeekday)}if(typeof o.settings.multiOnTimerSource==="string"){o.settings.multiOnTimerSource=JSON.parse(o.settings.multiOnTimerSource)}if(typeof o.settings.onTimerSchedule==="string"){o.settings.onTimerSchedule=JSON.parse(o.settings.onTimerSchedule)}var z=0,x=(o.settings.onTimerSchedule===null||o.settings.onTimerSchedule===undefined?0:o.settings.onTimerSchedule.length);var t=["0","0","0","0","0","0","0"],u=["0","0","0","0","0","0","0"],q=["0","0","0","0","0","0","0"],p=["0","0","0","0","0","0","0"],w=[];var s=e(n.inputSource);var r=false;for(var v=0;v<x;v++){if(o.settings.onTimerSchedule[v]===null){continue}if(r===false&&n.hour===o.settings.onTimerSchedule[v].hour&&n.minute===o.settings.onTimerSchedule[v].minute&&n.week===o.settings.onTimerSchedule[v].weekday&&s===o.settings.onTimerSchedule[v].input){r=true}else{t[z]=o.settings.multiOnTimerHour[v];u[z]=o.settings.multiOnTimerMinute[v];q[z]=o.settings.multiOnTimerWeekday[v];p[z]=o.settings.multiOnTimerSource[v];w[z]=o.settings.onTimerSchedule[v];z++}}if(r===true){x--}if(x===0){w=[]}if(o.settings.onTimerSchedule.length===x){if(typeof m==="function"){h(o,"PDOT","Power.deleteOnTimer returns failure. There is no 'on timer' matched in the list.");m(o)}return}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOnTimerHour:t,multiOnTimerMinute:u,multiOnTimerWeekday:q,multiOnTimerSource:p,onTimerCount:x,onTimerSchedule:w}},onSuccess:function(){c("deleteOnTimer: On Success 2");if(typeof l==="function"){l()}},onFailure:function(A){c("deleteOnTimer: On Failure 2");delete A.returnValue;if(typeof m==="function"){h(A,"PDOT","Power.deleteOnTimer returns failure.");m(A)}}})})}},onFailure:function(o){c("deleteOnTimer: On Failure");delete o.returnValue;if(m&&typeof m==="function"){h(o,"PDOT","Power.deleteOnTimer returns failure.");m(o)}}});c("Power.deleteOnTimer Done")};i.prototype.addOffTimer=function(l,m,n){c("addOffTimer: "+JSON.stringify(n));if(n.hour===undefined||isNaN(n.hour)||typeof n.hour!=="number"||n.hour<0||n.hour>23||n.minute===undefined||isNaN(n.minute)||typeof n.minute!=="number"||n.minute<0||n.minute>59||n.week===undefined||isNaN(n.week)||typeof n.week!=="number"||n.week<=0||n.week>127){if(typeof m==="function"){var k={};h(k,"PAOT","Power.addOffTimer returns failure. Invalid parameter.");m(k)}return}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["multiOffTimerHour","multiOffTimerMinute","multiOffTimerWeekday","offTimerSchedule","offTimerCount"]},onSuccess:function(o){if(o.returnValue===true){if(typeof o.settings.multiOffTimerHour==="string"){o.settings.multiOffTimerHour=JSON.parse(o.settings.multiOffTimerHour)}if(typeof o.settings.multiOffTimerMinute==="string"){o.settings.multiOffTimerMinute=JSON.parse(o.settings.multiOffTimerMinute)}if(typeof o.settings.multiOffTimerWeekday==="string"){o.settings.multiOffTimerWeekday=JSON.parse(o.settings.multiOffTimerWeekday)}if(typeof o.settings.offTimerSchedule==="string"){o.settings.offTimerSchedule=JSON.parse(o.settings.offTimerSchedule)}var q=(o.settings.offTimerSchedule===null||o.settings.offTimerSchedule===undefined?0:o.settings.offTimerSchedule.length);if(o.settings.multiOffTimerHour.length<=q){if(typeof m==="function"){h(o,"PAOT","Power.addOffTimer returns failure. No space to add timer.");m(o)}return}o.settings.multiOffTimerHour[q]=n.hour;o.settings.multiOffTimerMinute[q]=n.minute;o.settings.multiOffTimerWeekday[q]=n.week;var p=360;o.settings.offTimerSchedule[q]={_id:""+p++,hour:n.hour,minute:n.minute,weekday:n.week};f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOffTimerHour:o.settings.multiOffTimerHour,multiOffTimerMinute:o.settings.multiOffTimerMinute,multiOffTimerWeekday:o.settings.multiOffTimerWeekday,offTimerCount:q+1,offTimerSchedule:o.settings.offTimerSchedule}},onSuccess:function(){c("addOffTimer: On Success 2");if(typeof l==="function"){l()}},onFailure:function(r){c("addOffTimer: On Failure 2");delete r.returnValue;if(typeof m==="function"){h(r,"PAOT","Power.addOffTimer returns failure.");m(r)}}})}},onFailure:function(o){c("addOffTimer: On Failure");delete o.returnValue;if(m&&typeof m==="function"){h(o,"PAOT","Power.addOffTimer returns failure.");m(o)}}});c("Power.addOffTimer Done")};i.prototype.deleteOffTimer=function(l,m,n){c("deleteOffTimer: "+JSON.stringify(n));if(n.hour===undefined||isNaN(n.hour)||typeof n.hour!=="number"||n.hour<0||n.hour>23||n.minute===undefined||isNaN(n.minute)||typeof n.minute!=="number"||n.minute<0||n.minute>59||n.week===undefined||isNaN(n.week)||typeof n.week!=="number"||n.week<=0||n.week>127){if(typeof m==="function"){var k={};h(k,"PDOT","Power.deleteOffTimer returns failure. invalid parameters or out of range.");m(k)}return}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["multiOffTimerHour","multiOffTimerMinute","multiOffTimerWeekday","offTimerSchedule","offTimerCount"]},onSuccess:function(w){if(w.returnValue===true){if(typeof w.settings.multiOffTimerHour==="string"){w.settings.multiOffTimerHour=JSON.parse(w.settings.multiOffTimerHour)}if(typeof w.settings.multiOffTimerMinute==="string"){w.settings.multiOffTimerMinute=JSON.parse(w.settings.multiOffTimerMinute)}if(typeof w.settings.multiOffTimerWeekday==="string"){w.settings.multiOffTimerWeekday=JSON.parse(w.settings.multiOffTimerWeekday)}if(typeof w.settings.offTimerSchedule==="string"){w.settings.offTimerSchedule=JSON.parse(w.settings.offTimerSchedule)}var v=0,u=(w.settings.offTimerSchedule===null||w.settings.offTimerSchedule===undefined?0:w.settings.offTimerSchedule.length);var q=["0","0","0","0","0","0","0"],r=["0","0","0","0","0","0","0"],o=["0","0","0","0","0","0","0"],t=[];var p=false;for(var s=0;s<u;s++){if(w.settings.offTimerSchedule[s]===null){continue}if(p===false&&n.hour===w.settings.offTimerSchedule[s].hour&&n.minute===w.settings.offTimerSchedule[s].minute&&n.week===w.settings.offTimerSchedule[s].weekday){p=true}else{q[v]=w.settings.multiOffTimerHour[s];r[v]=w.settings.multiOffTimerMinute[s];o[v]=w.settings.multiOffTimerWeekday[s];t[v]=w.settings.offTimerSchedule[s];v++}}if(p===true){u--}if(u===0){t=[]}if(w.settings.offTimerSchedule.length===u){if(typeof m==="function"){h(w,"PDOT","Power.deleteOffTimer returns failure. There is no 'off timer' matched in the list.");m(w)}return}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOffTimerHour:q,multiOffTimerMinute:r,multiOffTimerWeekday:o,offTimerCount:u,offTimerSchedule:t}},onSuccess:function(){c("deleteOffTimer: On Success 2");if(typeof l==="function"){l()}},onFailure:function(x){c("deleteOffTimer: On Failure 2");delete x.returnValue;if(typeof m==="function"){h(x,"PDOT","Power.deleteOffTimer returns failure.");m(x)}}})}},onFailure:function(o){c("deleteOffTimer: On Failure");delete o.returnValue;if(m&&typeof m==="function"){h(o,"PDOT","Power.deleteOffTimer returns failure.");m(o)}}});c("Power.deleteOffTimer Done")};i.prototype.getOnTimerList=function(k,l){c("getOnTimerList: ");f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["onTimerSchedule"]},onSuccess:function(m){if(m.returnValue===true){j(function(n){c("version : "+n);var q={};if(typeof m.settings.onTimerSchedule==="string"){m.settings.onTimerSchedule=JSON.parse(m.settings.onTimerSchedule)}var r=new Array(m.settings.onTimerSchedule===null||m.settings.onTimerSchedule===undefined?0:m.settings.onTimerSchedule.length);for(var o=0,p=0;p<r.length;p++){if(m.settings.onTimerSchedule[p]===null||m.settings.onTimerSchedule[p]===undefined){continue}r[o]={hour:0,minute:0,week:0,inputSource:0};r[o].hour=m.settings.onTimerSchedule[p].hour;r[o].minute=m.settings.onTimerSchedule[p].minute;r[o].week=m.settings.onTimerSchedule[p].weekday;r[o++].inputSource=e(m.settings.onTimerSchedule[p].input)}q.timerList=r;if(k&&typeof k==="function"){k(q)}})}},onFailure:function(m){c("getOnTimerList: On Failure");delete m.returnValue;if(l&&typeof l==="function"){h(m,"PGOTL","Power.getOnTimerList returns failure.");l(m)}}});c("Power.getOnTimerList Done")};i.prototype.getOffTimerList=function(k,l){c("getOffTimerList: ");f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["offTimerSchedule"]},onSuccess:function(m){c("getOffTimerList: On Success");if(m.returnValue===true){var p={};if(typeof m.settings.offTimerSchedule==="string"){m.settings.offTimerSchedule=JSON.parse(m.settings.offTimerSchedule)}var q=new Array(m.settings.offTimerSchedule===null||m.settings.offTimerSchedule===undefined?0:m.settings.offTimerSchedule.length);for(var n=0,o=0;o<q.length;o++){if(m.settings.offTimerSchedule[o]===null||m.settings.offTimerSchedule[o]===undefined){continue}q[n]={hour:0,minute:0,week:0};q[n].hour=m.settings.offTimerSchedule[o].hour;q[n].minute=m.settings.offTimerSchedule[o].minute;q[n++].week=m.settings.offTimerSchedule[o].weekday}p.timerList=q;if(k&&typeof k==="function"){k(p)}}},onFailure:function(m){c("getOffTimerList: On Failure");delete m.returnValue;if(l&&typeof l==="function"){h(m,"PGOTL","Power.getOffTimerList returns failure.");l(m)}}});c("Power.getOffTimerList Done")};i.prototype.setDisplayMode=function(l,m,n){c("setDisplayMode: "+JSON.stringify(n));var o=null;switch(n.displayMode){case i.DisplayMode.DISPLAY_OFF:o="turnOffScreen";break;case i.DisplayMode.DISPLAY_ON:o="turnOnScreen";break}c("setDisplayMode: "+o);if(o===null&&m&&typeof m==="function"){var k={};h(k,"PSDM","Power.setDisplayMode returns failure. command was not defined.");m(k);c("Power.setDisplayMode invalid ");return}f.Request("luna://com.webos.service.tv.signage/",{method:"getPowerState",onSuccess:function(p){c("setDisplayMode: On Success");if(p.returnValue===true&&p.state===n.displayMode){if(l&&typeof l==="function"){c("setDisplayMode: no need to do any action.");l()}return}f.Request("luna://com.webos.service.tv.signage/",{method:o,onSuccess:function(q){c("setDisplayMode: On Success");if(q.returnValue===true){if(l&&typeof l==="function"){l()}}},onFailure:function(q){c("setDisplayMode: On Failure");delete q.returnValue;if(m&&typeof m==="function"){h(q,"PSDM","Power.setDisplayMode returns failure.");m(q)}}})},onFailure:function(p){c("setDisplayMode: On Failure 2");delete p.returnValue;if(m&&typeof m==="function"){h(p,"PSDM","Power.setDisplayMode returns failure.");m(p)}}});c("Power.setDisplayMode Done")};i.prototype.executePowerCommand=function(l,m,n){c("executePowerCommand: "+JSON.stringify(n));if(n.powerCommand===undefined||typeof n.powerCommand!=="string"||n.powerCommand===null||n.powerCommand.length<=0){if(typeof m==="function"){var k={};h(k,"PEPM","Power.executePowerCommand returns failure. invalid argument or out of range. ");m(k)}return}f.Request("luna://com.webos.service.tv.signage/",{method:n.powerCommand,parameters:{reason:"unknown"},onSuccess:function(o){c("executePowerCommand: On Success");if(o.returnValue===true){if(l&&typeof l==="function"){l()}}},onFailure:function(o){c("executePowerCommand: On Failure");delete o.returnValue;if(m&&typeof m==="function"){h(o,"PEPM","Power.executePowerCommand returns failure.");m(o)}}});c("Power.executePowerCommand Done")};a.exports=i});Power=cordova.require("cordova/plugin/power");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/signage",function(i,w,c){var x;function g(y){}if(window.PalmSystem){g("Window.PalmSystem Available");x=i("cordova/plugin/webos/service")}else{g("Window.PalmSystem is NOT Available");x={Request:function(y,z){g(y+" invoked. But I am a dummy because PalmSystem is not available");if(typeof z.onFailure==="function"){z.onFailure({returnValue:false,errorCode:"CORDOVA_ERR",errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var s=function(y){var z=j[y];g(JSON.stringify(z,null,3));if(z&&z.getEvent===true){if(j[y].listenerObj){j[y].listenerObj.cancel();j[y].getEvent=false;j[y].listenerObj=null}}};var k=function(z,y){var A=j[z];if(A&&typeof A.createListener==="function"){A.listenerObj=A.createListener(y);A.getEvent=true}};function d(z){if(z.substring(0,"ext://".length)!=="ext://"){g("Bad prefix: "+z);return false}var y=z.substring("ext://".length);g("body is: "+y);var A=y.split(":");if(A.length===2){return A[0]+A[1]}else{if(A.length===1){return A[0]}else{g("Bad Syntax: "+z);return false}}}function q(y,A){for(var z in y){if(y[z]===A){return true}}return false}var n={FAILOVER_MODE:"failover",FAILOVER_PRIORITY:"failoverPriority",IR_OPERATION_MODE:"enableIrRemote",LOCALKEY_OPERATION_MODE:"enableLocalKey",OSD_PORTRAIT_MODE:"osdPortraitMode",TILE_MODE:"tileMode",TILE_ID:"tileId",TILE_ROW:"tileRow",TILE_COLUME:"tileCol",TILE_NATURALMODE:"naturalMode",DPM_MODE:"dpmMode",AUTOMATIC_STANDBY_MODE:"autoSB",ISM_METHOD:"ismmethod",SES_MODE:"smartEnergy",DO_15OFF_MODE:"15off",MONITOR_FAN:"monitorFan",MONITOR_SIGNAL:"monitorSignal",MONITOR_LAMP:"monitorLamp",MONITOR_SCREEN:"monitorScreen",MONITOR_AUDIO:"monitorAudio",AUDIO_SOURCE_HDMI1:"audioSourceHdmi1",AUDIO_SOURCE_HDMI2:"audioSourceHdmi2",AUDIO_SOURCE_DP:"audioSourceDp"};var o=function(y){g("Create Listener for monitorTemperature");var z=x.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getTemperature",parameters:{subscribe:true},onSuccess:function(A){g("temperature!!!!!!!!! : "+JSON.stringify(A,null,3));if(A.returnValue===true){var B={source:a.MonitoringSource.THERMOMETER,type:a.EventType.CURRENT_TEMPERATURE,data:{temperature:A.temperature}};if(y){y(B)}}},onFailure:function(A){g("monitor_temperature!!!!!!!!! : FAIL "+JSON.stringify(A,null,3))}});return z};var f=function(y){g("Create Listener for monitorFan");var z=x.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getFanEvent",parameters:{subscribe:true},onSuccess:function(A){g("monitor_fan!!!!!!!!! : "+JSON.stringify(A,null,3));if(A.returnValue===true){var B={source:a.MonitoringSource.FAN,type:a.EventType.FAN_STATUS,data:{status:A.fanFault}};if(y){y(B)}}},onFailure:function(A){g("monitor_fan!!!!!!!!! : FAIL "+JSON.stringify(A,null,3))}});return z};var h=function(y){g("Create Listener for monitorLamp");var z=x.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getLampEvent",parameters:{subscribe:true},onSuccess:function(A){g("monitor_lamp!!!!!!!!! : "+JSON.stringify(A,null,3));if(A.returnValue===true){var B={source:a.MonitoringSource.LAMP,type:a.EventType.LAMP_STATUS,data:{status:A.lampFault}};if(y){y(B)}}},onFailure:function(A){g("monitor_lamp!!!!!!!!! : FAIL "+JSON.stringify(A,null,3))}});return z};var m=function(y){g("Create Listener for monitorSignal");var z=x.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getSignalEvent",parameters:{subscribe:true},onSuccess:function(A){g("monitor_signal!!!!!!!!! : "+JSON.stringify(A,null,3));if(A.returnValue===true){var B={type:a.EventType.NO_SIGNAL,source:a.MonitoringSource.SIGNAL};if(A.noSignal===true){B.data.status="no_signal"}else{B.data.status="signal_available"}if(y){y(B)}}},onFailure:function(A){g("monitor_signal!!!!!!!!! : FAIL "+JSON.stringify(A,null,3))}});return z};var t=function(y){g("Create Listener for monitorScreen");var z=x.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getScreenEvent",parameters:{subscribe:true},onSuccess:function(A){g("monitor_screen!!!!!!!!! : "+JSON.stringify(A,null,3));if(A.returnValue===true){var B={source:a.MonitoringSource.SCREEN,type:a.EventType.SCREEN_STATUS,data:{status:A.screen}};if(y){y(B)}}},onFailure:function(A){g("monitor_screen!!!!!!!!! FAIL : "+JSON.stringify(A,null,3))}});return z};var j={fan:{getEvent:false,listenerObj:null,createListener:f},screen:{getEvent:false,listenerObj:null,createListener:t},temperature:{getEvent:false,listenerObj:null,createListener:o},signal:{getEvent:false,listenerObj:null,createListener:m},lamp:{getEvent:false,listenerObj:null,createListener:h}};var p={row:0,col:0};var a=function(){};a.UNDEFINED="___undefined___";a.OsdPortraitMode={ON:"90",OFF:"off"};a.AutomaticStandbyMode={OFF:"off",STANDBY_4HOURS:"4hours"};a.IsmMethod={NORMAL:"NORMAL",ORBITER:"ORBITER",INVERSION:"INVERSION",COLORWASH:"COLORWASH",WHITEWASH:"WHITEWASH"};a.FailoverMode={OFF:"off",AUTO:"auto",MANUAL:"manual"};a.DigitalAudioInput={HDMI_DP:"hdmi",AUDIO_IN:"audioIn"};a.DpmMode={OFF:"off",POWER_OFF_5SECOND:"5sec",POWER_OFF_10SECOND:"10sec",POWER_OFF_15SECOND:"15sec",POWER_OFF_1MINUTE:"1min",POWER_OFF_3MINUTE:"3min",POWER_OFF_5MINUTE:"5min",POWER_OFF_10MINUTE:"10min"};a.KeyOperationMode={ALLOW_ALL:"normal",POWER_ONLY:"usePwrOnly",BLOCK_ALL:"blockAll"};a.EventType={CURRENT_TEMPERATURE:"CURRENT_TEMPERATURE",FAN_STATUS:"FAN_STATUS",LAMP_STATUS:"LAMP_STATUS",SCREEN_STATUS:"SCREEN_STATUS",SIGNAL_STATUS:"SIGNAL_STATUS"};a.MonitoringSource={FAN:"FAN",LAMP:"LAMP",SIGNAL:"SIGNAL",SCREEN:"SCREEN",THERMOMETER:"THERMOMETER"};function r(B,A,C,y,z){var D={category:B,keys:A};x.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:D,onSuccess:function(E){g("On Success");if(E.returnValue===true){var F=C(E.settings);if(F===false){if(z&&typeof z==="function"){z({errorText:"Invalid DB value",errorCode:"DB_ERROR"})}}else{if(y&&typeof y==="function"){g("successCallback!!!!!!!!!");y(F)}else{g("successCallback not registered or is not a function: "+y)}}}else{g("Settings Failed: "+JSON.stringify(E,null,3));if(z&&typeof z==="function"){z({errorText:"Invalid DB value : "+E.errorText,errorCode:"DB_ERROR"})}}},onFailure:function(E){g("On Failure");delete E.returnValue;if(E.settings){g("settings = "+JSON.stringify(E.settings,null,3));var G=C(E.settings);g("errorKey = "+JSON.stringify(E.errorKey,null,3));for(var F=0;F<E.errorKey.length;++F){G[E.errorKey[F]]=a.UNDEFINED}g("cbObj = "+JSON.stringify(G,null,3));if(y&&typeof y==="function"){g("successCallback!!!!!!!!!");y(G)}}else{if(z&&typeof z==="function"){z({errorText:((typeof E.errorText==="undefined")?"DB Failure":E.errorText),errorCode:"DB_ERROR"})}}}});g("Requested Service: luna://com.webos.service.commercial.signage.storageservice/settings/");g("params : "+JSON.stringify(D))}function e(D,C,y,z){var E={category:D,settings:C};g("settings : "+JSON.stringify(C,null,3));var A=false;for(var B in C){if(B){g("has key : "+B);A=true;break}}if(A===false){g("Nothing to set!!!!!");y();return}x.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:E,onSuccess:function(){g("On Success");if(y&&typeof y==="function"){g("SUCCEES CALLBACK!!!!!!!");y()}},onFailure:function(F){g("On Failure");delete F.returnValue;if(z&&typeof z==="function"){g("ERROR CALLBACK!!!!!!!");z(F)}}});g("Requested Service: luna://com.webos.service.commercial.signage.storageservice/settings/");g("params : "+JSON.stringify(E))}a.prototype.setPortraitMode=function(y,A,D){var E={};var C;function B(G){if(G.portraitMode){for(var H in a.OsdPortraitMode){if(G.portraitMode===a.OsdPortraitMode[H]){return true}}C="Unrecognized OsdPortraintMode : "+G.portraitMode;return false}else{C="portraitMode does not exist.";return false}}if(B(D)){var z=D.portraitMode;g("portraitMode: "+D.portraitMode);E[n.OSD_PORTRAIT_MODE]=z;g("Set: "+JSON.stringify(E,null,3));e("commercial",E,y,A);g("setPortraitMode Done")}else{var F={errorCode:"BAD_PARAMETER",errorText:C};A(F)}};a.prototype.setFailoverMode=function(z,B,G){var A={};var C;function y(H){g("options:"+JSON.stringify(H,null,3));var K=H.failoverMode;if(K){if(K.mode){if(K.mode===a.FailoverMode.MANUAL){if(K.priority){if(K.priority.length===0||typeof K.priority.length==="undefined"){return false}else{return true}}else{C="priority should be present when mode is MANUAL.";return false}}else{if(K.priority){C="This priority is available only if mode is : Signage.FailoverMode.MANUAL";return false}else{var J=false;g("Mode is: "+K.mode);for(var I in a.FailoverMode){if(K.mode===a.FailoverMode[I]){g("Matched with: "+a.FailoverMode[I]);J=true}}if(!J){g("Unrecognized failoverMode : "+K.mode);C="Unrecognized failoverMode : "+K.mode;return false}else{return true}}}}else{if(!K.priority){return true}else{g("Unrecognized failoverMode : "+K.mode);C="Unrecognized failoverMode : "+K.mode;return false}}}else{C="Fail over mode not set : ";return false}}if(y(G)){var E=G.failoverMode;if(!E.mode&&!E.priority){z()}else{if(E.mode===a.FailoverMode.MANUAL){x.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"setManualFailoverPrioirty",parameters:{priority:E.priority},onSuccess:function(H){g("onSuccess!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");if(H.returnValue){z()}else{g("FAILED: "+H.errorText);B({errorCode:H.errorCode,errorText:H.errorText})}},onFailure:function(H){g("onFailure!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");g("FAILED: "+H.errorText);B({errorCode:H.errorCode,errorText:H.errorText})}})}else{if(E.mode){var F=E.mode;g("mode: "+E.mode);A[n.FAILOVER_MODE]=F;g("Set: "+JSON.stringify(A,null,3));e("commercial",A,z,B);g("setFailoverMode Done")}else{var D={errorCode:"BAD_PARAMETER",errorText:"Mode should be set."};B(D)}}}}else{var D={errorCode:"BAD_PARAMETER",errorText:C};B(D)}};a.prototype.getFailoverMode=function(y,z){try{x.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"getFailoverPrioirty",parameters:{},onSuccess:function(B){g("onSuccess!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");if(B.returnValue){y({priority:B.priority,mode:B.mode})}else{g("FAILED: "+B.errorText);z({errorCode:B.errorCode,errorText:B.errorText})}},onFailure:function(B){g("onFailure!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");g("FAILED: "+B.errorText);z({errorCode:B.errorCode,errorText:B.errorText})}})}catch(A){g("EXCEPTION!!!!!!!!!!!!!!!!!"+A)}};function u(A,y){var z=typeof A;g("mytype: "+z);g("type: "+y);if(z==="undefined"){return true}else{if(z===y){return A}else{return false}}}a.prototype.setTileInfo=function(z,E,G){var F;var y=function(R){var H=typeof R.tileInfo.enabled;g("enabledType:"+H);if(H!=="undefined"&&H!=="boolean"){F="enabled should be a boolean";return false}var Q=R.tileInfo.row;var J=u(Q,"number");if(J===false){F="Invalid type for row"+Q;return false}else{if(J===true){g("Row is not defined")}else{if(Q>15||Q<1){F="row should be 0<n<16 but :"+Q;return false}}}var K=R.tileInfo.column;var M=u(K,"number");if(M===false){F="Invalid type for column"+K;return false}else{if(J===true){g("column is not defined")}else{if(K>15||K<1){F="column should be 0<n<16 but :"+K;return false}}}var I=R.tileInfo.tileId;var P=u(I,"number");if(P===false){F="Invalid type for "+K;return false}else{if(P===true){g("id is not defined")}else{if(I<1){F="tileId should be bigger than 0 but :"+I;return false}var N=p.row;if(Q){N=Q}var O=p.column;if(K){O=K}g("curRow : "+N);g("curCol : "+O);g("id : "+I);if(I>O*N){F="ID should be less than curRow*curCol";return false}}}var L=typeof R.tileInfo.naturalMode;if(L!=="undefined"&&L!=="boolean"){F="naturalMode should be a boolean";return false}return true};if(y(G)===true){var A=G.tileInfo;var C={};if(typeof A.enabled==="boolean"){if(A.enabled){C[n.TILE_MODE]="on"}else{C[n.TILE_MODE]="off"}}if(A.row){C[n.TILE_ROW]=A.row.toString()}if(A.column){C[n.TILE_COLUME]=A.column.toString()}if(A.tileId){C[n.TILE_ID]=A.tileId.toString()}if(typeof A.naturalMode==="boolean"){if(A.naturalMode){C[n.TILE_NATURALMODE]="on"}else{C[n.TILE_NATURALMODE]="off"}}g("Set: "+JSON.stringify(C,null,3));var D=function(){g("Do callback!!!!!!!!");if(A.row){p.row=A.row}if(A.column){p.column=A.column}if(z&&typeof z==="function"){g("Invoke successCallback");z();g("Invoked successCallback")}};e("commercial",C,D,E);g("setTileInfo Done")}else{var B={errorCode:"BAD_PARAMETER",errorText:F};E(B)}};function l(y){if(y==="on"){return true}else{if(y==="off"){return false}else{return false}}}a.prototype.getTileInfo=function(y,z){var B=function(C){var D={};g("settings Value: "+JSON.stringify(C,null,3));D.enabled=l(C[n.TILE_MODE]);D.row=parseInt(C[n.TILE_ROW],10);D.column=parseInt(C[n.TILE_COLUME],10);D.tileId=parseInt(C[n.TILE_ID],10);D.naturalMode=l(C[n.TILE_NATURALMODE]);g("Return Value: "+JSON.stringify(D,null,3));return D};var A=[n.TILE_MODE,n.TILE_ROW,n.TILE_COLUME,n.TILE_ID,n.TILE_NATURALMODE];r("commercial",A,B,y,z)};a.prototype.getSignageInfo=function(y,z){x.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"getSignageInformation",parameters:{},onSuccess:function(A){if(typeof y==="function"){console.log(A.signageInfo);y(A.signageInfo)}},onFailure:function(A){delete A.returnValue;if(typeof z==="function"){z(A)}}})};a.prototype.setIsmMethod=function(y,z,C){var E={};var B;function A(G){if(G.ismMethod){for(var H in a.IsmMethod){if(G.ismMethod===a.IsmMethod[H]){return true}}B="Unrecognized ismMethod : "+G.ismMethod;return false}else{B="ismMethod does not exist.";return false}}if(A(C)){if(C.ismMethod){var D=C.ismMethod;g("ismMethod : "+D);E[n.ISM_METHOD]=D}g("Set: "+JSON.stringify(E,null,3));e("commercial",E,y,z);g("setIsmMethod Done")}else{var F={errorCode:"BAD_PARAMETER",errorText:B};z(F)}};a.prototype.setDigitalAudioInputMode=function(y,z,C){var D={};var B;function A(F){if(F.digitalAudioInputList){for(var G in F.digitalAudioInputList){if(G){var J=F.digitalAudioInputList[G];var I=false;for(var H in a.DigitalAudioInput){if(J===a.DigitalAudioInput[H]){I=true}}if(!I){B="Invalid Audio Input : "+J;return false}}}return true}else{B="digitalAudioInputList does not exist.";return false}}if(A(C)){x.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"setDigitalAudioInputList",parameters:{digitalAudioInputList:C.digitalAudioInputList},onSuccess:function(){if(typeof y==="function"){y()}},onFailure:function(F){delete F.returnValue;if(typeof z==="function"){z(F)}}})}else{var E={errorCode:"BAD_PARAMETER",errorText:B};z(E)}};var v=false;a.prototype.registerSystemMonitor=function(z,D,H){var G=["fan","signal","lamp","screen","temperature"];var E;var F="BAD_PARAMETER";g("Listeners are: "+JSON.stringify(j,null,3));function y(I){if(v===true){E="Not ready to register monitor now.";F="SYSTEM_ERROR";return false}g("options are: "+JSON.stringify(I,null,3));if(typeof I.eventHandler!=="function"){E="No event handler was given or event hadnler is not a function";return false}if(I.monitorConfiguration){for(var K in I.monitorConfiguration){if(K){var M=false;for(var J=0;J<G.length;++J){if(K===G[J]){g("Found key: "+G[J]);M=true}}if(!M){E="Invalid Monitoring source : "+K;return false}var L=I.monitorConfiguration[K];g("value: "+L);if(typeof L!=="boolean"){E="Invalid value : "+L;return false}}}return true}else{E="monitorConfiguration does not exist.";return false}}if(y(H)){var B=function(){g("Canceled all previous message subscriptions");var J=H.eventHandler;for(var I in H.monitorConfiguration){if(I){var K=H.monitorConfiguration[I];if(K===true){g("Add listener for : "+I);k(I,J)}}}g("Monitoring Setup : "+JSON.stringify(j,null,3));g("Start Polling : ");x.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/startMonitor",parameters:{},onSuccess:function(L){g("On Success");if(L.returnValue===true){if(z&&typeof z==="function"){z()}}else{if(D&&typeof D==="function"){D(L)}}v=false},onFailure:function(L){g("On Failure");delete L.returnValue;if(D&&typeof D==="function"){D(L)}v=false}})};var A=function(I){D(I)};g("Cancel all previous message subscriptions");v=true;b(B,A)}else{var C={errorCode:F,errorText:E};D(C)}};a.prototype.unregisterSystemMonitor=function(y,z){b(y,z);g("After unregister, _gSystemMonitoringSetup are: "+JSON.stringify(j,null,3))};function b(y,z){g("cancelAllSubscription> setup are: "+JSON.stringify(j,null,3));for(var A in j){if(A){s(A)}}g("Stop Polling");x.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/stopMonitor",parameters:{},onSuccess:function(B){g("On Success");if(B.returnValue===true){if(y&&typeof y==="function"){y()}}else{if(z&&typeof z==="function"){z(B)}}},onFailure:function(B){g("On Failure");delete B.returnValue;if(z&&typeof z==="function"){z(B)}}})}a.prototype.getSystemMonitoringInfo=function(y,z){if(j){y({fan:j.fan.getEvent,signal:j.signal.getEvent,lamp:j.lamp.getEvent,screen:j.screen.getEvent,temperature:j.temperature.getEvent})}else{var A={errorCode:"ERROR",errorText:"Failed to get system monitoring setup"};z(A)}};a.prototype.setPowerSaveMode=function(y,z,C){var D={};var B;function A(F){if(F.powerSaveMode){for(var G in F.powerSaveMode){if(G){var H=F.powerSaveMode[G];if(G==="ses"||G==="do15MinOff"){if(typeof H!=="boolean"){B="Invalid value : "+H;return false}}else{if(G==="automaticStandby"){if(!q(a.AutomaticStandbyMode,H)){B="Invalid automaticStandby value : "+H;return false}}else{if(G==="dpmMode"){if(!q(a.DpmMode,H)){B="Invalid dpmMode value : "+H;return false}}else{B="Unknown value : "+G;return false}}}}}return true}else{B="powerSaveMode does not exist.";return false}}if(A(C)){console.log(C.powerSaveMode);x.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"setPowerSaveMode",parameters:{mode:C.powerSaveMode},onSuccess:function(F){g("onSuccess!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");if(F.returnValue){y(F.mode)}else{g("FAILED: "+F.errorText);z({errorCode:F.errorCode,errorText:F.errorText})}},onFailure:function(F){g("onFailure!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");g("FAILED: "+F.errorText);z({errorCode:F.errorCode,errorText:F.errorText})}})}else{var E={errorCode:"BAD_PARAMETER",errorText:B};z(E)}};a.prototype.getPowerSaveMode=function(B,C){var A=false;var z=false;var D=false;var F=false;var y="";var E="";x.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"getPowerSaveMode",parameters:{},onSuccess:function(G){g("onSuccess!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");if(G.returnValue){B(G.mode)}else{g("FAILED: "+G.errorText);C({errorCode:G.errorCode,errorText:G.errorText})}},onFailure:function(G){g("onFailure!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");g("FAILED: "+G.errorText);C({errorCode:G.errorCode,errorText:G.errorText})}})};a.prototype.setUsagePermission=function(z,C,G){var B={};var D;function y(H){if(H){g("Options: "+JSON.stringify(H,null,3))}else{g("Options not defined: "+H)}if(H.policy){for(var I in H.policy){if(I){var J=H.policy[I];if(I==="remoteKeyOperationMode"||I==="localKeyOperationMode"){if(!q(a.KeyOperationMode,J)){D="Invalid KeyOperationMode value : "+J;return false}}else{D="Unknown value : "+I;return false}}}return true}else{D="policy does not exist.";return false}}if(y(G)){if(G.policy.localKeyOperationMode){var F=G.policy.localKeyOperationMode;g("portraitMode: "+F);B[n.LOCALKEY_OPERATION_MODE]=F}if(G.policy.remoteKeyOperationMode){var E=G.policy.remoteKeyOperationMode;g("portraitMode: "+E);B[n.IR_OPERATION_MODE]=E}g("Set: "+JSON.stringify(B,null,3));e("hotelMode",B,z,C);g("setPolicy Done")}else{var A={errorCode:"BAD_PARAMETER",errorText:D};C(A)}};a.prototype.getUsagePermission=function(y,z){var B=function(C){var D={};g("settings: "+JSON.stringify(C,null,3));D.remoteKeyOperationMode=C[n.IR_OPERATION_MODE];D.localKeyOperationMode=C[n.LOCALKEY_OPERATION_MODE];g("cbObj: "+JSON.stringify(D,null,3));return D};var A=[n.IR_OPERATION_MODE,n.LOCALKEY_OPERATION_MODE];r("hotelMode",A,B,y,z)};a.prototype.getUsageData=function(y,z){var A=false;var B=false;var D={uptime:false,totalUsed:false};function C(){g("accessResult!!!!!!!!!!!!!!!!!!");if(A===true&&B===true){g("CB Object: "+JSON.stringify(D,null,3));if(D.uptime===false||D.totalUsed===false){z({errorCode:"CORDOVA_FAIL",errorText:"Failed to get usage data"});return}else{g("SUCCESS!!!!!!!!!!!!!!!!!!");y(D);return}}else{g("Not Yet!!!!!!!!!!!!!!!!!!")}}x.Request("luna://com.webos.service.tv.signage/",{method:"getUTT",parameters:{},onSuccess:function(E){g("On getUTT Success");A=true;if(E.returnValue===true){g("UTT is :"+E.UTT);D.totalUsed=E.UTT}C()},onFailure:function(E){g("On getUTT Failure :"+JSON.stringify(E,null,3));A=true;C()}});x.Request("luna://com.webos.service.tv.signage/",{method:"dsmp/getElapsedTime",parameters:{},onSuccess:function(E){g("On getElapsedTime Success");B=true;g("result: "+JSON.stringify(E,null,3));if(E.returnValue===true){var F=E.elapsedTime;g("Elapsed!!: "+F);D.uptime=F}C()},onFailure:function(E){g("On getSystemSettings Failure "+JSON.stringify(E,null,3));B=true;C()}})};a.prototype.captureScreen=function(y,z,A){var B={save:(A==undefined||A==null||A.save==undefined?false:A.save)};if(A!==undefined&&A!==null&&A.thumbnail!==undefined&&A.thumbnail===true){B.width=128;B.height=72}x.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"captureScreen",parameters:B,onSuccess:function(C){g("On Success");if(C.returnValue===true){y({data:C.data,size:C.size,encoding:C.encoding})}else{z({errorCode:C.errorCode,errorText:C.errorText})}},onFailure:function(C){g("On Failure");z({errorCode:C.errorCode,errorText:C.errorText})}})};a.prototype.addEventListener=k;a.prototype.removeEventListener=s;c.exports=a});Signage=cordova.require("cordova/plugin/signage");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/sound",function(e,c,f){function g(h){}var a;if(window.PalmSystem){g("Window.PalmSystem Available");a=e("cordova/plugin/webos/service")}else{a={Request:function(h,i){g(h+" invoked. But I am a dummy because PalmSystem is not available");if(typeof i.onFailure==="function"){i.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var d=function(){};function b(i,j,h){if(i.errorCode===undefined||i.errorCode===null){i.errorCode=j}if(i.errorText===undefined||i.errorText===null){i.errorText=h}}d.prototype.getSoundStatus=function(h,i){g("getSoundStatus: ");a.Request("luna://com.webos.audio/",{method:"getVolume",onSuccess:function(j){g("getSoundStatus: On Success");if(j.returnValue===true){var k={};k.level=j.volume;k.muted=j.muted;a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["enableSpeaker"]},onSuccess:function(l){g("getSoundStatus: On Success 2");if(l.returnValue===true){k.externalSpeaker=(l.settings.enableSpeaker==="on"?true:false);if(h&&typeof h==="function"){h(k)}}},onFailure:function(l){g("getSoundStatus: On Failure 2");delete l.returnValue;if(i&&typeof i==="function"){b(l,"SGSS","Sound.getSoundStatus returns failure.");i(l)}}})}},onFailure:function(j){g("getSoundStatus: On Failure");delete j.returnValue;if(i&&typeof i==="function"){b(j,"SGSS","Sound.getSoundStatus returns failure.");i(j)}}});g("Sound.getSoundStatus Done")};d.prototype.setVolumeLevel=function(i,j,k){g("setVolumeLevel: "+JSON.stringify(k));if(typeof k.level!=="number"||isNaN(k.level)||k.level<0||k.level>100){if(j&&typeof j==="function"){var h={};b(h,"SSVL","Sound.setVolumeLevel returns failure. out of range or invalid parameter type.");j(h)}return}a.Request("luna://com.webos.audio/",{method:"setVolume",parameters:{volume:k.level},onSuccess:function(l){g("setVolumeLevel: On Success");if(l.returnValue===true){if(i&&typeof i==="function"){i()}}},onFailure:function(l){g("setVolumeLevel: On Failure");delete l.returnValue;if(j&&typeof j==="function"){b(l,"SSVL","Sound.setVolumeLevel returns failure.");j(l)}}});g("Sound.setVolumeLevel Done")};d.prototype.setExternalSpeaker=function(i,j,l){g("setExternalSpeaker: "+JSON.stringify(l));if(typeof l.externalSpeaker!=="boolean"){if(j&&typeof j==="function"){var h={};b(h,"SSVL","Sound.setExternalSpeaker returns failure. out of range or invalid parameter type.");j(h)}return}var k=null;switch(l.externalSpeaker){case true:k="on";break;case false:k="off";break}a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{enableSpeaker:k}},onSuccess:function(){g("setExternalSpeaker: On Success");if(typeof i==="function"){i()}},onFailure:function(m){g("setExternalSpeaker: On Failure");delete m.returnValue;if(typeof j==="function"){b(m,"SSES","Sound.setExternalSpeaker returns failure.");j(m)}}});g("Sound.setExternalSpeaker Done")};d.prototype.setMuted=function(i,j,k){g("setMuted: "+JSON.stringify(k));if(typeof k.muted!=="boolean"){if(j&&typeof j==="function"){var h={};b(h,"SSVL","Sound.setMuted returns failure. out of range or invalid parameter type.");j(h)}return}a.Request("luna://com.webos.audio/",{method:"setMuted",parameters:{muted:k.muted},onSuccess:function(l){g("setMuted: On Success");if(l.returnValue===true){if(i&&typeof i==="function"){i()}}},onFailure:function(l){g("setMuted: On Failure");delete l.returnValue;if(j&&typeof j==="function"){b(l,"SSM","Sound.setMuted returns failure.");j(l)}}});g("Sound.setMuted Done")};f.exports=d});Sound=cordova.require("cordova/plugin/sound");
@@ -0,0 +1,23 @@
1
+ cordova.define("cordova/plugin/storage",function(d,h,b){var i;function f(k){}
2
+ if(window.PalmSystem){f("Window.PalmSystem Available");i=d("cordova/plugin/webos/service")}else{i={Request:function(k,l){f(k+" invoked. But I am a dummy because PalmSystem is not available");if(typeof l.onFailure==="function"){l.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}
3
+ function g(q){var p=g.options,k=p.parser[p.strictMode?"strict":"loose"].exec(q),n={},l=14;while(l--){n[p.key[l]]=k[l]||""}
4
+ n[p.q.name]={};n[p.key[12]].replace(p.q.parser,function(o,m,r){if(m){n[p.q.name][m]=r}});c(n);return n}
5
+ g.options={strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};function c(k){if(k.protocol==="file"){if(k.host==="internal"){return a(k)}else{if(k.host==="usb"){e(k)}else{throw" Invalid Host: "+k.host}}}else{if(k.protocol==="http"||k.protocol==="https"){if(k.path.charAt(k.path.length-1)==="/"){throw"Invalid path: "+k.path}else{return}}else{throw"Invalid protocol: "+k.protocol}}}
6
+ function a(k){if(k.path){f("Path: "+k.path);if(k.path.lastIndexOf("/")>0){throw"Invalid internal path: "+k.path}else{return}}else{f("No Path: ");throw"Invalid internal path: "+k.path}}
7
+ function e(k){if(k.port){if(k.port.match("/[0-9]+/")){return{result:true}}else{throw"Invalid USB host: "+k.host}}else{throw"Invalid USB host: "+k.host}
8
+ if(k.path){if(k.path.charAt(k.path.length-1)==="/"){throw"Invalid USB path: "+k.path}else{return{result:true}}}else{throw"Invalid USB path: "+k.path}}
9
+ var j=function(){};j.MAX_BUFFER_LENGTH=1024*10;j.AppMode={USB:"usb",LOCAL:"local"};j.prototype.downloadFirmware=function(k,l,m){i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"downloadFirmware",parameters:{uri:m.uri},onSuccess:function(n){if(n.returnValue===true){k()}else{l({errorCode:n.errorCode,errorText:n.errorText})}},onFailure:function(n){l({errorCode:n.errorCode,errorText:n.errorText})}})};j.prototype.upgradeFirmware=function(k,l){i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"upgradeFirmware",parameters:{},onSuccess:function(m){if(m.returnValue===true){k()}else{l({errorCode:m.errorCode,errorText:m.errorText})}},onFailure:function(m){l({errorCode:m.errorCode,errorText:m.errorText})}})};j.prototype.getFirmwareUpgradeStatus=function(k,l){i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"getFirmwareUpgradeStatus",parameters:{},onSuccess:function(m){if(m.returnValue===true){k({status:m.status,upgradeProgress:m.upgradeProgress,downloadProgress:m.downloadProgress})}else{l({errorCode:m.errorCode,errorText:m.errorText})}},onFailure:function(m){l({errorCode:m.errorCode,errorText:m.errorText})}})};j.prototype.changeLogoImage=function(k,l,m){i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"changeLogoImage",parameters:{uri:m.uri},onSuccess:function(n){if(n.returnValue===true){k()}else{l({errorCode:n.errorCode,errorText:n.errorText})}},onFailure:function(n){l({errorCode:n.errorCode,errorText:n.errorText})}})};j.prototype.upgradeApplication=function(k,l,m){i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"upgradeApplication",parameters:{from:"remote",to:(m==undefined||m==null?j.AppMode.LOCAL:m.to),recovery:(m==undefined||m==null?false:m.recovery)},onSuccess:function(n){if(n.returnValue===true){setTimeout(function(){k();},3000);}else{l({errorCode:n.errorCode,errorText:n.errorText})}},onFailure:function(n){l({errorCode:n.errorCode,errorText:n.errorText})}})};j.prototype.removeApplication=function(k,l,m){i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"removeApplication",parameters:{to:m.to},onSuccess:function(n){if(n.returnValue===true){k()}else{l({errorCode:n.errorCode,errorText:n.errorText})}},onFailure:function(n){l({errorCode:n.errorCode,errorText:n.errorText})}})};j.prototype.copyFile=function(k,l,m){f("Options: "+JSON.stringify(m,null,3));if(typeof m==="undefined"||typeof m.destination!=="string"||typeof m.source!=="string"){f("Bad options");l({errorCode:"BAD_PARAM",errorText:JSON.stringify(m,null,3)});return}
10
+ if(m.maxRedirection&&m.maxRedirection>5){f("Bad options");l({errorCode:"BAD_PARAM",errorText:"Redirect cannot be more that 5"});return}
11
+ i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/copyFile",parameters:{dest:m.destination,src:m.source,maxRedirection:m.maxRedirection},onSuccess:function(n){if(n.returnValue===true){f("SUCCESS");k()}else{f("Err: "+n.errorText);l({errorCode:n.errorCode,errorText:n.errorText})}},onFailure:function(n){f("Err: "+n.errorText);l({errorCode:n.errorCode,errorText:n.errorText})}})};j.prototype.removeFile=function(k,l,m){if(typeof m.file!=="string"){l({errorCode:"BAD_PARAM",errorText:"options.file is a mandatory parameter"});return}
12
+ var n={file:m.file};if(m.recursive===true){n.recursive=true}
13
+ i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/removeFile",parameters:n,onSuccess:function(o){f("onSuccess");if(o.returnValue===true){k()}else{l({errorCode:o.errorCode,errorText:o.errorText})}},onFailure:function(o){f("onFailure");l({errorCode:o.errorCode,errorText:o.errorText})}})};j.prototype.listFiles=function(k,l,m){var n={};if(m&&m.path){n.pathURI=m.path}else{n.pathURI="file://internal/"}
14
+ i.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"fs/listFiles",parameters:n,onSuccess:function(o){if(o.returnValue===true){var q=[];for(var p=0;p<o.files.length;++p){f(o.files[p]);var s={name:o.files[p].name,type:(o.files[p].type==="folder")?"folder":"file",size:o.files[p].size};q.push(s)}
15
+ var r={files:q,totalCount:o.totalCount};k(r)}else{l({errorCode:o.errorCode,errorText:o.errorText})}},onFailure:function(o){l({errorCode:o.errorCode,errorText:o.errorText})}})};j.prototype.getStorageInfo=function(k,l){i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/storageInfo",parameters:{},onSuccess:function(m){f("returned : "+JSON.stringify(m,null,3));if(m.returnValue===true){f("returned : "+JSON.stringify(m,null,3));var n={free:m.spaceInfo.freeSize,total:m.spaceInfo.totalSize,used:m.spaceInfo.usedSize,externalMemory:m.externalStorage};k(n)}else{l({errorCode:m.errorCode,errorText:m.errorText})}},onFailure:function(m){l({errorCode:m.errorCode,errorText:m.errorText})}})};j.prototype.mkdir=function(k,l,m){if(typeof m.path!=="string"){l({errorCode:"BAD_PARAM",errorText:"options.path is a mandatory parameter"});return}
16
+ var n={pathURI:m.path};i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/mkdir",parameters:n,onSuccess:function(o){f("onSuccess");if(o.returnValue===true){k()}else{l({errorCode:o.errorCode,errorText:o.errorText})}},onFailure:function(o){f("onFailure");l({errorCode:o.errorCode,errorText:o.errorText})}})};j.prototype.exists=function(k,l,m){if(typeof m.path!=="string"){f("BAD_PARAM");l({errorCode:"BAD_PARAM",errorText:"options.path is a mandatory parameter"});return}
17
+ var n={pathURI:m.path};i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/exists",parameters:n,onSuccess:function(o){f("onSuccess");if(o.returnValue===true){f("returned : "+JSON.stringify(o,null,3));var p={exists:o.exists};k(p)}else{l({errorCode:o.errorCode,errorText:o.errorText})}},onFailure:function(o){f("onFailure");l({errorCode:o.errorCode,errorText:o.errorText})}})};j.prototype.readFile=function(k,l,m){if(!m){l({errorCode:"BAD_PARAM",errorText:"options.path is a mandatory parameter"})}else{if(!m.path){l({errorCode:"BAD_PARAM",errorText:"options.path is a mandatory parameter"})}else{if(m.length&&(m.length>j.MAX_BUFFER_LENGTH||m.length<1)){l({errorCode:"BAD_PARAM",errorText:"length should be > 0 and < "+j.MAX_BUFFER_LENGTH})}else{if(m.position&&(m.position<0)){l({errorCode:"BAD_PARAM",errorText:"position should be > 0"})}else{var n={};n.path=m.path,n.length=m.length?m.length:j.MAX_BUFFER_LENGTH;n.position=m.position?m.position:0;n.encoding=m.encoding?m.encoding:"utf-8";i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/readFile",parameters:n,onSuccess:function(o){if(o.returnValue){if(n.encoding==="binary"){var p=o.data;var r=new Uint8Array(p.length);for(var q=0;q<p.length;++q){r[q]=p[q]}
18
+ k({data:r.buffer})}else{k({data:o.data})}}else{l({errorCode:o.errorCode,errorText:o.errorText})}},onFailure:function(o){l({errorCode:o.errorCode,errorText:o.errorText})}})}}}}};j.prototype.writeFile=function(m,r,y){if(!y){r({errorCode:"BAD_PARAM",errorText:"options.path is a mandatory parameter"})}else{if(!y.path){r({errorCode:"BAD_PARAM",errorText:"options.path is a mandatory parameter"})}else{if(!y.data){r({errorCode:"BAD_PARAM",errorText:"options.data is a mandatory parameter"})}else{if(y.mode&&(y.mode!=="truncate"&&y.mode!=="append"&&y.mode!=="position")){r({errorCode:"BAD_PARAM",errorText:"mode should be 'truncate'|'append'|'position'"})}else{if(y.position&&(y.position<0)){r({errorCode:"BAD_PARAM",errorText:"position should be > 0"})}else{if(y.offset&&(y.offset<0)){r({errorCode:"BAD_PARAM",errorText:"offset should be > 0"})}else{if(y.length&&(y.length>j.MAX_BUFFER_LENGTH||y.length<1)){r({errorCode:"BAD_PARAM",errorText:"length should be > 0 and < "+j.MAX_BUFFER_LENGTH})}else{if(y.encoding&&(y.encoding!=="utf8"&&y.encoding!=="binary"&&y.encoding!=="base64")){r({errorCode:"BAD_PARAM",errorText:"Invalid encoding: "+y.encoding})}else{f("REQUEST!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");var o={};o.path=y.path;o.mode=y.mode?y.mode:"truncate";o.position=y.position?y.position:0;o.encoding=y.encoding?y.encoding:"utf8";var p=y.offset?y.offset:0;if(o.encoding==="binary"){f("binary, size is: "+y.data.byteLength);var l=new Uint8Array(y.data);f("uint8View: "+l);var k=y.length?y.length:j.MAX_BUFFER_LENGTH;var t=[];var s=0;for(var q=p;q<l.length&&s<k;++q,s++){t[s]=l[q]}
19
+ f("array length: "+s);o.data=t;o.length=s;o.offset=0}else{if(o.encoding==="base64"){var k=y.length?y.length:j.MAX_BUFFER_LENGTH;f("base64, size is: "+y.data.length);var w=y.data;var x=window.atob(w);var v=x.substring(p,p+k);var u=new Uint8Array(v.length);for(q=0;q<v.length;q++){u[q]=v.charCodeAt(q)}
20
+ var t=[];for(var q=0;q<u.length;++q){t[q]=u[q]}
21
+ o.data=t;o.length=t.length;o.offset=0}else{var k=y.length?y.length:j.MAX_BUFFER_LENGTH;o.data=y.data.substring(p,p+k);o.length=o.data.length;o.offset=0}}
22
+ try{i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/writeFile",parameters:o,onSuccess:function(z){f("onSuccess!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");if(z.returnValue){m({written:z.written})}else{f("FAILED: "+z.errorText);r({errorCode:z.errorCode,errorText:z.errorText})}},onFailure:function(z){f("onFailure!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");f("FAILED: "+z.errorText);r({errorCode:z.errorCode,errorText:z.errorText})}})}catch(n){f("EXCEPTION!!!!!!!!!!!!!!!!!"+n)}}}}}}}}}};j.prototype.statFile=function(k,l,m){if(!m){l({errorCode:"BAD_PARAM",errorText:"options.path is a mandatory parameter"})}else{if(!m.path){l({errorCode:"BAD_PARAM",errorText:"options.path is a mandatory parameter"})}else{try{i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/statFile",parameters:{path:m.path},onSuccess:function(o){f("onSuccess!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");if(o.returnValue){k(o.stat)}else{f("FAILED: "+o.errorText);l({errorCode:o.errorCode,errorText:o.errorText})}},onFailure:function(o){f("onFailure!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");f("FAILED: "+o.errorText);l({errorCode:o.errorCode,errorText:o.errorText})}})}catch(n){f("EXCEPTION!!!!!!!!!!!!!!!!!"+n)}}}};j.prototype.removeAll=function(k,l,m){if(!m){l({errorCode:"BAD_PARAM",errorText:"options.device is a mandatory parameter"})}else{if(!m.device){l({errorCode:"BAD_PARAM",errorText:"options.device is a mandatory parameter"})}else{try{i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/removeAll",parameters:{device:m.device},onSuccess:function(o){f("onSuccess!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");if(o.returnValue){k()}else{f("FAILED: "+o.errorText);l({errorCode:o.errorCode,errorText:o.errorText})}},onFailure:function(o){f("onFailure!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");f("FAILED: "+o.errorText);l({errorCode:o.errorCode,errorText:o.errorText})}})}catch(n){f("EXCEPTION!!!!!!!!!!!!!!!!!"+n)}}}};j.prototype.fsync=function(k,l,m){try{var o={};if(m&&m.path){o.path=m.path}
23
+ i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/fsyncFile",parameters:o,onSuccess:function(p){f("onSuccess!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");if(p.returnValue){k()}else{f("FAILED: "+p.errorText);l({errorCode:p.errorCode,errorText:p.errorText})}},onFailure:function(p){f("onFailure!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");f("FAILED: "+p.errorText);l({errorCode:p.errorCode,errorText:p.errorText})}})}catch(n){f("EXCEPTION!!!!!!!!!!!!!!!!!"+n)}};j.prototype.moveFile=function(k,l,m){if(!m){l({errorCode:"BAD_PARAM",errorText:"options.path is a mandatory parameter"})}else{if(!m.oldPath){l({errorCode:"BAD_PARAM",errorText:"options.oldpath is a mandatory parameter"})}else{if(!m.newPath){l({errorCode:"BAD_PARAM",errorText:"options.newPath is a mandatory parameter"})}else{try{i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/moveFile",parameters:{oldPath:m.oldPath,newPath:m.newPath},onSuccess:function(o){f("onSuccess!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");if(o.returnValue){k()}else{f("FAILED: "+o.errorText);l({errorCode:o.errorCode,errorText:o.errorText})}},onFailure:function(o){f("onFailure!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");f("FAILED: "+o.errorText);l({errorCode:o.errorCode,errorText:o.errorText})}})}catch(n){f("EXCEPTION!!!!!!!!!!!!!!!!!"+n)}}}}};j.prototype.unzipFile=function(k,l,m){if(!m){l({errorCode:"BAD_PARAM",errorText:"options.path is a mandatory parameter"})}else{if(!m.zipPath){l({errorCode:"BAD_PARAM",errorText:"options.zipPath is a mandatory parameter"})}else{if(!m.targetPath){l({errorCode:"BAD_PARAM",errorText:"options.targetPath is a mandatory parameter"})}else{try{i.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/unzip",parameters:{zipPath:m.zipPath,targetPath:m.targetPath},onSuccess:function(o){f("onSuccess!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");if(o.returnValue){k()}else{f("FAILED: "+o.errorText);l({errorCode:o.errorCode,errorText:o.errorText})}},onFailure:function(o){f("onFailure!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");f("FAILED: "+o.errorText);l({errorCode:o.errorCode,errorText:o.errorText})}})}catch(n){f("EXCEPTION!!!!!!!!!!!!!!!!!"+n)}}}}};b.exports=j});Storage=cordova.require("cordova/plugin/storage");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/video",function(e,d,f){function g(h){}var a;if(window.PalmSystem){g("Window.PalmSystem Available");a=e("cordova/plugin/webos/service")}else{a={Request:function(h,i){g(h+" invoked. But I am a dummy because PalmSystem is not available");if(typeof i.onFailure==="function"){i.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var b=function(){};function c(i,j,h){if(i.errorCode===undefined||i.errorCode===null){i.errorCode=j}if(i.errorText===undefined||i.errorText===null){i.errorText=h}}b.prototype.getVideoStatus=function(h,i){g("getVideoStatus: ");a.Request("luna://com.webos.service.tv.signage/",{method:"getVideoSize",onSuccess:function(j){g("getVideoStatus: On Success");if(j.returnValue===true){if(h&&typeof h==="function"){var k={};k.source=j.videoSize.source;h(k)}}},onFailure:function(j){g("getVideoStatus: On Failure");delete j.returnValue;if(i&&typeof i==="function"){c(j,"VGVS","Video.getVideoStatus returns failure.");i(j)}}});g("Video.getVideoStatus Done")};b.currentVideo={uri:null,source:null,tagId:null};b.prototype.setVideoSize=function(i,j,k){g("setVideoSize: "+JSON.stringify(k));if(k.source===undefined||typeof k.source.x!=="number"||typeof k.source.y!=="number"||typeof k.source.width!=="number"||typeof k.source.height!=="number"||isNaN(k.source.x)||isNaN(k.source.y)||isNaN(k.source.width)||isNaN(k.source.height)||k.source.x<0||k.source.y<0||k.source.width<=0||k.source.height<=0){if(j&&typeof j==="function"){var h={};c(h,"VSVS","Video.setVideoSize returns failure. out of range or type error.");j(h)}return}a.Request("luna://com.webos.service.tv.signage/",{method:"getVideoSize",onSuccess:function(l){g("setVideoSize: On Success");if(l.returnValue===true){var p={};p.x=l.videoSize.destination.x;p.y=l.videoSize.destination.y;p.width=l.videoSize.destination.width;p.height=l.videoSize.destination.height;var m=document.getElementsByTagName("video");var o=false;for(var n=0;n<m.length;n++){if(m[n].currentTime>0){o=true;if(b.currentVideo.uri!==m[n].src||(m[n].id!==null&&m[n].id!==undefined&&b.currentVideo.tagId!==null&&b.currentVideo.tagId!==undefined&&b.currentVideo.tagId!==m[n].id)){b.currentVideo.uri=m[n].src;b.currentVideo.source=l.videoSize.source;b.currentVideo.tagId=m[n].id}break}}if(o===false){a.Request("luna://com.webos.service.eim/",{method:"getCurrentInput",parameters:{},onSuccess:function(r){if(r.returnValue===true&&b.currentVideo.uri!==r.mainInputSourceId||(m[0].id!==null&&m[0].id!==undefined&&b.currentVideo.tagId!==null&&b.currentVideo.tagId!==undefined&&b.currentVideo.tagId!==m[0].id)){b.currentVideo.uri=r.mainInputSourceId;b.currentVideo.tagId=(m[0]!==null&&m[0].id!==null&&m[0].id!==undefined?m[0].id:null);a.Request("luna://com.webos.service.tv.signage/",{method:"getVideoSize",onSuccess:function(v){g("setVideoSize: On Success 1");if(v.returnValue===true){b.currentVideo.source=v.videoSize.source;if(v.videoSize.source.width===0&&v.videoSize.source.height===0){b.currentVideo={uri:null,source:null,tagId:null};var u={};c(u,"VSVS","Video.setVideoSize returns failure. Not ready to setVideoSize.");j(u);return}else{if(b.currentVideo.uri===null||b.currentVideo.source===null||(k.source.width+k.source.x)>(b.currentVideo.source.x+b.currentVideo.source.width)||(k.source.height+k.source.y)>(b.currentVideo.source.y+b.currentVideo.source.height)){var t={};c(t,"VSVS","Video.setVideoSize returns failure. out of range or type error. ("+b.currentVideo.source.width+" : "+b.currentVideo.source.height+")");j(t);return}}a.Request("luna://com.webos.service.tv.signage/",{method:"setVideoSize",parameters:{videoSize:{source:{x:k.source.x,y:k.source.y,width:k.source.width,height:k.source.height},destination:{x:p.x,y:p.y,width:p.width,height:p.height}}},onSuccess:function(w){g("setVideoSize: On Success 2");if(w.returnValue===true&&i&&typeof i==="function"){i();return}},onFailure:function(w){g("setVideoSize: On Failure 2");delete w.returnValue;if(j&&typeof j==="function"){c(w,"VSVS","Video.setVideoSize returns failure. Can't current video source size.");j(w);return}}})}}})}else{if(b.currentVideo.uri===null||b.currentVideo.source===null||(k.source.width+k.source.x)>(b.currentVideo.source.x+b.currentVideo.source.width)||(k.source.height+k.source.y)>(b.currentVideo.source.y+b.currentVideo.source.height)){var s={};c(s,"VSVS","Video.setVideoSize returns failure. out of range or type error. ("+b.currentVideo.source.width+" : "+b.currentVideo.source.height+")");j(s);return}a.Request("luna://com.webos.service.tv.signage/",{method:"setVideoSize",parameters:{videoSize:{source:{x:k.source.x,y:k.source.y,width:k.source.width,height:k.source.height},destination:{x:p.x,y:p.y,width:p.width,height:p.height}}},onSuccess:function(t){g("setVideoSize: On Success 3");if(t.returnValue===true&&i&&typeof i==="function"){i();return}},onFailure:function(t){g("setVideoSize: On Failure 3");delete t.returnValue;if(j&&typeof j==="function"){c(t,"VSVS","Video.setVideoSize returns failure. Can't current video source size.");j(t);return}}})}},onFailure:function(){}})}else{if(b.currentVideo.uri===null||b.currentVideo.source===null||(k.source.width+k.source.x)>(b.currentVideo.source.x+b.currentVideo.source.width)||(k.source.height+k.source.y)>(b.currentVideo.source.y+b.currentVideo.source.height)){var q={};c(q,"VSVS","Video.setVideoSize returns failure. out of range or type error. ("+b.currentVideo.source.width+" : "+b.currentVideo.source.height+")");j(q);return}a.Request("luna://com.webos.service.tv.signage/",{method:"setVideoSize",parameters:{videoSize:{source:{x:k.source.x,y:k.source.y,width:k.source.width,height:k.source.height},destination:{x:p.x,y:p.y,width:p.width,height:p.height}}},onSuccess:function(r){g("setVideoSize: On Success 4");if(r.returnValue===true&&i&&typeof i==="function"){i();return}},onFailure:function(r){g("setVideoSize: On Failure 4");delete r.returnValue;if(j&&typeof j==="function"){c(r,"VSVS","Video.setVideoSize returns failure. Can't current video source size.");j(r);return}}})}}},onFailure:function(l){g("setVideoSize: On Failure");delete l.returnValue;if(j&&typeof j==="function"){c(l,"VSVS","Video.setVideoSize returns failure.");j(l);return}}});g("Video.setVideoSize Done")};f.exports=b});Video=cordova.require("cordova/plugin/video");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/configuration",function(e,t,r){function n(e){}function o(e,t,r){(void 0===e.errorCode||null===e.errorCode)&&(e.errorCode=t),(void 0===e.errorText||null===e.errorText)&&(e.errorText=r)}function i(e){null===a?u.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion"]},onSuccess:function(t){n("getPlatformInfo: onSuccess");var r=t.sdkVersion.split(".");a=r.length>=1&&"1"===r[0]?1:r.length>=1&&"2"===r[0]?2:0,delete t.returnValue,e(a)},onFailure:function(t){n("getPlatformInfo: onFailure"),delete t.returnValue,a=0,e(a)}}):e(a)}var u;window.PalmSystem?(n("Window.PalmSystem Available"),u=e("cordova/plugin/webos/service")):u={Request:function(e,t){n(e+" invoked. But I am a dummy because PalmSystem is not available"),"function"==typeof t.onFailure&&t.onFailure({returnValue:!1,errorText:"PalmSystem Not Available. Cordova is not installed?"})}};var s=function(){};s.PictureMode={VIVID:"vivid",STANDARD:"normal",APS:"eco",CINEMA:"cinema",GAME:"game",SPORTS:"sports",EXPERT1:"expert1",EXPERT2:"expert2"},s.AppMode={LOCAL:"local",USB:"usb",REMOTE:"remote"};var a=null;s.prototype.setPictureMode=function(e,t,r){n("setPictureMode: "+JSON.stringify(r)),u.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"picture",settings:{pictureMode:r.mode}},onSuccess:function(t){n("setPictureMode: On Success"),t.returnValue===!0&&"function"==typeof e&&e()},onFailure:function(e){n("setPictureMode: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CSPM","Configuration.setPictureMode returns failure."),t(e))}}),n("Configuration.setPictureMode Done")},s.prototype.getPictureMode=function(e,t){n("getPictureMode: "),u.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"picture",keys:["pictureMode"]},onSuccess:function(t){if(n("getPictureMode: On Success"),t.returnValue===!0&&"function"==typeof e){var r={};r.mode=t.settings.pictureMode,e(r)}},onFailure:function(e){n("getPictureMode: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CGPM","Configuration.getPictureMode returns failure."),t(e))}}),n("Configuration.getPictureMode Done")},s.prototype.setPictureProperty=function(e,t,r){n("setPictureProperty: "+JSON.stringify(r)),i(function(i){var s={};for(var a in r)if(void 0!==a&&null!==a)if(s[a]=r[a],"tint"===a||"colorTemperature"===a)s[a]-=50;else if("blackLevel"===a){if(s[a]={unknown:r[a]},"low"!==r[a]&&"high"!==r[a]){n("setPictureProperty: gamma value error "+JSON.stringify(r));var c={};return o(c,"CSPP","Configuration.setPictureProperty, There is No matched item : blackLevel."),void t(c)}}else"gamma"===a&&2===i&&"high"===r[a]&&(s[a]="high1");n(JSON.stringify(s)),u.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"picture",settings:s},onSuccess:function(t){n("setPictureProperty: On Success"),t.returnValue===!0&&"function"==typeof e&&e()},onFailure:function(e){n("setPictureProperty: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CSPP","Configuration.setPictureProperty returns failure."),t(e))}}),n("Configuration.setPictureProperty Done")})},s.prototype.getPictureProperty=function(e,t){n("getPictureProperty: "),u.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"picture",keys:["brightness","contrast","color","tint","backlight","sharpness","hSharpness","vSharpness","colorTemperature","dynamicContrast","superResolution","colorGamut","dynamicColor","noiseReduction","mpegNoiseReduction","blackLevel","gamma"]},onSuccess:function(t){if(n("getPictureProperty: On Success"),t.returnValue===!0&&"function"==typeof e){var r={};for(var o in t.settings)void 0!==o&&null!==o&&(r[o]=isNaN(t.settings[o])?t.settings[o]:Number(t.settings[o]),"tint"===o||"colorTemperature"===o?r[o]+=50:"blackLevel"===o&&(r[o]=t.settings[o].unknown));e(r)}},onFailure:function(e){n("getPictureProperty: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CGPP","Configuration.getPictureProperty returns failure."),t(e))}}),n("Configuration.getPictureProperty Done")};var c={alias:"signageName"};s.prototype.setProperty=function(e,t,r){n("setProperty: "+JSON.stringify(r));var i=JSON.parse(r),s={};for(var a in i)void 0!==c[a]&&(s[c[a]]=i[a]);u.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:s},onSuccess:function(t){n("setProperty: On Success"),t.returnValue===!0&&"function"==typeof e&&e()},onFailure:function(e){n("setProperty: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CSP","Configuration.setProperty returns failure."),t(e))}}),n("Configuration.setProperty Done")},s.prototype.getProperty=function(e,t,r){n("getProperty: ");var i=JSON.parse(r),s=i.keys,a=[];for(var f in s)null!==f&&void 0!==f&&(n("key"+s[f]),a.push(c[s[f]]));n(a),u.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:a},onSuccess:function(t){if(n("getProperty: On Success"),t.returnValue===!0&&"function"==typeof e){var r={};for(var o in s)(null!==o||void 0!==o)&&(n("key"+s[o]),(void 0!==t.settings[c[s[o]]]||null!==t.settings[c[s[o]]])&&(r[s[o]]=t.settings[c[s[o]]]));e(JSON.stringify(r))}},onFailure:function(e){n("getProperty: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CGP","Configuration.getProperty returns failure."),t(e))}}),n("Configuration.getProperty Done")},s.prototype.setCurrentTime=function(e,t,r){n("setCurrentTime: "+JSON.stringify(r));var i=new Date(r.year,r.month-1,r.day,r.hour,r.minute,r.sec);if((r.year<2e3||r.year>2037||i.getFullYear()!==r.year||i.getMonth()!==r.month-1||i.getDate()!==r.day||i.getHours()!==r.hour||i.getMinutes()!==r.minute||i.getSeconds()!==r.sec)&&"function"==typeof t){n("setCurrentTime: out of range or invalid parameter type");var s={};return o(s,"CSCT","Configuration.setCurrentTime returns failure for out of range."),void t(s)}n("setCurrentTime: "+i);var a=i.getTime()/1e3;u.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"setSystemTime",parameters:{utc:a,ntp:r.ntp},onSuccess:function(){n("setCurrentTime: On Success"),"function"==typeof e&&e()},onFailure:function(r){n("setCurrentTime: On Failure"),u.Request("luna://com.palm.systemservice/time/",{method:"setSystemTime",parameters:{utc:a},onSuccess:function(){n("setCurrentTime: On Success"),"function"==typeof e&&e()},onFailure:function(e){n("setCurrentTime: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CSCT","Configuration.setCurrentTime returns failure."),t(e))}})}}),n("Configuration.setCurrentTime Done")},s.prototype.getCurrentTime=function(e,t){n("getCurrentTime: "),u.Request("luna://com.palm.systemservice/time/",{method:"getEffectiveBroadcastTime",onSuccess:function(r){if(n("getCurrentTime : On Success"),r.returnValue===!0){var i={},s=new Date(1e3*r.adjustedUtc);i.year=s.getFullYear(),i.month=s.getMonth()+1,i.day=s.getDate(),i.hour=s.getHours(),i.minute=s.getMinutes(),i.sec=s.getSeconds(),u.Request("luna://com.palm.systemservice/",{method:"getPreferences",parameters:{keys:["useNetworkTime"]},onSuccess:function(u){n("getPreferences : On Success"),u.returnValue===!0?(i.ntp=u.useNetworkTime,"function"==typeof e&&e(i)):"function"==typeof t&&(o(r,"CGCT","Configuration.getCurrentTime returns failure."),t(r))},onFailure:function(e){n("getCurrentTime: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CGCT","Configuration.getCurrentTime returns failure."),t(e))}})}else"function"==typeof t&&(o(r,"CGCT","Configuration.getCurrentTime returns failure."),t(r))},onFailure:function(e){n("getCurrentTime: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CGCT","Configuration.getCurrentTime returns failure."),t(e))}}),n("Configuration.getCurrentTime Done")},s.prototype.restartApplication=function(e,t){n("restartApp: "),u.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"restart_application",onSuccess:function(t){n("restartApp: On Success"),"function"==typeof e&&e(t)},onFailure:function(e){n("restartApp: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CRA","Configuration.restartApp returns failure."),t(e))}}),n("Configuration.restartApp Done")},s.prototype.getServerProperty=function(e,t){n("getServerProperty: "),u.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["serverIpPort","siServerIp","secureConnection","appLaunchMode","fqdnAddr","fqdnMode","appType"]},onSuccess:function(t){if(n("getPictureProperty: On Success"),t.returnValue===!0&&"function"==typeof e){var r={};r.serverIp=t.settings.siServerIp,r.serverPort=parseInt(t.settings.serverIpPort,10),r.secureConnection="off"===t.settings.secureConnection?!1:!0,r.appLaunchMode=t.settings.appLaunchMode,r.fqdnMode="off"===t.settings.fqdnMode?!1:!0,r.fqdnAddr=t.settings.fqdnAddr,r.appType=t.settings.appType,e(r)}},onFailure:function(e){n("getServerProperty: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CGSP","Configuration.getServerProperty returns failure."),t(e))}}),n("Configuration.getServerProperty Done")},s.prototype.setServerProperty=function(e,t,r){if(n("setServerProperty: "+JSON.stringify(r)),(void 0===r||"string"!=typeof r.serverIp||/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(r.serverIp)===!1||isNaN(r.serverPort)||r.serverPort<0||r.serverPort>65535||"number"!=typeof r.serverPort||"boolean"!=typeof r.secureConnection||"string"!=typeof r.appLaunchMode||r.appLaunchMode!==s.AppMode.USB&&r.appLaunchMode!==s.AppMode.LOCAL&&r.appLaunchMode!==s.AppMode.REMOTE||"boolean"!=typeof r.fqdnMode||"string"!=typeof r.fqdnAddr||"string"==typeof r.appType&&"zip"!==r.appType&&"ipk"!==r.appType)&&"function"==typeof t){var i={};return o(i,"CSSP","Configuration.setServerProperty, Invalid parameters."),n("options.serverIp : "+typeof r.serverIp+" options.serverPort : "+typeof r.serverPort+" options.secureConnection : "+typeof r.secureConnection+" options.appLaunchMode : "+typeof r.appLaunchMode+" options.fqdnMode : "+typeof r.fqdnMode+" options.fqdnAddr : "+r.fqdnAddr),void t(i)}var a={};a.siServerIp=r.serverIp,a.serverIpPort=r.serverPort+"",a.secureConnection=r.secureConnection===!0?"on":"off",a.appLaunchMode=r.appLaunchMode,a.fqdnMode=r.fqdnMode===!0?"on":"off",a.fqdnAddr=r.fqdnAddr,a.appType="string"==typeof r.appType?r.appType:"zip",n(JSON.stringify(a)),u.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:a},onSuccess:function(t){n("setServerProperty: On Success"),t.returnValue===!0&&"function"==typeof e&&e()},onFailure:function(e){n("setServerProperty: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CSSP","Configuration.setServerProperty returns failure."),t(e))}}),n("Configuration.setServerProperty Done")},s.prototype.clearCache=function(e,t){n("clearCache: "),u.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"clearCache",onSuccess:function(t){n("clearCache: On Success"),"function"==typeof e&&e()},onFailure:function(e){n("clearCache: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CCC","Configuration.clearCache returns failure."),t(e))}}),n("Configuration.clearCache Done")},s.prototype.getTimeZoneList=function(e,t){n("getTimeZoneList: "),u.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"getTimeZoneList",onSuccess:function(t){n("getTimeZoneList: On Success"),t.returnValue===!0&&"function"==typeof e&&(delete t.returnValue,e(t))},onFailure:function(e){n("getTimeZoneList: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CGTL","Configuration.getTimeZoneList returns failure."),t(e))}}),n("Configuration.getTimeZoneList Done")},s.prototype.getTimeZone=function(e,t){n("getTimeZone: "),u.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"getTimeZone",onSuccess:function(t){n("getTimeZone: On Success"),t.returnValue===!0&&"function"==typeof e&&(delete t.returnValue,e(t))},onFailure:function(e){n("getTimeZone: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CGTZ","Configuration.getTimeZone returns failure."),t(e))}}),n("Configuration.getTimeZone Done")},s.prototype.setTimeZone=function(e,t,r){n("setTimeZone: "),u.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"setTimeZone",parameters:r,onSuccess:function(t){n("setTimeZone: On Success"),t.returnValue===!0&&"function"==typeof e&&(delete t.returnValue,e(t))},onFailure:function(e){n("setTimeZone: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CSTZ","Configuration.setTimeZone returns failure."),t(e))}}),n("Configuration.setTimeZone Done")},s.prototype.debug=function(e,t,r){n("debug: "+r.enabled),u.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"debug",parameters:{enabled:r.enabled},onSuccess:function(t){n("debug: On Success"),"function"==typeof e&&e(t)},onFailure:function(e){n("debug: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"CD","Configuration.debug returns failure."),t(e))}}),n("Configuration.debug Done")},r.exports=s}),Configuration=cordova.require("cordova/plugin/configuration");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/deviceInfo",function(e,o,n){function t(e){}function r(e,o,n){(void 0===e.errorCode||null===e.errorCode)&&(e.errorCode=o),(void 0===e.errorText||null===e.errorText)&&(e.errorText=n)}var c;window.PalmSystem?(console.log("Window.PalmSystem Available"),c=e("cordova/plugin/webos/service")):c={Request:function(e,o){console.log(e+" invoked. But I am a dummy because PalmSystem is not available"),"function"==typeof o.onFailure&&o.onFailure({returnValue:!1,errorText:"PalmSystem Not Available. Cordova is not installed?"})}};var i=function(){};i.prototype.getNetworkInfo=function(e,o){t("getNetworkInfo: "),c.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"getNetworkInfo",parameters:{},onSuccess:function(o){"function"==typeof e&&(delete o.returnValue,e(o))},onFailure:function(n){t("getNetworkInfo: onFailure"),-1!==n.errorText.indexOf("Unknown method")?c.Request("luna://com.palm.connectionmanager",{method:"getstatus",parameters:{},onSuccess:function(o){t("getNetworkInfo: onSuccess"),delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){t("getNetworkInfo: onFailure"),delete e.returnValue,"function"==typeof o&&o(e)}}):(delete n.returnValue,"function"==typeof o&&o(n))}}),t("DeviceInfo.getNetworkInfo Done")},i.prototype.setNetworkInfo=function(e,o,n){t("setNetworkInfo: "),c.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"setNetworkInfo",parameters:n,onSuccess:function(o){t("setNetworkInfo: onSuccess"),"function"==typeof e&&e()},onFailure:function(e){t("setNetworkInfo: onFailure"),delete e.returnValue,"function"==typeof o&&o(e)}}),t("DeviceInfo.setNetworkInfo Done")},i.prototype.getBeaconInfo=function(e,o){t("getBeaconInfo: "),c.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"getBeaconInfo",parameters:{},onSuccess:function(o){t("getBeaconInfo: onSuccess"),delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){t("getBeaconInfo: onFailure"),delete e.returnValue,"function"==typeof o&&o(e)}}),t("DeviceInfo.getBeaconInfo Done")},i.prototype.setBeaconInfo=function(e,o,n){t("setBeaconInfo: ");var i=function(e){if("undefined"==typeof e||null===e||32!=e.length)return!1;var o=new RegExp(/^[a-fA-F0-9]*$/g);return null!==o.exec(e)?!0:!1};if(n.enabled===!0&&(i(n.uuid)===!1||isNaN(n.major)||n.major<0||n.major>65535||isNaN(n.minor)||n.minor<0||n.minor>65535)){if(t("setBeaconInfo: options are invalid."),"function"==typeof o){var s={};r(s,"DSBI","DeviceInfo.setBeaconInfo. Invalid options."),o(s)}}else c.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"setBeaconInfo",parameters:n,onSuccess:function(o){t("setBeaconInfo: onSuccess"),"function"==typeof e&&e()},onFailure:function(e){t("setBeaconInfo: onFailure"),delete e.returnValue,"function"==typeof o&&o(e)}}),t("DeviceInfo.setBeaconInfo Done")},i.prototype.getSoftApInfo=function(e,o){t("getSoftApInfo: "),c.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"getSoftApInfo",parameters:{},onSuccess:function(o){t("getSoftApInfo: onSuccess"),delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){t("getSoftApInfo: onFailure"),delete e.returnValue,"function"==typeof o&&o(e)}}),t("DeviceInfo.getSoftApInfo Done")},i.prototype.setSoftApInfo=function(e,o,n){if(t("setSoftApInfo: "),n.enabled===!0&&(null!==n.ssid&&n.ssid.length>32||null!==n.securityKey&&6!==n.securityKey.length)){if(t("setSoftApInfo: options are invalid."),"function"==typeof o){var i={};r(i,"DSSI","DeviceInfo.setSoftApInfo. Invalid options."),o(i)}}else c.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"setSoftApInfo",parameters:n,onSuccess:function(o){t("setSoftApInfo: onSuccess"),"function"==typeof e&&e()},onFailure:function(e){t("setSoftApInfo: onFailure"),delete e.returnValue,"function"==typeof o&&o(e)}}),t("DeviceInfo.setSoftApInfo Done")},i.prototype.getWifiList=function(e,o){t("getWifiList: "),c.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"getWifiList",parameters:{},onSuccess:function(o){t("getWifiList: onSuccess"),delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){t("getWifiList: onFailure"),delete e.returnValue,"function"==typeof o&&o(e)}}),t("DeviceInfo.getWifiList Done")},i.prototype.connectWifi=function(e,o,n){t("connectWifi: "),c.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"connectWifi",parameters:n,onSuccess:function(o){t("connectWifi: onSuccess"),"function"==typeof e&&e()},onFailure:function(e){t("connectWifi: onFailure"),delete e.returnValue,"function"==typeof o&&o(e)}}),t("DeviceInfo.connectWifi Done")},i.prototype.startWps=function(e,o,n){t("startWps: "),c.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"startWps",parameters:n,onSuccess:function(o){t("startWps: onSuccess"),delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){t("startWps: onFailure"),delete e.returnValue,"function"==typeof o&&o(e)}}),t("DeviceInfo.startWps Done")},i.prototype.stopWps=function(e,o){t("stopWps: "),c.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"stopWps",parameters:{},onSuccess:function(o){t("stopWps: onSuccess"),"function"==typeof e&&e()},onFailure:function(e){t("stopWPS: onFailure"),delete e.returnValue,"function"==typeof o&&o(e)}}),t("DeviceInfo.stopWps Done")},i.prototype.getNetworkMacInfo=function(e,o){t("getNetworkMacInfo: "),c.Request("luna://com.webos.service.tv.signage",{method:"getinfo",parameters:{},onSuccess:function(o){t("getNetworkMacInfo: onSuccess"),delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){t("getNetworkMacInfo: onFailure"),delete e.returnValue,"function"==typeof o&&o(e)}}),t("DeviceInfo.getNetworkMacInfo Done")},i.prototype.getPlatformInfo=function(e,o){t("getPlatformInfo: "),c.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["modelName","serialNumber","firmwareVersion","hardwareVersion","sdkVersion"]},onSuccess:function(o){t("getPlatformInfo: onSuccess"),o.manufacturer="LGE",o.sdkVersion="1.3.22102",delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){t("getPlatformInfo: onFailure"),delete e.returnValue,"function"==typeof o&&o(e)}}),t("DeviceInfo.getPlatformInfo Done")},i.prototype.getSystemUsageInfo=function(e,o,n){t("getSystemUsageInfo: "),c.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"getSystemUsageInfo",parameters:{cpus:n.cpus,memory:n.memory},onSuccess:function(n){if(n.returnValue===!0){var t={};"undefined"!=typeof n.memory&&(t.memory=n.memory),"undefined"!=typeof n.cpus&&(t.cpus=n.cpus),"function"==typeof e&&e(t)}else"function"==typeof o&&o({errorCode:n.errorCode,errorText:n.errorText})},onFailure:function(e){"function"==typeof o&&o({errorCode:e.errorCode,errorText:e.errorText})}}),t("DeviceInfo.getSystemUsageInfo Done")},n.exports=i}),DeviceInfo=cordova.require("cordova/plugin/deviceInfo");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/broadcast",function(e,t,n){var r=e("cordova/plugin/webos/service"),o=e("cordova/utils"),a=e("cordova/argscheck"),i=function(e){this.isATSC=!1,this.tokenChannelChange=0,this.tokenSignalState=0,this.broadcastDivId=null,this.broadcastElement=null,this.currentInput=null,this.currentSource=null,this.isLastInput=!0,this.isLastChannel=!0;var t=this;r.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["atsc"]},onSuccess:function(e){t.isATSC=e.atsc},onFailure:function(e){}})};i.prototype.onchannelchange=function(e){},i.prototype.onsignalstatuschange=function(e){},i.prototype.initialize=function(e,t,n){a.checkArgs("fFo","broadcastCordova.initialize",arguments);var r=o.clone(n);if(this.broadcastDivId=document.getElementById(r.divId),r.broadcastPlugin=this,1!=r.isLastInput&&r.src){if(this.isLastInput=!1,-1!=r.src.indexOf("tv://"))1==r.isLastChannel?(this.isLastChannel=!0,r.type="service/webos-broadcast"):(this.isLastChannel=!1,r.type="service/webos-broadcast-standalone"),this.currentInput="tv",this.currentSource=r.src.substr(5);else{r.type="service/webos-external";var i=r.src.split(":");this.currentInput=i[1].substr(2).toLowerCase(),this.currentSource=i[2]}s(r),e&&e()}else this.isLastInput=!0,u(e,t,r)},i.prototype.channelUp=function(e,t){a.checkArgs("fF","broadcastCordova.channelUp",arguments);var n={broadcastId:this.broadcastElement.mediaId};r.Request("luna://com.webos.service.tv.broadcast",{method:"changeChannelUp",parameters:n,onSuccess:function(t){e&&e()},onFailure:function(e){delete e.returnValue,t&&t(e)}})},i.prototype.channelDown=function(e,t){a.checkArgs("fF","broadcastCordova.channelDown",arguments);var n={broadcastId:this.broadcastElement.mediaId};r.Request("luna://com.webos.service.tv.broadcast",{method:"changeChannelDown",parameters:n,onSuccess:function(t){e&&e()},onFailure:function(e){delete e.returnValue,t&&t(e)}})},i.prototype.setChannel=function(e,t,n){a.checkArgs("fFo","broadcastCordova.setChannel",arguments);var o={broadcastId:this.broadcastElement.mediaId,channelId:n.id};r.Request("luna://com.webos.service.tv.broadcast",{method:"changeChannel",parameters:o,onSuccess:function(t){e&&e()},onFailure:function(e){delete e.returnValue,t&&t(e)}})},i.prototype.getCurrentChannel=function(e,t){a.checkArgs("fF","broadcastCordova.getCurrentChannel",arguments);var n={broadcastId:this.broadcastElement.mediaId,subscribe:!1};r.Request("luna://com.webos.service.tv.broadcast",{method:"getCurrentChannel",parameters:n,onSuccess:function(t){var n={};n=S(t.channel,"api"),e&&e(n)},onFailure:function(e){delete e.returnValue,t&&t(e)}})},i.prototype.getSignalStatus=function(e,t){a.checkArgs("fF","broadcastCordova.getSignalStatus",arguments);var n;"tv"==this.currentInput?(n={broadcastId:this.broadcastElement.mediaId,subscribe:!1},r.Request("luna://com.webos.service.tv.broadcast",{method:"getChannelState",parameters:n,onSuccess:function(t){var n=t.channelState;n.screensaverType=n.channelScreensaverType,delete n.channelScreensaverType,e&&e(n)},onFailure:function(e){delete e.returnValue,t&&t(e)}})):(n={externalInputId:this.broadcastElement.mediaId,subscribe:!1},r.Request("luna://com.webos.service.tv.externaldevice/input/",{method:"getSignalState",parameters:n,onSuccess:function(t){e&&e(t.signalState)},onFailure:function(e){delete e.returnValue,t&&t(e)}}))},i.prototype.getCurrentProgram=function(e,t,n){a.checkArgs("fFo","broadcastCordova.getCurrentProgram",arguments),r.Request("luna://com.palm.systemservice/time",{method:"getEffectiveBroadcastTime",parameters:{},onSuccess:function(r){var o={};o.id=n.id,o.startTime=r.localtime,o.endTime=r.localtime,o.request="nowInfo",f(e,t,o)},onFailure:function(e){delete e.returnValue,t&&t(e)}})},i.prototype.getNextProgram=function(e,t,n){a.checkArgs("fFo","broadcastCordova.getNextProgram",arguments),r.Request("luna://com.palm.systemservice/time",{method:"getEffectiveBroadcastTime",parameters:{},onSuccess:function(r){var o={};o.id=n.id,o.startTime=r.localtime,o.endTime=r.localtime,o.request="nextInfo",f(e,t,o)},onFailure:function(e){delete e.returnValue,t&&t(e)}})},i.prototype.getProgramCount=function(e,t,n){a.checkArgs("fFo","broadcastCordova.getProgramCount",arguments);var r=o.clone(n);r.request="count",f(e,t,r)},i.prototype.getProgramList=function(e,t,n){a.checkArgs("fFo","broadcastCordova.getProgramList",arguments);var r=o.clone(n);r.request="list",f(e,t,r)},i.prototype.getChannelCount=function(e,t,n){a.checkArgs("fFo","broadcastCordova.getChannelCount",arguments);var o={from:"com.webos.service.tv.channel.dblist:1",select:[""],where:[{prop:"channelType",op:"=",val:n.type}],filter:[{prop:"Invisible",op:"=",val:!1}]};r.Request("luna://com.palm.db/",{method:"search",parameters:{query:o},onSuccess:function(t){var n={};n.count=t.results.length,e&&e(n)},onFailure:function(e){delete e.returnValue,t&&t(e)}})},i.prototype.getChannelList=function(e,t,n){a.checkArgs("fFo","broadcastCordova.getChannelList",arguments);var o=n.startIndex-1;0>o&&(o=0);var i=o+n.count,c={from:"com.webos.service.tv.channel.dblist:1",select:["channelId","channelName","channelMode","channelNumber","channelType","skipped","locked","descrambled","scrambled"],where:[{prop:"channelType",op:"=",val:n.type}],filter:[{prop:"Invisible",op:"=",val:!1}],limit:i};r.Request("luna://com.palm.db/",{method:"search",parameters:{query:c},onSuccess:function(t){var n={};n.channel=[];var r=t.results.length-o;if(r>0)for(var a=0;r>a;a++)n.channel[a]=S(t.results[a+o],"db8");e&&e(n)},onFailure:function(e){delete e.returnValue,t&&t(e)}})},i.prototype.getChannelListByName=function(e,t,n){a.checkArgs("fFo","broadcastCordova.getChannelListByName",arguments);var o={from:"com.webos.service.tv.channel.dblist:1",select:["channelId","channelName","channelMode","channelNumber","channelType","skipped","locked","descrambled","scrambled"],where:[{prop:"channelName",op:"%",val:n.name}],filter:[{prop:"Invisible",op:"=",val:!1}]};n.type&&o.filter.push({prop:"channelType",op:"=",val:n.type}),r.Request("luna://com.palm.db/",{method:"search",parameters:{query:o},onSuccess:function(t){var n={};if(n.channel=[],t.results.length>0)for(var r=0;r<t.results.length;r++)n.channel[r]=S(t.results[r],"db8");e&&e(n)},onFailure:function(e){delete e.returnValue,t&&t(e)}})},i.prototype.setInput=function(e){a.checkArgs("o","broadcastCordova.setInput",arguments);var t=!1;if(-1!=e.src.indexOf("tv://"))1==this.isLastChannel?e.type="service/webos-broadcast":e.type="service/webos-broadcast-standalone",this.currentInput="tv",this.currentSource=e.src.substr(5);else{e.type="service/webos-external";var n=e.src.split(":");this.currentInput=n[1].substr(2).toLowerCase(),this.currentSource=n[2]}for(var r=0;r<this.broadcastElement.childNodes.length;r++)"SOURCE"==this.broadcastElement.childNodes[r].nodeName&&(this.broadcastElement.childNodes[r].src=e.src,this.broadcastElement.childNodes[r].type=e.type,this.broadcastElement.load(),t=!0);return t},i.prototype.addEventListener=function(e,t,n){"channelchange"==e?this.tokenChannelChange=r.Request("luna://com.webos.service.tv.broadcast",{method:"getCurrentChannel",parameters:{broadcastId:this.broadcastElement.mediaId,subscribe:!1},onSuccess:function(e){var n=e.channel;t&&t(n)},onFailure:function(e){}}):"signalstatus"==e&&("tv"==this.currentInput?this.tokenSignalState=r.Request("luna://com.webos.service.tv.broadcast",{method:"getChannelState",parameters:{broadcastId:this.broadcastElement.mediaId,subscribe:!1},onSuccess:function(e){var n=e.channelState;n.screensaverType=n.channelScreensaverType,delete n.channelScreensaverType,t&&t(n)},onFailure:function(e){}}):this.tokenSignalState=r.Request("luna://com.webos.service.tv.externaldevice/input/",{method:"getSignalState",parameters:{externalInputId:this.broadcastElement.mediaId,subscribe:!0},onSuccess:function(e){var n=e.signalState;t&&t(n)},onFailure:function(e){}}))};var c=function(e,t){v(e),"tv"==e.currentInput?(d(e),p(e)):(m(e),t())},s=function(e){var t=document.createElement("VIDEO");t.setAttribute("id",e.videoId),t.setAttribute("width","100%"),t.setAttribute("height","100%"),t.setAttribute("autoplay",""),t.addEventListener("loadedmetadata",function(){c(e.broadcastPlugin,e.callback)},!1);var n=document.createElement("SOURCE");n.setAttribute("src",e.src),n.setAttribute("type",e.type),t.appendChild(n),e.broadcastPlugin.broadcastDivId.appendChild(t),e.broadcastPlugin.broadcastElement=t},u=function(e,t,n){r.Request("luna://com.webos.service.eim",{method:"getCurrentInput",parameters:{},onSuccess:function(r){if("ATV"==r.mainInputSourceId||"DTV"==r.mainInputSourceId)n.broadcastPlugin.currentInput="tv",l(e,t,n);else{var o=r.mainInputSourceId.split("_");n.broadcastPlugin.currentInput=o[0].toLowerCase(),n.broadcastPlugin.currentSource=o[1],n.src="ext://"+n.broadcastPlugin.currentInput+":"+n.broadcastPlugin.currentSource,n.type="service/webos-external",s(n),e&&e()}},onFailure:function(e){delete e.returnValue,t&&t(e)}})},l=function(e,t,n){},d=function(e){e.tokenChannelChange=r.Request("luna://com.webos.service.tv.broadcast",{method:"getCurrentChannel",parameters:{broadcastId:e.broadcastElement.mediaId,subscribe:!0},onSuccess:function(t){e.currentSource=t.channel.channelId;var n={};n=S(t.channel,"api"),e.onchannelchange(n)},onFailure:function(e){}})},p=function(e){e.tokenSignalState=r.Request("luna://com.webos.service.tv.broadcast",{method:"getChannelState",parameters:{broadcastId:e.broadcastElement.mediaId,subscribe:!0},onSuccess:function(t){var n=t.channelState;n.screensaverType=n.channelScreensaverType,delete n.channelScreensaverType,e.onsignalstatuschange(n)},onFailure:function(e){}})},m=function(e){e.tokenSignalState=r.Request("luna://com.webos.service.tv.externaldevice/input/",{method:"getSignalState",parameters:{externalInputId:e.broadcastElement.mediaId,subscribe:!0},onSuccess:function(t){var n=t.signalState;e.onsignalstatuschange(n)},onFailure:function(e){}})},v=function(e){e.tokenChannelChange&&e.tokenChannelChange.cancel(),e.tokenSignalState&&e.tokenSignalState.cancel()},h=function(e,t,n){var r=g(n.startTime),o=g(n.endTime),a={};"count"==n.request?a={from:"com.webos.service.tv.programSCH:4",select:[""],where:[{prop:"signalChannelId",op:"=",val:n.signalChannelId}],filter:[{prop:"localStartTime",op:"<=",val:o},{prop:"localEndTime",op:">=",val:r}]}:"nextInfo"==n.request?a={from:"com.webos.service.tv.programSCH:4",select:["programId","eventId","localStartTime","localEndTime","duration","programName","description"],where:[{prop:"channelId",op:"=",val:n.signalChannelId}],filter:[{prop:"localStartTime",op:">",val:r}],orderBy:"localStartTime",limit:1}:("list"==n.request||"nowInfo"==n.request)&&(a={from:"com.webos.service.tv.programSCH:4",select:["programId","eventId","localStartTime","localEndTime","duration","programName","description"],where:[{prop:"channelId",op:"=",val:n.signalChannelId}],filter:[{prop:"localStartTime",op:"<=",val:o},{prop:"localEndTime",op:">=",val:r}]})},f=function(e,t,n){var o={from:"com.webos.service.tv.channel.dblist:1",select:["signalChannelId"],where:[{prop:"channelId",op:"=",val:n.id}]};r.Request("luna://com.palm.db/",{method:"find",parameters:{query:o},onSuccess:function(r){n.signalChannelId=r.results[0].signalChannelId,h(e,t,n)},onFailure:function(e){delete e.returnValue,t&&t(e)}})},S=function(e,t){var n={};return n.id=e.channelId,n.number=e.channelNumber,n.name=e.channelName,"api"==t?(n.mode=e.channelModeName,n.type=e.channelTypeName,n.isSkipped=e.isSkipped,n.isLocked=e.isLocked,n.isDescrambled=e.isDescrambled,n.isScrambled=e.isScrambled):(n.mode=e.channelMode,n.type=e.channelType,n.isSkipped=e.skipped,n.isLocked=e.locked,n.isDescrambled=e.descrambled,n.isScrambled=e.scrambled),n},g=function(e){var t=e.year+",";return t+=(e.month<10?"0":"")+e.month+",",t+=(e.day<10?"0":"")+e.day+",",t+=(e.hour<10?"0":"")+e.hour+",",t+=(e.minute<10?"0":"")+e.minute+",",t+=(e.second<10?"0":"")+e.second};n.exports=i});var Broadcast=cordova.require("cordova/plugin/broadcast");cordova.define("cordova/plugin/inputSource",function(e,t,n){function r(e){}function o(e,t,n){(void 0===e.errorCode||null===e.errorCode)&&(e.errorCode=t),(void 0===e.errorText||null===e.errorText)&&(e.errorText=n)}function a(e){var t=1,n=e.length;return isNaN(parseInt(e.charAt(n-1),10))||(t=e.charAt(n-1),n--),e=e.substring(0,n)+":"+t,e="ext://"+e.toLowerCase()}function i(e){null===m?s.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion","boardType"]},onSuccess:function(t){r("getPlatformInfo: onSuccess"),r("version : "+t.sdkVersion);var n=t.sdkVersion.split(".");v=n.length>=1&&"1"===n[0]?{webOSVer:1,chipset:t.boardType.split("_")[0]}:n.length>=1&&"2"===n[0]?{webOSVer:2,chipset:t.boardType.split("_")[0]}:{webOSVer:0,chipset:""},m=v.webOSVer,e(v)},onFailure:function(t){r("getPlatformInfo: onFailure"),v={webOSVer:0,chipset:""},e(v)}}):e(v)}function c(e,t,n){s.Request("luna://com.webos.service.eim/",{method:"getAllInputStatus",onSuccess:function(c){if(r("convertInputSource: On Success "+e),c.returnValue===!0&&"function"==typeof t){var s=new Array(c.totalCount);i(function(i){var u=i.webOSVer;switch(r("convertInputSource: "+JSON.stringify(c.totalCount)),r("convertInputSource: "+JSON.stringify(c.devices)),r("version: "+u),u){case 1:"ext://dp:1"===e?e="ext://hdmi:3":"ext://dvi:1"===e&&(e="ext://hdmi:4");break;case 2:"H15"===v.chipset?"ext://dvi:1"===e?e="ext://hdmi:3":"ext://ops:1"===e?e="ext://hdmi:3":"ext://dp:1"===e?e="ext://hdmi:3":"ext://hdmi:4"===e&&(e="ext://dp:1"):"ext://dp:1"===e?e="ext://hdmi:3":"ext://dvi:1"===e?e="ext://hdmi:2":"ext://ops:1"===e&&(e="ext://hdmi:4")}for(var l=0;l<s.length;l++){s[l]={},"H15"===v.chipset?s[l].inputPort=a(c.devices[l].deviceName):s[l].inputPort=a(c.devices[l].label);var d=c.devices[l].id.split("_");if(s[l].id="ext://"+d[0].toLowerCase()+":"+d[1],e===s[l].id)return r("convertInputSource: On Success ok "+e),void t(e)}for(var p=0;p<s.length;p++)if(e===s[p].inputPort)return e=s[p].id,r("convertInputSource: On Success converted "+e),void t(e);r("convertInputSource: On Failure "+e);var m={};o(m,"IGISS","convertInputSource. It does not support inputsource type."),n(m)})}},onFailure:function(e){r("convertInputSource: On Failure"),delete e.returnValue,"function"==typeof n&&(o(e,"IGISS","convertInputSource returns failure on gathering input list."),n(e))}})}var s;window.PalmSystem?(r("Window.PalmSystem Available"),s=e("cordova/plugin/webos/service")):s={Request:function(e,t){r(e+" invoked. But I am a dummy because PalmSystem is not available"),"function"==typeof t.onFailure&&t.onFailure({returnValue:!1,errorText:"PalmSystem Not Available. Cordova is not installed?"})}};var u=function(){},l=!1,d="",p=null;u.prototype.initialize=function(e,t,n){if(r("initialize: "+JSON.stringify(n)),void 0===n.divId||"string"!=typeof n.divId||null===n.divId||n.divId.length<=0||void 0===n.videoId||"string"!=typeof n.videoId||null===n.videoId||n.videoId.length<=0||void 0===n.callback||"function"!=typeof n.callback||void 0===n.src||"string"!=typeof n.src||null===n.src||n.src.length<=0){if("function"==typeof t){var a={};o(a,"II","InputSource.initialize returns failure. invalid parameters."),t(a)}}else{if(null===document.getElementById(n.divId)||void 0===document.getElementById(n.divId))return void("function"==typeof t&&t({errorCode:"II",errorText:"options.divId:["+n.divId+"] element not exists or cannot approach"}));if(document.getElementById(n.videoId))return void("function"==typeof t&&t({errorCode:"II",errorText:"options.videoId:["+n.videoId+"] element already exists."}));c(n.src,function(r){n.src=r,p=new Broadcast,p.initialize(e,t,n),l=!0,d=n.videoId},function(e){if(r("initialize: failure "+JSON.stringify(e)),"function"==typeof t){var n={};o(n,"II","InputSource.initialize returns failure. invalid parameters."),t(n)}}),r("initialize: Done")}},u.prototype.changeInputSource=function(e,t,n){if(void 0===n.src||"string"!=typeof n.src||null===n.src||n.src.length<=0){if("function"==typeof t){var a={};o(a,"ICIS","InputSource.changeInputSource returns failure. invalid argument."),t(a)}}else if(l!==!1&&null!==document.getElementById(d)&&void 0!==document.getElementById(d))r("changeInputSource: "+JSON.stringify(n)),c(n.src,function(a){if(n.src=a,p.setInput(n))r("changeInputSource: On Success"),"function"==typeof e&&e();else if("function"==typeof t){var i={};r("changeInputSource: On Failure"),o(i,"ICIS","InputSource.changeInputSource returns failure."),t(i)}},function(e){if(r("changeInputSource: failure "+JSON.stringify(e)),"function"==typeof t){var n={};o(n,"ICIS","InputSource.changeInputSource returns failure. invalid argument. "),t(n)}}),r("changeInputSource: Done");else if("function"==typeof t){var a={};o(a,"ICIS","InputSource.changeInputSource returns failure. Call initialize() first."),t(a)}},u.prototype.getInputSourceStatus=function(e,t){r("getInputSourceStatus: "),s.Request("luna://com.webos.service.eim/",{method:"getAllInputStatus",onSuccess:function(n){r("getInputSourceStatus: On Success"),n.returnValue===!0&&i(function(i){var c=i.webOSVer;r("convertInputSource: "+JSON.stringify(n.totalCount)),r("convertInputSource: "+JSON.stringify(n.devices)),r("version: "+c);for(var u={},l=new Array(n.totalCount),d=new Array(n.totalCount),m=0;m<l.length;m++){l[m]={},l[m].inputPort=a(n.devices[m].label);var v=null;switch(c){case 1:v=n.devices[m].id.split("_"),l[m].inputPort="ext://"+v[0].toLowerCase()+":"+v[1],"ext://hdmi:3"===l[m].inputPort?l[m].inputPort="ext://dp:1":"ext://hdmi:4"===l[m].inputPort&&(l[m].inputPort="ext://dvi:1");break;case 2:v=n.devices[m].id.split("_"),l[m].inputPort="ext://"+v[0].toLowerCase()+":"+v[1],"H15"===i.chipset?("ext://dvi:4"===l[m].inputPort&&(l[m].inputPort="ext://hdmi:3"),"ext://ops:1"===l[m].inputPort&&(l[m].inputPort="ext://hdmi:3"),"ext://hdmi:4"===l[m].inputPort&&(l[m].inputPort="ext://dp:1")):"ext://hdmi:3"===l[m].inputPort?l[m].inputPort="ext://dp:1":"ext://hdmi:2"===l[m].inputPort?l[m].inputPort="ext://dvi:1":"ext://hdmi:4"===l[m].inputPort&&(l[m].inputPort="ext://ops:1")}d[m]={},d[m].inputPort=l[m].inputPort,d[m].id=n.devices[m].id}u.inputSourceList=l,s.Request("luna://com.webos.service.eim/",{method:"getCurrentInput",parameters:{},onSuccess:function(t){if(r("InputSource.getInputSourceStatus: On Success 3"),t.returnValue===!0&&"function"==typeof e){u.currentInputSource={};for(var n=0;n<d.length;n++)if(d[n].id===t.mainInputSourceId){u.currentInputSource=d[n].inputPort;break}if(u.currentSignalState="unknown",null!==p)r("InputSource.getInputSourceStatus : broadcast is not null"),p.getSignalStatus(function(t){return u.currentSignalState=t.videoSignalState,r("InputSource.getInputSourceStatus: On Success 2"),"function"==typeof e?(r("getInputSourceStatus: On Success"+JSON.stringify(u)),void e(u)):void 0},function(){return r("InputSource.getInputSourceStatus : signal state is fail."),"function"==typeof e?(r("getInputSourceStatus: On Success"+JSON.stringify(u)),void e(u)):void 0});else if(r("InputSource.getInputSourceStatus : it does not initialize."),"function"==typeof e)return r("getInputSourceStatus: On Success"+JSON.stringify(u)),void e(u)}},onFailure:function(e){return r("InputSource.getInputSourceStatus: On Failure 2"),delete e.returnValue,"function"==typeof t?(o(e,"IGISS","InputSource.getInputSourceStatus returns failure."),void t(e)):void 0}})})},onFailure:function(e){r("getInputSourceStatus: On Failure"),delete e.returnValue,"function"==typeof t&&(o(e,"IGISS","InputSource.changeInputSource returns failure on gathering input list."),t(e))}}),r("InputSource.getInputSourceStatus Done")};var m=null,v={};n.exports=u}),InputSource=cordova.require("cordova/plugin/inputSource");