diff --git a/.idea/sms77.iml b/.idea/groupoffice.iml similarity index 94% rename from .idea/sms77.iml rename to .idea/groupoffice.iml index bf4c9d3..c956989 100644 --- a/.idea/sms77.iml +++ b/.idea/groupoffice.iml @@ -1,8 +1,8 @@ - - - - - - - + + + + + + + \ No newline at end of file diff --git a/.idea/markdown.xml b/.idea/markdown.xml new file mode 100644 index 0000000..1e34094 --- /dev/null +++ b/.idea/markdown.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index f82c2af..4cf2fe4 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,7 +2,7 @@ - + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..133d465 --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..b1e8552 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + { + "keyToString": { + "RunOnceActivity.OpenProjectViewOnStart": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "WebServerToolWindowFactoryState": "false", + "last_opened_file_path": "C:/DEV/groupoffice", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "vue.rearranger.settings.migration": "true" + } +} + + + + + + + + + + 1675436231014 + + + + + + \ No newline at end of file diff --git a/LICENSE b/LICENSE index d276f8d..284b0d0 100644 --- a/LICENSE +++ b/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 @@ -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. \ No newline at end of file +SOFTWARE. diff --git a/Module.php b/Module.php index af883ec..a610d76 100644 --- a/Module.php +++ b/Module.php @@ -1,7 +1,7 @@ "; + return "seven communications GmbH & Co. KG "; } public function getDependencies(): array { @@ -24,4 +24,4 @@ public function getDependencies(): array { public function getSettings(): ?core\Settings { return Settings::get(); } -} \ No newline at end of file +} diff --git a/README.md b/README.md index 8faec06..787ac56 100644 --- a/README.md +++ b/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. @@ -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) \ No newline at end of file +[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](LICENSE) diff --git a/controller/Message.php b/controller/Message.php index df7b0ff..b96a729 100644 --- a/controller/Message.php +++ b/controller/Message.php @@ -1,15 +1,15 @@ + * @copyright (c) 2021, seven communications GmbH & Co. KG https://www.seven.io + * @author seven communications GmbH & Co. * @license https://opensource.org/licenses/MIT MIT */ class Message extends Controller { diff --git a/icon.png b/icon.png index 273030d..f9f8433 100644 Binary files a/icon.png and b/icon.png differ diff --git a/language/de.php b/language/de.php index b949987..c9abb4a 100644 --- a/language/de.php +++ b/language/de.php @@ -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', @@ -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', diff --git a/language/en.php b/language/en.php index 22e48d9..fbc727e 100644 --- a/language/en.php +++ b/language/en.php @@ -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', @@ -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', diff --git a/model/Settings.php b/model/Settings.php index 113b005..c87de5d 100644 --- a/model/Settings.php +++ b/model/Settings.php @@ -1,11 +1,11 @@ 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', @@ -41,4 +41,4 @@ public function sms(array $data) { public function voice(array $data) { return $this->request('voice', $data); } -} \ No newline at end of file +} diff --git a/service/Messenger.php b/service/Messenger.php index e0e19e8..21e72f9 100644 --- a/service/Messenger.php +++ b/service/Messenger.php @@ -1,5 +1,5 @@ $this->success, ]; } -} \ No newline at end of file +} diff --git a/views/extjs3/MainPanel.js b/views/extjs3/MainPanel.js index 6526f44..93f93df 100644 --- a/views/extjs3/MainPanel.js +++ b/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' @@ -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(), }) }, @@ -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'), -}) \ No newline at end of file +}) diff --git a/views/extjs3/Module.js b/views/extjs3/Module.js index fdd653a..cfc07e3 100644 --- a/views/extjs3/Module.js +++ b/views/extjs3/Module.js @@ -1,11 +1,11 @@ -go.Modules.register('community', 'sms77', { +go.Modules.register('community', 'seven', { entities: [], initModule() { - console.log('initModule:sms77') + console.log('initModule:seven') }, - mainPanel: 'go.modules.community.sms77.MainPanel', + mainPanel: 'go.modules.community.seven.MainPanel', systemSettingsPanels: [ - "go.modules.community.sms77.SystemSettingsPanel", + "go.modules.community.seven.SystemSettingsPanel", ], title: t('name'), }) diff --git a/views/extjs3/SystemSettingsPanel.js b/views/extjs3/SystemSettingsPanel.js index adf9d1d..8685273 100644 --- a/views/extjs3/SystemSettingsPanel.js +++ b/views/extjs3/SystemSettingsPanel.js @@ -1,4 +1,4 @@ -go.modules.community.sms77.SystemSettingsPanel = Ext.extend(go.systemsettings.Panel, { +go.modules.community.seven.SystemSettingsPanel = Ext.extend(go.systemsettings.Panel, { iconCls: 'ic-sms', initComponent() { this.items = [ @@ -46,7 +46,7 @@ go.modules.community.sms77.SystemSettingsPanel = Ext.extend(go.systemsettings.Pa xtype: 'fieldset', }), ] - go.modules.community.sms77.SystemSettingsPanel.superclass.initComponent.call(this) + go.modules.community.seven.SystemSettingsPanel.superclass.initComponent.call(this) }, labelWidth: 125, title: t('name'),