<?php
namespace Claromentis\Projects\Comments;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] ?: array()) + array("_439683f8" . "b30ea4e8e" . "54d8867c6" . "05e1d3" => base64_decode("cHJvamVjdHMucHJvam" . "VjdF9kaXNjdXNzaW9u" . "X3Bvc3RlZA=="), "_6e38cb9e043a07cd6" . "9a1711a6704c62a" => base64_decode("cGF" . "yZW" . "50X" . "2lk"), "_a71dc9333bd8a" . "d95d55d6624b47" . "7875f" => base64_decode("ZGF" . "0YQ" . "=="), "_fa7526ba4ccc" . "308fe61186445" . "986ceaa" => base64_decode("cmVjaXB" . "pZW50cw" . "=="), "_4c0160d68025e" . "411dfb181e4d51" . "0bd77" => base64_decode("cHJvamVjdHMucHJvamVjdF9y" . "ZXBseV9wb3N0ZWQ="));
use Claromentis\Comments\Model\Comment;
use Claromentis\Projects\Notification;
use Claromentis\Projects\Service\NotificationService;
class ProjectCommentNotification
{
    private $_comment;
    private $_notification;
    public function __construct(Comment $_e8d840684607f6c2bbef523090642168, NotificationService $_88e3baed593bc10d4b7045181b4ac725)
    {
        $this->_comment = $_e8d840684607f6c2bbef523090642168;
        $_dadf790baf241afac942824c1e6e37c4 = NotificationService::PROJECT_DISCUSSION_POSTED;
        if ($_e8d840684607f6c2bbef523090642168->GetProperty($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_6e38cb9e04" . "3a07cd69a17" . "11a6704c62a"]) > 0) {
            $_dadf790baf241afac942824c1e6e37c4 = NotificationService::PROJECT_REPLY_POSTED;
        }
        $_99aaa03a11622e16e59bff0771ea8ef3 = new Notification($_dadf790baf241afac942824c1e6e37c4, $this->_comment);
        $this->_notification = $_88e3baed593bc10d4b7045181b4ac725->GetNotificationData($_99aaa03a11622e16e59bff0771ea8ef3);
    }
    public function GetTemplate()
    {
        if ($this->_comment->parent_id == 0) {
            return $GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_439683f8b30ea4e8e54d8867c6" . "05e1d3"];
        }
        return $GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_4c0160d680" . "25e411dfb18" . "1e4d510bd77"];
    }
    public function GetMessageParams()
    {
        return $this->_notification[$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_a71dc9333bd8ad95d55d6" . "624b477875f"]];
    }
    public function GetRecipients()
    {
        return $this->_notification[$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_fa7526ba4ccc30" . "8fe61186445986c" . "eaa"]];
    }
    public function GetType()
    {
        return Notification::IM_TYPE_PROJECT;
    }
}