@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/broadcast",function(i,t,a){var u=i("cordova/plugin/webos/service"),s=i("cordova/utils"),j=i("cordova/argscheck"),n=function(l){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 h=this;u.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["atsc"]},onSuccess:function(v){h.isATSC=v.atsc},onFailure:function(v){}})};n.prototype.onchannelchange=function(h){},n.prototype.onsignalstatuschange=function(h){},n.prototype.initialize=function(h,x,l){j.checkArgs("fFo","broadcastCordova.initialize",arguments);var v=s.clone(l);this.broadcastDivId=document.getElementById(v.divId);v.broadcastPlugin=this;if(1!=v.isLastInput&&v.src){this.isLastInput=false;if(-1!=v.src.indexOf("tv://")){if(1==v.isLastChannel){this.isLastChannel=true;v.type="service/webos-broadcast"}else{this.isLastChannel=false;v.type="service/webos-broadcast-standalone"}this.currentInput="tv";this.currentSource=v.src.substr(5)}else{v.type="service/webos-external";var w=v.src.split(":");this.currentInput=w[1].substr(2).toLowerCase();this.currentSource=w[2]}c(v);h&&h()}else{this.isLastInput=true;d(h,x,v)}},n.prototype.channelUp=function(h,v){j.checkArgs("fF","broadcastCordova.channelUp",arguments);var l={broadcastId:this.broadcastElement.mediaId};u.Request("luna://com.webos.service.tv.broadcast",{method:"changeChannelUp",parameters:l,onSuccess:function(w){h&&h()},onFailure:function(w){delete w.returnValue;v&&v(w)}})},n.prototype.channelDown=function(h,v){j.checkArgs("fF","broadcastCordova.channelDown",arguments);var l={broadcastId:this.broadcastElement.mediaId};u.Request("luna://com.webos.service.tv.broadcast",{method:"changeChannelDown",parameters:l,onSuccess:function(w){h&&h()},onFailure:function(w){delete w.returnValue;v&&v(w)}})},n.prototype.setChannel=function(h,w,l){j.checkArgs("fFo","broadcastCordova.setChannel",arguments);var v={broadcastId:this.broadcastElement.mediaId,channelId:l.id};u.Request("luna://com.webos.service.tv.broadcast",{method:"changeChannel",parameters:v,onSuccess:function(x){h&&h()},onFailure:function(x){delete x.returnValue;w&&w(x)}})},n.prototype.getCurrentChannel=function(h,v){j.checkArgs("fF","broadcastCordova.getCurrentChannel",arguments);var l={broadcastId:this.broadcastElement.mediaId,subscribe:false};u.Request("luna://com.webos.service.tv.broadcast",{method:"getCurrentChannel",parameters:l,onSuccess:function(x){var w={};w=e(x.channel,"api");h&&h(w)},onFailure:function(w){delete w.returnValue;v&&v(w)}})},n.prototype.getSignalStatus=function(h,v){j.checkArgs("fF","broadcastCordova.getSignalStatus",arguments);var l;if("tv"==this.currentInput){l={broadcastId:this.broadcastElement.mediaId,subscribe:false};u.Request("luna://com.webos.service.tv.broadcast",{method:"getChannelState",parameters:l,onSuccess:function(x){var w=x.channelState;w.screensaverType=w.channelScreensaverType;delete w.channelScreensaverType;h&&h(w)},onFailure:function(w){delete w.returnValue;v&&v(w)}})}else{l={externalInputId:this.broadcastElement.mediaId,subscribe:false};u.Request("luna://com.webos.service.tv.externaldevice/input/",{method:"getSignalState",parameters:l,onSuccess:function(w){h&&h(w.signalState)},onFailure:function(w){delete w.returnValue;v&&v(w)}})}},n.prototype.getCurrentProgram=function(h,v,l){j.checkArgs("fFo","broadcastCordova.getCurrentProgram",arguments),u.Request("luna://com.palm.systemservice/time",{method:"getEffectiveBroadcastTime",parameters:{},onSuccess:function(x){var w={};w.id=l.id;w.startTime=x.localtime;w.endTime=x.localtime;w.request="nowInfo";b(h,v,w)},onFailure:function(w){delete w.returnValue,v&&v(w)}})},n.prototype.getNextProgram=function(h,v,l){j.checkArgs("fFo","broadcastCordova.getNextProgram",arguments),u.Request("luna://com.palm.systemservice/time",{method:"getEffectiveBroadcastTime",parameters:{},onSuccess:function(x){var w={};w.id=l.id,w.startTime=x.localtime,w.endTime=x.localtime,w.request="nextInfo",b(h,v,w)},onFailure:function(w){delete w.returnValue,v&&v(w)}})},n.prototype.getProgramCount=function(h,w,l){j.checkArgs("fFo","broadcastCordova.getProgramCount",arguments);var v=s.clone(l);v.request="count";b(h,w,v)},n.prototype.getProgramList=function(h,w,l){j.checkArgs("fFo","broadcastCordova.getProgramList",arguments);var v=s.clone(l);v.request="list";b(h,w,v)},n.prototype.getChannelCount=function(h,w,l){j.checkArgs("fFo","broadcastCordova.getChannelCount",arguments);var v={from:"com.webos.service.tv.channel.dblist:1",select:[""],where:[{prop:"channelType",op:"=",val:l.type}],filter:[{prop:"Invisible",op:"=",val:!1}]};u.Request("luna://com.palm.db/",{method:"search",parameters:{query:v},onSuccess:function(y){var x={};x.count=y.results.length;h&&h(x)},onFailure:function(x){delete x.returnValue,w&&w(x)}})},n.prototype.getChannelList=function(h,x,v){j.checkArgs("fFo","broadcastCordova.getChannelList",arguments);var l=v.startIndex-1;if(0>l){l=0}var y=l+v.count,w={from:"com.webos.service.tv.channel.dblist:1",select:["channelId","channelName","channelMode","channelNumber","channelType","skipped","locked","descrambled","scrambled"],where:[{prop:"channelType",op:"=",val:v.type}],filter:[{prop:"Invisible",op:"=",val:!1}],limit:y};u.Request("luna://com.palm.db/",{method:"search",parameters:{query:w},onSuccess:function(C){var z={};z.channel=[];var A=C.results.length-l;if(A>0){for(var B=0;A>B;B++){z.channel[B]=e(C.results[B+l],"db8")}}h&&h(z)},onFailure:function(z){delete z.returnValue;x&&x(z)}})},n.prototype.getChannelListByName=function(h,w,v){j.checkArgs("fFo","broadcastCordova.getChannelListByName",arguments);var l={from:"com.webos.service.tv.channel.dblist:1",select:["channelId","channelName","channelMode","channelNumber","channelType","skipped","locked","descrambled","scrambled"],where:[{prop:"channelName",op:"%",val:v.name}],filter:[{prop:"Invisible",op:"=",val:false}]};v.type&&l.filter.push({prop:"channelType",op:"=",val:v.type}),u.Request("luna://com.palm.db/",{method:"search",parameters:{query:l},onSuccess:function(z){var x={};if(x.channel=[],z.results.length>0){for(var y=0;y<z.results.length;y++){x.channel[y]=e(z.results[y],"db8")}}h&&h(x)},onFailure:function(x){delete x.returnValue;w&&w(x)}})},n.prototype.setInput=function(l){j.checkArgs("o","broadcastCordova.setInput",arguments);var w=false;if(-1!=l.src.indexOf("tv://")){if(1==this.isLastChannel){l.type="service/webos-broadcast"}else{l.type="service/webos-broadcast-standalone"}this.currentInput="tv";this.currentSource=l.src.substr(5)}else{l.type="service/webos-external";var v=l.src.split(":");this.currentInput=v[1].substr(2).toLowerCase();this.currentSource=v[2]}for(var h=0;h<this.broadcastElement.childNodes.length;h++){if("SOURCE"==this.broadcastElement.childNodes[h].nodeName){this.broadcastElement.childNodes[h].src=l.src;this.broadcastElement.childNodes[h].type=l.type;this.broadcastElement.load();w=true}}return w},n.prototype.addEventListener=function(h,v,l){if("channelchange"==h){this.tokenChannelChange=u.Request("luna://com.webos.service.tv.broadcast",{method:"getCurrentChannel",parameters:{broadcastId:this.broadcastElement.mediaId,subscribe:false},onSuccess:function(x){var w=x.channel;v&&v(w)},onFailure:function(w){}})}else{if("signalstatus"==h){if("tv"==this.currentInput){this.tokenSignalState=u.Request("luna://com.webos.service.tv.broadcast",{method:"getChannelState",parameters:{broadcastId:this.broadcastElement.mediaId,subscribe:false},onSuccess:function(x){var w=x.channelState;w.screensaverType=w.channelScreensaverType;delete w.channelScreensaverType;v&&v(w)},onFailure:function(w){}})}else{this.tokenSignalState=u.Request("luna://com.webos.service.tv.externaldevice/input/",{method:"getSignalState",parameters:{externalInputId:this.broadcastElement.mediaId,subscribe:true},onSuccess:function(x){var w=x.signalState;v&&v(w)},onFailure:function(w){}})}}}};var k=function(h,l){r(h);if("tv"==h.currentInput){p(h);f(h)}else{o(h);l()}},c=function(h){var v=document.createElement("VIDEO");v.setAttribute("id",h.videoId);v.setAttribute("width","100%");v.setAttribute("height","100%");v.setAttribute("autoplay","");v.addEventListener("loadedmetadata",function(){k(h.broadcastPlugin,h.callback)},false);var l=document.createElement("SOURCE");l.setAttribute("src",h.src);l.setAttribute("type",h.type);v.appendChild(l);h.broadcastPlugin.broadcastDivId.appendChild(v);h.broadcastPlugin.broadcastElement=v},d=function(h,l,v){u.Request("luna://com.webos.service.eim",{method:"getCurrentInput",parameters:{},onSuccess:function(x){if("ATV"==x.mainInputSourceId||"DTV"==x.mainInputSourceId){v.broadcastPlugin.currentInput="tv";q(h,l,v)}else{var w=x.mainInputSourceId.split("_");v.broadcastPlugin.currentInput=w[0].toLowerCase();v.broadcastPlugin.currentSource=w[1];v.src="ext://"+v.broadcastPlugin.currentInput+":"+v.broadcastPlugin.currentSource;v.type="service/webos-external";c(v);h&&h()}},onFailure:function(w){delete w.returnValue;l&&l(w)}})},q=function(l,h,v){},p=function(h){h.tokenChannelChange=u.Request("luna://com.webos.service.tv.broadcast",{method:"getCurrentChannel",parameters:{broadcastId:h.broadcastElement.mediaId,subscribe:true},onSuccess:function(l){h.currentSource=l.channel.channelId;var v={};v=e(l.channel,"api"),h.onchannelchange(v)},onFailure:function(l){}})},f=function(h){h.tokenSignalState=u.Request("luna://com.webos.service.tv.broadcast",{method:"getChannelState",parameters:{broadcastId:h.broadcastElement.mediaId,subscribe:true},onSuccess:function(v){var l=v.channelState;l.screensaverType=l.channelScreensaverType;delete l.channelScreensaverType;h.onsignalstatuschange(l)},onFailure:function(l){}})},o=function(h){h.tokenSignalState=u.Request("luna://com.webos.service.tv.externaldevice/input/",{method:"getSignalState",parameters:{externalInputId:h.broadcastElement.mediaId,subscribe:true},onSuccess:function(l){var v=l.signalState;h.onsignalstatuschange(v)},onFailure:function(l){}})},r=function(h){if(h.tokenChannelChange){h.tokenChannelChange.cancel()}if(h.tokenSignalState){h.tokenSignalState.cancel()}},m=function(h,y,v){var w=g(v.startTime),l=g(v.endTime),x={};if("count"==v.request){x={from:"com.webos.service.tv.programSCH:4",select:[""],where:[{prop:"signalChannelId",op:"=",val:v.signalChannelId}],filter:[{prop:"localStartTime",op:"<=",val:l},{prop:"localEndTime",op:">=",val:w}]}}else{if("nextInfo"==v.request){x={from:"com.webos.service.tv.programSCH:4",select:["programId","eventId","localStartTime","localEndTime","duration","programName","description"],where:[{prop:"channelId",op:"=",val:v.signalChannelId}],filter:[{prop:"localStartTime",op:">",val:w}],orderBy:"localStartTime",limit:1}}else{if("list"==v.request||"nowInfo"==v.request){x={from:"com.webos.service.tv.programSCH:4",select:["programId","eventId","localStartTime","localEndTime","duration","programName","description"],where:[{prop:"channelId",op:"=",val:v.signalChannelId}],filter:[{prop:"localStartTime",op:"<=",val:l},{prop:"localEndTime",op:">=",val:w}]}}}}},b=function(h,l,v){var w={from:"com.webos.service.tv.channel.dblist:1",select:["signalChannelId"],where:[{prop:"channelId",op:"=",val:v.id}]};u.Request("luna://com.palm.db/",{method:"find",parameters:{query:w},onSuccess:function(x){v.signalChannelId=x.results[0].signalChannelId;m(h,l,v)},onFailure:function(x){delete x.returnValue;l&&l(x)}})},e=function(v,l){var h={};h.id=v.channelId;h.number=v.channelNumber;h.name=v.channelName;if("api"==l){h.mode=v.channelModeName;h.type=v.channelTypeName;h.isSkipped=v.isSkipped;h.isLocked=v.isLocked;h.isDescrambled=v.isDescrambled;h.isScrambled=v.isScrambled}else{h.mode=v.channelMode;h.type=v.channelType;h.isSkipped=v.skipped;h.isLocked=v.locked;h.isDescrambled=v.descrambled;h.isScrambled=v.scrambled}return h},g=function(h){var l=h.year+",";l+=(h.month<10?"0":"")+h.month+",";l+=(h.day<10?"0":"")+h.day+",";l+=(h.hour<10?"0":"")+h.hour+",";l+=(h.minute<10?"0":"")+h.minute+",";l+=(h.second<10?"0":"")+h.second;return l};a.exports=n});var Broadcast=cordova.require("cordova/plugin/broadcast");cordova.define("cordova/plugin/inputSource",function(c,e,b){function d(p){}var i;if(window.PalmSystem){d("Window.PalmSystem Available");i=c("cordova/plugin/webos/service")}else{i={Request:function(p,q){d(p+" invoked. But I am a dummy because PalmSystem is not available");if(typeof q.onFailure==="function"){q.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var k=function(){};var n=false;var h="";var g=null;function m(q,r,p){if(q.errorCode===undefined||q.errorCode===null){q.errorCode=r}if(q.errorText===undefined||q.errorText===null){q.errorText=p}}function f(r){var p=1;var q=r.length;if(!isNaN(parseInt(r.charAt(q-1),10))){p=r.charAt(q-1);q--}r=r.substring(0,q)+":"+p;r="ext://"+r.toLowerCase();return r}var j=null;var a={};function o(p){if(j===null){i.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion","boardType"]},onSuccess:function(q){d("getPlatformInfo: onSuccess");d("version : "+q.sdkVersion);var r=q.sdkVersion.split(".");if(r.length>=1&&r[0]==="1"){a={webOSVer:1,chipset:q.boardType.split("_")[0]}}else{if(r.length>=1&&r[0]==="2"){a={webOSVer:2,chipset:q.boardType.split("_")[0]}}else{if(r.length>=1&&r[0]==="3"){a={webOSVer:3,chipset:q.boardType.split("_")[0]}}else{a={webOSVer:0,chipset:""}}}}j=a.webOSVer;p(a)},onFailure:function(q){d("getPlatformInfo: onFailure");a={webOSVer:0,chipset:""};p(a)}})}else{p(a)}}function l(r,p,q){var s=r.toUpperCase().substring(6).split(":")[0];if(s==="DP"){s="DISPLAYPORT"}i.Request("luna://com.webos.service.eim/",{method:"getAllInputStatus",onSuccess:function(t){d("convertInputSource: On Success "+r);if(t.returnValue===true){if(typeof p==="function"){var u=new Array(t.totalCount);o(function(D){var B=D.webOSVer;d("convertInputSource: "+JSON.stringify(t.devices));d("version: "+B);if(B>=3){for(var y=0;y<t.devices.length;y++){var z=r.substring(6).split(":");var C=t.devices[y].deviceName;var w="1";if(isNaN(C.substring(C.length-1,C.length))===false){w=C.substring(C.length-1,C.length);C=C.substring(0,C.length-1)}if(C.toLowerCase()==="displayport"){C="dp"}if(C.toLowerCase().indexOf(z[0].toLowerCase())>=0&&w===z[1]){var A=t.devices[y].id.split("_");convertedInput="ext://"+A[0].toLowerCase()+":"+A[1];p(convertedInput);return}}d("convertInputSource: On Failure "+r);var v={};m(v,"IGISS","convertInputSource. It does not support inputsource type.");q(v)}else{switch(B){case 1:if(r==="ext://dp:1"){r="ext://hdmi:3"}else{if(r==="ext://dvi:1"){r="ext://hdmi:4"}}break;case 2:if(a.chipset==="H15"){if(r==="ext://dvi:1"){r="ext://hdmi:3"}else{if(r==="ext://ops:1"){r="ext://hdmi:3"}else{if(r==="ext://dp:1"){r="ext://hdmi:3"}else{if(r==="ext://hdmi:4"){r="ext://dp:1"}}}}}else{if(r==="ext://dp:1"){r="ext://hdmi:3"}else{if(r==="ext://dvi:1"){r="ext://hdmi:2"}else{if(r==="ext://ops:1"){r="ext://hdmi:4"}}}}break;case 3:if(r==="ext://dp:1"){r="ext://hdmi:3"}else{if(r==="ext://dvi:1"){r="ext://hdmi:2"}else{if(r==="ext://ops:1"){r="ext://hdmi:4"}}}break;default:break}for(var y=0;y<u.length;y++){u[y]={};if(a.chipset==="H15"){u[y].inputPort=f(t.devices[y].deviceName)}else{u[y].inputPort=f(t.devices[y].label)}var A=t.devices[y].id.split("_");u[y].id="ext://"+A[0].toLowerCase()+":"+A[1];if(r===u[y].id){d("convertInputSource: On Success ok "+r);p(r);return}}for(var x=0;x<u.length;x++){if(r===u[x].inputPort){r=u[x].id;d("convertInputSource: On Success converted "+r);p(r);return}}d("convertInputSource: On Failure "+r);var v={};m(v,"IGISS","convertInputSource. It does not support inputsource type.");q(v)}})}}},onFailure:function(t){d("convertInputSource: On Failure");delete t.returnValue;if(typeof q==="function"){m(t,"IGISS","convertInputSource returns failure on gathering input list.");q(t)}}})}k.prototype.initialize=function(q,r,t){d("initialize: "+JSON.stringify(t));if(t.divId===undefined||typeof t.divId!=="string"||t.divId===null||t.divId.length<=0||t.videoId===undefined||typeof t.videoId!=="string"||t.videoId===null||t.videoId.length<=0||t.callback===undefined||typeof t.callback!=="function"||t.src===undefined||typeof t.src!=="string"||t.src===null||t.src.length<=0){if(typeof r==="function"){var p={};m(p,"II","InputSource.initialize returns failure. invalid parameters.");r(p)}return}if(document.getElementById(t.divId)===null||document.getElementById(t.divId)===undefined){if(typeof r==="function"){r({errorCode:"II",errorText:"options.divId:["+t.divId+"] element not exists or cannot approach"})}return}else{if(document.getElementById(t.videoId)){if(typeof r==="function"){r({errorCode:"II",errorText:"options.videoId:["+t.videoId+"] element already exists."})}return}}l(t.src,function u(v){var w={};w.divId=t.divId;w.videoId=t.videoId;w.callback=t.callback;w.src=v;g=new Broadcast();g.initialize(q,r,w);n=true;h=t.videoId},function s(w){d("initialize: failure "+JSON.stringify(w));if(typeof r==="function"){var v={};m(v,"II","InputSource.initialize returns failure. invalid parameters.");r(v)}});d("initialize: Done")};k.prototype.changeInputSource=function(q,r,t){if(t.src===undefined||typeof t.src!=="string"||t.src===null||t.src.length<=0){if(typeof r==="function"){var p={};m(p,"ICIS","InputSource.changeInputSource returns failure. invalid argument.");r(p)}return}if((n===false)||(document.getElementById(h)===null||document.getElementById(h)===undefined)){if(typeof r==="function"){var p={};m(p,"ICIS","InputSource.changeInputSource returns failure. Call initialize() first.");r(p)}return}d("changeInputSource: "+JSON.stringify(t));l(t.src,function u(w){var x={};x.divId=t.divId;x.videoId=t.videoId;x.callback=t.callback;x.src=w;if(g.setInput(x)){d("changeInputSource: On Success");if(typeof q==="function"){q()}}else{if(typeof r==="function"){var v={};d("changeInputSource: On Failure");m(v,"ICIS","InputSource.changeInputSource returns failure.");r(v)}}},function s(w){d("changeInputSource: failure "+JSON.stringify(w));if(typeof r==="function"){var v={};m(v,"ICIS","InputSource.changeInputSource returns failure. invalid argument. ");r(v)}});d("changeInputSource: Done")};k.prototype.getInputSourceStatus=function(p,q){d("getInputSourceStatus: ");i.Request("luna://com.webos.service.eim/",{method:"getAllInputStatus",onSuccess:function(r){d("getInputSourceStatus: On Success");if(r.returnValue===true){o(function(A){var x=A.webOSVer;d("convertInputSource: "+JSON.stringify(r.totalCount));d("convertInputSource: "+JSON.stringify(r.devices));d("version: "+x);var u={};var s=new Array(r.totalCount);var z=new Array(r.totalCount);for(var v=0;v<s.length;v++){s[v]={};s[v].inputPort=f(r.devices[v].label);var w=null;switch(x){case 1:w=r.devices[v].id.split("_");s[v].inputPort="ext://"+w[0].toLowerCase()+":"+w[1];if(s[v].inputPort==="ext://hdmi:3"){s[v].inputPort="ext://dp:1"}else{if(s[v].inputPort==="ext://hdmi:4"){s[v].inputPort="ext://dvi:1"}}break;case 2:w=r.devices[v].id.split("_");s[v].inputPort="ext://"+w[0].toLowerCase()+":"+w[1];if(A.chipset==="H15"){if(s[v].inputPort==="ext://dvi:4"){s[v].inputPort="ext://hdmi:3"}if(s[v].inputPort==="ext://ops:1"){s[v].inputPort="ext://hdmi:3"}if(s[v].inputPort==="ext://hdmi:4"){s[v].inputPort="ext://dp:1"}}else{if(s[v].inputPort==="ext://hdmi:3"){s[v].inputPort="ext://dp:1"}else{if(s[v].inputPort==="ext://hdmi:2"){s[v].inputPort="ext://dvi:1"}else{if(s[v].inputPort==="ext://hdmi:4"){s[v].inputPort="ext://ops:1"}}}}break;case 3:default:var y=r.devices[v].deviceName.toLowerCase();var t=1;if(isNaN(y.substring(y.length-1,y.length))===false){y=y.substring(0,y.length-1);t=r.devices[v].id.split("_")[1]}if(y.toLowerCase()==="displayport"){y="dp"}else{if(y.toLowerCase()==="ops/dvi"){y="ops"}}s[v].inputPort="ext://"+y.toLowerCase()+":"+t;break}z[v]={};z[v].inputPort=s[v].inputPort;z[v].id=r.devices[v].id}u.inputSourceList=s;i.Request("luna://com.webos.service.eim/",{method:"getCurrentInput",parameters:{},onSuccess:function(B){d("InputSource.getInputSourceStatus: On Success 3");if(B.returnValue===true){if(typeof p==="function"){u.currentInputSource={};for(var C=0;C<z.length;C++){if(z[C].id===B.mainInputSourceId){u.currentInputSource=z[C].inputPort;break}}u.currentSignalState="unknown";if(g!==null){d("InputSource.getInputSourceStatus : broadcast is not null");g.getSignalStatus(function D(F){u.currentSignalState=F.videoSignalState;d("InputSource.getInputSourceStatus: On Success 2");if(typeof p==="function"){d("getInputSourceStatus: On Success"+JSON.stringify(u));p(u);return}},function E(){d("InputSource.getInputSourceStatus : signal state is fail.");if(typeof p==="function"){d("getInputSourceStatus: On Success"+JSON.stringify(u));p(u);return}})}else{d("InputSource.getInputSourceStatus : it does not initialize.");if(typeof p==="function"){d("getInputSourceStatus: On Success"+JSON.stringify(u));p(u);return}}}}},onFailure:function(B){d("InputSource.getInputSourceStatus: On Failure 2");delete B.returnValue;if(typeof q==="function"){m(B,"IGISS","InputSource.getInputSourceStatus returns failure.");q(B);return}}})})}},onFailure:function(r){d("getInputSourceStatus: On Failure");delete r.returnValue;if(typeof q==="function"){m(r,"IGISS","InputSource.changeInputSource returns failure on gathering input list.");q(r)}}});d("InputSource.getInputSourceStatus Done")};k.prototype.getExternalInputList=function(p,q,r){d("getExternalInputList: ");i.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"getExternalInputList",parameters:r,onSuccess:function(s){if(typeof p==="function"){delete s.returnValue;p(s)}},onFailure:function(s){d("getExternalInputList: onFailure");delete s.returnValue;if(typeof q==="function"){q(s)}}});d("InputSource.getExternalInputList Done")};b.exports=k});InputSource=cordova.require("cordova/plugin/inputSource");
@@ -0,0 +1 @@
1
+ Power=function(){var e,t;function i(e,t,n){void 0!==e.errorCode&&null!==e.errorCode||(e.errorCode=t),void 0!==e.errorText&&null!==e.errorText||(e.errorText=n)}function o(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!=t.length)return!1;e.sort(),t.sort();for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}"object"==typeof window?(cordova.define("cordova/plugin/power",function(n,i,o){e=function(){},t=window.PalmSystem?n("cordova/plugin/webos/service"):{Request:function(e,t){"function"==typeof t.onFailure&&t.onFailure({returnValue:!1,errorText:"PalmSystem Not Available. Cordova is not installed?"})}},o.exports=e}),e=cordova.require("cordova/plugin/power")):(e=function(e){(t=e).Request=function(e,n){var i=e+"/"+n.method,o={};!0===n.hasOwnProperty("parameters")&&(o=n.parameters);var r={};t&&t.call(i,o,function(e){console.log("res : "+JSON.stringify(e)),!0===e.payload.returnValue?(r=e.payload,n.onSuccess(r)):(r.returnValue=!1,r.errorCode=e.payload.errorCode,r.errorText=e.payload.errorText,n.onFailure(r))})}},module.exports=e);var r=null,u={};function s(e){null===r?t.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion","boardType"]},onSuccess:function(t){t.sdkVersion;var n=t.sdkVersion.split(".");u=n.length>=1?"1"==n[0]?{webOSVer:1,chipset:t.boardType.split("_")[0]}:"2"==n[0]?{webOSVer:2,chipset:t.boardType.split("_")[0]}:"3"==n[0]?{webOSVer:3,chipset:t.boardType.split("_")[0]}:"4"==n[0]?{webOSVer:4,chipset:t.boardType.split("_")[0]}:{webOSVer:0,chipset:""}:{webOSVer:0,chipset:""},r=u.webOSVer,delete t.returnValue,e(u)},onFailure:function(t){delete t.returnValue,e(u={webOSVer:0,chipset:""})}}):e(u)}return e.PowerCommand={SHUTDOWN:"powerOff",REBOOT:"reboot"},e.DisplayMode={DISPLAY_OFF:"Screen Off",DISPLAY_ON:"Active"},e.TimerWeek={MONDAY:1,TUESDAY:2,WEDNESDAY:4,THURSDAY:8,FRIDAY:16,SATURDAY:32,SUNDAY:64,EVERYDAY:127},e.DPMSignalType={CLOCK:"clock",CLOCK_WITH_DATA:"clockAndData"},e.PMMode={PowerOff:"powerOff",SustainAspectRatio:"sustainAspectRatio",ScreenOff:"screenOff",ScreenOffAlways:"screenOffAlways",ScreenOffBacklight:"screenOffBacklight"},e.prototype.getPowerStatus=function(e,o){s(function(r){4===r.webOSVer||r.webOSVer>4?t.Request("luna://com.webos.service.commercial.scapadapter/power/",{method:"getPowerStatus",parameters:{},onSuccess:function(t){delete t.returnValue,"function"==typeof e&&e(t)},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(i(n,"PGPS","Power.getPowerStatus returns failure."),o(n))}}):t.Request("luna://com.webos.service.tv.signage/",{method:"getPowerState",onSuccess:function(n){var r={};!0===n.returnValue&&(r.displayMode=n.state),t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["wolEnable"]},onSuccess:function(n){!0===n.returnValue&&(r.wakeOnLan="1"===n.settings.wolEnable),t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"time",keys:["onTimerEnable","offTimerEnable"]},onSuccess:function(t){!0===t.returnValue&&(r.allOnTimer="on"===t.settings.onTimerEnable,r.allOffTimer="on"===t.settings.offTimerEnable,"function"==typeof e&&e(r))},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(i(e,"PGPS","Power.getPowerStatus returns failure."),o(e))}})},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(i(e,"PGPS","Power.getPowerStatus returns failure."),o(e))}})},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(i(e,"PGPS","Power.getPowerStatus returns failure."),o(e))}})})},e.prototype.enableAllOnTimer=function(e,n,o){JSON.stringify(o);var r=null;switch(o.allOnTimer){case!0:r="on";break;case!1:r="off";break;default:if("function"==typeof n){var u={};i(u,"PEAOT","Power.enableAllOnTimer returns failure. Invalid option value."),n(u)}return}s(function(u){4===u.webOSVer||u.webOSVer>4?t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"time",settings:{onTimerEnable:r}},onSuccess:function(){!0===o.clearOnTimer?t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(o){if(!0===o.returnValue){var r=0,u={onTime:[],offTime:[]},s={},f=null===o.settings.onOffTimeSchedule.offTime||void 0===o.settings.onOffTimeSchedule.offTime?0:o.settings.onOffTimeSchedule.offTime.length;for(r=0;r<f;r++)void 0!==o.settings.onOffTimeSchedule.offTime[r].day&&null!==o.settings.onOffTimeSchedule.offTime[r].day&&(s.day=o.settings.onOffTimeSchedule.offTime[r].day),void 0!==o.settings.onOffTimeSchedule.offTime[r].hour&&null!==o.settings.onOffTimeSchedule.offTime[r].hour&&(s.hour=o.settings.onOffTimeSchedule.offTime[r].hour),void 0!==o.settings.onOffTimeSchedule.offTime[r].minute&&null!==o.settings.onOffTimeSchedule.offTime[r].minute&&(s.minute=o.settings.onOffTimeSchedule.offTime[r].minute),u.offTime.push(s),s={};t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"commercial",settings:{onOffTimeSchedule:u}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.enableAllOnTimer returns failure."),n(e))}})}else"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PEAOT","Power.enableAllOnTimer returns failure."),n(e))}}):"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PEAOT","Power.enableAllOnTimer returns failure."),n(e))}}):t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"time",settings:{onTimerEnable:r}},onSuccess:function(){!0===o.clearOnTimer?t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOnTimerHour:["0","0","0","0","0","0","0"],multiOnTimerMinute:["0","0","0","0","0","0","0"],multiOnTimerWeekday:["0","0","0","0","0","0","0"],multiOnTimerSource:["0","0","0","0","0","0","0"],onTimerCount:0,onTimerSchedule:[]}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PEAOT","Power.enableAllOnTimer returns failure. / clearOnTimer"),n(e))}}):"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PEAOT","Power.enableAllOnTimer returns failure."),n(e))}})})},e.prototype.enableAllOffTimer=function(e,n,o){JSON.stringify(o);var r=null;switch(o.allOffTimer){case!0:r="on";break;case!1:r="off";break;default:if("function"==typeof n){var u={};i(u,"PEAOT","Power.enableAllOffTimer returns failure. Invalid option value."),n(u)}return}s(function(u){4===u.webOSVer||u.webOSVer>4?t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"time",settings:{offTimerEnable:r}},onSuccess:function(){!0===o.clearOffTimer?t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(o){if(!0===o.returnValue){var r=0,u={onTime:[],offTime:[]},s={},f=null===o.settings.onOffTimeSchedule.onTime||void 0===o.settings.onOffTimeSchedule.onTime?0:o.settings.onOffTimeSchedule.onTime.length;for(r=0;r<f;r++)void 0!==o.settings.onOffTimeSchedule.onTime[r].day&&null!==o.settings.onOffTimeSchedule.onTime[r].day&&(s.day=o.settings.onOffTimeSchedule.onTime[r].day),void 0!==o.settings.onOffTimeSchedule.onTime[r].hour&&null!==o.settings.onOffTimeSchedule.onTime[r].hour&&(s.hour=o.settings.onOffTimeSchedule.onTime[r].hour),void 0!==o.settings.onOffTimeSchedule.onTime[r].minute&&null!==o.settings.onOffTimeSchedule.onTime[r].minute&&(s.minute=o.settings.onOffTimeSchedule.onTime[r].minute),u.onTime.push(s),s={};t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"commercial",settings:{onOffTimeSchedule:u}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.enableAllOffTimer returns failure."),n(e))}})}else"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PEAOT","Power.enableAllOffTimer returns failure."),n(e))}}):"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PEAOT","Power.enableAllOffTimer returns failure."),n(e))}}):t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"time",settings:{offTimerEnable:r}},onSuccess:function(){!0===o.clearOffTimer?t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOffTimerHour:["0","0","0","0","0","0","0"],multiOffTimerMinute:["0","0","0","0","0","0","0"],multiOffTimerWeekday:["0","0","0","0","0","0","0"],offTimerCount:0,offTimerSchedule:[]}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PEAOT","Power.enableAllOffTimer returns failure. / clearOffTimer"),n(e))}}):"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PEAOT","Power.enableAllOffTimer returns failure."),n(e))}})})},e.prototype.enableWakeOnLan=function(e,n,o){JSON.stringify(o);var r=null;switch(o.wakeOnLan){case!0:r="1";break;case!1:r="0";break;default:if("function"==typeof n){var u={};i(u,"PSWOL","Power.enableWakeOnLan returns failure. Invalid option value."),n(u)}return}t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{wolEnable:r}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PSWOL","Power.enableWakeOnLan returns failure."),n(e))}})},e.prototype.addOnTimer=function(e,n,o){JSON.stringify(o),s(function(r){if(4===r.webOSVer||r.webOSVer>4){if(void 0===o.hour||isNaN(o.hour)||"number"!=typeof o.hour||o.hour<0||o.hour>23||void 0===o.minute||isNaN(o.minute)||"number"!=typeof o.minute||o.minute<0||o.minute>59||void 0===o.week||isNaN(o.week)||"number"!=typeof o.week||o.week<=0||o.week>127)return void("function"==typeof n&&(i(u={},"PAOT","Power.addOnTimer returns failure. invalid parameters or out of range."),n(u)));t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(r){if(!0===r.returnValue){for(var u=0,s={onTime:[],offTime:[]},f=[],m={},a=1;0!==o.week;){if(1&o.week)switch(console.log("AddonTimer - options.week - "+o.week),a){case 1:f.push("mon");break;case 2:f.push("tue");break;case 4:f.push("wed");break;case 8:f.push("thu");break;case 16:f.push("fri");break;case 32:f.push("sat");break;case 64:f.push("sun")}if(o.week=o.week>>>1,a<<=1,0===o.week)break}m.day=f,m.hour=o.hour,m.minute=o.minute,s.onTime.push(m),m={};var l=null===r.settings.onOffTimeSchedule.onTime||void 0===r.settings.onOffTimeSchedule.onTime?0:r.settings.onOffTimeSchedule.onTime.length;for(u=0;u<l;u++)void 0!==r.settings.onOffTimeSchedule.onTime[u].day&&null!==r.settings.onOffTimeSchedule.onTime[u].day&&(m.day=r.settings.onOffTimeSchedule.onTime[u].day),void 0!==r.settings.onOffTimeSchedule.onTime[u].hour&&null!==r.settings.onOffTimeSchedule.onTime[u].hour&&(m.hour=r.settings.onOffTimeSchedule.onTime[u].hour),void 0!==r.settings.onOffTimeSchedule.onTime[u].minute&&null!==r.settings.onOffTimeSchedule.onTime[u].minute&&(m.minute=r.settings.onOffTimeSchedule.onTime[u].minute),s.onTime.push(m),m={};var c=null===r.settings.onOffTimeSchedule.offTime||void 0===r.settings.onOffTimeSchedule.offTime?0:r.settings.onOffTimeSchedule.offTime.length;for(u=0;u<c;u++)void 0!==r.settings.onOffTimeSchedule.offTime[u].day&&null!==r.settings.onOffTimeSchedule.offTime[u].day&&(m.day=r.settings.onOffTimeSchedule.offTime[u].day),void 0!==r.settings.onOffTimeSchedule.offTime[u].hour&&null!==r.settings.onOffTimeSchedule.offTime[u].hour&&(m.hour=r.settings.onOffTimeSchedule.offTime[u].hour),void 0!==r.settings.onOffTimeSchedule.offTime[u].minute&&null!==r.settings.onOffTimeSchedule.offTime[u].minute&&(m.minute=r.settings.onOffTimeSchedule.offTime[u].minute),s.offTime.push(m),m={};t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"commercial",settings:{onOffTimeSchedule:s}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.addOnTimer returns failure."),n(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.addOnTimer returns failure."),n(e))}})}else{var u;if(void 0===o.hour||isNaN(o.hour)||"number"!=typeof o.hour||o.hour<0||o.hour>23||void 0===o.minute||isNaN(o.minute)||"number"!=typeof o.minute||o.minute<0||o.minute>59||void 0===o.week||isNaN(o.week)||"number"!=typeof o.week||o.week<0||o.week>127||void 0===o.inputSource||"string"!=typeof o.inputSource||0!==o.inputSource.indexOf("ext://"))return void("function"==typeof n&&(i(u={},"PAOT","Power.addOnTimer returns failure. invalid parameters or out of range."),n(u)));t.Request("luna://com.webos.service.eim/",{method:"getAllInputStatus",onSuccess:function(u){if(!0===u.returnValue){for(var s=!1,f=0;f<u.totalCount;f++){var m=u.devices[f].deviceName.toLowerCase(),a=m,l=o.inputSource.substring(6).split(":"),c="1";if(!1===isNaN(m.substring(m.length-1,m.length))&&(m=m.substring(0,m.length-1),c=u.devices[f].id.split("_")[1]),"DISPLAYPORT"===m.toUpperCase()&&(m="DP"),m.toUpperCase().indexOf(l[0].toUpperCase())>=0&&c===l[1]){s=!0;break}}if(!1===s)return delete u.returnValue,void("function"==typeof n&&(i(u,"PAOT","Power.addOnTimer returns failure."),n(u)));t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["multiOnTimerHour","multiOnTimerMinute","multiOnTimerWeekday","multiOnTimerSource","onTimerSchedule","onTimerCount"]},onSuccess:function(u){if(!0===u.returnValue){r.webOSVer,"string"==typeof u.settings.multiOnTimerHour&&(u.settings.multiOnTimerHour=JSON.parse(u.settings.multiOnTimerHour)),"string"==typeof u.settings.multiOnTimerMinute&&(u.settings.multiOnTimerMinute=JSON.parse(u.settings.multiOnTimerMinute)),"string"==typeof u.settings.multiOnTimerWeekday&&(u.settings.multiOnTimerWeekday=JSON.parse(u.settings.multiOnTimerWeekday)),"string"==typeof u.settings.multiOnTimerSource&&(u.settings.multiOnTimerSource=JSON.parse(u.settings.multiOnTimerSource)),"string"==typeof u.settings.onTimerSchedule&&(u.settings.onTimerSchedule=JSON.parse(u.settings.onTimerSchedule));var s=null===u.settings.onTimerSchedule||void 0===u.settings.onTimerSchedule?0:u.settings.onTimerSchedule.length;if(u.settings.multiOnTimerHour.length<=s)return void("function"==typeof n&&(i(u,"PSOT","Power.addOnTimer returns failure. No space to add timer."),n(u)));3===r.webOSVer&&(o.week>=64?o.week=1+2*(o.week-64):o.week=2*o.week),u.settings.multiOnTimerHour[s]=o.hour,u.settings.multiOnTimerMinute[s]=o.minute,u.settings.multiOnTimerWeekday[s]=o.week,u.settings.multiOnTimerSource[s]=a.toUpperCase();var f=360;u.settings.onTimerSchedule[s]={_id:""+f++,hour:o.hour,input:a.toUpperCase(),minute:o.minute,weekday:o.week},t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOnTimerHour:u.settings.multiOnTimerHour,multiOnTimerMinute:u.settings.multiOnTimerMinute,multiOnTimerWeekday:u.settings.multiOnTimerWeekday,multiOnTimerSource:u.settings.multiOnTimerSource,onTimerCount:s+1,onTimerSchedule:u.settings.onTimerSchedule}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.addOnTimer returns failure."),n(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.addOnTimer returns failure."),n(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.addOnTimer returns failure on gathering input list."),n(e))}})}})},e.prototype.deleteOnTimer=function(e,n,r){JSON.stringify(r),s(function(f){if(4===f.webOSVer||f.webOSVer>4){if(void 0===r.hour||isNaN(r.hour)||"number"!=typeof r.hour||r.hour<0||r.hour>23||void 0===r.minute||isNaN(r.minute)||"number"!=typeof r.minute||r.minute<0||r.minute>59||void 0===r.week||isNaN(r.week)||"number"!=typeof r.week||r.week<0||r.week>127)return void("function"==typeof n&&(i(m={},"PAOT","Power.deleteOnTimer returns failure. invalid parameters or out of range."),n(m)));t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(u){if(!0===u.returnValue){for(var s=0,f={onTime:[],offTime:[]},m=[],a={},l={},c=1;0!==r.week;){if(1&r.week)switch(c){case 1:m.push("mon");break;case 2:m.push("tue");break;case 4:m.push("wed");break;case 8:m.push("thu");break;case 16:m.push("fri");break;case 32:m.push("sat");break;case 64:m.push("sun")}if(r.week=r.week>>>1,c<<=1,0===r.week)break}c=0,a.day=m,a.hour=r.hour,a.minute=r.minute;var d=null===u.settings.onOffTimeSchedule.onTime||void 0===u.settings.onOffTimeSchedule.onTime?0:u.settings.onOffTimeSchedule.onTime.length,T=!1;for(s=0;s<d;s++)void 0!==u.settings.onOffTimeSchedule.onTime[s].day&&null!==u.settings.onOffTimeSchedule.onTime[s].day&&(o(u.settings.onOffTimeSchedule.onTime[s].day,a.day)?c++:l.day=u.settings.onOffTimeSchedule.onTime[s].day),void 0!==u.settings.onOffTimeSchedule.onTime[s].hour&&null!==u.settings.onOffTimeSchedule.onTime[s].hour&&(u.settings.onOffTimeSchedule.onTime[s].hour===a.hour?c++:l.hour=u.settings.onOffTimeSchedule.onTime[s].hour),void 0!==u.settings.onOffTimeSchedule.onTime[s].minute&&null!==u.settings.onOffTimeSchedule.onTime[s].minute&&(u.settings.onOffTimeSchedule.onTime[s].minute===a.minute?c++:l.minute=u.settings.onOffTimeSchedule.onTime[s].minute),3!==c?f.onTime.push(l):T=!0,c=0,l={};var g=null===u.settings.onOffTimeSchedule.offTime||void 0===u.settings.onOffTimeSchedule.offTime?0:u.settings.onOffTimeSchedule.offTime.length;for(s=0;s<g;s++)void 0!==u.settings.onOffTimeSchedule.offTime[s].day&&null!==u.settings.onOffTimeSchedule.offTime[s].day&&(l.day=u.settings.onOffTimeSchedule.offTime[s].day),void 0!==u.settings.onOffTimeSchedule.offTime[s].hour&&null!==u.settings.onOffTimeSchedule.offTime[s].hour&&(l.hour=u.settings.onOffTimeSchedule.offTime[s].hour),void 0!==u.settings.onOffTimeSchedule.offTime[s].minute&&null!==u.settings.onOffTimeSchedule.offTime[s].minute&&(l.minute=u.settings.onOffTimeSchedule.offTime[s].minute),f.offTime.push(l),l={};T?t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"commercial",settings:{onOffTimeSchedule:f}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.deleteOnTimer returns failure."),n(e))}}):(i(u={},"PAOT","Power.deleteOnTimer returns failure. / No matched found"),n(u))}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.deleteOnTimer returns failure."),n(e))}})}else{var m;if(void 0===r.hour||isNaN(r.hour)||"number"!=typeof r.hour||r.hour<0||r.hour>23||void 0===r.minute||isNaN(r.minute)||"number"!=typeof r.minute||r.minute<0||r.minute>59||void 0===r.week||isNaN(r.week)||"number"!=typeof r.week||r.week<0||r.week>127||void 0===r.inputSource||"string"!=typeof r.inputSource||0!==r.inputSource.indexOf("ext://"))return void("function"==typeof n&&(i(m={},"PDOT","Power.deleteOnTimer returns failure. invalid parameters or out of range."),n(m)));t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["multiOnTimerHour","multiOnTimerMinute","multiOnTimerWeekday","multiOnTimerSource","onTimerSchedule","onTimerCount"]},onSuccess:function(o){!0===o.returnValue&&s(function(s){t.Request("luna://com.webos.service.eim/",{method:"getAllInputStatus",onSuccess:function(f){if(!0===o.returnValue){s.webOSVer,"string"==typeof o.settings.multiOnTimerHour&&(o.settings.multiOnTimerHour=JSON.parse(o.settings.multiOnTimerHour)),"string"==typeof o.settings.multiOnTimerMinute&&(o.settings.multiOnTimerMinute=JSON.parse(o.settings.multiOnTimerMinute)),"string"==typeof o.settings.multiOnTimerWeekday&&(o.settings.multiOnTimerWeekday=JSON.parse(o.settings.multiOnTimerWeekday)),"string"==typeof o.settings.multiOnTimerSource&&(o.settings.multiOnTimerSource=JSON.parse(o.settings.multiOnTimerSource)),"string"==typeof o.settings.onTimerSchedule&&(o.settings.onTimerSchedule=JSON.parse(o.settings.onTimerSchedule));for(var m=0,a=null===o.settings.onTimerSchedule||void 0===o.settings.onTimerSchedule?0:o.settings.onTimerSchedule.length,l=["0","0","0","0","0","0","0"],c=["0","0","0","0","0","0","0"],d=["0","0","0","0","0","0","0"],T=["0","0","0","0","0","0","0"],g=[],h=function(e){if("H15"==u.chipset)switch(e){case"ext://hdmi:1":return"HDMI1";case"ext://hdmi:2":return"HDMI2";case"ext://hdmi:3":case"ext://dvi:1":return"OPS/HDMI3/DVI";case"ext://dp:1":return"DISPLAYPORT";case"ext://rgb:1":return"RGB";case"ext://ops:1":return"OPS/HDMI3/DVI";case"HDMI1":return"ext://hdmi:1";case"HDMI2":return"ext://hdmi:2";case"HDMI3":return"ext://hdmi:3";case"DVI":return"ext://dvi:1";case"DISPLAYPORT":return"ext://dp:1";case"RGB":return"ext://rgb:1";case"OPS":return"ext://ops:1";case"OPS/HDMI3/DVI":return"ext://hdmi:3"}else switch(e){case"ext://hdmi:1":return"HDMI1";case"ext://hdmi:2":return"HDMI2";case"ext://hdmi:3":return"HDMI3";case"ext://dvi:1":return"DVI";case"ext://dp:1":return"DISPLAYPORT";case"ext://rgb:1":return"RGB";case"ext://ops:1":return"OPS";case"HDMI1":case"HDMI":return"ext://hdmi:1";case"HDMI2":return"ext://hdmi:2";case"HDMI3":return"ext://hdmi:3";case"DVI":return"ext://dvi:1";case"DISPLAYPORT":return"ext://dp:1";case"RGB":return"ext://rgb:1";case"OPS":return"ext://ops:1";case"OPS/HDMI3/DVI":return"ext://hdmi:3"}return null}(r.inputSource),O=0;O<f.totalCount;O++){var p=f.devices[O].deviceName,S=p,y=r.inputSource.substring(6).split(":"),w="1";if(!1===isNaN(p.substring(p.length-1,p.length))&&(p=p.substring(0,p.length-1),w=f.devices[O].id.split("_")[1]),"DISPLAYPORT"===p.toUpperCase()&&(p="DP"),p.toUpperCase().indexOf(y[0].toUpperCase())>=0&&w===y[1]){h=S;break}}var v=!1;for(3===s.webOSVer&&(r.week>=64?r.week=1+2*(r.week-64):r.week=2*r.week),O=0;O<a;O++)null!==o.settings.onTimerSchedule[O]&&(r.week,o.settings.onTimerSchedule[O].weekday,!1===v&&r.hour===o.settings.onTimerSchedule[O].hour&&r.minute===o.settings.onTimerSchedule[O].minute&&r.week==o.settings.onTimerSchedule[O].weekday&&o.settings.onTimerSchedule[O].input.toUpperCase()===h.toUpperCase()?v=!0:(l[m]=o.settings.multiOnTimerHour[O],c[m]=o.settings.multiOnTimerMinute[O],d[m]=o.settings.multiOnTimerWeekday[O],T[m]=o.settings.multiOnTimerSource[O],g[m]=o.settings.onTimerSchedule[O],m++));if(!0===v&&a--,0===a&&(g=[]),o.settings.onTimerSchedule.length===a)return void("function"==typeof n&&(i(o,"PDOT","Power.deleteOnTimer returns failure. There is no 'on timer' matched in the list."),n(o)));t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOnTimerHour:l,multiOnTimerMinute:c,multiOnTimerWeekday:d,multiOnTimerSource:T,onTimerCount:a,onTimerSchedule:g}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PDOT","Power.deleteOnTimer returns failure."),n(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PDOT","Power.deleteOnTimer returns failure"),n(e))}})})},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PDOT","Power.deleteOnTimer returns failure."),n(e))}})}})},e.prototype.addOffTimer=function(e,n,o){if(JSON.stringify(o),void 0===o.hour||isNaN(o.hour)||"number"!=typeof o.hour||o.hour<0||o.hour>23||void 0===o.minute||isNaN(o.minute)||"number"!=typeof o.minute||o.minute<0||o.minute>59||void 0===o.week||isNaN(o.week)||"number"!=typeof o.week||o.week<=0||o.week>127){if("function"==typeof n){var r={};i(r,"PAOT","Power.addOffTimer returns failure. Invalid parameter."),n(r)}}else s(function(r){4===r.webOSVer||r.webOSVer>4?t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(r){if(!0===r.returnValue){for(var u=0,s={onTime:[],offTime:[]},f=[],m={},a=1;0!==o.week;){if(1&o.week)switch(a){case 1:f.push("mon");break;case 2:f.push("tue");break;case 4:f.push("wed");break;case 8:f.push("thu");break;case 16:f.push("fri");break;case 32:f.push("sat");break;case 64:f.push("sun")}if(o.week=o.week>>>1,a<<=1,0===o.week)break}m.day=f,m.hour=o.hour,m.minute=o.minute,s.offTime.push(m),m={};var l=null===r.settings.onOffTimeSchedule.onTime||void 0===r.settings.onOffTimeSchedule.onTime?0:r.settings.onOffTimeSchedule.onTime.length;for(u=0;u<l;u++)void 0!==r.settings.onOffTimeSchedule.onTime[u].day&&null!==r.settings.onOffTimeSchedule.onTime[u].day&&(m.day=r.settings.onOffTimeSchedule.onTime[u].day),void 0!==r.settings.onOffTimeSchedule.onTime[u].hour&&null!==r.settings.onOffTimeSchedule.onTime[u].hour&&(m.hour=r.settings.onOffTimeSchedule.onTime[u].hour),void 0!==r.settings.onOffTimeSchedule.onTime[u].minute&&null!==r.settings.onOffTimeSchedule.onTime[u].minute&&(m.minute=r.settings.onOffTimeSchedule.onTime[u].minute),s.onTime.push(m),m={};var c=null===r.settings.onOffTimeSchedule.offTime||void 0===r.settings.onOffTimeSchedule.offTime?0:r.settings.onOffTimeSchedule.offTime.length;for(u=0;u<c;u++)void 0!==r.settings.onOffTimeSchedule.offTime[u].day&&null!==r.settings.onOffTimeSchedule.offTime[u].day&&(m.day=r.settings.onOffTimeSchedule.offTime[u].day),void 0!==r.settings.onOffTimeSchedule.offTime[u].hour&&null!==r.settings.onOffTimeSchedule.offTime[u].hour&&(m.hour=r.settings.onOffTimeSchedule.offTime[u].hour),void 0!==r.settings.onOffTimeSchedule.offTime[u].minute&&null!==r.settings.onOffTimeSchedule.offTime[u].minute&&(m.minute=r.settings.onOffTimeSchedule.offTime[u].minute),s.offTime.push(m),m={};t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"commercial",settings:{onOffTimeSchedule:s}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.addOffTimer returns failure."),n(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.addOffTimer returns failure."),n(e))}}):t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["multiOffTimerHour","multiOffTimerMinute","multiOffTimerWeekday","offTimerSchedule","offTimerCount"]},onSuccess:function(r){if(!0===r.returnValue){"string"==typeof r.settings.multiOffTimerHour&&(r.settings.multiOffTimerHour=JSON.parse(r.settings.multiOffTimerHour)),"string"==typeof r.settings.multiOffTimerMinute&&(r.settings.multiOffTimerMinute=JSON.parse(r.settings.multiOffTimerMinute)),"string"==typeof r.settings.multiOffTimerWeekday&&(r.settings.multiOffTimerWeekday=JSON.parse(r.settings.multiOffTimerWeekday)),"string"==typeof r.settings.offTimerSchedule&&(r.settings.offTimerSchedule=JSON.parse(r.settings.offTimerSchedule));var u=null===r.settings.offTimerSchedule||void 0===r.settings.offTimerSchedule?0:r.settings.offTimerSchedule.length;if(r.settings.multiOffTimerHour.length<=u)return void("function"==typeof n&&(i(r,"PAOT","Power.addOffTimer returns failure. No space to add timer."),n(r)));s(function(s){s.webOSVer,3===s.webOSVer&&(o.week>=64?o.week=1+2*(o.week-64):o.week=2*o.week),r.settings.multiOffTimerHour[u]=o.hour,r.settings.multiOffTimerMinute[u]=o.minute,r.settings.multiOffTimerWeekday[u]=o.week,o.hour,o.minute,o.week;var f=360;r.settings.offTimerSchedule[u]={_id:""+f++,hour:o.hour,minute:o.minute,weekday:o.week},t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOffTimerHour:r.settings.multiOffTimerHour,multiOffTimerMinute:r.settings.multiOffTimerMinute,multiOffTimerWeekday:r.settings.multiOffTimerWeekday,offTimerCount:u+1,offTimerSchedule:r.settings.offTimerSchedule}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.addOffTimer returns failure."),n(e))}})})}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.addOffTimer returns failure."),n(e))}})})},e.prototype.deleteOffTimer=function(e,n,r){JSON.stringify(r),s(function(u){if(4===u.webOSVer||u.webOSVer>4){if(void 0===r.hour||isNaN(r.hour)||"number"!=typeof r.hour||r.hour<0||r.hour>23||void 0===r.minute||isNaN(r.minute)||"number"!=typeof r.minute||r.minute<0||r.minute>59||void 0===r.week||isNaN(r.week)||"number"!=typeof r.week||r.week<0||r.week>127)return void("function"==typeof n&&(i(f={},"PAOT","Power.deleteOffTimer returns failure. invalid parameters or out of range."),n(f)));t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(u){if(!0===u.returnValue){for(var s=0,f={onTime:[],offTime:[]},m=[],a={},l={},c=1;0!==r.week;){if(1&r.week)switch(c){case 1:m.push("mon");break;case 2:m.push("tue");break;case 4:m.push("wed");break;case 8:m.push("thu");break;case 16:m.push("fri");break;case 32:m.push("sat");break;case 64:m.push("sun")}if(r.week=r.week>>>1,c<<=1,0===r.week)break}c=0,a.day=m,a.hour=r.hour,a.minute=r.minute;var d=null===u.settings.onOffTimeSchedule.onTime||void 0===u.settings.onOffTimeSchedule.onTime?0:u.settings.onOffTimeSchedule.onTime.length,T=!1;for(s=0;s<d;s++)void 0!==u.settings.onOffTimeSchedule.onTime[s].day&&null!==u.settings.onOffTimeSchedule.onTime[s].day&&(l.day=u.settings.onOffTimeSchedule.onTime[s].day),void 0!==u.settings.onOffTimeSchedule.onTime[s].hour&&null!==u.settings.onOffTimeSchedule.onTime[s].hour&&(l.hour=u.settings.onOffTimeSchedule.onTime[s].hour),void 0!==u.settings.onOffTimeSchedule.onTime[s].minute&&null!==u.settings.onOffTimeSchedule.onTime[s].minute&&(l.minute=u.settings.onOffTimeSchedule.onTime[s].minute),f.onTime.push(l),l={};var g=null===u.settings.onOffTimeSchedule.offTime||void 0===u.settings.onOffTimeSchedule.offTime?0:u.settings.onOffTimeSchedule.offTime.length;for(s=0;s<g;s++)void 0!==u.settings.onOffTimeSchedule.offTime[s].day&&null!==u.settings.onOffTimeSchedule.offTime[s].day&&(o(u.settings.onOffTimeSchedule.offTime[s].day,a.day)?c++:l.day=u.settings.onOffTimeSchedule.offTime[s].day),void 0!==u.settings.onOffTimeSchedule.offTime[s].hour&&null!==u.settings.onOffTimeSchedule.offTime[s].hour&&(u.settings.onOffTimeSchedule.offTime[s].hour===a.hour?c++:l.hour=u.settings.onOffTimeSchedule.offTime[s].hour),void 0!==u.settings.onOffTimeSchedule.offTime[s].minute&&null!==u.settings.onOffTimeSchedule.offTime[s].minute&&(u.settings.onOffTimeSchedule.offTime[s].minute===a.minute?c++:l.minute=u.settings.onOffTimeSchedule.offTime[s].minute),3!==c?f.offTime.push(l):T=!0,c=0,l={};T?t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"commercial",settings:{onOffTimeSchedule:f}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.deleteOffTimer returns failure."),n(e))}}):(i(u={},"PAOT","Power.deleteOffTimer returns failure. / No matched found."),n(u))}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PAOT","Power.deleteOffTimer returns failure."),n(e))}})}else{var f;if(void 0===r.hour||isNaN(r.hour)||"number"!=typeof r.hour||r.hour<0||r.hour>23||void 0===r.minute||isNaN(r.minute)||"number"!=typeof r.minute||r.minute<0||r.minute>59||void 0===r.week||isNaN(r.week)||"number"!=typeof r.week||r.week<0||r.week>127)return void("function"==typeof n&&(i(f={},"PDOT","Power.deleteOffTimer returns failure. invalid parameters or out of range."),n(f)));t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["multiOffTimerHour","multiOffTimerMinute","multiOffTimerWeekday","offTimerSchedule","offTimerCount"]},onSuccess:function(o){if(!0===o.returnValue){"string"==typeof o.settings.multiOffTimerHour&&(o.settings.multiOffTimerHour=JSON.parse(o.settings.multiOffTimerHour)),"string"==typeof o.settings.multiOffTimerMinute&&(o.settings.multiOffTimerMinute=JSON.parse(o.settings.multiOffTimerMinute)),"string"==typeof o.settings.multiOffTimerWeekday&&(o.settings.multiOffTimerWeekday=JSON.parse(o.settings.multiOffTimerWeekday)),"string"==typeof o.settings.offTimerSchedule&&(o.settings.offTimerSchedule=JSON.parse(o.settings.offTimerSchedule));var u=0,f=null===o.settings.offTimerSchedule||void 0===o.settings.offTimerSchedule?0:o.settings.offTimerSchedule.length,m=["0","0","0","0","0","0","0"],a=["0","0","0","0","0","0","0"],l=["0","0","0","0","0","0","0"],c=[],d=!1;s(function(e){e.webOSVer,3===e.webOSVer&&(r.week>=64?r.week=1+2*(r.week-64):r.week=2*r.week)});for(var T=0;T<f;T++)null!==o.settings.offTimerSchedule[T]&&(r.week,o.settings.offTimerSchedule[T].weekday,!1===d&&r.hour===o.settings.offTimerSchedule[T].hour&&r.minute===o.settings.offTimerSchedule[T].minute&&r.week===o.settings.offTimerSchedule[T].weekday?d=!0:(m[u]=o.settings.multiOffTimerHour[T],a[u]=o.settings.multiOffTimerMinute[T],l[u]=o.settings.multiOffTimerWeekday[T],c[u]=o.settings.offTimerSchedule[T],u++));if(!0===d&&f--,0===f&&(c=[]),o.settings.offTimerSchedule.length===f)return void("function"==typeof n&&(i(o,"PDOT","Power.deleteOffTimer returns failure. There is no 'off timer' matched in the list."),n(o)));t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOffTimerHour:m,multiOffTimerMinute:a,multiOffTimerWeekday:l,offTimerCount:f,offTimerSchedule:c}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PDOT","Power.deleteOffTimer returns failure."),n(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PDOT","Power.deleteOffTimer returns failure."),n(e))}})}})},e.prototype.getOnTimerList=function(e,n){s(function(o){4===o.webOSVer||o.webOSVer>4?t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(t){if(!0===t.returnValue){for(var n={},i=new Array(null===t.settings.onOffTimeSchedule.onTime||void 0===t.settings.onOffTimeSchedule.onTime?0:t.settings.onOffTimeSchedule.onTime.length),o=0,r=0;r<i.length;r++,o++)if(null!==t.settings.onOffTimeSchedule.onTime[r]&&void 0!==t.settings.onOffTimeSchedule.onTime[r]){i[o]={hour:0,minute:0,week:0};for(var u=t.settings.onOffTimeSchedule.onTime[r].day,s=0,f=0;f<u.length;f++)"mon"===u[f]&&(s+=1),"tue"===u[f]&&(s+=2),"wed"===u[f]&&(s+=4),"thu"===u[f]&&(s+=8),"fri"===u[f]&&(s+=16),"sat"===u[f]&&(s+=32),"sun"===u[f]&&(s+=64);i[o].hour=t.settings.onOffTimeSchedule.onTime[r].hour,i[o].minute=t.settings.onOffTimeSchedule.onTime[r].minute,i[o].week=s}n.timerList=i,"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PGOTL","Power.getOnTimerList returns failure."),n(e))}}):t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["onTimerSchedule"]},onSuccess:function(t){!0===t.returnValue&&s(function(n){n.webOSVer;var i={};"string"==typeof t.settings.onTimerSchedule&&(t.settings.onTimerSchedule=JSON.parse(t.settings.onTimerSchedule));for(var o=new Array(null===t.settings.onTimerSchedule||void 0===t.settings.onTimerSchedule?0:t.settings.onTimerSchedule.length),r=0,u=0;u<o.length;u++)if(null!==t.settings.onTimerSchedule[u]&&void 0!==t.settings.onTimerSchedule[u]){if(o[r]={hour:0,minute:0,week:0,inputSource:0},3===n.webOSVer){var s=t.settings.onTimerSchedule[u].weekday;s%2?s=64+(s-s%2)/2:s/=2}else s=t.settings.onTimerSchedule[u].weekday;o[r].hour=t.settings.onTimerSchedule[u].hour,o[r].minute=t.settings.onTimerSchedule[u].minute,o[r].week=s;var f="ext://",m=t.settings.onTimerSchedule[u].input.toUpperCase(),a="1";!1===isNaN(m.substring(m.length-1,m.length))&&(a=m.substring(m.length-1,m.length),m=m.substring(0,m.length-1)),f="DISPLAYPORT"===(m=m.split("/")[0]).toUpperCase()?f+"dp:"+a:f+m.toLowerCase()+":"+a,o[r++].inputSource=f}i.timerList=o,"function"==typeof e&&e(i)})},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PGOTL","Power.getOnTimerList returns failure."),n(e))}})})},e.prototype.getOffTimerList=function(e,n){s(function(o){4===o.webOSVer||o.webOSVer>4?t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(t){if(!0===t.returnValue){for(var n={},i=new Array(null===t.settings.onOffTimeSchedule.offTime||void 0===t.settings.onOffTimeSchedule.offTime?0:t.settings.onOffTimeSchedule.offTime.length),o=0,r=0;r<i.length;r++,o++)if(null!==t.settings.onOffTimeSchedule.offTime[r]&&void 0!==t.settings.onOffTimeSchedule.offTime[r]){i[o]={hour:0,minute:0,week:0};for(var u=t.settings.onOffTimeSchedule.offTime[r].day,s=0,f=0;f<u.length;f++)"mon"===u[f]&&(s+=1),"tue"===u[f]&&(s+=2),"wed"===u[f]&&(s+=4),"thu"===u[f]&&(s+=8),"fri"===u[f]&&(s+=16),"sat"===u[f]&&(s+=32),"sun"===u[f]&&(s+=64);i[o].hour=t.settings.onOffTimeSchedule.offTime[r].hour,i[o].minute=t.settings.onOffTimeSchedule.offTime[r].minute,i[o].week=s}n.timerList=i,"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PGOTL","Power.getOffTimerList returns failure."),n(e))}}):t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["offTimerSchedule"]},onSuccess:function(t){s(function(n){if(n.webOSVer,!0===t.returnValue){var i={};"string"==typeof t.settings.offTimerSchedule&&(t.settings.offTimerSchedule=JSON.parse(t.settings.offTimerSchedule));for(var o=new Array(null===t.settings.offTimerSchedule||void 0===t.settings.offTimerSchedule?0:t.settings.offTimerSchedule.length),r=0,u=0;u<o.length;u++)if(null!==t.settings.offTimerSchedule[u]&&void 0!==t.settings.offTimerSchedule[u]){if(o[r]={hour:0,minute:0,week:0},3===n.webOSVer){var s=t.settings.offTimerSchedule[u].weekday;s%2?s=64+(s-s%2)/2:s/=2}else s=t.settings.offTimerSchedule[u].weekday;o[r].hour=t.settings.offTimerSchedule[u].hour,o[r].minute=t.settings.offTimerSchedule[u].minute,o[r++].week=s}i.timerList=o,"function"==typeof e&&e(i)}})},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PGOTL","Power.getOffTimerList returns failure."),n(e))}})})},e.prototype.setDisplayMode=function(n,o,r){JSON.stringify(r),s(function(u){if(4===u.webOSVer||u.webOSVer>4)t.Request("luna://com.webos.service.commercial.scapadapter/power",{method:"setDisplayMode",parameters:{displayMode:r.displayMode},onSuccess:function(e){!0===e.returnValue&&(delete e.returnValue,"function"==typeof n&&n())},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(i(e,"PSDM","Power.setDisplayMode returns failure."),o(e))}});else{var s=null;switch(r.displayMode){case e.DisplayMode.DISPLAY_OFF:s="turnOffScreen";break;case e.DisplayMode.DISPLAY_ON:s="turnOnScreen";break;default:var f;return void("function"==typeof o&&(i(f={},"PSDM","Power.setDisplayMode returns failure. Invalid option value."),o(f)))}if(null===s&&"function"==typeof o)return i(f={},"PSDM","Power.setDisplayMode returns failure. command was not defined."),void o(f);t.Request("luna://com.webos.service.tv.signage/",{method:"getPowerState",onSuccess:function(e){!0!==e.returnValue||e.state!==r.displayMode?t.Request("luna://com.webos.service.tv.signage/",{method:s,onSuccess:function(e){!0===e.returnValue&&"function"==typeof n&&n()},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(i(e,"PSDM","Power.setDisplayMode returns failure."),o(e))}}):"function"==typeof n&&n()},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(i(e,"PSDM","Power.setDisplayMode returns failure."),o(e))}})}})},e.prototype.executePowerCommand=function(n,o,r){JSON.stringify(r),s(function(u){if(4===u.webOSVer||u.webOSVer>4)t.Request("luna://com.webos.service.commercial.scapadapter/power",{method:"executePowerCommand",parameters:{powerCommand:r.powerCommand},onSuccess:function(e){delete e.returnValue,"function"==typeof n&&n()},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(i(e,"PEPM","Power.executePowerCommand returns failure."),o(e))}});else{if(void 0===r.powerCommand||"string"!=typeof r.powerCommand||null===r.powerCommand||r.powerCommand.length<=0)return void("function"==typeof o&&(i(s={},"PEPM","Power.executePowerCommand returns failure. invalid argument or out of range. "),o(s)));var s;if(r.powerCommand!==e.PowerCommand.REBOOT&&r.powerCommand!==e.PowerCommand.SHUTDOWN)return i(s={},"PEPM","Power.executePowerCommand returns failure. invalid argument."),void o(s);t.Request("luna://com.webos.service.tv.signage/",{method:r.powerCommand,parameters:{reason:"unknown"},onSuccess:function(e){!0===e.returnValue&&"function"==typeof n&&n()},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(i(e,"PEPM","Power.executePowerCommand returns failure."),o(e))}})}})},e.prototype.setDPMWakeup=function(n,o,r){var u=null;switch(r.dpmSignalType){case e.DPMSignalType.CLOCK:u="clock";break;case e.DPMSignalType.CLOCK_WITH_DATA:u="clockAndData"}if(null===u&&"function"==typeof o){var s={};return i(s,"PSDW","Power.setDPMWakeup returns failure. command was not defined."),void o(s)}t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{dpmWakeUpControl:u}},onSuccess:function(e){!0===e.returnValue&&"function"==typeof n&&n()},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(i(e,"PSDW","Power.setDPMWakeup returns failure."),o(e))}})},e.prototype.getDPMWakeup=function(e,n){t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["dpmWakeUpControl"]},onSuccess:function(t){if(!0===t.returnValue){var n={};n.dpmSignalType=t.settings.dpmWakeUpControl,"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PGDW","Power.getDPMWakeup returns failure."),n(e))}})},e.prototype.setPMMode=function(n,o,r){var u=null;switch(r.mode){case e.PMMode.PowerOff:u="powerOff";break;case e.PMMode.SustainAspectRatio:u="sustainAspectRatio";break;case e.PMMode.ScreenOff:u="screenOff";break;case e.PMMode.ScreenOffAlways:u="screenOffAlways";break;case e.PMMode.ScreenOffBacklight:u="screenOffBacklight"}if(null===u&&"function"==typeof o){var s={};return i(s,"PSPM","Power.setPMMode returns failure. command was not defined."),void o(s)}t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{pmMode:u}},onSuccess:function(e){!0===e.returnValue&&"function"==typeof n&&n()},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(i(e,"PSPM","Power.setPMMode returns failure."),o(e))}})},e.prototype.getPMMode=function(e,n){t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["pmMode"]},onSuccess:function(t){if(!0===t.returnValue){var n={};n.mode=t.settings.pmMode,"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PGPM","Power.getPMMode returns failure."),n(e))}})},e.prototype.setPowerOnDelay=function(e,n,o){var r;return o.delayTime,null===o.delayTime&&"function"==typeof n?(i(r={},"PSPD","Power.setPowerOnDelay returns failure. command was not defined."),void n(r)):"number"!=typeof o.delayTime?(i(r={},"PSPD","Power.setPowerOnDelay returns failure. delayTime is not a number."),void n(r)):o.delayTime<0||o.delayTime>250?(i(r={},"PSPD","Power.setPowerOnDelay returns failure. Out of range."),void n(r)):void t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{powerOnDelay:o.delayTime}},onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PSPD","Power.setPowerOnDelay returns failure."),n(e))}})},e.prototype.getPowerOnDelay=function(e,n){t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["powerOnDelay"]},onSuccess:function(t){if(!0===t.returnValue){var n={};n.delayTime=t.settings.powerOnDelay,"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"PGPD","Power.getPowerOnDelay returns failure."),n(e))}})},e.prototype.getOnOffTimeSchedule=function(e,n){t.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"getOnOffTimeSchedule",parameters:{},onSuccess:function(t){if(!0===t.returnValue&&"function"==typeof e){var n={};n.onOffTimeScheduleList=t.settings.onOffTimeSchedule,"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"TGAS","Power.getOnOffTimeSchedule returns failure."),n(e))}})},e.prototype.setOnOffTimeSchedule=function(e,n,o){t.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"setOnOffTimeSchedule",parameters:o,onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"TGAS","Power.setOnOffTimeSchedule returns failure."),n(e))}})},e.prototype.unsetOnOffTimeSchedule=function(e,n){t.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"unsetOnOffTimeSchedule",parameters:{},onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&(i(e,"TGAS","Power.unsetOnOffTimeSchedule returns failure."),n(e))}})},e}();
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/security",function(d,c,e){function f(h){}var a;if(window.PalmSystem){f("Window.PalmSystem Available");a=d("cordova/plugin/webos/service")}else{a={Request:function(h,i){f(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?"})}}}}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}}var g=function(){};g.prototype.registerServerCertificate=function(i,j,k){f("registerServerCertificate: "+JSON.stringify(k));if(k.userName===undefined||typeof k.userName!=="string"||k.userName.length<4||k.userName.length>10||k.password===undefined||typeof k.password!=="string"||k.password.length<4||k.password.length>10||k.certificate===undefined||typeof k.certificate!=="string"){if(typeof j==="function"){var h={};b(h,"SRSC","Security.registerServerCertificate returns failure. invalid parameters or out of range.");j(h)}return}a.Request("luna://com.webos.service.commercial.signage.storageservice/security/",{method:"registerServerCertificate",parameters:{userName:k.userName,password:k.password,certificate:k.certificate},onSuccess:function(l){f("registerServerCertificate: On Success");if(l.returnValue===true){if(typeof i==="function"){i()}}},onFailure:function(l){f("registerServerCertificate: On Failure");delete l.returnValue;if(typeof j==="function"){b(l,"SRSC","Security.registerServerCertificate returns failure.");j(l)}}});f("Security.registerServerCertificate Done")};g.prototype.unregisterServerCertificate=function(i,j,k){f("unregisterServerCertificate: "+JSON.stringify(k));if(k.userName===undefined||typeof k.userName!=="string"||k.userName.length<4||k.userName.length>10||k.password===undefined||typeof k.password!=="string"||k.password.length<4||k.password.length>10){if(typeof j==="function"){var h={};b(h,"SUSC","Security.unregisterServerCertificate returns failure. invalid parameters or out of range.");j(h)}return}a.Request("luna://com.webos.service.commercial.signage.storageservice/security/",{method:"unregisterServerCertificate",parameters:{userName:k.userName,password:k.password},onSuccess:function(l){f("unregisterServerCertificate: On Success");if(l.returnValue===true){if(typeof i==="function"){i()}}},onFailure:function(l){f("unregisterServerCertificate: On Failure");delete l.returnValue;if(typeof j==="function"){b(l,"SUSC","Security.unregisterServerCertificate returns failure.");j(l)}}});f("Security.unregisterServerCertificate Done")};g.prototype.existServerCertificate=function(i,j,k){f("existServerCertificate: "+JSON.stringify(k));if(k.userName===undefined||typeof k.userName!=="string"||k.userName.length<4||k.userName.length>10||k.password===undefined||typeof k.password!=="string"||k.password.length<4||k.password.length>10){if(typeof j==="function"){var h={};b(h,"SESC","Security.existServerCertificate returns failure. invalid parameters or out of range.");j(h)}return}a.Request("luna://com.webos.service.commercial.signage.storageservice/security/",{method:"existServerCertificate",parameters:{userName:k.userName,password:k.password},onSuccess:function(l){f("existServerCertificate: On Success");if(l.returnValue===true){if(typeof i==="function"){var m={};m.userName=k.userName;m.exist=l.exist;i(m)}}},onFailure:function(l){f("existServerCertificate: On Failure");delete l.returnValue;if(typeof j==="function"){b(l,"SESC","Security.existServerCertificate returns failure.");j(l)}}});f("Security.existServerCertificate Done")};e.exports=g});Security=cordova.require("cordova/plugin/security");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/signage",function(e,r,o){var t;t=window.PalmSystem?e("cordova/plugin/webos/service"):{Request:function(e,r){"function"==typeof r.onFailure&&r.onFailure({returnValue:!1,errorCode:"CORDOVA_ERR",errorText:"PalmSystem Not Available. Cordova is not installed?"})}};var n=function(e){var r=M[e];JSON.stringify(r,null,3),r&&!0===r.getEvent&&M[e].listenerObj&&(M[e].listenerObj.cancel(),M[e].getEvent=!1,M[e].listenerObj=null)},i=function(e,r){var o=M[e];o&&"function"==typeof o.createListener&&(o.listenerObj=o.createListener(r),o.getEvent=!0)};function a(e,r){for(var o in e)if(e[o]===r)return!0;return!1}var u="failover",s="backupViaStorage",c="enableIrRemote",l="enableLocalKey",f="osdPortraitMode",d="tileMode",g="tileId",m="tileRow",p="tileCol",v="naturalMode",S="ismmethod";var y=function(e,r,o){var n=t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/startMonitorRS232C",parameters:{subscribe:!0},onSuccess:function(t){if(JSON.stringify(t,null,3),!0!==t.returnValue)var i,a,u,s;else if(1===Object.keys(t).length)a="RS232C",u=n,s=o,!1===R.hasOwnProperty(a)?(R[a]={},R[a].instanceOfSubscription=u,R[a].eventListener=s):(R[a].instanceOfSubscription=u,R[a].eventListener=s),e();else if(!0===t.hasOwnProperty("data")){var c=(i="RS232C",!1!==R.hasOwnProperty(i)&&R[i]);!1===c?r({errorCode:"INTERNAL_ERROR",errorText:"There is not subscriptionEventInfo"}):"function"==typeof c.eventListener&&c.eventListener({data:t.data})}else r({errorCode:"INTERNAL_ERROR",errorText:"Unknown return value"})},onFailure:function(e){JSON.stringify(e,null,3),r({errorCode:"LUNA_ERROR",errorText:"Failed to request getRS232CEvent to system"})}})},M={fan:{getEvent:!1,listenerObj:null,createListener:function(e){return t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getFanEvent",parameters:{subscribe:!0},onSuccess:function(r){if(JSON.stringify(r,null,3),!0===r.returnValue){var o={source:O.MonitoringSource.FAN,type:O.EventType.FAN_STATUS,data:{status:r.fanFault}};"function"==typeof e&&e(o)}},onFailure:function(e){JSON.stringify(e,null,3)}})}},screen:{getEvent:!1,listenerObj:null,createListener:function(e){return t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getScreenEvent",parameters:{subscribe:!0},onSuccess:function(r){if(JSON.stringify(r,null,3),!0===r.returnValue){var o={source:O.MonitoringSource.SCREEN,type:O.EventType.SCREEN_STATUS,data:{status:r.screen}};"function"==typeof e&&e(o)}},onFailure:function(e){JSON.stringify(e,null,3)}})}},temperature:{getEvent:!1,listenerObj:null,createListener:function(e){return t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getTemperature",parameters:{subscribe:!0},onSuccess:function(r){if(JSON.stringify(r,null,3),!0===r.returnValue){var o={source:O.MonitoringSource.THERMOMETER,type:O.EventType.CURRENT_TEMPERATURE,data:{temperature:r.temperature}};"function"==typeof e&&e(o)}},onFailure:function(e){JSON.stringify(e,null,3)}})}},signal:{getEvent:!1,listenerObj:null,createListener:function(e){return t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getSignalEvent",parameters:{subscribe:!0},onSuccess:function(r){if(JSON.stringify(r,null,3),!0===r.returnValue){var o={type:O.EventType.SIGNAL_STATUS,source:O.MonitoringSource.SIGNAL,data:{}};!0===r.noSignal?o.data.status="no_signal":o.data.status="signal_available","function"==typeof e&&e(o)}},onFailure:function(e){JSON.stringify(e,null,3)}})}},lamp:{getEvent:!1,listenerObj:null,createListener:function(e){return t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getLampEvent",parameters:{subscribe:!0},onSuccess:function(r){if(JSON.stringify(r,null,3),!0===r.returnValue){var o={source:O.MonitoringSource.LAMP,type:O.EventType.LAMP_STATUS,data:{status:r.lampFault}};"function"==typeof e&&e(o)}},onFailure:function(e){JSON.stringify(e,null,3)}})}}},R={RS232C:{instanceOfSubscription:null,eventListener:null}},T={row:0,col:0},O=function(){};function h(e,r,o){void 0!==e.errorCode&&null!==e.errorCode||(e.errorCode=r),void 0!==e.errorText&&null!==e.errorText||(e.errorText=o)}function E(e,r,o,n,i){var a={category:e,keys:r};t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:a,onSuccess:function(e){if(!0===e.returnValue){var r=o(e.settings);!1===r?"function"==typeof i&&i({errorText:"Invalid DB value",errorCode:"DB_ERROR"}):"function"==typeof n&&n(r)}else JSON.stringify(e,null,3),"function"==typeof i&&i({errorText:"Invalid DB value : "+e.errorText,errorCode:"DB_ERROR"})},onFailure:function(e){if(delete e.returnValue,e.settings){JSON.stringify(e.settings,null,3);var r=o(e.settings);JSON.stringify(e.errorKey,null,3);for(var t=0;t<e.errorKey.length;++t)r[e.errorKey[t]]=O.UNDEFINED;JSON.stringify(r,null,3),"function"==typeof n&&n(r)}else"function"==typeof i&&i({errorText:void 0===e.errorText?"DB Failure":e.errorText,errorCode:"DB_ERROR"})}}),JSON.stringify(a)}function A(e,r,o,n){var i={category:e,settings:r};JSON.stringify(r,null,3);var a=!1;for(var u in r)if(u){a=!0;break}!1!==a?(t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:i,onSuccess:function(){"function"==typeof o&&o()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&n(e)}}),JSON.stringify(i)):o()}function b(e){return"on"===e}O.UNDEFINED="___undefined___",O.OsdPortraitMode={ON:"90",OFF:"off"},O.ImgResolution={HD:"HD",FHD:"FHD"},O.AutomaticStandbyMode={OFF:"off",STANDBY_4HOURS:"4hours"},O.IsmMethod={NORMAL:"NORMAL",ORBITER:"ORBITER",INVERSION:"INVERSION",COLORWASH:"COLORWASH",WHITEWASH:"WHITEWASH",WASHING_BAR:"WASHINGBAR",USER_IMAGE:"USERIMAGE",USER_VIDEO:"USERVIDEO"},O.FailoverMode={OFF:"off",AUTO:"auto",MANUAL:"manual"},O.DigitalAudioInput={HDMI_DP:"hdmi",AUDIO_IN:"audioIn"},O.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"},O.KeyOperationMode={ALLOW_ALL:"normal",POWER_ONLY:"usePwrOnly",BLOCK_ALL:"blockAll"},O.EventType={CURRENT_TEMPERATURE:"CURRENT_TEMPERATURE",FAN_STATUS:"FAN_STATUS",LAMP_STATUS:"LAMP_STATUS",SCREEN_STATUS:"SCREEN_STATUS",SIGNAL_STATUS:"SIGNAL_STATUS"},O.MonitoringSource={FAN:"FAN",LAMP:"LAMP",SIGNAL:"SIGNAL",SCREEN:"SCREEN",THERMOMETER:"THERMOMETER"},O.prototype.setPortraitMode=function(e,r,o){var n,i={};if(function(e){if(e.portraitMode){for(var r in O.OsdPortraitMode)if(e.portraitMode===O.OsdPortraitMode[r])return!0;return n="Signage.setPortraitMode: Unrecognized OsdPortraintMode : "+e.portraitMode,!1}return n="Signage.setPortraitMode: portraitMode does not exist.",!1}(o)){var a=o.portraitMode;i[f]=a,t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"setOsdPortraitMode",parameters:{osdPortraitMode:o.portraitMode},onSuccess:function(r){e()},onFailure:function(o){-1!==o.errorText.indexOf("Unknown method")?A("commercial",i,e,r):r({errorCode:o.errorCode,errorText:o.errorText})}})}else r({errorCode:"BAD_PARAMETER",errorText:n})},O.prototype.setFailoverMode=function(e,r,o){var n,i={};if(function(e){JSON.stringify(e,null,3);var r=e.failoverMode;if(r){if(r.mode){if(r.mode===O.FailoverMode.MANUAL)return r.priority?0!==r.priority.length&&void 0!==r.priority.length:(n="priority should be present when mode is MANUAL.",!1);if(r.priority)return n="This priority is available only if mode is : Signage.FailoverMode.MANUAL",!1;var o=!1;r.mode;for(var t in O.FailoverMode)r.mode===O.FailoverMode[t]&&(O.FailoverMode[t],o=!0);return!!o||(r.mode,n="Unrecognized failoverMode : "+r.mode,!1)}return!r.priority||(r.mode,n="Unrecognized failoverMode : "+r.mode,!1)}return n="Fail over mode not set : ",!1}(o)){var a=o.failoverMode;if(a.mode||a.priority)if(a.mode===O.FailoverMode.MANUAL)t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"setManualFailoverPrioirty",parameters:{priority:a.priority},onSuccess:function(o){o.returnValue?e():(o.errorText,r({errorCode:o.errorCode,errorText:o.errorText}))},onFailure:function(e){e.errorText,r({errorCode:e.errorCode,errorText:e.errorText})}});else if(a.mode){var c=a.mode;a.mode,i[u]=c,i[s]=c,JSON.stringify(i,null,3),A("commercial",i,e,r)}else{r({errorCode:"BAD_PARAMETER",errorText:"Mode should be set."})}else e()}else{r({errorCode:"BAD_PARAMETER",errorText:n})}},O.prototype.getFailoverMode=function(e,r){try{t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"getFailoverPrioirty",parameters:{},onSuccess:function(o){if(o.returnValue){for(var t=[],n=0;n<o.priority.length;n++){var i=o.priority[n].split("/");void 0===i[3]?t.push("ext://"+i[2].toLowerCase()):t.push("ext://"+i[2].toLowerCase()+":1")}e({priority:t,mode:o.mode})}else o.errorText,r({errorCode:o.errorCode,errorText:o.errorText})},onFailure:function(e){e.errorText,r({errorCode:e.errorCode,errorText:e.errorText})}})}catch(e){r({errorCode:"SGFO",errorText:"Signage.getFailoverMode occur error during operaation."})}},O.prototype.setTileInfo=function(e,r,o){var n,i=15,a=15;t.Request("luna://com.webos.service.config",{method:"getConfigs",parameters:{configNames:["commercial.video.tileRowMax","commercial.video.tileColMax"]},onSuccess:function(t){if(t.returnValue)if(i=t.configs["commercial.video.tileRowMax"],a=t.configs["commercial.video.tileColMax"],!0===function(e,r,o){var t=typeof e.tileInfo.enabled;if("undefined"!==t&&"boolean"!==t)return n="enabled should be a boolean",!1;var i=function(e){return!new RegExp(/^[0-9]+$/g).exec(e)};if(!e.tileInfo)return n="Tile info is mandatory",!1;var a=e.tileInfo.row;if(void 0===a)return!0;if(i(a))return n="row should be a natural number :"+a,!1;if(a>r||a<1)return n="row should be 0<n<"+(r+1)+" but :"+a,!1;var u=e.tileInfo.column;if(void 0===u)return!0;if(i(u))return n="column should be a natural number :"+u,!1;if(u>o||u<1)return n="column should be 0<n<"+(o+1)+" but :"+u,!1;var s=e.tileInfo.tileId;if(void 0===s)return!0;if(i(s))return n="id should be a natural number :"+s,!1;if(s<1)return n="id should be bigger than 0 but :"+s,!1;var c=T.row;a&&(c=a);var l=T.column;return u&&(l=u),!(s>l*c&&(n="ID should be less than curRow*curCol",1))}(o,i,a)){var u=o.tileInfo,s={};"boolean"==typeof u.enabled&&(u.enabled?s[d]="on":s[d]="off"),u.row&&(s[m]=u.row.toString()),u.column&&(s[p]=u.column.toString()),u.tileId&&(s[g]=u.tileId.toString()),"boolean"==typeof u.naturalMode&&(u.naturalMode?s[v]="on":s[v]="off"),JSON.stringify(s,null,3);A("commercial",s,function(){u.row&&(T.row=u.row),u.column&&(T.column=u.column),"function"==typeof e&&e()},r)}else{r({errorCode:"BAD_PARAM",errorText:n})}else t.errorText,r({errorCode:t.errorCode,errorText:t.errorText})},onFailure:function(e){e.errorText,r({errorCode:e.errorCode,errorText:e.errorText})}})},O.prototype.getTileInfo=function(e,r){E("commercial",[d,m,p,g,v],function(e){var r={};return JSON.stringify(e,null,3),r.enabled=b(e[d]),r.row=parseInt(e[m],10),r.column=parseInt(e[p],10),r.tileId=parseInt(e[g],10),r.naturalMode=b(e[v]),JSON.stringify(r,null,3),r},e,r)},O.prototype.getSignageInfo=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"getSignageInformation",parameters:{},onSuccess:function(r){if("function"==typeof e){if(r.signageInfo,void 0!==r.signageInfo.digitalAudioInputMode){var o=O.DigitalAudioInput.HDMI_DP;r.signageInfo.digitalAudioInputMode.hasOwnProperty("ext://HDMI:1")?o=r.signageInfo.digitalAudioInputMode["ext://HDMI:1"]:r.signageInfo.digitalAudioInputMode.hasOwnProperty("ext://hdmi:1")&&(o=r.signageInfo.digitalAudioInputMode["ext://hdmi:1"]),r.signageInfo.digitalAudioInputMode=o}e(r.signageInfo)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&r(e)}})},O.prototype.enableCheckScreen=function(e,r,o){var t,n;if(void 0!==(n=o).checkScreen||null!==n.checkScreen||(t="need options.checkScreen.",0)){var i={checkScreen:!0===o.checkScreen?"on":"off"};JSON.stringify(i,null,3),A("commercial",i,e,r)}else{r({errorCode:"BAD_PARAMETER",errorText:t})}},O.prototype.setIsmMethod=function(e,r,o){var n,i={};t.Request("luna://com.webos.service.config/",{method:"getConfigs",parameters:{configNames:["commercial.applist.disablePhoto","commercial.unsupportedFeatures"]},onSuccess:function(t){if("function"==typeof e&&!0===t.returnValue){for(var a=!0,u=!0,s=t.configs["commercial.applist.disablePhoto"],c=0;c<s.length;c++)if("com.webos.app.ism"===s[c].toLowerCase()){a=!1;break}for(var l=t.configs["commercial.unsupportedFeatures"],f=0;f<l.length;f++)if("usb"===l[f].toLowerCase()){a=!1,u=!1;break}if(function(e,r,o){if(e.ismMethod){if(!1===r&&e.ismMethod===O.IsmMethod.USER_IMAGE||!1===o&&(e.ismMethod===O.IsmMethod.USER_IMAGE||e.ismMethod===O.IsmMethod.USER_VIDEO))return n="no supported ismMethod : "+e.ismMethod,!1;for(var t in O.IsmMethod)if(e.ismMethod===O.IsmMethod[t])return!0;return n="Unrecognized ismMethod : "+e.ismMethod,!1}return n="ismMethod does not exist.",!1}(o,a,u)){if(o.ismMethod){var d=o.ismMethod;i[S]=d}JSON.stringify(i,null,3),A("commercial",i,e,r)}else{r({errorCode:"BAD_PARAMETER",errorText:n})}}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&r(e)}})},O.prototype.setDigitalAudioInputMode=function(e,r,o){var n,i;(i=o).hasOwnProperty("digitalAudioInputList")||!i.hasOwnProperty("digitalAudioInput")&&(n="digitalAudioInputList does not exist.",1)?r({errorCode:"BAD_PARAMETER",errorText:n}):t.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"setDigitalAudioInputList",parameters:{digitalAudioInputList:{"ext://hdmi:1":o.digitalAudioInput}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&r(e)}})};var I=!1;function N(e,r){JSON.stringify(M,null,3);for(var o in M)o&&n(o);t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/stopMonitor",parameters:{},onSuccess:function(o){!0===o.returnValue?"function"==typeof e&&e():"function"==typeof r&&r(o)},onFailure:function(e){delete e.returnValue,"function"==typeof r&&r(e)}})}O.prototype.registerSystemMonitor=function(e,r,o){var n,a=["fan","signal","lamp","screen","temperature"],u="BAD_PARAMETER";if(JSON.stringify(M,null,3),function(e){if(!0===I)return n="Not ready to register monitor now.",u="SYSTEM_ERROR",!1;if(JSON.stringify(e,null,3),"function"!=typeof e.eventHandler)return n="No event handler was given or event hadnler is not a function",!1;if(e.monitorConfiguration){for(var r in e.monitorConfiguration)if(r){for(var o=!1,t=0;t<a.length;++t)r===a[t]&&(a[t],o=!0);if(!o)return n="Invalid Monitoring source : "+r,!1;var i=e.monitorConfiguration[r];if("boolean"!=typeof i)return n="Invalid value : "+i,!1}return!0}return n="monitorConfiguration does not exist.",!1}(o)){I=!0,N(function(){var n=o.eventHandler;for(var a in o.monitorConfiguration)a&&!0===o.monitorConfiguration[a]&&i(a,n);JSON.stringify(M,null,3),t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/startMonitor",parameters:{},onSuccess:function(o){!0===o.returnValue?"function"==typeof e&&e():"function"==typeof r&&r(o),I=!1},onFailure:function(e){delete e.returnValue,"function"==typeof r&&r(e),I=!1}})},function(e){r(e)})}else{r({errorCode:u,errorText:n})}},O.prototype.unregisterSystemMonitor=function(e,r){N(e,r),JSON.stringify(M,null,3)},O.prototype.getSystemMonitoringInfo=function(e,r){if(M)e({fan:M.fan.getEvent,signal:M.signal.getEvent,lamp:M.lamp.getEvent,screen:M.screen.getEvent,temperature:M.temperature.getEvent});else{r({errorCode:"ERROR",errorText:"Failed to get system monitoring setup"})}},O.prototype.setPowerSaveMode=function(e,r,o){var n;(function(e){if(e.powerSaveMode){for(var r in e.powerSaveMode)if(r){var o=e.powerSaveMode[r];if("ses"===r||"do15MinOff"===r){if("boolean"!=typeof o)return n="Invalid value : "+o,!1}else if("automaticStandby"===r){if(!a(O.AutomaticStandbyMode,o))return n="Invalid automaticStandby value : "+o,!1}else{if("dpmMode"!==r)return n="Unknown value : "+r,!1;if(!a(O.DpmMode,o))return n="Invalid dpmMode value : "+o,!1}}return!0}return n="powerSaveMode does not exist.",!1})(o)?(o.powerSaveMode,t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"setPowerSaveMode",parameters:{mode:o.powerSaveMode},onSuccess:function(o){o.returnValue?e(o.mode):(o.errorText,r({errorCode:o.errorCode,errorText:o.errorText}))},onFailure:function(e){e.errorText,r({errorCode:e.errorCode,errorText:e.errorText})}})):r({errorCode:"BAD_PARAMETER",errorText:n})},O.prototype.getPowerSaveMode=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"getPowerSaveMode",parameters:{},onSuccess:function(o){o.returnValue?e(o.mode):(o.errorText,r({errorCode:o.errorCode,errorText:o.errorText}))},onFailure:function(e){e.errorText,r({errorCode:e.errorCode,errorText:e.errorText})}})},O.prototype.setUsagePermission=function(e,r,o){var t,n={};if(function(e){if(e.policy){for(var r in e.policy)if(r){var o=e.policy[r];if("remoteKeyOperationMode"!==r&&"localKeyOperationMode"!==r)return t="Unknown value : "+r,!1;if(!a(O.KeyOperationMode,o))return t="Invalid KeyOperationMode value : "+o,!1}return!0}return t="policy does not exist.",!1}(o)){if(o.policy.localKeyOperationMode){var i=o.policy.localKeyOperationMode;n[l]=i}if(o.policy.remoteKeyOperationMode){var u=o.policy.remoteKeyOperationMode;n[c]=u}JSON.stringify(n,null,3),A("hotelMode",n,e,r)}else{r({errorCode:"BAD_PARAMETER",errorText:t})}},O.prototype.getUsagePermission=function(e,r){E("hotelMode",[c,l],function(e){JSON.stringify(e,null,3);var r={};return r.remoteKeyOperationMode=e[c],r.localKeyOperationMode=e[l],JSON.stringify(r,null,3),r},e,r)},O.prototype.getUsageData=function(e,r){var o=!1,n=!1,i={uptime:!1,totalUsed:!1};function a(){if(!0===o&&!0===n)return JSON.stringify(i,null,3),!1===i.uptime||!1===i.totalUsed?void r({errorCode:"CORDOVA_FAIL",errorText:"Failed to get usage data"}):void e(i)}t.Request("luna://com.webos.service.tv.signage/",{method:"getUTT",parameters:{},onSuccess:function(e){o=!0,!0===e.returnValue&&(e.UTT,i.totalUsed=e.UTT),a()},onFailure:function(e){JSON.stringify(e,null,3),o=!0,a()}}),t.Request("luna://com.webos.service.tv.signage/",{method:"dsmp/getElapsedTime",parameters:{},onSuccess:function(e){if(n=!0,JSON.stringify(e,null,3),!0===e.returnValue){var r=e.elapsedTime;i.uptime=r}a()},onFailure:function(e){JSON.stringify(e,null,3),n=!0,a()}})},O.prototype.captureScreen=function(e,r,o){var n={save:void 0!==o&&null!==o&&void 0!==o.save&&o.save};void 0!==o&&null!==o&&void 0!==o.thumbnail&&!0===o.thumbnail?(n.width=128,n.height=72):o.imgResolution===O.ImgResolution.FHD?(n.width=1920,n.height=1080):(n.width=1280,n.height=720),t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"captureScreen",parameters:n,onSuccess:function(o){!0===o.returnValue?e({data:o.data,size:o.size,encoding:o.encoding}):r({errorCode:o.errorCode,errorText:o.errorText})},onFailure:function(e){r({errorCode:e.errorCode,errorText:e.errorText})}})},O.prototype.setIntelligentAuto=function(e,r,o){if(o.enabled,null===o.enabled&&"function"==typeof r){var n={};return h(n,"SSIA","Signage.setIntelligentAuto returns failure. command was not defined."),void r(n)}t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{intelligentAuto:!0===o.enabled?"on":"off"}},onSuccess:function(r){!0===r.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(h(e,"SSIA","Signage.setIntelligentAuto returns failure."),r(e))}})},O.prototype.getIntelligentAuto=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["intelligentAuto"]},onSuccess:function(r){if(!0===r.returnValue){var o={};o.enabled=r.settings.intelligentAuto,"function"==typeof e&&e(o)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(h(e,"SGIA","Signage.getIntelligentAuto returns failure."),r(e))}})},O.prototype.setStudioMode=function(e,r,o){if(o.enabled,null===o.enabled&&"function"==typeof r){var n={};return h(n,"SSSM","Signage.setStudioMode returns failure. command was not defined."),void r(n)}t.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"version",onSuccess:function(n){if(!0===n.returnValue){var i=n.version;if("1"===i[0]&&"5"===i[2]){var a={};return h(a,"ERROR","This function is not supported"),void r(a)}t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{studioMode:!0===o.enabled?"on":"off"}},onSuccess:function(r){!0===r.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(h(e,"SSSM","Signage.setStudioMode returns failure."),r(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(h(e,"SSSM","Signage.setStudioMode returns failure."),r(e))}})},O.prototype.getStudioMode=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"version",onSuccess:function(o){if(!0===o.returnValue){var n=o.version;if("1"===n[0]&&"5"===n[2]){var i={};return h(i,"ERROR","This function is not supported"),void r(i)}t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["studioMode"]},onSuccess:function(r){if(!0===r.returnValue){var o={};o.enabled="on"===r.settings.studioMode,"function"==typeof e&&e(o)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(h(e,"SGSM","Signage.getStudioMode returns failure."),r(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(h(e,"SGSM","Signage.getStudioMode returns failure."),r(e))}})},O.prototype.setLanDaisyChain=function(e,r,o){t.Request("luna://com.webos.service.config/",{method:"getConfigs",parameters:{configNames:["commercial.hw.lanDaisyChain"]},onSuccess:function(n){if(!0===n.returnValue){if(!1===n.configs["commercial.hw.lanDaisyChain"])return h(n,"SSLD","Signage.setLanDaisyChain returns failure. unsupported feature. "),void r(n);if(null===o.enabled&&"function"==typeof r)return h(n={},"SSLD","Signage.setLanDaisyChain returns failure. command was not defined."),void r(n);o.enabled,t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{lanDaisyChain:!0===o.enabled?"on":"off"}},onSuccess:function(r){!0===r.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(h(e,"SSIA","Signage.setLanDaisyChain returns failure."),r(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&r(e)}})},O.prototype.getLanDaisyChain=function(e,r){t.Request("luna://com.webos.service.config/",{method:"getConfigs",parameters:{configNames:["commercial.hw.lanDaisyChain"]},onSuccess:function(o){if(!0===o.returnValue){if(!1===o.configs["commercial.hw.lanDaisyChain"])return h(o,"SSLD","Signage.getLanDaisyChain returns failure. unsupported feature. "),void r(o);t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["lanDaisyChain"]},onSuccess:function(r){if(!0===r.returnValue){var o={};o.enabled="on"===r.settings.lanDaisyChain,"function"==typeof e&&e(o)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(h(e,"SSLD","Signage.getLanDaisyChain returns failure."),r(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&r(e)}})},O.prototype.registerRS232CEventListener=function(e,r,o){if("function"!=typeof o.eventListener){return r({errorCode:"BAD_PARAMETER",errorText:"No event listener was given or event listener is not a function"}),!1}y(e,r,o.eventListener)},O.prototype.unregisterRS232CEventListener=function(e,r){var o;!1!=(o="RS232C",!1!==R.hasOwnProperty(o)&&null!==R[o].instanceOfSubscription&&(R[o].instanceOfSubscription.cancel(),R[o].instanceOfSubscription=null,R[o].eventListener=null,!0))?t.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/stopMonitorRS232C",parameters:{},onSuccess:function(o){!0===o.returnValue?"function"==typeof e&&e():"function"==typeof r&&r(o)},onFailure:function(e){delete e.returnValue,"function"==typeof r&&r(e)}}):"function"==typeof r&&r({errorCode:"BAD_PARAMETER",errorText:"Failed to remove event listener"})},O.prototype.addEventListener=i,O.prototype.removeEventListener=n,O.prototype.getNoSignalImageMode=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/signage/",{method:"getNoSignalImageMode",onSuccess:function(r){if(!0===r.returnValue){var o={};o.enabled="on"===r.noSignalImage?"on":"off","function"==typeof e&&e(o)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(h(e,"SGSI","Signage.getNoSignalImage returns failure."),r(e))}})},O.prototype.setNoSignalImageMode=function(e,r,o){t.Request("luna://com.webos.service.commercial.signage.storageservice/signage/",{method:"setNoSignalImageMode",parameters:{noSignalImageMode:o.noSignalImageMode},onSuccess:function(r){!0===r.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(h(e,"SSSI","Signage.setNoSignalImageMode returns failure."),r(e))}})},O.prototype.updateNoSignalImageList=function(e,r,o){t.Request("luna://com.webos.service.commercial.signage.storageservice/signage/",{method:"updateNoSignalImageList",parameters:o,onSuccess:function(r){!0===r.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(h(e,"SUNSIL","Signage.updateNoSignalImageList returns failure."),r(e))}})},O.prototype.resetNoSignalImage=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/signage/",{method:"resetNoSignalImage",onSuccess:function(r){!0===r.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(h(e,"SRNSI","Signage.resetNoSignalImage returns failure."),r(e))}})},o.exports=O}),Signage=cordova.require("cordova/plugin/signage");
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/sound",function(e,t,n){var o;o=window.PalmSystem?e("cordova/plugin/webos/service"):{Request:function(e,t){"function"==typeof t.onFailure&&t.onFailure({returnValue:!1,errorText:"PalmSystem Not Available. Cordova is not installed?"})}};var u=function(){};function r(e,t,n){void 0!==e.errorCode&&null!==e.errorCode||(e.errorCode=t),void 0!==e.errorText&&null!==e.errorText||(e.errorText=n)}var s=null,a={};function i(e){null===s?o.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion","boardType"]},onSuccess:function(t){t.sdkVersion;var n=t.sdkVersion.split(".");a=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]}:n.length>=1&&"3"===n[0]?{webOSVer:3,chipset:t.boardType.split("_")[0]}:n.length>=1&&"4"===n[0]?{webOSVer:4,chipset:t.boardType.split("_")[0]}:{webOSVer:0,chipset:""},s=a.webOSVer,e(a)},onFailure:function(t){e(a={webOSVer:0,chipset:""})}}):e(a)}u.SoundMode={Standard:"standard",Cinema:"movie",ClearVoice:"news",Sports:"sports",Music:"music",Game:"game"},u.SpeakerType={SignageSpeaker:"tv_speaker",LGSoundSync:"bt_soundbar"},u.prototype.getSoundStatus=function(e,t){o.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"version",onSuccess:function(n){if(!0===n.returnValue){var u=n.version,s="";s="1"===u[0]&&parseInt(u[2])>=5?"com.webos.surfacemanager.supportCommerSoundSetting":"tv.model.supportCommerSoundSetting",o.Request("luna://com.webos.service.config/",{method:"getConfigs",parameters:{configNames:[s]},onSuccess:function(n){if(!0===n.returnValue){var u=n.configs[s];o.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["extSpkVolumeControl"]},onSuccess:function(n){if(!0===n.returnValue){var s=n.settings.extSpkVolumeControl;!0===u||!1===u&&"1"===s?o.Request("luna://com.webos.audio/",{method:"getVolume",onSuccess:function(t){if(!0===t.returnValue){var n={};n.level=t.volume,n.muted=t.muted,o.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["enableSpeaker"]},onSuccess:function(t){!0===t.returnValue&&(n.externalSpeaker="on"===t.settings.enableSpeaker,"function"==typeof e&&e(n))},onFailure:function(t){"function"==typeof e&&e(n)}})}},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SGSS","Sound.getSoundStatus returns failure."),t(e))}}):(delete n.returnValue,"function"==typeof t&&(r(n,"SGSS","unsupported feature"),t(n)))}},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SGSS","Sound.getSoundStatus returns failure"),t(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SGSS","Sound.getSoundStatus returns failure."),t(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SGSS","Sound.getSoundStatus returns failure."),t(e))}})},u.prototype.setVolumeLevel=function(e,t,n){i(function(u){if(u.webOSVer>=4)JSON.stringify(n),o.Request("luna://com.webos.service.commercial.scapadapter/sound",{method:"setVolumeLevel",parameters:{level:n.level,volOsdEnabled:n.volOsdEnabled},onSuccess:function(t){delete t.returnValue,"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SSVL","Sound.setVolumeLevel returns failure."),t(e))}});else{if(JSON.stringify(n),"number"!=typeof n.level||isNaN(n.level)||n.level<0||n.level>100){if("function"==typeof t){var s={};r(s,"SSVL","Sound.setVolumeLevel returns failure. out of range or invalid parameter type."),t(s)}return}o.Request("luna://com.webos.service.commercial.signage.storageservice/sound/",{method:"setVolumeLevel",parameters:n,onSuccess:function(t){e()},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SSVL","Sound.setVolumeLevel returns failure."),t(e))}})}})},u.prototype.setExternalSpeaker=function(e,t,n){if(JSON.stringify(n),"boolean"==typeof n.externalSpeaker){var u=null;switch(n.externalSpeaker){case!0:u="on";break;case!1:u="off"}o.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{enableSpeaker:u}},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SSES","Sound.setExternalSpeaker returns failure."),t(e))}})}else if("function"==typeof t){var s={};r(s,"SSVL","Sound.setExternalSpeaker returns failure. out of range or invalid parameter type."),t(s)}},u.prototype.setMuted=function(e,t,n){i(function(u){if(u.webOSVer>=4)JSON.stringify(n),o.Request("luna://com.webos.service.commercial.scapadapter/sound",{method:"setMuted",parameters:{muted:n.muted},onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SSM","Sound.setMuted returns failure."),t(e))}});else{if(JSON.stringify(n),"boolean"!=typeof n.muted){if("function"==typeof t){var s={};r(s,"SSM","Sound.setMuted returns failure. out of range or invalid parameter type."),t(s)}return}o.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"version",onSuccess:function(u){var s=u.version,a="";a="1"===s[0]&&"5"===s[2]?"com.webos.surfacemanager.supportCommerSoundSetting":"tv.model.supportCommerSoundSetting",o.Request("luna://com.webos.service.config/",{method:"getConfigs",parameters:{configNames:[a]},onSuccess:function(u){if(!0===u.returnValue){var s=u.configs[a];o.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["extSpkVolumeControl"]},onSuccess:function(u){if(!0===u.returnValue){var a=u.settings.extSpkVolumeControl;if(!0!==s&&(!1!==s||"1"!==a))return delete u.returnValue,void("function"==typeof t&&(r(u,"SSM","unsupported feature"),t(u)));o.Request("luna://com.webos.audio/",{method:"setMuted",parameters:{muted:n.muted},onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SSM","Sound.setMuted returns failure."),t(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SSM","Sound.setMuted returns failure"),t(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SSM","Sound.setMuted returns failure"),t(e))}})},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SSM","Sound.setMuted returns failure."),t(e))}})}})},u.prototype.setSoundMode=function(e,t,n){var s,a=null;switch(n.mode){case u.SoundMode.Standard:a="standard";break;case u.SoundMode.Cinema:a="movie";break;case u.SoundMode.ClearVoice:a="news";break;case u.SoundMode.Sports:a="sports";break;case u.SoundMode.Music:a="music";break;case u.SoundMode.Game:a="game"}(n.balance<-50||n.balance>50)&&isNumber(n.balance)&&(r(s={},"SSSM","Sound.setSoundMode returns failure. Out of range."),t(s));if(null===a&&"function"==typeof t)return r(s={},"SSSM","Sound.setSoundMode returns failure. command was not defined."),void t(s);o.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"sound",settings:{soundMode:a,audioBalance:n.balance}},onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SSSM","Sound.setSoundMode returns failure."),t(e))}})},u.prototype.getSoundMode=function(e,t){o.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"sound",keys:["soundMode","audioBalance"]},onSuccess:function(t){if(!0===t.returnValue){var n={};n.mode=t.settings.soundMode,n.balance=t.settings.audioBalance,"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SGSM","Sound.getSoundMode returns failure."),t(e))}})},u.prototype.setSoundOut=function(e,t,n){i(function(s){if(3!==s.webOSVer){var a={};return r(a,"SSSO","Sound.setSoundOut returns failure. Only webOS 3.0 support setSoundOut API."),void t(a)}o.Request("luna://com.webos.service.config/",{method:"getConfigs",parameters:{configNames:["system.supportBluetoothFeatures"]},onSuccess:function(s){if(!0===s.returnValue){if(-1===s.configs["system.supportBluetoothFeatures"].indexOf("btsound"))if(n.speakerType===u.SpeakerType.LGSoundSync)return r(s={},"SSSO","Sound.setSoundOut returns failure. bluetooth soundsync is not supported."),void t(s);var a=null;switch(n.speakerType){case u.SpeakerType.SignageSpeaker:a="tv_speaker";break;case u.SpeakerType.LGSoundSync:a="bt_soundbar"}if(null===a&&"function"==typeof t)return r(s={},"SSSO","Sound.setSoundOut returns failure. command was not defined."),void t(s);o.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"sound",settings:{soundOutput:a}},onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SSSO","Sound.setSoundOut returns failure."),t(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SSSO","unsupported feature"),t(e))}})})},u.prototype.getSoundOut=function(e,t){i(function(n){if(3!==n.webOSVer){var u={};return r(u,"SGSO","Sound.getSoundOut returns failure. Only webOS 3.0 support getSoundOut API."),void t(u)}o.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"sound",keys:["soundOutput"]},onSuccess:function(t){if(!0===t.returnValue){var n={};n.speakerType=t.settings.soundOutput,"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(r(e,"SGSO","Sound.getSoundOut returns failure."),t(e))}})})},n.exports=u}),Sound=cordova.require("cordova/plugin/sound");
@@ -0,0 +1 @@
1
+ Storage=(function(){var d,a;function c(f){}if(typeof window==="object"){cordova.define("cordova/plugin/storage",function(g,f,h){d=function(){};if(window.PalmSystem){c("Window.PalmSystem Available");a=g("cordova/plugin/webos/service")}else{a={Request:function(i,j){c(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?"})}}}}h.exports=d});d=cordova.require("cordova/plugin/storage")}else{d=function(f){a=f;a.Request=function(g,i){var h=g+"/"+i.method;var j={};if(i.hasOwnProperty("parameters")===true){j=i.parameters}var k={};var l=function(m){console.log("res : "+JSON.stringify(m));if(m.payload.returnValue===true){k=m.payload;i.onSuccess(k)}else{k.returnValue=false;k.errorCode=m.payload.errorCode;k.errorText=m.payload.errorText;i.onFailure(k)}};if(a){a.call(h,j,l)}}};module.exports=d}function b(g,h,f){if(g.errorCode===undefined||g.errorCode===null){g.errorCode=h}if(g.errorText===undefined||g.errorText===null){g.errorText=f}}function e(f){if(f){if(f.indexOf("://")===-1){c("INVALID URI"+f);return false}else{c("GOOD URI");return true}}else{c("NO URI"+f);return false}}Error.ERROR_CODE={IO_ERROR:"IO_ERROR",DEVICE_ERROR:"DEVICE_ERROR",BAD_PARAMETER:"BAD_PARAMETER",SERVER_ERROR:"SERVER_ERROR",NETWORK_ERROR:"NETWORK_ERROR",SYSTEM_ERROR:"SYSTEM_ERROR",};d.SCAP_URI="";d.MAX_BUFFER_LENGTH=1024*10;d.AppMode={USB:"usb",LOCAL:"local"};d.AppType={IPK:"ipk",ZIP:"zip"};d.prototype.downloadFirmware=function(f,g,h){a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"downloadFirmware",parameters:{uri:h.uri},onSuccess:function(i){if(i.returnValue===true){f()}else{g({errorCode:i.errorCode,errorText:i.errorText})}},onFailure:function(i){g({errorCode:i.errorCode,errorText:i.errorText})}})};d.prototype.upgradeFirmware=function(f,g){a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"upgradeFirmware",parameters:{},onSuccess:function(h){if(h.returnValue===true){f()}else{g({errorCode:h.errorCode,errorText:h.errorText})}},onFailure:function(h){g({errorCode:h.errorCode,errorText:h.errorText})}})};d.prototype.getFirmwareUpgradeStatus=function(f,g){a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"getFirmwareUpgradeStatus",parameters:{},onSuccess:function(h){if(h.returnValue===true){f({status:h.status,upgradeProgress:h.upgradeProgress,downloadProgress:h.downloadProgress})}else{g({errorCode:h.errorCode,errorText:h.errorText})}},onFailure:function(h){g({errorCode:h.errorCode,errorText:h.errorText})}})};d.prototype.changeLogoImage=function(f,g,h){a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"changeLogoImage",parameters:{uri:h.uri},onSuccess:function(i){if(i.returnValue===true){f()}else{g({errorCode:i.errorCode,errorText:i.errorText})}},onFailure:function(i){g({errorCode:i.errorCode,errorText:i.errorText})}})};d.prototype.upgradeApplication=function(f,g,h){var i={from:"remote",to:(h===undefined||h===null?d.AppMode.LOCAL:h.to),recovery:(h===undefined||h===null?false:h.recovery),};if(h.hasOwnProperty("type")===true&&h.type!==undefined){i.type=h.type}a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"upgradeApplication",parameters:i,onSuccess:function(j){if(j.returnValue===true){f()}else{g({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){g({errorCode:j.errorCode,errorText:j.errorText})}})};d.prototype.removeApplication=function(f,g,h){a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"removeApplication",parameters:{to:h.to},onSuccess:function(i){if(i.returnValue===true){f()}else{g({errorCode:i.errorCode,errorText:i.errorText})}},onFailure:function(i){g({errorCode:i.errorCode,errorText:i.errorText})}})};d.prototype.copyFile=function(f,g,h){c("Options: "+JSON.stringify(h,null,3));if(h.maxRedirection&&h.maxRedirection>5){c("Bad options TOO MANY REDIRECTION");g({errorCode:"BAD_PARAMETER",errorText:"Redirect cannot be more that 5"});return}if(h.headers&&JSON.stringify(h.headers).length>1024){c("header too long header too long");g({errorCode:"BAD_PARAMETER",errorText:"Header data cannot be bigger than 1K"});return}if(typeof h.httpOption==="undefined"){h.httpOption={}}if(h.httpOption.headers&&JSON.stringify(h.httpOption.headers).length>1024){c("header too long header too long");g({errorCode:"BAD_PARAMETER",errorText:"Header data cannot be bigger than 1K"});return}if(h.maxRedirection||h.headers){if(h.maxRedirection&&typeof h.httpOption.maxRedirection==="undefined"){h.httpOption.maxRedirection=h.maxRedirection}if(h.headers&&typeof h.httpOption.headers==="undefined"){h.httpOption.headers=h.headers}}if(typeof h.httpOption.maxRedirection!=="undefined"){if(typeof h.maxRedirection!=="undefined"){if(h.httpOption.maxRedirection!==h.maxRedirection){g({errorCode:"BAD_PARAMETER",errorText:"Both options.httpOption.maxRedirection and options.maxRedirection are exists,but different value. What value you want to use?"});return}}else{h.maxRedirection=h.httpOption.maxRedirection}}c(h);a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/copyFile",parameters:{dest:h.destination,src:h.source,ftpOption:h.ftpOption,httpOption:h.httpOption},onSuccess:function(i){if(i.returnValue===true){c("SUCCESS");f()}else{c("Err: "+i.errorText);g({errorCode:i.errorCode,errorText:i.errorText})}},onFailure:function(i){c("Err: "+i.errorText);g({errorCode:i.errorCode,errorText:i.errorText})}})};d.prototype.removeFile=function(f,g,h){if(!(h&&e(h.file))){g({errorCode:"BAD_PARAMETER",errorText:"options.file is a mandatory parameter"});return}var i={file:h.file};if(h.recursive===true){i.recursive=true}a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/removeFile",parameters:i,onSuccess:function(j){c("onSuccess");if(j.returnValue===true){f()}else{g({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){c("onFailure");g({errorCode:j.errorCode,errorText:j.errorText})}})};d.prototype.listFiles=function(f,g,h){var i={};if(h&&h.path){if(e(h.path)){i.pathURI=h.path}else{g({errorCode:"BAD_PARAMETER",errorText:"File URI is not valid."});return}}else{i.pathURI="file://internal/"}a.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"fs/listFiles",parameters:i,onSuccess:function(j){if(j.returnValue===true){var l=[];for(var k=0;k<j.files.length;++k){c(j.files[k]);var n={name:j.files[k].name,type:(j.files[k].type==="folder")?"folder":"file",size:j.files[k].size};l.push(n)}var m={files:l,totalCount:j.totalCount};f(m)}else{g({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){g({errorCode:j.errorCode,errorText:j.errorText})}})};d.prototype.getStorageInfo=function(f,g){a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/storageInfo",parameters:{},onSuccess:function(h){c("returned : "+JSON.stringify(h,null,3));if(h.returnValue===true){c("returned : "+JSON.stringify(h,null,3));var i={free:h.spaceInfo.freeSize,total:h.spaceInfo.totalSize,used:h.spaceInfo.usedSize,externalMemory:h.externalStorage};f(i)}else{g({errorCode:h.errorCode,errorText:h.errorText})}},onFailure:function(h){g({errorCode:h.errorCode,errorText:h.errorText})}})};d.prototype.mkdir=function(f,g,h){if(!(h&&e(h.path))){g({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"});return}var i={pathURI:h.path};a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/mkdir",parameters:i,onSuccess:function(j){c("onSuccess");if(j.returnValue===true){f()}else{g({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){c("onFailure");g({errorCode:j.errorCode,errorText:j.errorText})}})};d.prototype.exists=function(f,g,h){if(!(h&&e(h.path))){c("BAD_PARAMETER");g({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"});return}var i={pathURI:h.path};a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/exists",parameters:i,onSuccess:function(j){c("onSuccess");if(j.returnValue===true){c("returned : "+JSON.stringify(j,null,3));var k={exists:j.exists};f(k)}else{g({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){c("onFailure");g({errorCode:j.errorCode,errorText:j.errorText})}})};d.prototype.readFile=function(f,g,h){if(!h){g({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"})}else{if(!e(h.path)){g({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"})}else{if(h.length&&(h.length>d.MAX_BUFFER_LENGTH||h.length<1)){g({errorCode:"BAD_PARAMETER",errorText:"length should be > 0 and < "+d.MAX_BUFFER_LENGTH})}else{if(h.position&&(h.position<0)){g({errorCode:"BAD_PARAMETER",errorText:"position should be > 0"})}else{var i={};i.path=h.path;i.length=h.length?h.length:d.MAX_BUFFER_LENGTH;i.position=h.position?h.position:0;i.encoding=h.encoding?h.encoding:"utf-8";a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/readFile",parameters:i,onSuccess:function(j){if(j.returnValue){if(i.encoding==="binary"){var k=j.data;var m=new Uint8Array(k.length);for(var l=0;l<k.length;++l){m[l]=k[l]}f({data:m.buffer})}else{f({data:j.data})}}else{g({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){g({errorCode:j.errorCode,errorText:j.errorText})}})}}}}};d.prototype.writeFile=function(h,p,l){if(!l){p({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"})}else{if(!e(l.path)){p({errorCode:"BAD_PARAMETER",errorText:"options.path is a is not valid"})}else{if(!l.data){p({errorCode:"BAD_PARAMETER",errorText:"options.data is a mandatory parameter"})}else{if(l.mode&&(l.mode!=="truncate"&&l.mode!=="append"&&l.mode!=="position")){p({errorCode:"BAD_PARAMETER",errorText:"mode should be 'truncate'|'append'|'position'"})}else{if(l.position&&(l.position<0)){p({errorCode:"BAD_PARAMETER",errorText:"position should be > 0"})}else{if(l.offset&&(l.offset<0)){p({errorCode:"BAD_PARAMETER",errorText:"offset should be > 0"})}else{if(l.length&&(l.length>d.MAX_BUFFER_LENGTH||l.length<1)){p({errorCode:"BAD_PARAMETER",errorText:"length should be > 0 and < "+d.MAX_BUFFER_LENGTH})}else{if(l.encoding&&(l.encoding!=="utf8"&&l.encoding!=="binary"&&l.encoding!=="base64")){p({errorCode:"BAD_PARAMETER",errorText:"Invalid encoding: "+l.encoding})}else{c("REQUEST");var x={};x.path=l.path;x.mode=l.mode?l.mode:"truncate";x.position=l.position?l.position:0;x.encoding=l.encoding?l.encoding:"utf8";var o=l.offset?l.offset:0;if(x.encoding==="binary"){c("binary, size is: "+l.data.byteLength);var k=new Uint8Array(l.data);c("uint8View: "+k);var n=l.length?l.length:d.MAX_BUFFER_LENGTH;var t=[];var r=0;for(var w=o;w<k.length&&r<n;++w,r++){t[r]=k[w]}c("array length: "+r);x.data=t;x.length=r;x.offset=0}else{if(x.encoding==="base64"){var s=l.length?l.length:d.MAX_BUFFER_LENGTH;c("base64, size is: "+l.data.length);var f=l.data;var g=window.atob(f);var u=g.substring(o,o+s);var z=new Uint8Array(u.length);var v;for(v=0;v<u.length;v++){z[v]=u.charCodeAt(v)}var y=[];for(v=0;v<z.length;++v){y[v]=z[v]}x.data=y;x.length=y.length;x.offset=0}else{var q=l.length?l.length:d.MAX_BUFFER_LENGTH;x.data=l.data.substring(o,o+q);x.length=x.data.length;x.offset=0}}try{a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/writeFile",parameters:x,onSuccess:function(i){c("onSuccess");if(i.returnValue){h({written:i.written})}else{c("FAILED: "+i.errorText);p({errorCode:i.errorCode,errorText:i.errorText})}},onFailure:function(i){c("onFailure");c("FAILED: "+i.errorText);p({errorCode:i.errorCode,errorText:i.errorText})}})}catch(m){c("EXCEPTION"+m);p({errorCode:"STWF",errorText:"Storage.writeFile() error is occured during operation."})}}}}}}}}}};d.prototype.statFile=function(f,g,h){if(!(h&&e(h.path))){g({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"})}else{if(!h.path){g({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"})}else{try{a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/statFile",parameters:{path:h.path},onSuccess:function(j){c("onSuccess");if(j.returnValue){f(j.stat)}else{c("FAILED: "+j.errorText);g({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){c("onFailure");c("FAILED: "+j.errorText);g({errorCode:j.errorCode,errorText:j.errorText})}})}catch(i){c("EXCEPTION"+i);g({errorCode:"STSF",errorText:"Storage.statFile() error is occured during operation."})}}}};d.prototype.removeAll=function(f,g,h){if(!h){g({errorCode:"BAD_PARAMETER",errorText:"options.device is a mandatory parameter"})}else{if(!h.device){g({errorCode:"BAD_PARAMETER",errorText:"options.device is a mandatory parameter"})}else{try{a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/removeAll",parameters:{device:h.device},onSuccess:function(j){c("onSuccess");if(j.returnValue){f()}else{c("FAILED: "+j.errorText);g({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){c("onFailure");c("FAILED: "+j.errorText);g({errorCode:j.errorCode,errorText:j.errorText})}})}catch(i){c("EXCEPTION"+i);g({errorCode:"STRA",errorText:"Storage.removeAll() error is occured during operation."})}}}};d.prototype.fsync=function(f,g,h){try{var j={};if(h&&h.path){if(e(h.path)){j.path=h.path}else{g({errorCode:"BAD_PARAMETER",errorText:"Invalid File URI"});return}}a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/fsyncFile",parameters:j,onSuccess:function(k){c("onSuccess");if(k.returnValue){f()}else{c("FAILED: "+k.errorText);g({errorCode:k.errorCode,errorText:k.errorText})}},onFailure:function(k){c("onFailure");c("FAILED: "+k.errorText);g({errorCode:k.errorCode,errorText:k.errorText})}})}catch(i){c("EXCEPTION"+i);g({errorCode:"STFS",errorText:"Storage.fsync() error is occured during operation."})}};d.prototype.moveFile=function(f,g,h){if(!h){g({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"})}else{if(!e(h.oldPath)){g({errorCode:"BAD_PARAMETER",errorText:"options.oldpath is a mandatory parameter"})}else{if(!e(h.newPath)){g({errorCode:"BAD_PARAMETER",errorText:"options.newPath is a mandatory parameter"})}else{try{a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/moveFile",parameters:{oldPath:h.oldPath,newPath:h.newPath},onSuccess:function(j){c("onSuccess");if(j.returnValue){f()}else{c("FAILED: "+j.errorText);g({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){c("onFailur");c("FAILED: "+j.errorText);g({errorCode:j.errorCode,errorText:j.errorText})}})}catch(i){c("EXCEPTION"+i);g({errorCode:"STMF",errorText:"Storage.moveFile() error is occured during operation."})}}}}};d.prototype.unzipFile=function(f,g,h){if(!h){g({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"})}else{if(!e(h.zipPath)){g({errorCode:"BAD_PARAMETER",errorText:"options.zipPath is a mandatory parameter"})}else{if(!e(h.targetPath)){g({errorCode:"BAD_PARAMETER",errorText:"options.targetPath is a mandatory parameter"})}else{try{a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/unzip",parameters:{zipPath:h.zipPath,targetPath:h.targetPath},onSuccess:function(j){c("onSuccess");if(j.returnValue){f()}else{c("FAILED: "+j.errorText);g({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){c("onFailure");c("FAILED: "+j.errorText);g({errorCode:j.errorCode,errorText:j.errorText})}})}catch(i){c("EXCEPTION"+i);g({errorCode:"STUF",errorText:"Storage.unzipFile() error is occured during operation."})}}}}};d.prototype.getMD5Hash=function(f,g,h){c("getMD5Hash: ");if(!(h&&e(h.filePath))){g({errorCode:"BAD_PARAMETER",errorText:"options.filePath is a mandatory parameter"});return}a.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"fs/getMD5Hash",parameters:{filePath:h.filePath},onSuccess:function(i){if(typeof f==="function"){delete i.returnValue;f(i)}},onFailure:function(i){c("getMD5Hash: onFailure");delete i.returnValue;if(typeof g==="function"){g(i)}}});c("Storage.getMD5Hash Done")};d.prototype.decryptFile=function(f,g,h){c("decryptFile: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"fs/decryptFile",parameters:{cipher_mode:h.cipher_mode,password:h.password,inputPath:h.inputPath,outputFileName:h.outputFileName},onSuccess:function(i){if(typeof f==="function"){delete i.returnValue;f(i)}},onFailure:function(i){c("decryptFile: onFailure");delete i.returnValue;if(typeof g==="function"){g(i)}}});c("Storage.decryptFile Done")};return d}());
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/time",function(c,e,b){function d(k){}var f;if(window.PalmSystem){d("Window.PalmSystem Available");f=c("cordova/plugin/webos/service")}else{f={Request:function(k,l){d(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 g=function(){};function i(l,m,k){if(l.errorCode===undefined||l.errorCode===null){l.errorCode=m}if(l.errorText===undefined||l.errorText===null){l.errorText=k}}var h=null;var a={};function j(k){if(h===null){f.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion","boardType"]},onSuccess:function(l){d("getPlatformInfo: onSuccess");d("version : "+l.sdkVersion);var m=l.sdkVersion.split(".");if(m.length>=1&&m[0]==="1"){a={webOSVer:1,chipset:l.boardType.split("_")[0]}}else{if(m.length>=1&&m[0]==="2"){a={webOSVer:2,chipset:l.boardType.split("_")[0]}}else{if(m.length>=1&&m[0]==="3"){a={webOSVer:3,chipset:l.boardType.split("_")[0]}}else{a={webOSVer:0,chipset:""}}}}h=a.webOSVer;k(a)},onFailure:function(l){d("getPlatformInfo: onFailure");a={webOSVer:0,chipset:""};k(a)}})}else{k(a)}}g.prototype.setHolidayScheduleMode=function(l,m,o){d("setHolidayScheduleMode: "+o.enabled);var n={};i(n,"ERROR","This function is not supported");m(n);return;if(o.enabled===null&&typeof m==="function"){var k={};i(k,"TSHM","Time.setHolidayScheduleMode returns failure. command was not defined.");m(k);d("Time.setHolidayScheduleMode invalid ");return}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{holidayScheduleMode:(o.enabled===true)?"on":"off"}},onSuccess:function(p){d("setHolidayScheduleMode: On Success");if(p.returnValue===true){if(typeof l==="function"){l()}}},onFailure:function(p){d("setHolidayScheduleMode: On Failure");delete p.returnValue;if(typeof m==="function"){i(p,"TSHM","Time.setHolidayScheduleMode returns failure.");m(p)}}});d("Time.setHolidayScheduleMode Done")};g.prototype.getHolidayScheduleMode=function(k,l){d("getHolidayScheduleMode: ");var m={};i(m,"ERROR","This function is not supported");l(m);return;f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["holidayScheduleMode"]},onSuccess:function(n){d("getHolidayScheduleMode: On Success");if(n.returnValue===true){var o={};o.enabled=(n.settings.holidayScheduleMode==="on")?true:false;if(typeof k==="function"){k(o)}}},onFailure:function(n){d("getHolidayScheduleMode: On Failure");delete n.returnValue;if(typeof l==="function"){i(n,"TGHM","Time.getHolidayScheduleMode returns failure.");l(n)}}});d("Time.getHolidayScheduleMode Done")};g.prototype.addHolidaySchedule=function(n,o,q){d("addHolidaySchedule: startMonth : "+q.startMonth+", startDay : "+q.startDay+", endMonth : "+q.endMonth+", endDay : "+q.endDay);var p={};i(p,"ERROR","This function is not supported");o(p);return;var m=new Date((new Date()).getFullYear(),q.startMonth-1,q.startDay,0,0);var l=new Date((new Date()).getFullYear(),q.endMonth-1,q.endDay,0,0);if(typeof o==="function"){if(typeof q.startMonth!=="number"||typeof q.startDay!=="number"||isNaN(q.startMonth)||isNaN(q.startDay)||typeof q.endMonth!=="number"||typeof q.endDay!=="number"||isNaN(q.endMonth)||isNaN(q.endDay)){var k={};i(k,"TAHS","Time.addHolidaySchedule returns failure. parmas are not valid.");o(k);return}if(m.getMonth()!==q.startMonth-1||m.getDate()!==q.startDay||l.getMonth()!==q.endMonth-1||l.getDate()!==q.endDay){var k={};i(k,"TAHS","Time.addHolidaySchedule returns failure for out of range.");o(k);return}if(m.getTime()>l.getTime()){var k={};i(k,"TAHS","Time.addHolidaySchedule returns failure. schedule is not valid.");o(k);return}}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["holidaySchedule"]},onSuccess:function(r){d("getHolidaySchedule: On Success");if(r.returnValue===true){if(typeof n==="function"){var v={};var u=null;var t=null;var w=r.settings.holidaySchedule;if(w.length>=7){var r={};i(r,"TAHS","Time.addHolidaySchedule returns failure. schedule list is full");o(r);return}for(var s=0;s<w.length;s++){u=new Date((new Date()).getFullYear(),w[s].startMonth-1,w[s].startDay,0,0);t=new Date((new Date()).getFullYear(),w[s].endMonth-1,w[s].endDay,0,0);if(((u.getTime()<=m.getTime())&&(t.getTime()>m.getTime()))||((u.getTime()<l.getTime())&&(t.getTime()>=l.getTime()))||((u.getTime()===m.getTime())&&(t.getTime()===l.getTime()))||((m.getTime()===l.getTime())&&(t.getTime()===m.getTime()))){var r={};i(r,"TAHS","Time.addHolidaySchedule returns failure. schedule is not valid");o(r);return}}v.startMonth=q.startMonth;v.startDay=q.startDay;v.endMonth=q.endMonth;v.endDay=q.endDay;w.push(v);d("scheduleList : "+JSON.stringify(w));f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{holidaySchedule:w}},onSuccess:function(x){d("addHolidaySchedule: On Success");if(x.returnValue===true){if(typeof n==="function"){n()}}},onFailure:function(x){d("addHolidaySchedule: On Failure");delete x.returnValue;if(typeof o==="function"){i(x,"TAHS","Time.addHolidaySchedule returns failure.");o(x)}}})}}},onFailure:function(r){d("addHolidaySchedule: On Failure");delete r.returnValue;if(typeof o==="function"){i(r,"TAHS","Time.addHolidaySchedule returns failure.");o(r)}}});d("Time.addHolidaySchedule Done")};g.prototype.delHolidaySchedule=function(l,m,o){d("delHolidaySchedule: id : "+o.scheduleId);var n={};i(n,"ERROR","This function is not supported");m(n);return;if((typeof o.scheduleId!=="string"||o.scheduleId===undefined||o.scheduleId===null)&&typeof m==="function"){var k={};i(k,"TDHS","Time.delHolidaySchedule returns failure. scheduleId is not valid.");m(k);d("Time.delHolidaySchedule invalid ");return}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["holidaySchedule"]},onSuccess:function(p){d("getHolidaySchedule: On Success");if(p.returnValue===true){if(typeof l==="function"){var t=null;var s=[];var q=false;t=p.settings.holidaySchedule;d("before scheduleList : "+JSON.stringify(t));for(var r=0;r<t.length;r++){if(t[r]._id===o.scheduleId){q=true}else{s.push(t[r])}}if(q===false&&typeof m==="function"){var p={};i(p,"TDHS","Time.delHolidaySchedule returns failure. can not find schedule id.");m(p);d("Time.delHolidaySchedule invalid ");return}d("after scheduleList : "+JSON.stringify(s));f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{holidaySchedule:s}},onSuccess:function(u){d("delHolidaySchedule: On Success");if(u.returnValue===true){if(typeof l==="function"){l()}}},onFailure:function(u){d("delHolidaySchedule: On Failure");delete u.returnValue;if(typeof m==="function"){i(u,"TDHS","Time.delHolidaySchedule returns failure.");m(u)}}})}}},onFailure:function(p){d("delHolidaySchedule: On Failure");delete p.returnValue;if(typeof m==="function"){i(p,"TDHS","Time.delHolidaySchedule returns failure.");m(p)}}});d("Time.delHolidaySchedule Done")};g.prototype.delAllHolidaySchedules=function(k,l){d("delAllHolidaySchedules: ");var m={};i(m,"ERROR","This function is not supported");l(m);return;f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{holidaySchedule:[]}},onSuccess:function(n){d("delAllHolidaySchedules: On Success");if(n.returnValue===true){if(typeof k==="function"){k()}}},onFailure:function(n){d("delAllHolidaySchedules: On Failure");delete n.returnValue;if(typeof l==="function"){i(n,"TDAS","Time.delAllHolidaySchedules returns failure.");l(n)}}});d("Time.delAllHolidaySchedules Done")};g.prototype.getAllHolidaySchedules=function(k,l){d("getAllHolidaySchedules: ");var m={};i(m,"ERROR","This function is not supported");l(m);return;f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["holidaySchedule"]},onSuccess:function(n){d("getHolidaySchedule: On Success");if(n.returnValue===true){if(typeof k==="function"){var o={};o.holidayScheduleList=n.settings.holidaySchedule;if(typeof k==="function"){k(o)}}}},onFailure:function(n){d("getAllHolidaySchedules: On Failure");delete n.returnValue;if(typeof l==="function"){i(n,"TGAS","Time.getAllHolidaySchedules returns failure.");l(n)}}});d("Time.getAllHolidaySchedules Done")};g.prototype.getHolidaySchedule=function(k,l){d("getHolidaySchedule: ");f.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"getHolidaySchedule",parameters:{},onSuccess:function(m){d("getHolidaySchedule: On Success");if(m.returnValue===true){if(typeof k==="function"){var n={};n.holidayScheduleList=m.settings.holidaySchedule;if(typeof k==="function"){k(n)}}}},onFailure:function(m){d("getHolidaySchedule: On Failure");delete m.returnValue;if(typeof l==="function"){i(m,"TGAS","Time.getHolidaySchedule returns failure.");l(m)}}});d("Time.getHolidaySchedule Done")};g.prototype.setHolidaySchedule=function(k,l,m){d("setHolidaySchedule: ");f.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"setHolidaySchedule",parameters:m,onSuccess:function(n){d("setHolidaySchedule: On Success");if(n.returnValue===true){if(typeof k==="function"){if(typeof k==="function"){k()}}}},onFailure:function(n){d("setHolidaySchedule: On Failure");delete n.returnValue;if(typeof l==="function"){i(n,"TGAS","Time.setHolidaySchedule returns failure.");l(n)}}});d("Time.setHolidaySchedule Done")};g.prototype.unsetHolidaySchedule=function(k,l){d("unsetHolidaySchedule: ");f.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"unsetHolidaySchedule",parameters:{},onSuccess:function(m){d("unsetHolidaySchedule: On Success");if(m.returnValue===true){if(typeof k==="function"){if(typeof k==="function"){k()}}}},onFailure:function(m){d("unsetHolidaySchedule: On Failure");delete m.returnValue;if(typeof l==="function"){i(m,"TGAS","Time.unsetHolidaySchedule returns failure.");l(m)}}});d("Time.unsetHolidaySchedule Done")};b.exports=g});Time=cordova.require("cordova/plugin/time");
@@ -0,0 +1 @@
1
+ Utility=(function(){var b,a;function d(e){}if(typeof window==="object"){cordova.define("cordova/plugin/utility",function(f,e,g){b=function(){};if(window.PalmSystem){d("Window.PalmSystem Available");a=f("cordova/plugin/webos/service")}else{a={Request:function(h,i){d(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?"})}}}}g.exports=b});b=cordova.require("cordova/plugin/utility")}else{b=function(e){a=e;a.Request=function(f,h){var g=f+"/"+h.method;var i={};if(h.hasOwnProperty("parameters")===true){i=h.parameters}var j={};var k=function(l){console.log("res : "+JSON.stringify(l));if(l.payload.returnValue===true){j=l.payload;h.onSuccess(j)}else{j.returnValue=false;j.errorCode=l.payload.errorCode;j.errorText=l.payload.errorText;h.onFailure(j)}};if(a){a.call(g,i,k)}}};module.exports=b}function c(f,g,e){if(f.errorCode===undefined||f.errorCode===null){f.errorCode=g}if(f.errorText===undefined||f.errorText===null){f.errorText=e}}b.prototype.createToast=function(f,g,h){d("createToast: "+h.msg);if(h.msg===null&&typeof g==="function"){var e={};c(e,"UTCT","Utility.createToast returns failure. command was not defined.");g(e);d("Utility.createToast invalid ");return}a.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"createToast",parameters:{text:h.msg},onSuccess:function(i){d("createToast: On Success");if(i.returnValue===true){if(typeof f==="function"){d("call successCallback");f()}}},onFailure:function(i){d("createToast: On Failure");delete i.returnValue;if(typeof g==="function"){c(i,"UTCT","Utility.createToast returns failure.");1;g(i)}}});d("Utility.createToast Done")};return b}());
@@ -0,0 +1 @@
1
+ cordova.define("cordova/plugin/video",function(c,e,b){function d(j){}var f;if(window.PalmSystem){d("Window.PalmSystem Available");f=c("cordova/plugin/webos/service")}else{f={Request:function(j,k){d(j+" invoked. But I am a dummy because PalmSystem is not available");if(typeof k.onFailure==="function"){k.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var i=function(){};function g(k,l,j){if(k.errorCode===undefined||k.errorCode===null){k.errorCode=l}if(k.errorText===undefined||k.errorText===null){k.errorText=j}}var a={webOSVer:-1,chipset:"undefined"};function h(j){if(a.webOSVer===-1){f.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion","boardType"]},onSuccess:function(k){var l=k.sdkVersion.split(".");if(l.length>=1&&l[0]==="1"){a={webOSVer:1,chipset:k.boardType.split("_")[0]}}else{if(l.length>=1&&l[0]==="2"){a={webOSVer:2,chipset:k.boardType.split("_")[0]}}else{if(l.length>=1&&l[0]==="3"){a={webOSVer:3,chipset:k.boardType.split("_")[0]}}else{a={webOSVer:0,chipset:""}}}}j(a)},onFailure:function(k){a={webOSVer:0,chipset:""};j(a)}})}else{j(a)}}i.prototype.getVideoStatus=function(j,k){d("getVideoStatus: ");f.Request("luna://com.webos.service.tv.signage/",{method:"getVideoSize",onSuccess:function(l){d("getVideoStatus: On Success");if(l.returnValue===true){if(typeof j==="function"){var m={};m.source=l.videoSize.source;j(m)}}},onFailure:function(l){d("getVideoStatus: On Failure");delete l.returnValue;if(typeof k==="function"){g(l,"VGVS","Video.getVideoStatus returns failure.");k(l)}}});d("Video.getVideoStatus Done")};i.currentVideo={uri:null,source:null,tagId:null};i.prototype.setVideoSize=function(k,l,m){d("setVideoSize: "+JSON.stringify(m));if(m.source===undefined||typeof m.source.x!=="number"||typeof m.source.y!=="number"||typeof m.source.width!=="number"||typeof m.source.height!=="number"||isNaN(m.source.x)||isNaN(m.source.y)||isNaN(m.source.width)||isNaN(m.source.height)||m.source.x<0||m.source.y<0||m.source.width<=0||m.source.height<=0||m.source.width<16||m.source.height<16){if(typeof l==="function"){var j={};g(j,"VSVS","Video.setVideoSize returns failure. out of range or type error.");l(j)}return}f.Request("luna://com.webos.service.tv.signage/",{method:"getVideoSize",onSuccess:function(n){d("setVideoSize: On Success");if(n.returnValue===true){var r={};r.x=n.videoSize.destination.x;r.y=n.videoSize.destination.y;r.width=n.videoSize.destination.width;r.height=n.videoSize.destination.height;var o=document.getElementsByTagName("video");var q=false;for(var p=0;p<o.length;p++){if(o[p].currentTime>0){q=true;if(i.currentVideo.uri!==o[p].src||(o[p].id!==null&&o[p].id!==undefined&&i.currentVideo.tagId!==null&&i.currentVideo.tagId!==undefined&&i.currentVideo.tagId!==o[p].id)){i.currentVideo.uri=o[p].src;i.currentVideo.source=n.videoSize.source;i.currentVideo.tagId=o[p].id}break}}if(q===false){f.Request("luna://com.webos.service.eim/",{method:"getCurrentInput",parameters:{},onSuccess:function(t){if(t.returnValue===true&&i.currentVideo.uri!==t.mainInputSourceId||(o[0].id!==null&&o[0].id!==undefined&&i.currentVideo.tagId!==null&&i.currentVideo.tagId!==undefined&&i.currentVideo.tagId!==o[0].id)){i.currentVideo.uri=t.mainInputSourceId;i.currentVideo.tagId=(o[0]!==null&&o[0].id!==null&&o[0].id!==undefined?o[0].id:null);f.Request("luna://com.webos.service.tv.signage/",{method:"getVideoSize",onSuccess:function(x){d("setVideoSize: On Success 1");if(x.returnValue===true){i.currentVideo.source=x.videoSize.source;if(x.videoSize.source.width===0&&x.videoSize.source.height===0){i.currentVideo={uri:null,source:null,tagId:null};var w={};g(w,"VSVS","Video.setVideoSize returns failure. Not ready to setVideoSize.");l(w);return}else{if(i.currentVideo.uri===null||i.currentVideo.source===null||(m.source.width+m.source.x)>(i.currentVideo.source.x+i.currentVideo.source.width)||(m.source.height+m.source.y)>(i.currentVideo.source.y+i.currentVideo.source.height)){var v={};g(v,"VSVS","Video.setVideoSize returns failure. out of range or type error.("+i.currentVideo.source.width+" : "+i.currentVideo.source.height+")");l(v);return}}f.Request("luna://com.webos.service.tv.signage/",{method:"setVideoSize",parameters:{videoSize:{source:{x:m.source.x,y:m.source.y,width:m.source.width,height:m.source.height},destination:{x:r.x,y:r.y,width:r.width,height:r.height}}},onSuccess:function(y){d("setVideoSize: On Success 2");if(y.returnValue===true&&typeof k==="function"){k();return}},onFailure:function(y){d("setVideoSize: On Failure 2");delete y.returnValue;if(typeof l==="function"){g(y,"VSVS","Video.setVideoSize returns failure. Can't current video source size.");l(y);return}}})}}})}else{if(i.currentVideo.uri===null||i.currentVideo.source===null||(m.source.width+m.source.x)>(i.currentVideo.source.x+i.currentVideo.source.width)||(m.source.height+m.source.y)>(i.currentVideo.source.y+i.currentVideo.source.height)){var u={};g(u,"VSVS","Video.setVideoSize returns failure. out of range or type error.("+i.currentVideo.source.width+" : "+i.currentVideo.source.height+")");l(u);return}f.Request("luna://com.webos.service.tv.signage/",{method:"setVideoSize",parameters:{videoSize:{source:{x:m.source.x,y:m.source.y,width:m.source.width,height:m.source.height},destination:{x:r.x,y:r.y,width:r.width,height:r.height}}},onSuccess:function(v){d("setVideoSize: On Success 3");if(v.returnValue===true&&typeof k==="function"){k();return}},onFailure:function(v){d("setVideoSize: On Failure 3");delete v.returnValue;if(typeof l==="function"){g(v,"VSVS","Video.setVideoSize returns failure. Can't current video source size.");l(v);return}}})}},onFailure:function(t){d("setVideoSize: On Failure 3");delete t.returnValue;if(typeof l==="function"){g(t,"VSVS","Video.setVideoSize returns failure. Can't set current video source size.");l(t);return}}})}else{if(i.currentVideo.uri===null||i.currentVideo.source===null||(m.source.width+m.source.x)>(i.currentVideo.source.x+i.currentVideo.source.width)||(m.source.height+m.source.y)>(i.currentVideo.source.y+i.currentVideo.source.height)){var s={};g(s,"VSVS","Video.setVideoSize returns failure. out of range or type error.("+i.currentVideo.source.width+" : "+i.currentVideo.source.height+")");l(s);return}f.Request("luna://com.webos.service.tv.signage/",{method:"setVideoSize",parameters:{videoSize:{source:{x:m.source.x,y:m.source.y,width:m.source.width,height:m.source.height},destination:{x:r.x,y:r.y,width:r.width,height:r.height}}},onSuccess:function(t){d("setVideoSize: On Success 4");if(t.returnValue===true&&typeof k==="function"){k();return}},onFailure:function(t){d("setVideoSize: On Failure 4");delete t.returnValue;if(typeof l==="function"){g(t,"VSVS","Video.setVideoSize returns failure. Can't current video source size.");l(t);return}}})}}},onFailure:function(n){d("setVideoSize: On Failure");delete n.returnValue;if(typeof l==="function"){g(n,"VSVS","Video.setVideoSize returns failure.");l(n);return}}});d("Video.setVideoSize Done")};i.prototype.setContentRotation=function(j,k,m){var l={};g(l,"ERROR","This function is not supported");if(typeof k==="function"){k(l)}return};i.prototype.getContentRotation=function(j,k){var l={};g(l,"ERROR","This function is not supported");if(typeof k==="function"){k(l)}return};i.prototype.setVideoViewTransform=function(j,m,l){var k={};g(k,"ERROR","This function is not supported");if(typeof m==="function"){m(k)}return};i.prototype.setRotatedVideoTransform=function(j,m,l){var k={};g(k,"ERROR","This function is not supported");if(typeof m==="function"){m(k)}return};b.exports=i});Video=cordova.require("cordova/plugin/video");
@@ -0,0 +1 @@
1
+ Configuration=function(){var e,t;function n(e,t,n){void 0!==e.errorCode&&null!==e.errorCode||(e.errorCode=t),void 0!==e.errorText&&null!==e.errorText||(e.errorText=n)}function r(t){for(var n=e.LocaleList,r=0;r<n.length;r++)if(n[r].languageCode===t)return!0;return!1}"object"==typeof window?(cordova.define("cordova/plugin/configuration",function(n,r,o){e=function(){},t=window.PalmSystem?n("cordova/plugin/webos/service"):{Request:function(e,t){"function"==typeof t.onFailure&&t.onFailure({returnValue:!1,errorText:"PalmSystem Not Available. Cordova is not installed?"})}},o.exports=e}),e=cordova.require("cordova/plugin/configuration")):(e=function(e){(t=e).Request=function(e,n){var r=e+"/"+n.method,o={};!0===n.hasOwnProperty("parameters")&&(o=n.parameters);var i={};t&&t.call(r,o,function(e){console.log("res : "+JSON.stringify(e)),!0===e.payload.returnValue?(i=e.payload,n.onSuccess(i)):(i.returnValue=!1,i.errorCode=e.payload.errorCode,i.errorText=e.payload.errorText,n.onFailure(i))})}},module.exports=e),e.PictureMode={VIVID:"vivid",STANDARD:"normal",APS:"eco",CINEMA:"cinema",GAME:"game",SPORTS:"sports",EXPERT1:"expert1",EXPERT2:"expert2"},e.AppMode={LOCAL:"local",USB:"usb",REMOTE:"remote"},e.AppType={IPK:"ipk",ZIP:"zip"},e.LocaleList=[{language:"čeština",languageCode:"cs",countries:[{name:"",specifier:"cs-CZ"}]},{language:"dansk",languageCode:"da",countries:[{name:"",specifier:"da-DK"}]},{language:"Deutsch",languageCode:"de",countries:[{name:"",specifier:"de-DE"}]},{language:"English",languageCode:"en",countries:[{name:"",specifier:"en-US"}]},{language:"Español",languageCode:"es",countries:[{name:"",specifier:"es-ES"}]},{language:"ελληνική γλώσσα",languageCode:"el",countries:[{name:"",specifier:"el-GR"}]},{language:"Français",languageCode:"fr",countries:[{name:"",specifier:"fr-FR"}]},{language:"italiano",languageCode:"it",countries:[{name:"",specifier:"it-IT"}]},{language:"Nederlands",languageCode:"nl",countries:[{name:"",specifier:"nl-NL"}]},{language:"norsk",languageCode:"nb",countries:[{name:"",specifier:"nb-NO"}]},{language:"português",languageCode:"pt",countries:[{name:"Portugal",specifier:"pt-PT"},{name:"Brasil",specifier:"pt-BR"}]},{language:"русский",languageCode:"ru",countries:[{name:"",specifier:"ru-RU"}]},{language:"suomi",languageCode:"fi",countries:[{name:"",specifier:"fi-FI"}]},{language:"svenska",languageCode:"sv",countries:[{name:"",specifier:"sv-SE"}]},{language:"한국어",languageCode:"ko",countries:[{name:"",specifier:"ko-KR"}]},{language:"中文",languageCode:"zh-Hans",countries:[{name:"中国",specifier:"zh-Hans-CN"}]},{language:"日本語",languageCode:"ja",countries:[{name:"",specifier:"ja-JP"}]},{language:"中文",languageCode:"zh-Hant",countries:[{name:"香港",specifier:"zh-Hant-HK"}]}];var o=null;function i(e){null===o?t.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion"]},onSuccess:function(t){var n=t.sdkVersion.split(".");o=n.length>=1&&"1"===n[0]?1:n.length>=1&&"2"===n[0]?2:n.length>=1&&"3"===n[0]?3:0,delete t.returnValue,e(o)},onFailure:function(t){delete t.returnValue,e(o=0)}}):e(o)}e.prototype.setPictureMode=function(e,r,o){JSON.stringify(o),t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"picture",settings:{pictureMode:o.mode}},onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CSPM","Configuration.setPictureMode returns failure."),r(e))}})},e.prototype.getPictureMode=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"picture",keys:["pictureMode"]},onSuccess:function(t){if(!0===t.returnValue&&"function"==typeof e){var n={};n.mode=t.settings.pictureMode,e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGPM","Configuration.getPictureMode returns failure."),r(e))}})},e.prototype.setPictureProperty=function(e,r,o){JSON.stringify(o),i(function(i){var a,u={};if("number"!=typeof(a=o.backlight)||!isFinite(a))return n(c={},"CSPP","Configuration.setPictureProperty, backlight type is not number."),void r(c);for(var s in o)if(void 0!==s&&null!==s)if(u[s]=o[s],"tint"===s||"colorTemperature"===s)u[s]-=50;else if("blackLevel"===s){var c;if(u[s]={unknown:o[s]},"low"!==o[s]&&"high"!==o[s])return JSON.stringify(o),n(c={},"CSPP","Configuration.setPictureProperty, There is No matched item : blackLevel."),void r(c)}else"gamma"!==s||2!==i&&3!==i||"high"!==o[s]||(u[s]="high1");JSON.stringify(u),t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"picture",settings:u},onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CSPP","Configuration.setPictureProperty returns failure."),r(e))}})})},e.prototype.getPictureProperty=function(e,r){t.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(!0===t.returnValue&&"function"==typeof e){var n={};for(var r in t.settings)void 0!==r&&null!==r&&(n[r]=isNaN(t.settings[r])?t.settings[r]:Number(t.settings[r]),"tint"===r||"colorTemperature"===r?n[r]+=50:"blackLevel"===r?n[r]=t.settings[r].unknown:"gamma"===r&&"high1"===t.settings[r]&&(n[r]="high"));e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGPP","Configuration.getPictureProperty returns failure."),r(e))}})};var a={alias:"signageName"};return e.prototype.setProperty=function(e,r,o){JSON.stringify(o);var u=JSON.parse(o),s={},c={};i(function(o){3===o?(a.alias="deviceName",c.category="network"):(a.alias="signageName",c.category="commercial");for(var i in u)void 0!==a[i]&&(s[a[i]]=u[i]);c.settings=s,4===o||o>4?t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:c,onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CSP","Configuration.setProperty returns failure."),r(e))}}):t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:c,onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CSP","Configuration.setProperty returns failure."),r(e))}})})},e.prototype.getProperty=function(e,r,o){var u=JSON.parse(o).keys,s={},c=[];i(function(o){3===o?(a.alias="deviceName",s.category="network"):(a.alias="signageName",s.category="commercial");for(var i in u)null!==i&&void 0!==i&&(u[i],c.push(a[u[i]]));s.keys=c,4===o|o>4?t.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:s,onSuccess:function(t){if(!0===t.returnValue&&"function"==typeof e){var n={};for(var r in u)null===r&&void 0===r||(u[r],void 0===t.settings[a[u[r]]]&&null===t.settings[a[u[r]]]||(n[u[r]]=t.settings[a[u[r]]]));e(JSON.stringify(n))}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGP","Configuration.getProperty returns failure."),r(e))}}):t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:s,onSuccess:function(t){if(!0===t.returnValue&&"function"==typeof e){var n={};for(var r in u)null===r&&void 0===r||(u[r],void 0===t.settings[a[u[r]]]&&null===t.settings[a[u[r]]]||(n[u[r]]=t.settings[a[u[r]]]));e(JSON.stringify(n))}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGP","Configuration.getProperty returns failure."),r(e))}})})},e.prototype.setCurrentTime=function(e,r,o){JSON.stringify(o);var i=new Date(o.year,o.month-1,o.day,o.hour,o.minute,o.sec);if((o.year<2e3||o.year>2037||o.month<1||o.month>12||o.day<1||o.day>31||o.hour<0||o.hour>23||o.minute<0||o.minute>59||o.sec<0||o.sec>59||i.getFullYear()!==o.year||i.getMonth()!==o.month-1||i.getDate()!==o.day||i.getHours()!==o.hour||i.getMinutes()!==o.minute||i.getSeconds()!==o.sec)&&"function"==typeof r){var a={};return n(a,"CSCT","Configuration.setCurrentTime returns failure for out of range."),void r(a)}JSON.stringify(o);var u={};u.year=o.year,u.month=o.month,u.day=o.day,u.hour=o.hour,u.minute=o.minute,u.sec=o.sec,t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"setSystemTime",parameters:{time:u,ntp:o.ntp,ntpServerAddress:o.ntpServerAddress},onSuccess:function(){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CSCT","Configuration.setCurrentTime returns failure."),r(e))}})},e.prototype.getCurrentTime=function(e,r){t.Request("luna://com.palm.systemservice/time/",{method:"getEffectiveBroadcastTime",onSuccess:function(o){if(!0===o.returnValue){var i={},a=new Date(1e3*o.adjustedUtc);i.year=a.getFullYear(),i.month=a.getMonth()+1,i.day=a.getDate(),i.hour=a.getHours(),i.minute=a.getMinutes(),i.sec=a.getSeconds(),t.Request("luna://com.palm.systemservice/",{method:"getPreferences",parameters:{keys:["useNetworkTime"]},onSuccess:function(a){!0===a.returnValue?(i.ntp=a.useNetworkTime,t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["ntpServerMode","ntpServerType","ntpServerIpv4","ntpServerIpv6","ntpServerUrl"]},onSuccess:function(t){if(!0===t.returnValue){if(!0===i.ntp&&"manual"===t.settings.ntpServerMode){var n=t.settings.ntpServerType;"ipv4"===n?i.ntpServerAddress=t.settings.ntpServerIpv4:"ipv6"===n?i.ntpServerAddress=t.settings.ntpServerIpv6:"url"===n&&(i.ntpServerAddress=t.settings.ntpServerUrl)}"function"==typeof e&&e(i)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGCT","Configuration.getCurrentTime returns failure."),r(e))}})):"function"==typeof r&&(n(o,"CGCT","Configuration.getCurrentTime returns failure."),r(o))},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGCT","Configuration.getCurrentTime returns failure."),r(e))}})}else"function"==typeof r&&(n(o,"CGCT","Configuration.getCurrentTime returns failure."),r(o))},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGCT","Configuration.getCurrentTime returns failure."),r(e))}})},e.prototype.restartApplication=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"restart_application",onSuccess:function(t){"function"==typeof e&&e(t)},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CRA","Configuration.restartApp returns failure."),r(e))}})},e.prototype.getServerProperty=function(e,r){t.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(!0===t.returnValue&&"function"==typeof e){var n={};n.serverIp=t.settings.siServerIp,n.serverPort=parseInt(t.settings.serverIpPort,10),n.secureConnection="off"!==t.settings.secureConnection,n.appLaunchMode=t.settings.appLaunchMode,n.appType=t.settings.appType,n.fqdnMode="off"!==t.settings.fqdnMode,n.fqdnAddr=t.settings.fqdnAddr,e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGSP","Configuration.getServerProperty returns failure."),r(e))}})},e.prototype.setServerProperty=function(r,o,i){if(JSON.stringify(i),(void 0===i||"string"!=typeof i.serverIp||!1===/^(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(i.serverIp)||isNaN(i.serverPort)||i.serverPort<0||i.serverPort>65535||"number"!=typeof i.serverPort||"boolean"!=typeof i.secureConnection||"string"!=typeof i.appLaunchMode||i.appLaunchMode!==e.AppMode.USB&&i.appLaunchMode!==e.AppMode.LOCAL&&i.appLaunchMode!==e.AppMode.REMOTE)&&"function"==typeof o){var a={};return n(a,"CSSP","Configuration.setServerProperty, Invalid parameters."),void o(a)}var u={};u.siServerIp=i.serverIp,u.serverIpPort=i.serverPort+"",u.secureConnection=!0===i.secureConnection?"on":"off",u.appLaunchMode=i.appLaunchMode,"boolean"==typeof i.fqdnMode&&(u.fqdnMode=!0===i.fqdnMode?"on":"off"),"string"==typeof i.fqdnAddr&&(u.fqdnAddr=i.fqdnAddr),void 0!==i.appType&&(u.appType=i.appType),JSON.stringify(u),t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:u},onSuccess:function(e){!0===e.returnValue&&"function"==typeof r&&r()},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(n(e,"CSSP","Configuration.setServerProperty returns failure."),o(e))}})},e.prototype.clearCache=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"clearCache",onSuccess:function(t){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CCC","Configuration.clearCache returns failure."),r(e))}})},e.prototype.getTimeZoneList=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"getTimeZoneList",onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&(delete t.returnValue,e(t))},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGTL","Configuration.getTimeZoneList returns failure."),r(e))}})},e.prototype.getTimeZone=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"getTimeZone",onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&(delete t.returnValue,e(t))},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGTZ","Configuration.getTimeZone returns failure."),r(e))}})},e.prototype.setTimeZone=function(e,r,o){t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"time",keys:["autoClock"]},onSuccess:function(i){!0===i.returnValue&&"function"==typeof e&&("off"===i.settings.autoClock?(delete i.returnValue,"function"==typeof r&&(n(i,"CSTZ","Configuration.setTimeZone returns failure. autoClock is off"),r(i))):t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"setTimeZone",parameters:o,onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&(delete t.returnValue,e(t))},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CSTZ","Configuration.setTimeZone returns failure."),r(e))}}))},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CSTZ","Configuration.setTimeZone returns failure."),r(e))}})},e.prototype.debug=function(e,r,o){o.enabled,t.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"debug",parameters:{enabled:o.enabled},onSuccess:function(t){"function"==typeof e&&e(t)},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CD","Configuration.debug returns failure."),r(e))}})},e.prototype.setUSBLock=function(e,r,o){if(o.enabled,null===o.enabled&&"function"==typeof r){var i={};return n(i,"CSUL","Configuration.setUSBLock returns failure. command was not defined."),void r(i)}t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{enableUsb:!0===o.enabled?"off":"on"}},onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CSUL","Configuration.setUSBLock returns failure."),r(e))}})},e.prototype.getUSBLock=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["enableUsb"]},onSuccess:function(t){if(!0===t.returnValue){var n={};n.enabled="off"===t.settings.enableUsb,"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGUL","Configuration.getUSBLock returns failure."),r(e))}})},e.prototype.setOSDLock=function(e,r,o){if(o.enabled,null===o.enabled&&"function"==typeof r){var i={};return n(i,"CSOL","Configuration.setOSDLock returns failure. command was not defined."),void r(i)}t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"hotelMode",notifySelf:!1,settings:{enableMrcu:!0===o.enabled?"off":"on",enableOsdVisibility:!0===o.enabled?"off":"on"}},onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CSOL","Configuration.setOSDLock returns failure."),r(e))}})},e.prototype.getOSDLock=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"hotelMode",keys:["enableMrcu","enableOsdVisibility"]},onSuccess:function(t){if(!0===t.returnValue){var n={};n.enabled="on"!==t.settings.enableMrcu||"on"!==t.settings.enableOsdVisibility,"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGOL","Configuration.getOSDLock returns failure."),r(e))}})},e.prototype.getLocaleList=function(t,n){var r={};r.localeList=e.LocaleList,"function"==typeof t&&t(r)},e.prototype.setOSDLanguage=function(r,o,i){var a;return i.specifier,null!==i.specifier&&"string"==typeof i.specifier||"function"!=typeof o?!0!==function(t){for(var n=e.LocaleList,r=0;r<n.length;r++)for(var o=n[r].countries,i=0;i<o.length;i++)if(o[i].specifier===t)return!0;return!1}(i.specifier)?(n(a={},"CSOL","Configuration.setOSDLanguage returns failure. specifier is not valid."),void o(a)):void t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{keys:["localeInfo"]},onSuccess:function(e){if(!0===e.returnValue){var a={};(a=e.settings.localeInfo).locales.UI=i.specifier,a.locales.FMT=i.specifier,a.locales.TV=i.specifier,JSON.stringify(a),t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{settings:{localeInfo:a}},onSuccess:function(e){!0===e.returnValue&&"function"==typeof r&&r()},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(n(e,"CSOL","Configuration.setOSDLanguage returns failure."),o(e))}})}},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(n(e,"CSOL","Configuration.setOSDLanguage returns failure."),o(e))}}):(n(a={},"CSOL","Configuration.setOSDLanguage returns failure. command was not defined."),void o(a))},e.prototype.getOSDLanguage=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{keys:["localeInfo"]},onSuccess:function(t){if(!0===t.returnValue){var n={};JSON.stringify(t.settings.localeInfo),n.specifier=t.settings.localeInfo.locales.UI,"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGOL","Configuration.getOSDLanguage returns failure."),r(e))}})},e.prototype.setVirtualKeyboardLanguage=function(e,o,i){if(i.languageCodeList,null===i.languageCodeList&&"function"==typeof o)return n(u={},"CSKL","Configuration.setVirtualKeyboardLanguage returns failure. command was not defined."),void o(u);for(var a=0;a<i.languageCodeList.length;a++){var u;if(!1===r(i.languageCodeList[a]))return n(u={},"CSKL","Configuration.setVirtualKeyboardLanguage returns failure. language code is not valid."),void o(u)}t.Request("luna://com.webos.service.commercial.signage.storageservice/configuration/",{method:"setVirtualKeyboardLanguage",parameters:{languageCodeList:i.languageCodeList},onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof o&&(n(e,"CSKL","Configuration.setVirtualKeyboardLanguage returns failure."),o(e))}})},e.prototype.getVirtualKeyboardLanguage=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/configuration/",{method:"getVirtualKeyboardLanguage",parameters:{},onSuccess:function(t){if(!0===t.returnValue){var n={};JSON.stringify(t.languageCodeList),n.languageCodeList=t.languageCodeList,"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGKL","Configuration.getVirtualKeyboardLanguage returns failure."),r(e))}})},e.prototype.setProxyBypassList=function(e,r,o){if(void 0===o.urlList&&"function"==typeof r){var i={};return n(i,"CSPB","Configuration.setProxyBypassList returns failure. options.urlList is undefined."),void r(i)}t.Request("luna://com.webos.service.commercial.signage.storageservice/configuration/",{method:"setProxyBypassList",parameters:{urlList:o.urlList},onSuccess:function(t){!0===t.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CSPB","Configuration.setProxyBypassList returns failure."),r(e))}})},e.prototype.getProxyBypassList=function(e,r){t.Request("luna://com.webos.service.commercial.signage.storageservice/configuration/",{method:"getProxyBypassList",parameters:{},onSuccess:function(t){if(!0===t.returnValue){var n={};n.urlList=t.urlList,"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"CGPB","Configuration.getProxyBypassList returns failure."),r(e))}})},e}();
@@ -0,0 +1 @@
1
+ DeviceInfo=function(){var e,o;function n(e,o,n){void 0!==e.errorCode&&null!==e.errorCode||(e.errorCode=o),void 0!==e.errorText&&null!==e.errorText||(e.errorText=n)}"object"==typeof window?(cordova.define("cordova/plugin/deviceInfo",function(n,t,r){e=function(){},o=window.PalmSystem?n("cordova/plugin/webos/service"):{Request:function(e,o){"function"==typeof o.onFailure&&o.onFailure({returnValue:!1,errorText:"PalmSystem Not Available. Cordova is not installed?"})}},r.exports=e}),e=cordova.require("cordova/plugin/deviceInfo")):(e=function(e){(o=e).Request=function(e,n){var t=e+"/"+n.method,r={};!0===n.hasOwnProperty("parameters")&&(r=n.parameters);var i={};o&&o.call(t,r,function(e){console.log("res : "+JSON.stringify(e)),!0===e.payload.returnValue?(i=e.payload,n.onSuccess(i)):(i.returnValue=!1,i.errorCode=e.payload.errorCode,i.errorText=e.payload.errorText,n.onFailure(i))})}},module.exports=e);var t=null,r={};return e.EddystoneFrame={UUID:"uid",URL:"url"},e.prototype.getNetworkInfo=function(e,n){o.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(t){-1!==t.errorText.indexOf("Unknown method")?o.Request("luna://com.palm.connectionmanager",{method:"getstatus",parameters:{},onSuccess:function(o){delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){delete e.returnValue,"function"==typeof n&&n(e)}}):(delete t.returnValue,"function"==typeof n&&n(t))}})},e.prototype.setNetworkInfo=function(e,n,t){o.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"setNetworkInfo",parameters:t,onSuccess:function(o){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&n(e)}})},e.prototype.getBeaconInfo=function(e,n){o.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"getBeaconInfo",parameters:{},onSuccess:function(o){delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){delete e.returnValue,"function"==typeof n&&n(e)}})},e.prototype.setBeaconInfo=function(e,t,r){var i;if(!0===r.enabled&&(!1==(void 0!==(i=r.uuid)&&null!==i&&32==i.length&&null!==new RegExp(/^[a-fA-F0-9]*$/g).exec(i))||isNaN(r.major)||r.major<0||r.major>65535||isNaN(r.minor)||r.minor<0||r.minor>65535)){if("function"==typeof t){var a={};n(a,"DSBI","DeviceInfo.setBeaconInfo. Invalid options."),t(a)}}else o.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"setBeaconInfo",parameters:r,onSuccess:function(o){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof t&&t(e)}})},e.prototype.getSoftApInfo=function(e,n){o.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"getSoftApInfo",parameters:{},onSuccess:function(o){delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){delete e.returnValue,"function"==typeof n&&n(e)}})},e.prototype.setSoftApInfo=function(e,t,r){if(!0===r.enabled&&(null!==r.ssid&&r.ssid.length>32||null!==r.securityKey&&6!==r.securityKey.length)){if("function"==typeof t){var i={};n(i,"DSSI","DeviceInfo.setSoftApInfo. Invalid options."),t(i)}}else o.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"setSoftApInfo",parameters:r,onSuccess:function(o){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof t&&t(e)}})},e.prototype.getWifiList=function(e,n){o.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"getWifiList",parameters:{},onSuccess:function(o){delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){delete e.returnValue,"function"==typeof n&&n(e)}})},e.prototype.connectWifi=function(e,n,t){o.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"connectWifi",parameters:t,onSuccess:function(o){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&n(e)}})},e.prototype.startWps=function(e,n,t){o.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"startWps",parameters:t,onSuccess:function(o){delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){delete e.returnValue,"function"==typeof n&&n(e)}})},e.prototype.stopWps=function(e,n){o.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"stopWps",parameters:{},onSuccess:function(o){"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof n&&n(e)}})},e.prototype.getNetworkMacInfo=function(e,n){var i;i=function(t){4===t.webOSVer||t.webOSVer>4?o.Request("luna://com.webos.service.commercial.scapadapter/deviceinfo",{method:"getNetworkMacInfo",parameters:{},onSuccess:function(o){delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){delete e.returnValue,"function"==typeof n&&n(e)}}):o.Request("luna://com.webos.service.tv.signage",{method:"getinfo",parameters:{},onSuccess:function(o){delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){delete e.returnValue,"function"==typeof n&&n(e)}})},null===t?o.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion","boardType"]},onSuccess:function(e){e.sdkVersion;var o=e.sdkVersion.split(".");r=o.length>=1&&"1"===o[0]?{webOSVer:1,chipset:e.boardType.split("_")[0]}:o.length>=1&&"2"===o[0]?{webOSVer:2,chipset:e.boardType.split("_")[0]}:o.length>=1&&"3"===o[0]?{webOSVer:3,chipset:e.boardType.split("_")[0]}:o.length>=1&&"4"===o[0]?{webOSVer:4,chipset:e.boardType.split("_")[0]}:{webOSVer:0,chipset:""},t=r.webOSVer,delete e.returnValue,i(r)},onFailure:function(e){delete e.returnValue,i(r={webOSVer:0,chipset:""})}}):i(r)},e.prototype.getPlatformInfo=function(e,n){o.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["modelName","serialNumber","firmwareVersion","hardwareVersion","sdkVersion"]},onSuccess:function(o){o.manufacturer="LGE",o.sdkVersion="1.5.4",delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){delete e.returnValue,"function"==typeof n&&n(e)}})},e.prototype.getSystemUsageInfo=function(e,n,t){o.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"getSystemUsageInfo",parameters:{cpus:t.cpus,memory:t.memory},onSuccess:function(o){if(!0===o.returnValue){var t={};void 0!==o.memory&&(t.memory=o.memory),void 0!==o.cpus&&(t.cpus=o.cpus),"function"==typeof e&&e(t)}else"function"==typeof n&&n({errorCode:o.errorCode,errorText:o.errorText})},onFailure:function(e){"function"==typeof n&&n({errorCode:e.errorCode,errorText:e.errorText})}})},e.prototype.setProxyInfo=function(e,t,r){var i={};if(r.enabled,"boolean"!=typeof r.enabled&&"function"==typeof t)return n(a={},"DSPI","DeviceInfo.setProxyInfo returns failure. enabled is not boolean."),void t(a);if(0==r.enabled)i.proxyEnable="off","string"==typeof r.ipAddress&&null!==r.ipAddress.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/)&&(i.proxySingleAddress=r.ipAddress),!1===isNaN(r.port)&&(i.proxySinglePort=r.port.toString());else{var a;if(i.proxyEnable="on",("string"!=typeof r.ipAddress||null===r.ipAddress.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/))&&"function"==typeof t)return n(a={},"DSPI","DeviceInfo.setProxyInfo returns failure. ipAddress is not valid."),void t(a);if(isNaN(r.port)&&"function"==typeof t)return n(a={},"DSPI","DeviceInfo.setProxyInfo returns failure. port is not number."),void t(a);i.proxySingleAddress=r.ipAddress,i.proxySinglePort=r.port.toString()}"string"==typeof r.userName&&(i.proxySingleUsername=r.userName),"string"==typeof r.password&&(i.proxySinglePassword=r.password),JSON.stringify(i),o.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:i},onSuccess:function(o){!0===o.returnValue&&"function"==typeof e&&e()},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(n(e,"DSPI","DeviceInfo.setProxyInfo returns failure."),t(e))}})},e.prototype.getProxyInfo=function(e,t){o.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["proxyEnable","proxySingleAddress","proxySinglePort"]},onSuccess:function(o){if(!0===o.returnValue){var n={};n.enabled="on"===o.settings.proxyEnable,n.ipAddress=o.settings.proxySingleAddress,n.port=parseInt(o.settings.proxySinglePort),"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(n(e,"DGPI","DeviceInfo.getProxyInfo returns failure."),t(e))}})},e.prototype.setiBeaconInfo=function(e,t,r){var i,a={};if((null===r.enabled||void 0===r.enabled||"boolean"!=typeof r.enabled)&&"function"==typeof t)return n(s={},"DSIB","DeviceInfo.setiBeaconInfo returns failure. enabled is required."),void t(s);if(0==r.enabled)a.beaconMode="off";else{var s;if((null===r.uuid||void 0===r.uuid||!1==(void 0!==(i=r.uuid)&&null!==i&&32==i.length&&null!==new RegExp(/^[a-fA-F0-9]*$/g).exec(i)))&&"function"==typeof t)return n(s={},"DSIB","DeviceInfo.setiBeaconInfo returns failure. uuid is not valid."),void t(s);if((null===r.major||void 0===r.major||isNaN(r.major)||r.major<0||r.major>65535||null===r.minor||void 0===r.minor||isNaN(r.minor)||r.minor<0||r.minor>65535)&&"function"==typeof t)return n(s={},"DSIB","DeviceInfo.setiBeaconInfo returns failure. major and minor are not valid."),void t(s);a.beaconMode="on",a.beaconType="iBeacon",a.iBeaconUuid=r.uuid,a.iBeaconMajor=r.major.toString(),a.iBeaconMinor=r.minor.toString()}JSON.stringify(a),o.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:a},onSuccess:function(n){!0===n.returnValue&&o.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"notifyUpdatingBeaconInfo",parameters:{},onSuccess:function(o){delete o.returnValue,"function"==typeof e&&e(o)},onFailure:function(e){delete e.returnValue,"function"==typeof t&&t(e)}})},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(n(e,"DSIB","DeviceInfo.setiBeaconInfo returns failure."),t(e))}})},e.prototype.getiBeaconInfo=function(e,t){o.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["beaconMode","iBeaconUuid","iBeaconMajor","iBeaconMinor"]},onSuccess:function(o){if(!0===o.returnValue){var n={};n.enabled="on"===o.settings.beaconMode,n.uuid=o.settings.iBeaconUuid,n.major=parseInt(o.settings.iBeaconMajor),n.minor=parseInt(o.settings.iBeaconMinor),"function"==typeof e&&e(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof t&&(n(e,"DGIB","DeviceInfo.getiBeaconInfo returns failure."),t(e))}})},e.prototype.setEddystoneInfo=function(t,r,i){var a,s={};if(i.enabled,(null===i.enabled||void 0===i.enabled||"boolean"!=typeof i.enabled)&&"function"==typeof r)return n(u={},"DSEI","DeviceInfo.setEddystoneInfo returns failure. enabled is required."),void r(u);if(!1===i.enabled)s.beaconMode="off";else if(s.beaconMode="on",s.beaconType="eddystone",i.frame===e.EddystoneFrame.UUID){if(!1==(void 0!==(a=i.frameData)&&null!==a&&32==a.length&&null!==new RegExp(/^[a-fA-F0-9]*$/g).exec(a))&&"function"==typeof r)return n(u={},"DSEI","DeviceInfo.setEddystoneInfo returns failure. frameData is not valid."),void r(u);s.eddyStoneFrame=i.frame,s.eddyStoneUuid=i.frameData}else{if(i.frame!==e.EddystoneFrame.URL)return n(u={},"DSEI","DeviceInfo.setEddystoneInfo returns failure. frame is not valid."),void r(u);if((null===i.frameData||void 0===i.frameData||"string"!=typeof i.frameData||i.frameData.search("://")<0||"HTTP"!==i.frameData.substring(0,4).toUpperCase())&&"function"==typeof r)return n(u={},"DSEI","DeviceInfo.setEddystoneInfo returns failure. frameData is not valid."),void r(u);s.eddyStoneFrame=i.frame,s.eddyStoneUrlPrefix=i.frameData.substring(0,i.frameData.search("://")),"WWW"===i.frameData.substring(i.frameData.search("://")+3,3).toUpperCase()&&(s.eddyStoneUrlPrefix=s.eddyStoneUrlPrefix+"Ex");var u,c=0;if("HTTP"===s.eddyStoneUrlPrefix.toUpperCase()?c=7:"HTTPEX"===s.eddyStoneUrlPrefix.toUpperCase()?c=11:"HTTPS"===s.eddyStoneUrlPrefix.toUpperCase()?c=8:"HTTPSEX"===s.eddyStoneUrlPrefix.toUpperCase()&&(c=12),i.frameData.length-c>17)return n(u={},"DSEI","DeviceInfo.setEddystoneInfo returns failure. url size is over."),void r(u);s.eddyStoneUrl=i.frameData.substring(c,i.frameData.length),s.eddyStoneUrlExCode="noneValue"}JSON.stringify(s),o.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:s},onSuccess:function(e){!0===e.returnValue&&o.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"notifyUpdatingBeaconInfo",parameters:{},onSuccess:function(e){delete e.returnValue,"function"==typeof t&&t(e)},onFailure:function(e){delete e.returnValue,"function"==typeof r&&r(e)}})},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"DSEI","DeviceInfo.setEddystoneInfo returns failure."),r(e))}})},e.prototype.getEddystoneInfo=function(t,r){o.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["beaconMode","eddyStoneFrame","eddyStoneUuid","eddyStoneUrlPrefix","eddyStoneUrl","eddyStoneUrlExCode"]},onSuccess:function(o){if(!0===o.returnValue){var n={};n.enabled="on"===o.settings.beaconMode,n.frame=o.settings.eddyStoneFrame,o.settings.eddyStoneFrame===e.EddystoneFrame.UUID?n.frameData=o.settings.eddyStoneUuid:"http"===o.settings.eddyStoneUrlPrefix?n.frameData="http://"+o.settings.eddyStoneUrl:"httpEx"===o.settings.eddyStoneUrlPrefix?n.frameData="http://www."+o.settings.eddyStoneUrl:"https"===o.settings.eddyStoneUrlPrefix?n.frameData="https://"+o.settings.eddyStoneUrl:n.frameData="https://www."+o.settings.eddyStoneUrl,"function"==typeof t&&t(n)}},onFailure:function(e){delete e.returnValue,"function"==typeof r&&(n(e,"DGEI","DeviceInfo.getEddystoneInfo returns failure."),r(e))}})},e}();