"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// ∏import { DataManager, NetManager } from "duiba-tw";
var DataManager_1 = require("../../../libs/tw/manager/DataManager");
var NetManager_1 = require("../../../libs/tw/manager/NetManager");
var Loading_1 = require("../../loading/Loading");
exports.default = function () { return new Promise(function (resolve) {
    var _callback = function (data) {
        Loading_1.default.instace.hide();
        resolve(data);
    };
    Loading_1.default.instace.show();
    if (DataManager_1.DataManager.ins.getRuleData) {
        _callback(true);
    }
    else {
        NetManager_1.NetManager.ins.getRuleNg(_callback);
    }
}); };
//# sourceMappingURL=getRule.js.map