modules/linagora.esn.contact/frontend/app/services/contact-api-client.service.js
Function ContactAPIClient
has 338 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ContactAPIClient(
$q,
uuid4,
AddressbookShell,
ContactShell,
File contact-api-client.service.js
has 362 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function(angular) {
'use strict';
angular.module('linagora.esn.contact')
.factory('ContactAPIClient', ContactAPIClient);
Function addressbookHome
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addressbookHome(bookId) {
function addressbook(bookName) {
bookName = bookName || DEFAULT_ADDRESSBOOK_NAME;
return {
Function addressbook
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addressbook(bookName) {
bookName = bookName || DEFAULT_ADDRESSBOOK_NAME;
return {
acceptShare: acceptShare,
Function ContactAPIClient
has 16 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$q,
uuid4,
AddressbookShell,
ContactShell,
ContactShellBuilder,
Function vcard
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function vcard(cardId) {
function get() {
return getCard(bookId, bookName, cardId);
}
Function listCard
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function listCard(bookId, bookName, options) {
options = options || {};
var currentPage = options.page || 1;
var limit = options.limit || CONTACT_LIST_PAGE_SIZE;
var offset = (currentPage - 1) * limit;
Function searchCard
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function searchCard(options) {
if (!options) {
return $q.reject('Missing options');
}