45 lines
1.3 KiB
TypeScript
45 lines
1.3 KiB
TypeScript
// Module ID: 7124
|
|
// Function ID: 7125
|
|
// Dependencies: [5, 676, 530, 709, 2]
|
|
|
|
// Module 7124
|
|
import asyncGeneratorStep from "asyncGeneratorStep";
|
|
import { Endpoints } from "ME";
|
|
|
|
const require = arg1;
|
|
const result = require("sendRequest").fileFinishedImporting("modules/friend_suggestions/FriendSuggestionActionCreators.tsx");
|
|
|
|
export default {
|
|
fetch() {
|
|
return callback(function*() {
|
|
const callback = tmp3;
|
|
let c3 = 1;
|
|
const HTTP = outer1_0(outer1_2[2]).HTTP;
|
|
const obj1 = { url: null, rejectWithError: true };
|
|
obj1[0] = constants.FRIEND_SUGGESTIONS;
|
|
yield HTTP.get(obj1);
|
|
if (1 === tmp7) {
|
|
c3 = 0;
|
|
let obj3 = callback(709);
|
|
obj3.dispatch({ type: "LOAD_FRIEND_SUGGESTIONS_FAILURE" });
|
|
let c5 = 3;
|
|
} else if (arg0 === 1) {
|
|
c5 = 3;
|
|
throw arg1;
|
|
} else if (arg0 !== 2) {
|
|
const body = arg1;
|
|
const obj = callback(709);
|
|
obj3 = { type: "LOAD_FRIEND_SUGGESTIONS_SUCCESS", suggestions: null };
|
|
obj3[1] = body.body;
|
|
obj.dispatch(obj3);
|
|
c3 = 0;
|
|
}
|
|
c3 = 0;
|
|
return arg1;
|
|
})();
|
|
},
|
|
ignore(id) {
|
|
const HTTP = require(530) /* sendRequest */.HTTP;
|
|
HTTP.del({ url: Endpoints.FRIEND_SUGGESTION(id), rejectWithError: true });
|
|
}
|
|
};
|