"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const installApp_1 = __importDefault(require("./installApp"));
const rxjs_1 = require("rxjs");
const restoreAppDataUseCaseDI_1 = require("../device/use-cases/appDataBackup/restoreAppDataUseCaseDI");
function installAppWithRestore(transport, targetId, app, deviceId, storage) {
    const install = (0, installApp_1.default)(transport, targetId, app);
    const restore = (0, restoreAppDataUseCaseDI_1.restoreAppDataUseCaseDI)(transport, app.name, deviceId, storage);
    return (0, rxjs_1.concat)(install, restore);
}
exports.default = installAppWithRestore;
//# sourceMappingURL=installAppWithRestore.js.map