Skip to content

Commit

Permalink
rebranding
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiez committed Feb 20, 2023
1 parent 97c3a95 commit 4541920
Show file tree
Hide file tree
Showing 19 changed files with 160 additions and 57 deletions.
14 changes: 7 additions & 7 deletions .idea/sms77.iml → .idea/groupoffice.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/markdown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 64 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions LICENSE
@@ -1,6 +1,7 @@
MIT License

Copyright (c) 2022-present sms77 e.K.
Copyright (c) 2021-2022 sms77 e.K.
Copyright (c) 2023-present seven communications GmbH & Co. KG

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
8 changes: 4 additions & 4 deletions Module.php
@@ -1,7 +1,7 @@
<?php
namespace go\modules\community\sms77;
namespace go\modules\community\seven;

use go\modules\community\sms77\model\Settings;
use go\modules\community\seven\model\Settings;
use go\core;

/**
Expand All @@ -11,7 +11,7 @@
*/
class Module extends core\Module {
public function getAuthor(): string {
return "sms77 e.K. <support@sms77.io>";
return "seven communications GmbH & Co. KG <support@seven.io>";
}

public function getDependencies(): array {
Expand All @@ -24,4 +24,4 @@ public function getDependencies(): array {
public function getSettings(): ?core\Settings {
return Settings::get();
}
}
}
25 changes: 13 additions & 12 deletions README.md
@@ -1,23 +1,24 @@
![](https://www.sms77.io/wp-content/uploads/2019/07/sms77-Logo-400x79.png "sms77 Logo")
![](https://www.seven.io/wp-content/uploads/Logo.svg "seven Logo")

# [sms77](https://www.sms77.io/) for [Group Office](https://www.group-office.com/)
# [seven](https://www.seven.io/) for [Group Office](https://www.group-office.com/)

Adds the possibility to send SMS and make text-to-speech calls.
Depends on the `Address book` module to be activated.

## Installation

1) Copy the plugin contents into the `/groupoffice/go/modules/community/sms77` folder.
2) Log in to Group Office as an administrator and to `System settings -> Modules`.
3) Install the plugin by clicking on 'Enable' button.
4) Click `sms77` on the sidebar, enter your API key and click `Save`
1. Download the [latest release](https://github.com/seven-io/groupoffice/releases/latest/download/seven-groupoffice-latest.zip).
2. Copy the plugin contents into the `/groupoffice/go/modules/community` folder.
3. Log in to Group Office as an administrator and to `System settings -> Modules`.
4. Install the plugin by clicking on 'Enable' button.
5. Click `seven` on the sidebar, enter your [API key](https://help.seven.io/en/api-key-access) and click `Save`.

## Usage
### Bulk SMS & text-to-speech calling
Click `sms77` in the top navigation.
Choose a message type - defauls to `SMS`.
Enter your text of choice and optionally set a custom sender in the `from` field.
Submit by clicking `Send`.
1. Click `seven` in the top navigation.
2. Choose a message type - defaults to `SMS`.
3. Enter your text of choice and optionally set a custom sender in the `from` field.
4. Submit by clicking `Send`.

### Property placeholders
Use {{columnName}} for resolving column values for the corresponding contact.
Expand All @@ -27,6 +28,6 @@ Use {{columnName}} for resolving column values for the corresponding contact.

## Support

Need help? Feel free to [contact us](https://www.sms77.io/en/company/contact).
Need help? Feel free to [contact us](https://www.seven.io/en/company/contact).

[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](LICENSE)
[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](LICENSE)
8 changes: 4 additions & 4 deletions controller/Message.php
@@ -1,15 +1,15 @@
<?php
namespace go\modules\community\sms77\controller;
namespace go\modules\community\seven\controller;

use Exception;
use go\core\Controller;
use go\modules\community\addressbook\model\Contact;
use go\modules\community\sms77\service\Messenger;
use go\modules\community\seven\service\Messenger;

/**
* The controller for handling message related requests
* @copyright (c) 2021, sms77 e.K. https://www.sms77.io
* @author sms77 e.K. <support@sms77.io>
* @copyright (c) 2021, seven communications GmbH & Co. KG https://www.seven.io
* @author seven communications GmbH & Co. <support@seven.io>
* @license https://opensource.org/licenses/MIT MIT
*/
class Message extends Controller {
Expand Down
Binary file modified icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions language/de.php
Expand Up @@ -4,7 +4,7 @@
'debug' => 'Debugmodus?',
'debugHint' => 'Eingaben auf API-Ebene validieren, aber keine Nachrichten versenden',
'delay' => 'Versandzeitpunkt',
'description' => 'Versand von SMS und Text-zu-Sprachnachrichten via sms77',
'description' => 'Versand von SMS und Text-zu-Sprachnachrichten via seven',
'error' => 'Fehler',
'filters' => 'Filter',
'flash' => 'Flash',
Expand All @@ -16,9 +16,9 @@
'isOrganization?' => 'Ist Organisation?',
'isOrganizationHint' => 'Wenn gesetzt, muss Kontakt eine Organisation sein',
'msgType' => 'Nachrichtentyp',
'name' => 'sms77',
'name' => 'seven',
'performanceTracking' => 'Performance Tracking?',
'performanceTrackingLink' => 'https://help.sms77.io/de/performance-tracking',
'performanceTrackingLink' => 'https://help.seven.io/de/performance-tracking',
'readMore' => 'Mehr erfahren...',
'send' => 'Senden',
'sendBulk' => 'Massenversand',
Expand Down
6 changes: 3 additions & 3 deletions language/en.php
Expand Up @@ -4,7 +4,7 @@
'debug' => 'Debug?',
'debugHint' => 'Validate inputs at API level but do not send messages',
'delay' => 'Delay',
'description' => 'Send SMS and make text-to-speech calls via sms77',
'description' => 'Send SMS and make text-to-speech calls via seven',
'error' => 'Error',
'filters' => 'Filters',
'flash' => 'Flash',
Expand All @@ -16,9 +16,9 @@
'isOrganization' => 'Is Organization?',
'isOrganizationHint' => 'If checked, the contact must be an organization',
'msgType' => 'Message Type',
'name' => 'sms77',
'name' => 'seven',
'performanceTracking' => 'Performance Tracking?',
'performanceTrackingLink' => 'https://help.sms77.io/en/performance-tracking-1',
'performanceTrackingLink' => 'https://help.seven.io/en/performance-tracking-1',
'readMore' => 'Read more...',
'send' => 'Send',
'sendBulk' => 'Bulk Messaging',
Expand Down
6 changes: 3 additions & 3 deletions model/Settings.php
@@ -1,11 +1,11 @@
<?php
namespace go\modules\community\sms77\model;
namespace go\modules\community\seven\model;

use go\core;

class Settings extends core\Settings {
/**
* The sms77 API key
* The seven API key
* @var string $apiKey
*/
public $apiKey;
Expand All @@ -21,4 +21,4 @@ class Settings extends core\Settings {
* @var string $voiceFrom
*/
public $voiceFrom;
}
}
10 changes: 5 additions & 5 deletions service/Client.php
@@ -1,8 +1,8 @@
<?php
namespace go\modules\community\sms77\service;
namespace go\modules\community\seven\service;

use Exception;
use go\modules\community\sms77\model\Settings;
use go\modules\community\seven\model\Settings;

class Client {
/**
Expand All @@ -15,11 +15,11 @@ class Client {
*/
public function __construct($apiKey = null) {
$this->apiKey = $apiKey ?: Settings::get()->apiKey;
if (!$this->apiKey) throw new Exception('Missing sms77 API key');
if (!$this->apiKey) throw new Exception('Missing seven API key');
}

private function request(string $endpoint, array $data) {
$ch = curl_init('https://gateway.sms77.io/api/' . $endpoint);
$ch = curl_init('https://gateway.seven.io/api/' . $endpoint);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Accept: application/json',
Expand All @@ -41,4 +41,4 @@ public function sms(array $data) {
public function voice(array $data) {
return $this->request('voice', $data);
}
}
}
4 changes: 2 additions & 2 deletions service/Messenger.php
@@ -1,5 +1,5 @@
<?php
namespace go\modules\community\sms77\service;
namespace go\modules\community\seven\service;

use DateTime;
use Exception;
Expand Down Expand Up @@ -205,4 +205,4 @@ public function execute(): array {
'success' => $this->success,
];
}
}
}
10 changes: 5 additions & 5 deletions views/extjs3/MainPanel.js
@@ -1,8 +1,8 @@
go.modules.community.sms77.MainPanel = Ext.extend(Ext.FormPanel, {
go.modules.community.seven.MainPanel = Ext.extend(Ext.FormPanel, {
cls: 'go-form-panel',
layout: 'form',
initComponent() {
const {settings} = go.Modules.get('community', 'sms77')
const {settings} = go.Modules.get('community', 'seven')

this._updateItems = function(cb, _checked) {
const isVoice = cb.getValue() === 'voice'
Expand Down Expand Up @@ -169,7 +169,7 @@ go.modules.community.sms77.MainPanel = Ext.extend(Ext.FormPanel, {

Ext.MessageBox.alert(title, msg)
},
method: 'community/sms77/Message/submitBulk',
method: 'community/seven/Message/submitBulk',
params: this.getForm().getFieldValues(),
})
},
Expand All @@ -179,11 +179,11 @@ go.modules.community.sms77.MainPanel = Ext.extend(Ext.FormPanel, {
}),
]

go.modules.community.sms77.MainPanel.superclass.initComponent.call(this)
go.modules.community.seven.MainPanel.superclass.initComponent.call(this)

this.on('afterrender', this.runModule, this)
},
runModule() {
},
title: t('name'),
})
})

0 comments on commit 4541920

Please sign in to comment.