Oscar Orsen Gel Nail Polish Remover 125ml (2023)

',''); postBody = postBody.replace('',''); //SFBUN-1006 - Sakthe - Triggering Notification for users after editing a comment/reply - End //save existing feed item $scope.updateFeedItem($scope.selectedFeedItem, postBody); } }; $scope.postFeedItem = function (postBody) { $scope.isSavingFeedItem = true; var conn = new jsforce.Connection({ accessToken: 'NULL_SESSION_ID' }); conn.chatter.resource('/connect/communities/0DB28000000A2K8GAK/chatter/feed-elements').create({ body: { messageSegments: [{ type: 'Text', text: postBody }] }, feedElementType: 'FeedItem', subjectId: $scope.bunchContentID }, function (err, result) { $scope.isSavingFeedItem = false; if (result) { //Notification.success('Comment posted successfully.'); } if (err) { Notification.error('Error:' + err); return console.error(err); } $scope.toggleReplyBox(); $scope.feedItemBody = ''; $scope.feedItemSubject = ''; tinymce.activeEditor.setContent(''); wwbModule.Lightbox.init(); $scope.getChatterFeedItems(null); var cnt = _.unescapeHTML(result.body.text); var userMentions = []; userMentions = $scope.getMentionedUsers(cnt); $scope.loadAllMemberReviews(); onPostContent($scope.bunchContentID, result.id, 'Post', cnt, $scope.bunchContentRecordType, userMentions).then(function (pcresult) { if (pcresult != null && pcresult.moderation != null && pcresult.moderation.data != null) { Notification.error('Your content was added successfully, but moderator needs to approve it before it can be posted.'); $scope.chatterFlags.push(pcresult.moderation.data); // $scope.getChatterFeedItems(null); } }); wwbModule.Lightbox.init(); try { $rootScope.$broadcast('onFeedItemPost', result); } catch (e) { } //$scope.discussion.Comment_Count__c = $scope.discussion.Comment_Count__c + 1; }); }; $scope.updateFeedItem = function (feedItem, postBody) { $scope.isSavingFeedItem = true; editChatterPost(feedItem.id, postBody).then(function (result) { $scope.isSavingFeedItem = false; //SFBUN-1006 - Sakthe - Triggering Notification for users after editing a comment/reply - Start var cnt = _.unescapeHTML(result.record.body.text); var userMentions = []; userMentions = $scope.getMentionedUsers(cnt); $scope.loadAllMemberReviews(); onPostContent($scope.bunchContentID, feedItem.id, 'Post', cnt, $scope.bunchContentRecordType, userMentions).then(function (pcresult) { if (pcresult != null && pcresult.moderation != null && pcresult.moderation.data != null) { Notification.error('Your content was added successfully, but moderator needs to approve it before it can be posted.'); $scope.chatterFlags.push(pcresult.moderation.data); } }); //SFBUN-1006 - Sakthe - Triggering Notification for users after editing a comment/reply - End if (result != null && result.done == true) { if (result && result.done == true) { //Notification.success('Comment posted successfully.'); } wwbModule.Lightbox.init(); $scope.selectedFeedItem = null; $scope.feedItemsList.forEach(function (element, index) { if (element.id == result.record.id) { $scope.feedItemsList[index] = result.record; return; } }); try { $rootScope.$broadcast('onFeedItemPost', result); } catch (e) { } $scope.resetFeedItemEdit(); $("#edit-feeditem-close").click(); } else { Notification.error('Error:' + result.error); } }); }; $scope.cloudinaryUploadWidgetChatter = null; $scope.cloudinaryUploadWidgetChatterReady = false; $scope.initializeUploadWidgetForChatter = function(){ try{ // #SFBUN-3203 : Multiple Photo upload V2 release (change in params) - @SP // INC07116350 : @SAI PRASHANTHI | Including the image formats as in FAQs' $scope.cloudinaryUploadWidgetChatter = createUploadWidget(10*1048576, ["png", "jpg","jpeg","gif","bmp","tiff","tif"],1.3,'chatter',false,function (error, result) { // console.log(result); //@SP: SFBUN-6150 | Bunch member getting an error message when trying to upload photos in chats & reviews if(result.event === "source-changed" || result.event === "display-changed") { setTimeout(function () { $scope.cloudinaryUploadWidgetChatterReady= true; $scope.$apply(); }, 100); if($scope.clickedUploadWidgetWhileLoading){ Notification.clearAll(); $scope.clickedUploadWidgetWhileLoading=false; } } if (result.event === "success") { $scope.$apply(function () { var info = result.info; var url = 'https://res.cloudinary.com/bunch-media-library/image/upload/c_limit,h_250,w_330,q_auto,f_auto,fl_lossy/' + info.path; tinymce.activeEditor.selection.setContent('

Oscar Orsen Gel Nail Polish Remover 125ml (1)

'); }); } if(error) { console.error('Upload Widget Error: '+error.statusText); //Notification.error('Error: ' + error.statusText); } }); }catch(error){ console.log(error); //Notification.error('Error: ' + error); } }; $scope.initializeUploadWidgetForChatter(); //JDC $scope.addChatterImage = function (fid) { // console.log(fid); try{ var tinymceeditorid=$('textarea[data-item-id="'+fid+'"]')[0].id; tinymce.EditorManager.get(tinymceeditorid).focus(); }catch(error) { console.error(error); } if($scope.clickedUploadWidgetWhileLoading){ return; } if(!$scope.cloudinaryUploadWidgetChatterReady) { //@SP: SFBUN-6150 | Bunch member getting an error message when trying to upload photos in chats & reviews Notification.warning({message: "Just a moment. We are getting the Uploader ready for you.", delay: 60000, closeOnClick:false}); //$scope.clickedUploadWidgetWhileLoading=true; } $scope.cloudinaryUploadWidgetChatter.open(); }; //JDC $scope.isSavingComment = false; $scope.selectedCommentItem = null; $scope.selectedCommentParent = null; $scope.isEditing = false; $scope.selectCommentItemForEdit = function (feedItem, comment) { $scope.enableLightboxButtons = false; $scope.selectedCommentParent = feedItem; $scope.selectedCommentItem = comment; $scope.commentItemBody = _.unescapeHTML(comment.body.text); $scope.selectedFeedItemForCommentEdit = feedItem; $scope.selectedCommentBodyTextForEdit = $scope.commentItemBody; $scope.isEditing = true; tinymce.activeEditor.setContent($scope.commentItemBody); }; //@SFBUN-406 @Ananyajeet @Desc: Finds the current logged in user's Preferred Name $scope.userPrefName=null; $scope.getLoggedInUserPrefName = function() { var userIdList=[]; userIdList.push('00528000004FMelAAG'); if($scope.userPrefName==null) { getBunchCommunityUsersInfo(userIdList).then(function (result) { if (result != null) { setTimeout(function () { $scope.userPrefName=result['00528000004FMelAAG'].Preferred_Name__c; $scope.$apply(); }, 100); } }); } }; //@SFBUN-406 @Ananyajeet @Desc: method called from getSelectedUserReview() to populate recipient list string when page loading through a notification click $scope.populateRecipientList = function() { //alert("Angularjs call function on page load: "+ $window.location.href); var url=$window.location.href; //var feedItemId=; if(url.indexOf('rid=')) { var ridIndex=url.indexOf('rid='); //rid is part of url when page called from a notification click var feedItemId=url.substring(ridIndex+4, ridIndex+22); //fetching feedItem Id from URL var index = $scope.getFeedItemIndex(feedItemId, $scope.feedItemsList); var feedItemAuthor=$scope.feedItemsList[index].actor.displayName; $scope.addMention(feedItemAuthor, null, feedItemId, null, null); //alert("Angularjs call function on page load: "+ $window.location.href+ ' Index: '+index+ ' AuthName: '+feedItemAuthor); } }; //@SFBUN-406 @Ananyajeet @Desc: on load, fires method to find the preferred name of logged-in user $scope.$watch('$viewContentLoaded', function (response, data) { $scope.getLoggedInUserPrefName(); }); $scope.mentionedUsersString=new Map(); $scope.author=new Map(); $scope.notifiedPhrase= ' will be notified'; //@SFBUN-406 @Ananyajeet @Desc: addMention method adds @Mentions to the comment textbox/recipients string $scope.addMention = function(feedItemAuthor, feedItemAuthorId, feedItemId, commentAuthor, commentAuthorId) { console.log('FeedItem User id: '+feedItemAuthor + ' LoggedIn userId: '+'00528000004FMelAAG' + ' LoggedInUserName: '+$scope.userPrefName + ' menUsrStr: '+$scope.mentionedUsersString); if(feedItemAuthorId!='00528000004FMelAAG') { console.log('Inside 1st if: '+$scope.mentionedUsersString.get(feedItemId)); if(($scope.mentionedUsersString.get(feedItemId)==null || $scope.mentionedUsersString.get(feedItemId)==undefined) && feedItemAuthor!=$scope.userPrefName) //don't add preferred name to recipient string if it's logged-in user's feed { $scope.mentionedUsersString.set(feedItemId, feedItemAuthor); } else { console.log('1st else: '+$scope.author.get(feedItemId)); if($scope.author.get(feedItemId)!=feedItemAuthor && $scope.author.get(feedItemId)!=undefined) //when the Reply button on a different FeedItem is clicked, mentionedUsersString should show that feedItem's author $scope.mentionedUsersString.set(feedItemId, feedItemAuthor); } if(feedItemAuthor!=$scope.userPrefName) $scope.author.set(feedItemId, feedItemAuthor); } if(commentAuthorId!= '00528000004FMelAAG' && commentAuthorId!=null) { tinyMCE.get(document.getElementsByName("tinymce_"+feedItemId)[0].id).focus(); //@SFBUN-406 @Ananyajeet @Desc: Sets focus if logged-in user is not the author of comment $scope.scrollToID('commentbox_'+feedItemId); //@SFBUN-406 @Ananyajeet @Desc: Scrolls to the comment box var mentionedUser= "@"+commentAuthor; //this condition ensures autoTagging occurs only in the textBox which is associated with a feeditem on button click. If any other textBox is active, and Reply //button clicked for any other feed item, no change occurs. if(feedItemId==tinyMCE.activeEditor.targetElm.dataset.itemId) { //if feeditemAuthor and replyAuthor same, as notif. will automatically go to feeditemAuthor, it's not added to commentbox, but added to mentionedString if(!((tinymce.activeEditor.getContent()).includes(mentionedUser)) && commentAuthorId!=feedItemAuthorId) //tinymce.activeEditor.setContent((tinymce.activeEditor.getContent()).concat(''+mentionedUser +'')); tinymce.activeEditor.execCommand('mceInsertContent', false, mentionedUser + " "); //using execCommand as setContent always inserts text surrounded by

tag console.log('Content now: '+tinymce.activeEditor.getContent({format:'raw'})); console.log('Do we have ids: '+$scope.userPrefName); } } }; $scope.saveComment = function (feeditem) { $scope.isSavingComment = true; //SFBUN-983-Josy Mathew if ($scope.selectedCommentItem === null) { var tinymceeditorid=$('textarea[data-item-id="'+feeditem.id+'"]')[0].id; $scope.commentBoxes[feeditem.id] = tinymce.EditorManager.get(tinymceeditorid).getContent(); }else{ $scope.commentBoxes[feeditem.id] = tinymce.activeEditor.getContent(); } var commentBody = ''; commentBody = $scope.commentBoxes[feeditem.id]; //JDC if ((commentBody == null || _.isBlank(_.unescapeHTML(commentBody))) && commentBody.indexOf('/plugins/emoticons/') == -1) { Notification.error('Please enter some text before posting a comment'); $scope.isSavingComment = false; return; } if (commentBody.length >= 10000) { Notification.error('Your content is too long. Maximum 10,000 characters are allowed'); $scope.isSavingComment = false; return; } if ($scope.selectedCommentItem === null) { $scope.postNewComment(feeditem.id, commentBody); } else { //SFBUN-1006 - Sakthe - Triggering Notification for users after editing a comment/reply - Start commentBody = commentBody.replace('',''); commentBody = commentBody.replace('',''); commentBody = commentBody.replace('',''); //SFBUN-1006 - Sakthe - Triggering Notification for users after editing a comment/reply - End $scope.updateComment(feeditem, $scope.selectedCommentItem, commentBody); } }; $scope.updateComment = function (feeditem, comment, postBody) { editChatterComment(comment.id, postBody).then(function (result) { $scope.isSavingComment = false; $scope.isEditing = false; if (result != null && result.done == true) { feeditem.capabilities.comments.page.items.forEach(function (element, index) { if (element.id == result.record.id) { feeditem.capabilities.comments.page.items[index] = result.record; return; } }); //SFBUN-1006 - Sakthe - Triggering Notification for users after editing a comment/reply - Start var cnt = _.unescapeHTML(result.record.body.text); var userMentions = []; userMentions = $scope.getMentionedUsers(cnt); onPostContent($scope.bunchContentID, comment.id, 'Comment', cnt, $scope.bunchContentRecordType, userMentions).then(function (result) { if (result != null && result.moderation != null && result.moderation.data != null) { Notification.error('Your content was added successfully, but moderator needs to approve it before it can be posted.'); $scope.chatterFlags.push(result.moderation.data); $scope.getChatterFeedItems(null); } }); //SFBUN-1006 - Sakthe - Triggering Notification for users after editing a comment/reply - End $scope.commentBoxes[feeditem.id] = ''; $scope.selectedCommentItem = null; $scope.resetCommentEdit(); $("#edit-comment-close").click(); } else { Notification.error('Error:' + result.error); } }); }; $scope.postNewComment = function (replyId, comment) { var conn = new jsforce.Connection({ accessToken: 'NULL_SESSION_ID' }); var commentsUrl = '/services/data/v40.0/connect/communities/0DB28000000A2K8GAK/chatter/feed-elements/' + replyId + '/capabilities/comments/items'; conn.chatter.resource(commentsUrl).create({ body: { messageSegments: [{ type: 'Text', text: comment }] } }, function (err, result) { $scope.isSavingComment = false; if (err) { Notification.error('Error: ' + err); return console.error(err); } if (result) { //Notification.success('Comment posted successfully.'); } if (result != null && result.id != null) { var newComment = result; var index = $scope.getFeedItemIndex(replyId, $scope.feedItemsList); if (index > -1) { $scope.$apply(function () { $scope.feedItemsList[index].capabilities.comments.page.items.push(newComment); var totalcomments = $scope.feedItemsList[index].capabilities.comments.page.total; $scope.feedItemsList[index].capabilities.comments.page.total = totalcomments + 1; //$scope.showComments[replyId]=false; $scope.commentBoxes[replyId] = ''; //$scope.getChatterFeedItems(null); wwbModule.Lightbox.init(); var cnt = _.unescapeHTML(result.body.text); var userMentions = []; userMentions = $scope.getMentionedUsers(cnt); if ($scope.hiddenComments != null && $scope.hiddenComments.length > 0) { $scope.hiddenComments.push(result); } onPostContent($scope.bunchContentID, newComment.id, 'Comment', cnt, $scope.bunchContentRecordType, userMentions).then(function (result) { if (result != null && result.moderation != null && result.moderation.data != null) { Notification.error('Your content was added successfully, but moderator needs to approve it before it can be posted.'); $scope.chatterFlags.push(result.moderation.data); $scope.getChatterFeedItems(null); } }); //INC04702052 - Start Sakthe var ids = []; ids.push(newComment.user.id); getBunchCommunityUsersInfo(ids).then(function (result) { if (result != null) { setTimeout(function () { if ($scope.bunchMembersInfo == undefined || $scope.bunchMembersInfo.length == 0) { $scope.bunchMembersInfo = result; } else { $scope.bunchMembersInfo = _.extend($scope.bunchMembersInfo, result); } $scope.$apply(); }, 100); } $scope.isLoadingMembersInfo = false; }); //INC04702052 - End Sakthe wwbModule.Lightbox.init(); }); } } }); }; $scope.selectedChatterItemRecord = {}; $scope.selectedChatterItemRecordLikes = []; $scope.selectedChatterItemRecordLikesData = {}; $scope.isLoadingMembersInfo = false; $scope.setSelectedChatterItemRecord = function (item, nextPageUrl) { $scope.isLoadingMembersInfo = true; if (item == null || nextPageUrl == null) { $scope.selectedChatterItemRecord = {}; $scope.selectedChatterItemRecordLikes = []; $scope.selectedChatterItemRecordLikesData = {}; } $scope.selectedChatterItemRecord = item; if (item.capabilities != null && item.capabilities.chatterLikes != null && item.capabilities.chatterLikes.page != null && item.capabilities.chatterLikes.page.items != null) { //$scope.selectedChatterItemRecordLikes = item.capabilities.chatterLikes.page.items; var conn = new jsforce.Connection({ accessToken: 'NULL_SESSION_ID' }); var itemLikesUrl = '/connect/communities/0DB28000000A2K8GAK/chatter/feed-elements/' + item.id + '/capabilities/chatter-likes/items?pageSize=100'; if (nextPageUrl != undefined) { itemLikesUrl = nextPageUrl; } conn.chatter.resource(itemLikesUrl).retrieve(function (err, result) { //$scope.selectedChatterItemRecordLikes = result.items; $scope.selectedChatterItemRecordLikesData = result; if ($scope.selectedChatterItemRecordLikes.length == 0) { $scope.selectedChatterItemRecordLikes = result.items; } else { $scope.selectedChatterItemRecordLikes = _.extend($scope.selectedChatterItemRecordLikes, result.items); } $scope.populateMemberInfo($scope.selectedChatterItemRecordLikes); }); } else if (item.likes != null && item.likes.items != null) { //$scope.selectedChatterItemRecordLikes = item.likes.items; var conn = new jsforce.Connection({ accessToken: 'NULL_SESSION_ID' }); var itemLikesUrl = '/connect/communities/0DB28000000A2K8GAK/chatter/comments/' + item.id + '/likes?pageSize=100'; if (nextPageUrl != undefined) { itemLikesUrl = nextPageUrl; } conn.chatter.resource(itemLikesUrl).retrieve(function (err, result) { //$scope.selectedChatterItemRecordLikes = result.items; $scope.selectedChatterItemRecordLikesData = result; if ($scope.selectedChatterItemRecordLikes.length == 0) { $scope.selectedChatterItemRecordLikes = result.items; } else { $scope.selectedChatterItemRecordLikes = _.extend($scope.selectedChatterItemRecordLikes, result.items); } $scope.populateMemberInfo($scope.selectedChatterItemRecordLikes); }); } else { $scope.selectedChatterItemRecordLikes = null; } }; $scope.populateMemberInfo = function (likes) { var ids = []; likes.forEach(function (item, index) { ids.push(item.user.id); }); getBunchCommunityUsersInfo(ids).then(function (result) { if (result != null) { setTimeout(function () { if ($scope.bunchMembersInfo == undefined || $scope.bunchMembersInfo.length == 0) { $scope.bunchMembersInfo = result; } else { $scope.bunchMembersInfo = _.extend($scope.bunchMembersInfo, result); } $scope.$apply(); }, 100); } $scope.isLoadingMembersInfo = false; }); }; $scope.isSavingFeedItemLike = false; $scope.likeFeedItem = function (feedItemId) { $scope.isSavingFeedItemLike = true; var index = $scope.getFeedItemIndex(feedItemId, $scope.feedItemsList); $scope.feedItemsList[index].capabilities.chatterLikes.isLikedByCurrentUser = true; var conn = new jsforce.Connection({ accessToken: 'NULL_SESSION_ID' }); var itemLikesUrl = '/connect/communities/0DB28000000A2K8GAK/chatter/feed-elements/' + feedItemId + '/capabilities/chatter-likes/items'; conn.chatter.resource(itemLikesUrl).create("", function (err, result) { if (result) { //Notification.success('Comment liked successfully.'); } if (err) { $scope.isSavingFeedItemLike = false; return console.error(err); } var index = $scope.getFeedItemIndex(feedItemId, $scope.feedItemsList); var likeCount = 0; if (index > -1) { //likeCount = $scope.feedItemsList[index].capabilities.chatterLikes.page.items.length; likeCount = $scope.feedItemsList[index].capabilities.chatterLikes.page.total; if ($scope.feedItemsList[index] != null) { $scope.$apply(function () { $scope.feedItemsList[index].capabilities.chatterLikes.page.items.push(result); $scope.feedItemsList[index].capabilities.chatterLikes.isLikedByCurrentUser = true; $scope.feedItemsList[index].capabilities.chatterLikes.page.total++; }); } } $scope.isSavingFeedItemLike = false; likeCount = likeCount + 1; onChatterLike($scope.bunchContentID, feedItemId, $scope.bunchContentRecordType, likeCount).then(function (result) { if (result != null && result.done == true) { } }); }); }; $scope.isSavingCommentLike = false; $scope.likeCommentItem = function (commentItemId, feedItemId) { $scope.isSavingCommentLike = true; var conn = new jsforce.Connection({ accessToken: 'NULL_SESSION_ID' }); var itemLikesUrl = '/connect/communities/0DB28000000A2K8GAK/chatter/comments/' + commentItemId + '/likes'; conn.chatter.resource(itemLikesUrl).create("", function (err, result) { if (result) { //Notification.success('Comment liked successfully.'); } if (err) { $scope.isSavingCommentLike = false; return console.error(err); } $scope.isSavingCommentLike = false; var index = $scope.getFeedItemIndex(feedItemId, $scope.feedItemsList); var likeCount = 0; if (index > -1) { $scope.$apply(function () { var commentIndex = $scope.getFeedItemIndex(commentItemId, $scope.feedItemsList[index].capabilities.comments.page.items); $scope.feedItemsList[index].capabilities.comments.page.items[commentIndex].myLike = result; $scope.feedItemsList[index].capabilities.comments.page.items[commentIndex].likes.items.push(result); $scope.feedItemsList[index].capabilities.comments.page.items[commentIndex].likes.total = $scope.feedItemsList[index].capabilities.comments.page.items[commentIndex].likes.total + 1; likeCount = $scope.feedItemsList[index].capabilities.comments.page.items[commentIndex].likes.total; }); } /*INC06938920 - Josy Mathew - Commented for not triggering the notification onChatterLike($scope.bunchContentID, commentItemId, $scope.bunchContentRecordType, likeCount).then(function (result) { if (result != null && result.done == true) { } });*/ }); }; $scope.getFeedItemIndex = function (replyId, feedItems) { if (feedItems != null && feedItems.length > 0) { for (var i = 0; i < feedItems.length; i++) { if (feedItems[i].id == replyId) { return i; } } } return -1; }; $scope.TBFSourceType; $scope.TBFID; $scope.TBFCOMMENTID; $scope.TBFReason = ''; $scope.setFlagContent = function (feedItemId, commentId, sourceType) { $scope.TBFSourceType = sourceType; $scope.TBFID = feedItemId; $scope.TBFCOMMENTID = commentId; wwbModule.Lightbox.init(); }; $scope.isFlaggingChatterContent = false; $scope.flagChatterContent = function () { if (_.isBlank($scope.coc)) { Notification.error("Please enter what’s your enquiry about"); return; } if (_.isBlank($scope.TBFReason)) { Notification.error('Please enter a valid reason for reporting this content.'); return; } var sourceType = $scope.TBFSourceType; var feedItemId = $scope.TBFID; var reason =$scope.coc+'-'+$scope.TBFReason;//SFBUN-6151-added moderation reason $scope.coc='';//SFBUN-6151-resetting moderation reason//SFBUN-6151-resetting moderation reason var commentId = $scope.TBFCOMMENTID; $scope.isFlaggingChatterContent = true; if (sourceType == 'Post') { $scope.reportFeedItem(feedItemId, reason); } if (sourceType == 'Comment') { $scope.reportFeedComment(feedItemId, commentId, reason); } }; $scope.isFlaggingChatterContent = false; $scope.reportFeedItem = function (feedItemId, reason) { if (_.isBlank(reason) || $scope.TBFReason.length > 200) { $scope.isFlaggingChatterContent = false; Notification.error('Please enter a valid reason for reporting this content with maximum 200 characters.'); return; } $scope.isFlaggingChatterContent = true; var conn = new jsforce.Connection({ accessToken: 'NULL_SESSION_ID' }); var reportUrl = '/services/data/v40.0/connect/communities/0DB28000000A2K8GAK/chatter/feed-elements/' + feedItemId + '/capabilities/moderation'; conn.chatter.resource(reportUrl).create({ note: reason, type: 'FlagAsInappropriate', visibility: 'SelfAndModerators' }, function (err, result) { if (err) { $scope.isFlaggingChatterContent = false; Notification.error('Error: ' + err); return console.error(err); } $scope.isFlaggingChatterContent = false; var index = $scope.getFeedItemIndex(feedItemId, $scope.feedItemsList); if (index > -1) { $scope.$apply(function () { $scope.feedItemsList[index].capabilities.moderation.moderationFlags.flaggedByMe = true; $scope.TBFSourceType = ''; $scope.TBFID = ''; $scope.TBFReason = ''; $scope.nextStep = true; }); $scope.nextStep = false; //angular.element(document.querySelector('#report-chatter-content')).removeClass('is-active'); //angular.element(document.querySelector('#cancel-report')).click(); } }); }; $scope.isFlaggingChatterContent = false; $scope.reportFeedComment = function (feedItemId, commentId, reason) { // SFBUN-6151- updated the maxlenght condition if ($scope.TBFReason.length > 200) { $scope.isFlaggingChatterContent = false; Notification.error('Your content is too long. Maximum 200 characters are allowed.'); return; } $scope.isFlaggingChatterContent = true; var conn = new jsforce.Connection({ accessToken: 'NULL_SESSION_ID' }); //var reportUrl = '/services/data/v40.0/connect/communities/0DB28000000A2K8GAK/chatter/feed-elements/'+feedItemId+'/comments/'+commentId; var reportUrl = '/services/data/v40.0/connect/communities/0DB28000000A2K8GAK/chatter/comments/' + commentId + '/moderation-flags'; conn.chatter.resource(reportUrl).create({ note: reason, type: 'FlagAsInappropriate', visibility: 'SelfAndModerators' }, function (err, result) { if (err) { $scope.isFlaggingChatterContent = false; Notification.error('Error: ' + err); return console.error(err); } $scope.isFlaggingChatterContent = false; var index = $scope.getFeedItemIndex(feedItemId, $scope.feedItemsList); if (index > -1) { $scope.$apply(function () { var comments = $scope.feedItemsList[index].capabilities.comments.page.items; var cindex = $scope.getFeedItemIndex(commentId, comments); $scope.feedItemsList[index].capabilities.comments.page.items[cindex].moderationFlags.flaggedByMe = true; $scope.TBFSourceType = ''; $scope.TBFID = ''; $scope.TBFReason = ''; $scope.isFlaggingChatterContent = false; $scope.nextStep = true; }); $scope.nextStep = false; //angular.element(document.querySelector('#report-chatter-content')).removeClass('is-active'); //angular.element(document.querySelector('#cancel-report')).click(); } }); }; $scope.setRemoveFlagContent = function (feedItemId, commentId, sourceType) { $scope.TBFSourceType = sourceType; $scope.TBFID = feedItemId; $scope.TBFCOMMENTID = commentId; $scope.coc='';//SFBUN-6151-resetting moderation reason wwbModule.Lightbox.init(); }; $scope.unflagChatterContent = function () { var sourceType = $scope.TBFSourceType; var feedItemId = $scope.TBFID; var reason = $scope.TBFReason; var commentId = $scope.TBFCOMMENTID; $scope.isFlaggingChatterContent = false; //alert(sourceType); if (sourceType == 'Post') { $scope.removeReportFeedItem(feedItemId, reason); } if (sourceType == 'Comment') { $scope.removeReportFeedComment(feedItemId, commentId, reason); } }; $scope.removeReportFeedItem = function (feedItemId, reason) { $scope.isFlaggingChatterContent = true; removeChatterFlagFromFeedElement(feedItemId).then(function (result) { $scope.isFlaggingChatterContent = false; setTimeout(function () { var index = $scope.getFeedItemIndex(feedItemId, $scope.feedItemsList); $scope.feedItemsList[index].capabilities.moderation.moderationFlags.flaggedByMe = false; $scope.TBFSourceType = ''; $scope.TBFID = ''; $scope.TBFReason = ''; angular.element(document.querySelector('#cancel-undoreport')).click(); $scope.$apply(); }, 100); }); }; $scope.removeReportFeedComment = function (feedItemId, commentId, reason) { $scope.isFlaggingChatterContent = true; removeChatterFlagFromCommentElement(commentId).then(function (result) { $scope.isFlaggingChatterContent = false; setTimeout(function () { var index = $scope.getFeedItemIndex(feedItemId, $scope.feedItemsList); var comments = $scope.feedItemsList[index].capabilities.comments.page.items; var cindex = $scope.getFeedItemIndex(commentId, comments); $scope.feedItemsList[index].capabilities.comments.page.items[cindex].moderationFlags.flaggedByMe = false; $scope.TBFSourceType = ''; $scope.TBFID = ''; $scope.TBFReason = ''; $scope.isFlaggingChatterContent = false; angular.element(document.querySelector('#cancel-undoreport')).click(); $scope.$apply(); }, 100); }); }; $scope.removeReportFeedItemSDK = function (feedItemId, reason) { $scope.isFlaggingChatterContent = false; var conn = new jsforce.Connection({ accessToken: 'NULL_SESSION_ID' }); var reportUrl = '/services/data/v40.0/connect/communities/0DB28000000A2K8GAK/chatter/feed-elements/' + feedItemId + '/capabilities/moderation'; conn.chatter.resource(reportUrl).delete( function (err, result) { // alert(err); if (err) { $scope.isFlaggingChatterContent = true; Notification.error('Error: ' + err); return console.error(err); } $scope.isFlaggingChatterContent = false; var index = $scope.getFeedItemIndex(feedItemId, $scope.feedItemsList); if (index > -1) { $scope.$apply(function () { $scope.feedItemsList[index].capabilities.moderation.moderationFlags.flaggedByMe = false; $scope.TBFSourceType = ''; $scope.TBFID = ''; $scope.TBFReason = ''; }); //angular.element(document.querySelector('#report-chatter-content')).removeClass('is-active'); angular.element(document.querySelector('#cancel-undoreport')).click(); } }); }; $scope.removeReportFeedCommentSDK = function (feedItemId, commentId, reason) { $scope.isFlaggingChatterContent = false; var conn = new jsforce.Connection({ accessToken: 'NULL_SESSION_ID' }); //var reportUrl = '/services/data/v40.0/connect/communities/0DB28000000A2K8GAK/chatter/feed-elements/'+feedItemId+'/comments/'+commentId; var reportUrl = '/services/data/v40.0/connect/communities/0DB28000000A2K8GAK/chatter/comments/' + commentId + '/moderation-flags'; conn.chatter.resource(reportUrl).delete(function (err, result) { if (err) { $scope.isFlaggingChatterContent = true; Notification.error('Error: ' + err); return console.error(err); } $scope.isFlaggingChatterContent = false; var index = $scope.getFeedItemIndex(feedItemId, $scope.feedItemsList); if (index > -1) { $scope.$apply(function () { var comments = $scope.feedItemsList[index].capabilities.comments.page.items; var cindex = $scope.getFeedItemIndex(commentId, comments); $scope.feedItemsList[index].capabilities.comments.page.items[cindex].moderationFlags.flaggedByMe = false; $scope.TBFSourceType = ''; $scope.TBFID = ''; $scope.TBFReason = ''; $scope.isFlaggingChatterContent = false; }); //angular.element(document.querySelector('#report-chatter-content')).removeClass('is-active'); angular.element(document.querySelector('#cancel-undoreport')).click(); } }); }; $scope.supportMembers = []; $scope.getSupportTeamMembers = function () { getSupportMembers().then(function (result) { if (result != null) { $scope.supportMembers = result.supportMembers; } }); }; $scope.getSupportTeamMembers(); $scope.isSupportMember = function (id) { if (id == null || id == undefined) { return false; } var result = false; if ($scope.supportMembers != null && $scope.supportMembers.length > 0) { $scope.supportMembers.forEach(function (element, index) { if (element.Id == id) { result = true; } }); } return result; }; $scope.getMentionedUsers = function (str) { var escapedHTML = _.unescapeHTML(str) var tmpdiv = document.createElement("DIV"); tmpdiv.innerHTML = escapedHTML; var stippedString = tmpdiv.textContent || tmpdiv.innerText || ""; stippedString = _.stripTags(stippedString); var pattern = /\B@[a-z0-9_-]+/gi; var result = stippedString.match(pattern); for (var x in result) { if (result[x] != null && typeof (result[x]) == 'string') { result[x] = result[x].replace('@', ''); } } return result; }; $scope.addMentionedLinks = function (str) { str = _.unescapeHTML(str); //backward compatibility str = str.replace('', ''); str = str.replace('', ''); str = str.replace('', ''); str = str.replace(new RegExp("../../../", 'g'),"../../");//6936 fix str = str.replace(new RegExp("../../nzBunch/", 'g'),"../../");//6936 fix str = str.replace(new RegExp("/nzBunch/", 'g'),"/");//6936 fix var strippedDiv = document.createElement("DIV"); strippedDiv.innerHTML = str; var strippedText = strippedDiv.textContent || strippedDiv.innerText || ""; var pattern = /\B@[a-z0-9_-]+/gi; var mentionedUsers = strippedText.match(pattern); if (mentionedUsers != null && mentionedUsers.length > 0) { mentionedUsers.forEach(function (element, index) { var profileName = element.replace('@', ''); var profileLink = '' + element + ''; str = str.replace(element, profileLink); }); } return str; }; $scope.getDateTime = function (datetime) { return moment(datetime).format('LLL'); }; $scope.getOptimizedProfileImage = function (url, width, height) { return url; }; $scope.$on('refreshChatter', function (response, data) { $scope.getChatterFeedItems(null); }); //Start SFBUN-487 - Extending TB Product Details to CB $scope.onSortChange= function(){ $scope.currentProductReviewsPageNumber=1; $scope.getChatterFeedItems(null); //SFBUN-2437 - Sakthe - Back button not working & Retain Filters - Product Review - Start $location.hash('ct'); $scope.scrollToID('ct'); //SFBUN-2437 - Sakthe - Back button not working & Retain Filters - Product Review - End }; //End SFBUN-487 - Extending TB Product Details to CB $scope.bunchContentAuthor=null; $scope.addPhotoTest = function(fid){ console.log(fid); console.log($("textarea").find("[data-txt='" + fid + "']")); console.log($('textarea[data-item-id="'+fid+'"]')[0].id); var tinymceeditorid=$('textarea[data-item-id="'+fid+'"]')[0].id; tinymce.EditorManager.get(tinymceeditorid).focus(); var url = 'https://www.kitchensanctuary.com/wp-content/uploads/2016/06/Crispy-Sesame-Chicken-square-FS-500x375.jpg'; tinymce.activeEditor.selection.setContent('

Oscar Orsen Gel Nail Polish Remover 125ml (2)

'); }; if($scope.bunchContentRecordType!='product') { //First get the content Author community getContentAuthorCommunity($scope.bunchContentID).then(function (result) { $scope.bunchContentAuthor = result.content.Author__r; $scope.getChatterFeedItems(null); }); } else { $scope.getChatterFeedItems(null); } }]);

This thread is closed for further discussions.

Reviews

(Video) 11 Best Nail Polish Removers In Sri Lanka With Price 2021 | Glamler

Oscar Orsen Gel Nail Polish Remover 125ml (3)

Login and be the first to reply! Login and be the first to write a review!

Oops, no reviews found.

Try adjusting the filter options above.

Login and be the first to comment!

Bunch Team

Oscar Orsen Gel Nail Polish Remover 125ml (5) Oscar Orsen Gel Nail Polish Remover 125ml (6) {{feedItem.actor.displayName}} - {{bunchMembersInfo[feedItem.actor.id].Prefix__c}}, {{bunchMembersInfo[feedItem.actor.id].Community_Level__c}} {{bunchMembersInfo[feedItem.actor.id].Overall_Level_Number__c}}

Oscar Orsen Gel Nail Polish Remover 125ml (7)

Posted {{getDateTime(feedItem.createdDate)}}

Bunch Team

Oscar Orsen Gel Nail Polish Remover 125ml (9) Oscar Orsen Gel Nail Polish Remover 125ml (10)
{{comment.user.displayName}} {{bunchMembersInfo[comment.user.id].Prefix__c}}, {{bunchMembersInfo[comment.user.id].Community_Level__c}} {{bunchMembersInfo[comment.user.id].Overall_Level_Number__c}}

Posted {{getDateTime(comment.createdDate)}}

Page

of {{productReviewsData.totalPages}}

Are you sure you want to report selected {{TBFSourceType | lowercase}}?

Please provide reason for flagging this content.

Oscar Orsen Gel Nail Polish Remover 125ml (11) Reporting content....

Thanks for letting us know.

If we find the content breaches our Code of Conduct, we'll remove it.

FAQs

What is the best product to remove gel nails? ›

Acetone offers the most effective way to remove gel nail polish at home, says board-certified dermatologist Shari Lipner, MD, FAAD. Instead of wrapping your nails in foil, she recommends using plastic food wrap.

How do you remove 100% gel nails with acetone? ›

Apply acetone to a cotton ball. Wrap the tip of the finger in aluminum foil. Use a cuticle stick to remove gel polish. Buff your nails.

What happens if you use too much nail polish remover? ›

Exposure to acetone can dehydrate the nail plate, cuticles and the surrounding skin – nails can become dry and brittle, and cuticles can become dry, flaky, red and irritated.

How do you use nail gel remover? ›

Completely goes through the gel on top of your nail and in that way in about five to ten minutes we'

How do salons remove gel polish? ›

Your nail technician will use a file to ~gently~ buff your nails. This isn't to scrub the polish off – it just adds a bit of texture to the shiny surface so that the nail polish remover can do its thing. Each cotton pad will be dipped in the acetone and wrapped around each nail.

How do you take off gel nails without acetone? ›

Remover: You have a few replacement options to use instead of acetone. Hand sanitizers, hydrogen peroxide, and cuticle oil are some of the most popular and effective methods. You can also try a kitchen oil like olive oil. If you have nothing else on hand, warm, soapy water or vinegar can be used to remove gel nails.

Top Articles
Latest Posts
Article information

Author: Dean Jakubowski Ret

Last Updated: 01/10/2023

Views: 6005

Rating: 5 / 5 (70 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Dean Jakubowski Ret

Birthday: 1996-05-10

Address: Apt. 425 4346 Santiago Islands, Shariside, AK 38830-1874

Phone: +96313309894162

Job: Legacy Sales Designer

Hobby: Baseball, Wood carving, Candle making, Jigsaw puzzles, Lacemaking, Parkour, Drawing

Introduction: My name is Dean Jakubowski Ret, I am a enthusiastic, friendly, homely, handsome, zealous, brainy, elegant person who loves writing and wants to share my knowledge and understanding with you.