Nicolas Jager | 6e30ad8 | 2016-08-26 13:00:27 -0400 | [diff] [blame] | 1 | /**************************************************************************
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 2 | * Copyright (C) 2016 by Savoir-faire Linux *
|
| 3 | * Author: Jäger Nicolas <nicolas.jager@savoirfairelinux.com> *
|
| 4 | * Author: Traczyk Andreas <traczyk.andreas@savoirfairelinux.com> *
|
| 5 | * *
|
| 6 | * This program is free software; you can redistribute it and/or modify *
|
| 7 | * it under the terms of the GNU General Public License as published by *
|
| 8 | * the Free Software Foundation; either version 3 of the License, or *
|
| 9 | * (at your option) any later version. *
|
| 10 | * *
|
| 11 | * This program is distributed in the hope that it will be useful, *
|
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
| 14 | * GNU General Public License for more details. *
|
| 15 | * *
|
| 16 | * You should have received a copy of the GNU General Public License *
|
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
| 18 | **************************************************************************/
|
| 19 | #include "pch.h"
|
| 20 |
|
| 21 | /* daemon */
|
| 22 | #include <dring.h>
|
| 23 | #include "callmanager_interface.h"
|
| 24 | #include "configurationmanager_interface.h"
|
| 25 | #include "presencemanager_interface.h"
|
| 26 | #include "fileutils.h"
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 27 | #include "account_schema.h"
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 28 | #include "account_const.h"
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 29 |
|
| 30 | #include "SmartPanel.xaml.h"
|
| 31 |
|
| 32 | using namespace Windows::ApplicationModel::Core;
|
| 33 | using namespace Windows::Storage;
|
| 34 | using namespace Windows::UI::Core;
|
| 35 |
|
| 36 | using namespace RingClientUWP;
|
| 37 | using namespace RingClientUWP::Utils;
|
Nicolas Jager | 655df54 | 2016-08-31 10:24:47 -0400 | [diff] [blame] | 38 | using namespace RingClientUWP::ViewModel;
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 39 |
|
| 40 | void
|
| 41 | debugOutputWrapper(const std::string& str)
|
| 42 | {
|
| 43 | MSG_(str);
|
| 44 | }
|
| 45 |
|
| 46 | void
|
| 47 | RingClientUWP::RingD::reloadAccountList()
|
| 48 | {
|
| 49 | RingClientUWP::ViewModel::AccountsViewModel::instance->clearAccountList();
|
| 50 | std::vector<std::string> accountList = DRing::getAccountList();
|
| 51 | std::vector<std::string>::reverse_iterator rit = accountList.rbegin();
|
| 52 | for (; rit != accountList.rend(); ++rit) {
|
| 53 | std::map<std::string,std::string> accountDetails = DRing::getAccountDetails(*rit);
|
| 54 | std::string ringID(accountDetails.find(ring::Conf::CONFIG_ACCOUNT_USERNAME)->second);
|
| 55 | if(!ringID.empty())
|
| 56 | ringID = ringID.substr(5);
|
| 57 | RingClientUWP::ViewModel::AccountsViewModel::instance->add(
|
| 58 | accountDetails.find(ring::Conf::CONFIG_ACCOUNT_ALIAS)->second, //name
|
| 59 | ringID, //ringid
|
atraczyk | 797fa1a | 2016-08-31 09:55:53 -0400 | [diff] [blame] | 60 | accountDetails.find(ring::Conf::CONFIG_ACCOUNT_TYPE)->second, //type
|
| 61 | *rit);
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 62 | }
|
| 63 | // load user preferences
|
| 64 | Configuration::UserPreferences::instance->load();
|
| 65 | }
|
| 66 |
|
Nicolas Jager | 655df54 | 2016-08-31 10:24:47 -0400 | [diff] [blame] | 67 | /* nb: send message during conversation not chat video message */
|
| 68 | void RingClientUWP::RingD::sendAccountTextMessage(String^ message)
|
| 69 | {
|
| 70 | /* account id */
|
| 71 | auto accountId = AccountsViewModel::instance->selectedAccount->accountID_;
|
| 72 | std::wstring accountId2(accountId->Begin());
|
| 73 | std::string accountId3(accountId2.begin(), accountId2.end());
|
| 74 |
|
| 75 | /* recipient */
|
| 76 | auto contact = ContactsViewModel::instance->selectedContact;
|
| 77 | auto toRingId = contact->ringID_;
|
| 78 | std::wstring toRingId2(toRingId->Begin());
|
| 79 | std::string toRingId3(toRingId2.begin(), toRingId2.end());
|
| 80 |
|
| 81 | /* payload(s) */
|
| 82 | std::wstring message2(message->Begin());
|
| 83 | std::string message3(message2.begin(), message2.end());
|
| 84 | std::map<std::string, std::string> payloads;
|
| 85 | payloads["text/plain"] = message3;
|
| 86 |
|
| 87 | /* daemon */
|
| 88 | auto sent = DRing::sendAccountTextMessage(accountId3, toRingId3, payloads);
|
| 89 |
|
| 90 | /* conversation */
|
| 91 | if (sent) {
|
| 92 | contact->_conversation->addMessage(""/* date not yet used*/, MSG_FROM_ME, message);
|
atraczyk | f5be546 | 2016-08-31 14:23:06 -0400 | [diff] [blame] | 93 |
|
| 94 | /* save contacts conversation to disk */
|
| 95 | contact->saveConversationToFile();
|
| 96 |
|
Nicolas Jager | 655df54 | 2016-08-31 10:24:47 -0400 | [diff] [blame] | 97 | } else {
|
| 98 | WNG_("message not sent, see daemon outputs");
|
| 99 | }
|
| 100 | }
|
| 101 |
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 102 | void
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 103 | RingD::createRINGAccount(String^ alias)
|
| 104 | {
|
Nicolas Jager | f6a1032 | 2016-09-06 08:17:49 -0400 | [diff] [blame] | 105 | // refactoring : create a dedicated class constructor task and removes accountName from RingD
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 106 | accountName = Utils::toString(alias);
|
| 107 | tasksList_.push(ref new RingD::Task(Request::AddRingAccount));
|
| 108 | }
|
| 109 |
|
| 110 | void
|
| 111 | RingD::createSIPAccount(String^ alias)
|
| 112 | {
|
Nicolas Jager | f6a1032 | 2016-09-06 08:17:49 -0400 | [diff] [blame] | 113 | // refactoring : create a dedicated class constructor task and removes accountName from RingD
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 114 | accountName = Utils::toString(alias);
|
| 115 | tasksList_.push(ref new RingD::Task(Request::AddSIPAccount));
|
| 116 | }
|
| 117 |
|
Nicolas Jager | f6a1032 | 2016-09-06 08:17:49 -0400 | [diff] [blame] | 118 | void RingClientUWP::RingD::refuseIncommingCall(Call^ call)
|
| 119 | {
|
| 120 | tasksList_.push(ref new RingD::Task(Request::RefuseIncommingCall, call));
|
| 121 | }
|
| 122 |
|
| 123 | void RingClientUWP::RingD::acceptIncommingCall(Call^ call)
|
| 124 | {
|
| 125 | tasksList_.push(ref new RingD::Task(Request::AcceptIncommingCall, call));
|
| 126 | }
|
| 127 |
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame^] | 128 | void RingClientUWP::RingD::placeCall(Contact^ contact)
|
| 129 | {
|
| 130 | auto to = contact->ringID_;
|
| 131 | auto accountId = AccountsViewModel::instance->selectedAccount->accountID_;
|
| 132 |
|
| 133 | auto to2 = Utils::toString(to);
|
| 134 | auto accountId2 = Utils::toString(accountId);
|
| 135 |
|
| 136 | auto callId2 = DRing::placeCall(accountId2, to2);
|
| 137 |
|
| 138 | if (callId2 == "") {
|
| 139 | WNG_("call not created, the daemon didn't return a call Id");
|
| 140 | return;
|
| 141 | }
|
| 142 |
|
| 143 | auto callId = Utils::toPlatformString(callId2);
|
| 144 |
|
| 145 | auto call = CallsViewModel::instance->addNewCall(accountId, callId, to);
|
| 146 | call->isOutGoing = true;
|
| 147 |
|
| 148 | if (call == nullptr) {
|
| 149 | WNG_("call not created, nullptr reason");
|
| 150 | return;
|
| 151 | }
|
| 152 |
|
| 153 | calling(call);
|
| 154 |
|
| 155 | }
|
| 156 |
|
| 157 | void
|
| 158 | RingClientUWP::RingD::cancelOutGoingCall(Call^ call)
|
| 159 | {
|
| 160 | tasksList_.push(ref new RingD::Task(Request::CancelOutGoingCall, call));
|
| 161 | }
|
| 162 |
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 163 | void
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 164 | RingClientUWP::RingD::startDaemon()
|
| 165 | {
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 166 | // TODO (during refactoring) : use namespace
|
| 167 | /* clear the calls list and instantiate the singleton (required) */
|
| 168 | RingClientUWP::ViewModel::CallsViewModel::instance->clearCallsList();
|
| 169 |
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 170 | create_task([&]()
|
| 171 | {
|
| 172 | using SharedCallback = std::shared_ptr<DRing::CallbackWrapperBase>;
|
| 173 | using namespace std::placeholders;
|
| 174 |
|
| 175 | std::map<std::string, SharedCallback> callHandlers = {
|
| 176 | // use IncomingCall only to register the call client sided, use StateChange to determine the impact on the UI
|
| 177 | DRing::exportable_callback<DRing::CallSignal::IncomingCall>([this](
|
| 178 | const std::string& accountId,
|
| 179 | const std::string& callId,
|
| 180 | const std::string& from)
|
| 181 | {
|
| 182 | MSG_("<IncomingCall>");
|
| 183 | MSG_("accountId = " + accountId);
|
| 184 | MSG_("callId = " + callId);
|
| 185 | MSG_("from = " + from);
|
| 186 |
|
| 187 | auto accountId2 = toPlatformString(accountId);
|
| 188 | auto callId2 = toPlatformString(callId);
|
| 189 | auto from2 = toPlatformString(from);
|
| 190 |
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 191 | CoreApplication::MainView->CoreWindow->Dispatcher->RunAsync(
|
| 192 | CoreDispatcherPriority::Normal, ref new DispatchedHandler([=]()
|
| 193 | {
|
| 194 | incomingCall(accountId2, callId2, from2);
|
| 195 | stateChange(callId2, "incoming call", 0);
|
| 196 | }));
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 197 | }),
|
| 198 | DRing::exportable_callback<DRing::CallSignal::StateChange>([this](
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 199 | const std::string& callId,
|
| 200 | const std::string& state,
|
| 201 | int code)
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 202 | {
|
| 203 | MSG_("<StateChange>");
|
| 204 | MSG_("callId = " + callId);
|
| 205 | MSG_("state = " + state);
|
| 206 | MSG_("code = " + std::to_string(code));
|
| 207 |
|
| 208 | auto callId2 = toPlatformString(callId);
|
| 209 | auto state2 = toPlatformString(state);
|
| 210 |
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 211 |
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 212 | CoreApplication::MainView->CoreWindow->Dispatcher->RunAsync(
|
| 213 | CoreDispatcherPriority::Low, ref new DispatchedHandler([=]()
|
| 214 | {
|
| 215 | stateChange(callId2, state2, code);
|
| 216 | }));
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 217 | }),
|
Nicolas Jager | 6e30ad8 | 2016-08-26 13:00:27 -0400 | [diff] [blame] | 218 | DRing::exportable_callback<DRing::ConfigurationSignal::IncomingAccountMessage>([&](
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 219 | const std::string& accountId,
|
| 220 | const std::string& from,
|
| 221 | const std::map<std::string, std::string>& payloads)
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 222 | {
|
| 223 | MSG_("<IncomingAccountMessage>");
|
| 224 | MSG_("accountId = " + accountId);
|
| 225 | MSG_("from = " + from);
|
| 226 |
|
Nicolas Jager | 6e30ad8 | 2016-08-26 13:00:27 -0400 | [diff] [blame] | 227 | auto accountId2 = toPlatformString(accountId);
|
| 228 | auto from2 = toPlatformString(from);
|
| 229 |
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 230 | for (auto i : payloads) {
|
| 231 | MSG_("payload = " + i.second);
|
| 232 | auto payload = Utils::toPlatformString(i.second);
|
Nicolas Jager | 6e30ad8 | 2016-08-26 13:00:27 -0400 | [diff] [blame] | 233 | CoreApplication::MainView->CoreWindow->Dispatcher->RunAsync(
|
| 234 | CoreDispatcherPriority::Low, ref new DispatchedHandler([=]()
|
| 235 | {
|
| 236 | incomingAccountMessage(accountId2, from2, payload);
|
| 237 | }));
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 238 | }
|
| 239 | }),
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 240 | DRing::exportable_callback<DRing::ConfigurationSignal::RegistrationStateChanged>([this](
|
Nicolas Jager | f6a1032 | 2016-09-06 08:17:49 -0400 | [diff] [blame] | 241 | const std::string& account_id, const std::string& state,
|
| 242 | int detailsCode, const std::string& detailsStr)
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 243 | {
|
| 244 | MSG_("<RegistrationStateChanged>: ID = " + account_id + "state = " + state);
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 245 | if (state == DRing::Account::States::REGISTERED) {
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 246 | CoreApplication::MainView->CoreWindow->Dispatcher->RunAsync(CoreDispatcherPriority::Normal,
|
Nicolas Jager | f6a1032 | 2016-09-06 08:17:49 -0400 | [diff] [blame] | 247 | ref new DispatchedHandler([=]() {
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 248 | auto frame = dynamic_cast<Frame^>(Window::Current->Content);
|
| 249 | dynamic_cast<RingClientUWP::MainPage^>(frame->Content)->showLoadingOverlay(false, false);
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 250 | }));
|
| 251 | }
|
| 252 | }),
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 253 | DRing::exportable_callback<DRing::ConfigurationSignal::AccountsChanged>([this]()
|
| 254 | {
|
| 255 | CoreApplication::MainView->CoreWindow->Dispatcher->RunAsync(CoreDispatcherPriority::Normal,
|
Nicolas Jager | 655df54 | 2016-08-31 10:24:47 -0400 | [diff] [blame] | 256 | ref new DispatchedHandler([=]() {
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 257 | reloadAccountList();
|
| 258 | }));
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame^] | 259 | }),
|
| 260 | /* to remove from daemon API, this callback is never used */
|
| 261 | //DRing::exportable_callback<DRing::CallSignal::NewCallCreated>([&](
|
| 262 | // const std::string& accountId,
|
| 263 | // const std::string& callId,
|
| 264 | // const std::string& to)
|
| 265 | //{ /*...*/ })
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 266 | };
|
| 267 |
|
| 268 | registerCallHandlers(callHandlers);
|
| 269 |
|
| 270 | std::map<std::string, SharedCallback> dringDebugOutHandler;
|
| 271 | dringDebugOutHandler.insert(DRing::exportable_callback<DRing::Debug::MessageSend>
|
| 272 | (std::bind(&debugOutputWrapper, _1)));
|
| 273 | registerCallHandlers(dringDebugOutHandler);
|
| 274 |
|
| 275 | std::map<std::string, SharedCallback> getAppPathHandler =
|
| 276 | {
|
| 277 | DRing::exportable_callback<DRing::ConfigurationSignal::GetAppDataPath>
|
| 278 | ([this](std::vector<std::string>* paths) {
|
| 279 | paths->emplace_back(localFolder_);
|
| 280 | })
|
| 281 | };
|
| 282 | registerCallHandlers(getAppPathHandler);
|
| 283 |
|
Nicolas Jager | aef6572 | 2016-09-06 08:30:14 -0400 | [diff] [blame] | 284 | DRing::init(static_cast<DRing::InitFlag>(DRing::DRING_FLAG_CONSOLE_LOG |
|
Nicolas Jager | f6a1032 | 2016-09-06 08:17:49 -0400 | [diff] [blame] | 285 | DRing::DRING_FLAG_DEBUG));
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 286 |
|
| 287 | if (!DRing::start()) {
|
| 288 | ERR_("\ndaemon didn't start.\n");
|
| 289 | return;
|
| 290 | }
|
| 291 | else {
|
| 292 | if (!hasConfig)
|
| 293 | {
|
atraczyk | 4464ace | 2016-09-01 09:37:37 -0400 | [diff] [blame] | 294 | tasksList_.push(ref new RingD::Task(Request::AddRingAccount));
|
| 295 | tasksList_.push(ref new RingD::Task(Request::AddSIPAccount));
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 296 | }
|
| 297 | else {
|
| 298 | CoreApplication::MainView->CoreWindow->Dispatcher->RunAsync(CoreDispatcherPriority::Normal,
|
Nicolas Jager | 655df54 | 2016-08-31 10:24:47 -0400 | [diff] [blame] | 299 | ref new DispatchedHandler([=]() {
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 300 | reloadAccountList();
|
| 301 | }));
|
| 302 | }
|
| 303 | while (true) {
|
| 304 | DRing::pollEvents();
|
| 305 | Sleep(1000);
|
| 306 | dequeueTasks();
|
| 307 | }
|
| 308 | DRing::fini();
|
| 309 | }
|
| 310 | });
|
| 311 | }
|
| 312 |
|
| 313 | RingD::RingD()
|
| 314 | {
|
| 315 | localFolder_ = Utils::toString(ApplicationData::Current->LocalFolder->Path);
|
| 316 | }
|
| 317 |
|
| 318 | void
|
| 319 | RingD::dequeueTasks()
|
| 320 | {
|
| 321 | for (int i = 0; i < tasksList_.size(); i++) {
|
| 322 | auto task = tasksList_.front();
|
Nicolas Jager | f6a1032 | 2016-09-06 08:17:49 -0400 | [diff] [blame] | 323 | auto request = dynamic_cast<Task^>(task)->request;
|
| 324 | switch (request) {
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 325 | case Request::None:
|
atraczyk | 4464ace | 2016-09-01 09:37:37 -0400 | [diff] [blame] | 326 | break;
|
| 327 | case Request::AddRingAccount:
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 328 | {
|
| 329 | std::map<std::string, std::string> ringAccountDetails;
|
| 330 | ringAccountDetails.insert(std::make_pair(ring::Conf::CONFIG_ACCOUNT_ALIAS, accountName));
|
| 331 | ringAccountDetails.insert(std::make_pair(ring::Conf::CONFIG_ACCOUNT_TYPE,"RING"));
|
| 332 | DRing::addAccount(ringAccountDetails);
|
| 333 | }
|
| 334 | break;
|
atraczyk | 4464ace | 2016-09-01 09:37:37 -0400 | [diff] [blame] | 335 | case Request::AddSIPAccount:
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 336 | {
|
| 337 | std::map<std::string, std::string> sipAccountDetails;
|
| 338 | sipAccountDetails.insert(std::make_pair(ring::Conf::CONFIG_ACCOUNT_ALIAS, accountName + " (SIP)"));
|
| 339 | sipAccountDetails.insert(std::make_pair(ring::Conf::CONFIG_ACCOUNT_TYPE,"SIP"));
|
| 340 | DRing::addAccount(sipAccountDetails);
|
| 341 | }
|
| 342 | break;
|
Nicolas Jager | f6a1032 | 2016-09-06 08:17:49 -0400 | [diff] [blame] | 343 | case Request::RefuseIncommingCall:
|
| 344 | {
|
| 345 | auto callId = task->_call->callId;
|
| 346 | auto callId2 = Utils::toString(callId);
|
| 347 | DRing::refuse(callId2);
|
| 348 | }
|
| 349 | break;
|
| 350 | case Request::AcceptIncommingCall:
|
| 351 | {
|
| 352 | auto callId = task->_call->callId;
|
| 353 | auto callId2 = Utils::toString(callId);
|
| 354 | DRing::accept(callId2);
|
| 355 | }
|
| 356 | break;
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame^] | 357 | case Request::CancelOutGoingCall:
|
| 358 | {
|
| 359 | auto callId = task->_call->callId;
|
| 360 | auto callId2 = Utils::toString(callId);
|
| 361 | DRing::hangUp(callId2);
|
| 362 | }
|
| 363 | break;
|
atraczyk | b724d33 | 2016-08-30 15:25:59 -0400 | [diff] [blame] | 364 | default:
|
| 365 | break;
|
| 366 | }
|
| 367 | tasksList_.pop();
|
| 368 | }
|
| 369 | }
|