Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
e => reject(common.fail(e))
);
(e: any) => reject(common.fail(e))
);
e => {
reject(common.fail(e));
}
);
updateGroup(
newItemTemplate,
destinationAuthentication,
templateDictionary
).then(
() => {
progressTickCallback();
resolve(createResponse.group.id);
},
e => reject(common.fail(e))
);
},
e => reject(common.fail(e))
);
} else {
reject(common.fail());
}
},
e => reject(common.fail(e))
common
.updateItemExtended(
createResponse.serviceItemId,
newItemTemplate.item,
newItemTemplate.data,
requestOptions.authentication
)
.then(
() => resolve(createResponse.serviceItemId),
(e: any) => reject(common.fail(e))
);
},
e => reject(common.fail(e))
);
} else {
reject(common.fail());
}
},
e => reject(common.fail(e))
e => reject(common.fail(e))
);
e => reject(common.fail(e))
);
e => reject(common.fail(e))
);
e => {
reject(common.fail(e));
}
);
addResults => {
if (addResults && addResults.addResults) {
resolve(true);
} else {
reject(
common.fail({
success: false,
message: "Failed to add dispatch record."
})
);
}
},
e =>