Browse code

added files to implement CSS changes required by Nextcloud 28

DoubleBastionAdmin authored on 17/12/2023 01:12:45
Showing 60 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,155 @@
1
+======= CHANGELOG =======
2
+
3
+Versions:
4
+
5
+== 1.0.0 - 2022-1-27 ==
6
+* Initial release.
7
+
8
+== 1.0.1 - 2022-3-31 ==
9
+* Changed presentation text.
10
+
11
+== 1.0.2 - 2022-4-13 ==
12
+* Changed application controller class, to respect custom path of 'datadirectory'.
13
+* Fixed filters row arrow not showing up when using Apache.
14
+* Added the 'Contributors.txt' file.
15
+
16
+== 1.0.3 - 2022-4-15 ==
17
+* Changed the way the app gets the timezone.
18
+
19
+== 1.0.4 - 2022-5-7 ==
20
+* Changed the data type of the 'message' column in the 'sms_relent_sent' and 'sms_relent_received' tables.
21
+
22
+== 1.0.5 - 2022-5-9 ==
23
+* Changed string length for 'message' column in 'sms_relent_sent' and 'sms_relent_received' tables.
24
+* Changed syntax of SQL queries and of encryption function.
25
+* Changed structure of webhook URLs in case Nextcloud is served on a subdirectory.
26
+
27
+== 1.0.6 - 2022-8-13 ==
28
+* Added support for Twilio.
29
+* Added support for new lines in messages and email notifications.
30
+* Solved column width issue in sent/received SMS tables.
31
+* Minor explanatory text changes.
32
+
33
+== 1.0.7 - 2022-8-16 ==
34
+* Solved bug related to receiving messages on Twilio number when it's not associated with any Messaging Service.
35
+* Changed css properties for Network column.
36
+
37
+== 1.0.8 - 2022-8-23 ==
38
+* Added support for Flowroute.
39
+* Added automatic scrolling to bottom of received/sent messages table when clicking on 'Received/Sent SMS Messages' button.
40
+* Added scroll bar to info pop-up notes.
41
+
42
+== 1.0.9 - 2022-9-3 ==
43
+* Added support for MMS.
44
+* Minor CSS improvements.
45
+* Small changes to explanatory text.
46
+
47
+== 1.1.0 - 2022-9-5 ==
48
+* Solved issue with previewing images picked from Nextcloud.
49
+* Text changes to README.md.
50
+
51
+== 1.1.1 - 2022-9-9 ==
52
+* Changed signature verification process for Twilio.
53
+* Removed Alphanumeric Sender ID for Flowroute, since it's not supported.
54
+* Minor text changes on presentation page and settings page.
55
+
56
+== 1.1.2 - 2022-10-27 ==
57
+* Changed CSS settings to match the modifications introduced in Nextcloud 25.
58
+
59
+== 1.1.3 - 2022-12-1 ==
60
+* Fixed SQL error that appeared in fresh installations.
61
+* Added support for dark themes.
62
+* Updated explanatory text for Telnyx on the Settings page.
63
+
64
+== 1.1.4 - 2022-12-2 ==
65
+* Changed migration files to prevent installation errors.
66
+* Modified 3 svg files converting text objects to paths.
67
+
68
+== 1.1.5 - 2023-2-28 ==
69
+* Fixed issue related to Twilio message signing.
70
+* Updated message pricing information in app description.
71
+
72
+== 1.1.6 - 2023-5-8 ==
73
+* Implemented showing display names of message authors before their messages.
74
+* Added checkbox to enable/disable prepending display names before messages.
75
+* Custom display names can be now saved for external phone numbers.
76
+* Restrictions for groups or users can be placed on phone numbers by admins.
77
+* Admins can see just their own messages or all the messages in their message tables.
78
+* Auto-replies with 'daily mode' and 'vacation mode' can be configured for any controlled phone number.
79
+* Added a new message table that lists all the messages grouped by phone numbers.
80
+* Added the ability to see all the messages sent/received to/from a phone number, by clicking on 
81
+  a button located below the number, in the 'Received SMS Messages' and 'Sent SMS Messages' tables
82
+
83
+== 1.1.7 - 2023-5-9 ==
84
+* Fixed bug related to not being able to see messages in pop-up windows and on grouped messages table.
85
+
86
+== 1.1.8 - 2023-5-9 ==
87
+* Fixed migration issue bug.
88
+
89
+== 1.1.9 - 2023-5-9 ==
90
+* Made the app available to upgrade to for Nextcloud 26.
91
+
92
+== 1.2.0 - 2023-5-20 ==
93
+* Fixed auto-reply bug.
94
+* Moved the API keys and alphanumeric sender ID fields from the Personal settings page to the Admin 
95
+  settings page.
96
+* Available phone numbers are loaded automatically when the app's icon is clicked.
97
+* When only one phone number is available, it is selected automatically in the 'Set ID' field.
98
+* Admins can share their API keys with other non-admins.
99
+* Admins can see only their messages and the messages of the non-admins whith whom they share their API 
100
+  keys. Non-admins can see only their messages.
101
+* Added pop-up window that shows the messages exchanged between 2 phone numbers and allows sending replies.
102
+
103
+== 1.2.1 - 2023-5-23 ==
104
+* Allowed non-admin users to see incoming messages received on the phone numbers they are restricted to.
105
+* Customized confirm pop-up windows.
106
+
107
+== 1.2.2 - 2023-5-24 ==
108
+* Changed how non-admins view sent messages.
109
+
110
+== 1.2.3 - 2023-5-24 ==
111
+* Fixed 'Load more messages' bug.
112
+* Changed the way the display name is searched for and added to old messages, during app upgrade.
113
+
114
+== 1.2.4 - 2023-5-30 ==
115
+* Fixed MMS files domain problem.
116
+* Made MMS URLs clickable.
117
+* Added refresh button for messages in pop-up windows.
118
+
119
+== 1.2.5 - 2023-6-3 ==
120
+* Fixed incoming MMS issue.
121
+* Added checkbox on Settings page to allow users to include their display names in the text
122
+  of the message itself.
123
+
124
+== 1.2.6 - 2023-6-22 ==
125
+* Fixed messages display issue for non-admins.
126
+* Fixed how non-admins are able to see the messages sent/received from/to the numbers that are
127
+  shared with them but not restricted to them.
128
+
129
+== 1.2.7 - 2023-7-15 ==
130
+* Fixed alert messages issue.
131
+* Fixed text color for dark themes.
132
+* Added 'full-day' exception to auto-reply.
133
+* Added auto-refresh button on received/sent messages pages.
134
+
135
+== 1.2.8 - 2023-10-30 ==
136
+* Changed main screenshot and modified presentation text.
137
+* Changed text on Settings page.
138
+* Marked the app as compatible with Nextcloud 27.
139
+
140
+== 1.2.9 - 2023-11-1 ==
141
+* Changed how the app sends notifications for incoming messages.
142
+
143
+== 1.3.0 - 2023-11-3 ==
144
+* Changed notifications mechanism so that non-admin users receive notifications 
145
+  for messages received on phone numbers shared with them.
146
+* Fixed bug related to listing received messages for non-admin users.
147
+* Minor text modifications on the settings pages.
148
+
149
+== 1.3.1 - 2023-11-6 ==
150
+* Simplified some complex prepared SQL queries.
151
+
152
+== 1.3.2 - 2023-12-18 ==
153
+* Replaced default fonts with 2 free and open source fonts ('Open Sans' and 'Inter'),
154
+  included in the 'fonts' directory.
155
+* Fixed minor CSS issues.
0 156
new file mode 100644
... ...
@@ -0,0 +1,159 @@
1
+<span style="display:block;height:15px!important"></span>
2
+<p align="center"><img src="https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_logo.png" alt="SMS Relentless" width="191px" height="157px"/></p>
3
+
4
+<span style="display:block;height:20px!important"></span>
5
+
6
+**SMS Relentless is a Nextcloud application that allows sending and receiving SMS and MMS messages in Nextcloud.**
7
+
8
+A telnyx.com, plivo.com, twilio.com or flowroute.com account and a real phone number acquired from one of the 4 providers are needed.
9
+
10
+<span style="display:block;height:20px!important"></span>
11
+
12
+## Features
13
+
14
+<span style="display:block;height:10px!important"></span>
15
+
16
+* 🚀 Use one or multiple local phone numbers in countries of your choice, to send and receive SMS/MMS messages with your browser, on any device connected to the Internet.
17
+
18
+* 📑 Sent and received SMS/MMS messages are stored in the database per sending/receiving user and can be viewed in paginated tables with filters for every column.
19
+
20
+* 🖼️  Up to 10 files of various formats, including jpeg, png and gif, can be sent as MMS messages from MMS enabled phone numbers. Files included in incoming MMS messages are not downloaded automatically. They are stored as URL links to the actual files, so that the receivers can download them only if they trust the senders.
21
+
22
+* 📔 SMS/MMS messages older than a specified number of days can be deleted in bulk with one click and they are automatically archived in csv files stored in Nextcloud, before being removed from the database. This makes them available for future analysis.
23
+
24
+* 💻 Sending SMS/MMS messages to thousands of recipients can be achieved by uploading a txt/csv file containing the recipients' phone numbers and the same SMS/MMS is sent automatically to all. The time interval between two consecutive messages is configurable.
25
+
26
+* 👤 The Display Name of Nextcloud users can be prepended to their messages, to make the origin of messages clearer.
27
+
28
+* ⚠️  Admins can restrict the use of specific phone numbers to specific groups or users.
29
+
30
+* ✉️  Auto-replies in 'daily mode' and 'vacation mode' can be configured for any controlled phone number.
31
+
32
+* 🔏 SMS/MMS messages coming from Telnyx, Plivo and Twilio are checked for authenticity by verifying the SMS provider's signature.
33
+
34
+* 📧 Users receive notifications in Nextcloud and (optionally) emails when new SMS/MMS messages arrive.
35
+
36
+* 📄 Each sent message receives a delivery receipt displayed in the Sent SMS Messages table.
37
+
38
+* 📱 It works with regular 'long code' (10-digit) phone numbers, but also with 'toll-free' numbers and 'short codes'. Users see a list with their current phone numbers and can set them as Sender IDs. Setting alphanumeric Sender IDs is also possible. 
39
+
40
+* 💵 It allows checking the current Telnyx/Plivo/Twilio balance by selecting the provider on the left panel.
41
+
42
+* 💰 The only ongoing cost is about $1 per month (depending on the country) for an SMS/MMS enabled phone number located in a country chosen by the user. No contracts.
43
+
44
+* 💸 Low prices per SMS: starting from $0.0060 per sent message and $0.0040 per received message (Telnyx), or $0.0070 per sent message and $0 per received message (Plivo), or $0.0099 per sent message and 0.0079 per received message (Twilio), or $0.0055 per sent message and 0.0040 per received message (Flowroute) in the USA.
45
+
46
+<span style="display:block;height:10px!important"></span>
47
+
48
+Double Bastion is not affiliated with Telnyx, Plivo, Twilio or Flowroute.
49
+
50
+### Donations
51
+
52
+* 🎁 [Donate](https://www.doublebastion.com/donations/)
53
+
54
+<span style="display:block;height:20px!important"></span>
55
+
56
+Send SMS message
57
+<span style="display:block;height:10px!important"></span>
58
+![Image of SMS Relentless Interface](https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_send_sms.png)
59
+<span style="display:block;height:40px!important"></span>
60
+Send MMS message
61
+<span style="display:block;height:10px!important"></span>
62
+![Image of SMS Relentless Interface](https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_send_mms.png)
63
+<span style="display:block;height:40px!important"></span>
64
+List received SMS messages
65
+<span style="display:block;height:10px!important"></span>
66
+![Image of SMS Relentless Interface](https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_received_messages.png)
67
+<span style="display:block;height:40px!important"></span>
68
+List sent SMS messages
69
+<span style="display:block;height:10px!important"></span>
70
+![Image of SMS Relentless Interface](https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_sent_messages.png)
71
+<span style="display:block;height:40px!important"></span>
72
+List messages grouped by phone number
73
+<span style="display:block;height:10px!important"></span>
74
+![Image of SMS Relentless Interface](https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_grouped_by_number.png)
75
+<span style="display:block;height:40px!important"></span>
76
+List all messages exchanged between the sending and the receiving phone number
77
+<span style="display:block;height:10px!important"></span>
78
+![Image of SMS Relentless Interface](https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_exchanged_messages_popup.png)
79
+<span style="display:block;height:40px!important"></span>
80
+List all messages sent from or received by phone number
81
+<span style="display:block;height:10px!important"></span>
82
+![Image of SMS Relentless Interface](https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_messages_to_from_popup.png)
83
+<span style="display:block;height:40px!important"></span>
84
+Send SMS message to multiple recipients
85
+<span style="display:block;height:10px!important"></span>
86
+![Image of SMS Relentless Interface](https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_send_mass_sms.png)
87
+<span style="display:block;height:40px!important"></span>
88
+Filter messages by date and keyword
89
+<span style="display:block;height:10px!important"></span>
90
+![Image of SMS Relentless Interface](https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_filter_messages_by_date_and_keyword.png)
91
+<span style="display:block;height:40px!important"></span>
92
+Delete old SMS messages
93
+<span style="display:block;height:10px!important"></span>
94
+![Image of SMS Relentless Interface](https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_delete_old_messages.png)
95
+<span style="display:block;height:40px!important"></span>
96
+
97
+## Browsers
98
+<span style="display:block;height:10px!important"></span>
99
+
100
+SMS Relentless works with all major browsers.
101
+
102
+<span style="display:block;height:20px!important"></span>
103
+
104
+## Programming Languages
105
+<span style="display:block;height:10px!important"></span>
106
+
107
+SMS Relentless only uses PHP, SQL, jQuery, CSS and HTML. This means it's robust, efficient, light-weight and easy to maintain and debug.
108
+
109
+<span style="display:block;height:20px!important"></span>
110
+
111
+## Minimum Requirements
112
+<span style="display:block;height:10px!important"></span>
113
+
114
+- **Nextcloud 22+** has to be installed and properly configured, preferably by following the <a href="https://www.doublebastion.com/install-nextcloud/" rel="noreferrer noopener" target="_blank">Install Nextcloud</a> chapter in our guide.
115
+
116
+- **A telnyx.com, plivo.com, twilio.com or flowroute.com account and an SMS/MMS enabled phone number** attached to it.
117
+
118
+- The **libcurl** PHP library has to be installed on the server (it's usually installed automatically when PHP is installed).
119
+
120
+To enable email notifications for every received SMS/MMS, the "sendmail" utility ("/usr/sbin/sendmail" on Debian Linux), has to be present on the server. "sendmail" is a binary which gets 
121
+installed when Postfix is installed. Also, the web server user (www-data) has to be allowed to send emails from command line (by specifying "authorized\_submit\_users = www-data" in 
122
+"/etc/postfix/main.cf" for Postfix on Debian).
123
+
124
+<span style="display:block;height:20px!important"></span>
125
+
126
+## Installation
127
+<span style="display:block;height:10px!important"></span>
128
+
129
+<a href="https://www.doublebastion.com/install-nextcloud/#install-sms-relentless" rel="noreferrer noopener" target="_blank">This chapter</a> of our Complete Guide to a Complete Linux Server 
130
+explains in detail how to install and use this application.
131
+
132
+SMS Relentless is a component of RED Scarf Suite. It can be installed and used alone, but if you want to install <a href="https://www.doublebastion.com/red-scarf-suite-components/" rel="noreferrer noopener" target="_blank">all 
133
+the components</a> of RED Scarf Suite, you can follow our <a href="https://www.doublebastion.com/free-server/complete-guide-to-a-complete-linux-server/" rel="noreferrer noopener" target="_blank">complete guide</a>.
134
+
135
+<span style="display:block;height:20px!important"></span>
136
+
137
+## Contribute
138
+<span style="display:block;height:10px!important"></span>
139
+
140
+This is the official git repository of SMS Relentless. The <a href="https://github.com/DoubleBastionAdmin/sms-relentless" rel="noreferrer noopener" target="_blank">GitHub SMS Relentless
141
+repository</a> is just a pointer to this repository. We don’t use GitHub for developing SMS Relentless because GitHub is owned by one of the companies that proved their disrespect for
142
+digital freedom over the years and because centralized services create autonomy and privacy issues, in spite of all the benefits.
143
+
144
+If you want to contribute code to this project, please submit <a href="https://git.doublebastion.com/sms-relentless/pullrequests/contrib" rel="noreferrer noopener" target="_blank">this form</a>, 
145
+mentioning your intended changes. We'll send you the credentials needed to push code to the "contrib" branch of this repository. After we review the changes we can include them in the 
146
+project.
147
+
148
+Please post any bugs that are not security related, or feature requests, on the <a href="https://git.doublebastion.com/sms-relentless/issues/develop" rel="noreferrer noopener" target="_blank">
149
+issue tracker</a>. If you notice bugs related to security, don’t post them on the issue tracker; instead, send them to manager [at] doublebastion [dot] com .
150
+
151
+<span style="display:block;height:20px!important"></span>
152
+
153
+## License
154
+<span style="display:block;height:10px!important"></span>
155
+
156
+SMS Relentless as a whole is licensed under the GNU Affero General Public License Version 3. If you use SMS Relentless or distribute it in modified or unmodified form, you will need to comply with 
157
+the terms of the GNU Affero General Public License Version 3.
158
+
159
+SMS Relentless includes libraries licensed under different free software licenses. These libraries contain their respective original copyright notices.
0 160
new file mode 100644
... ...
@@ -0,0 +1,93 @@
1
+<?xml version="1.0"?>
2
+<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
3
+      xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
4
+    <id>sms_relentless</id>
5
+    <name>SMS Relentless</name>
6
+    <summary>Send and receive SMS in Nextcloud</summary>
7
+    <description><![CDATA[
8
+This application allows sending and receiving SMS and MMS messages in Nextcloud. An SMS/MMS enabled phone number acquired from 
9
+Telnyx, Plivo, Twilio or Flowroute is needed. Detailed instructions on how to configure and use this application can be found on the 'Admin documentation' page.
10
+
11
+### Features:
12
+
13
+* 🚀 Use one or multiple local phone numbers in countries of your choice, to send and receive SMS/MMS messages with your browser, on any device connected to the Internet.
14
+
15
+* 📑 Sent and received SMS/MMS messages are stored in the database per sending/receiving user and can be viewed in paginated tables with filters for every column.
16
+
17
+* 🖼️  Up to 10 files of various formats, including jpeg, png and gif, can be sent as MMS messages from MMS enabled phone numbers. Files included in incoming MMS messages are not downloaded automatically. They are stored as URL links to the actual files, so that the receivers can download them only if they trust the senders.
18
+
19
+* 📔 SMS/MMS messages older than a specified number of days can be deleted in bulk with one click and they are automatically archived in csv files stored in Nextcloud, before being removed from the database. This makes them available for future analysis.
20
+
21
+* 💻 Sending SMS/MMS messages to thousands of recipients can be achieved by uploading a txt/csv file containing the recipients' phone numbers and the same SMS/MMS is sent automatically to all. The time interval between two consecutive messages is configurable.
22
+
23
+* 👤 The Display Name of Nextcloud users can be prepended to their messages, to make the origin of messages clearer.
24
+
25
+* ⚠️  Admins can restrict the use of specific phone numbers to specific groups or users.
26
+
27
+* ✉️  Auto-replies in 'daily mode' and 'vacation mode' can be configured for any controlled phone number.
28
+
29
+* 🔏 SMS/MMS messages coming from Telnyx, Plivo and Twilio are checked for authenticity by verifying the SMS provider's signature.
30
+
31
+* 📧 Users receive notifications in Nextcloud and (optionally) emails when new SMS/MMS messages arrive.
32
+
33
+* 📄 Each sent message receives a delivery receipt displayed in the Sent SMS Messages table.
34
+
35
+* 📱 It works with regular 'long code' (10-digit) phone numbers, but also with 'toll-free' numbers and 'short codes'. Users see a list with their current phone numbers and can set them as Sender IDs. Setting alphanumeric Sender IDs is also possible. 
36
+
37
+* 💵 It allows checking the current Telnyx/Plivo/Twilio balance by selecting the provider on the left panel.
38
+
39
+* 💰 The only ongoing cost is about $1 per month (depending on the country) for an SMS/MMS enabled phone number located in a country chosen by the user. No contracts.
40
+
41
+* 💸 Low prices per SMS: starting from $0.0060 per sent message and $0.0040 per received message (Telnyx), or $0.0070 per sent message and $0 per received message (Plivo), or $0.0099 per sent message and 0.0079 per received message (Twilio), or $0.0055 per sent message and 0.0040 per received message (Flowroute) in the USA.
42
+
43
+We have no affiliation with Telnyx, Plivo, Twilio or Flowroute.
44
+
45
+### Documentation
46
+
47
+* [Admin documentation](https://www.doublebastion.com/install-nextcloud/#install-sms-relentless)
48
+
49
+### Donations
50
+
51
+* 🎁 [Donate](https://www.doublebastion.com/donations/)
52
+
53
+    ]]></description>
54
+    <version>1.3.2</version>
55
+    <licence>AGPL</licence>
56
+    <author mail="contact@doublebastion.com">Double Bastion LLC</author>
57
+    <namespace>SMSRelentless</namespace>
58
+	<documentation>
59
+		<admin>https://www.doublebastion.com/install-nextcloud/#install-sms-relentless</admin>
60
+	</documentation>
61
+    <category>office</category>
62
+    <category>organization</category>
63
+
64
+    <website>https://www.doublebastion.com/sms-relentless/</website>
65
+    <bugs>https://git.doublebastion.com/sms-relentless/issues/develop</bugs>
66
+    <repository>https://git.doublebastion.com/sms-relentless/develop/</repository>
67
+
68
+    <screenshot>https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_sent_messages.png</screenshot>
69
+    <screenshot>https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_received_messages.png</screenshot>
70
+    <screenshot>https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_grouped_by_number.png</screenshot>
71
+    <screenshot>https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_exchanged_messages_popup.png</screenshot>
72
+    <screenshot>https://git.doublebastion.com/sms-relentless/raw/develop/img/sms_relentless_send_mms.png</screenshot>
73
+
74
+    <dependencies>
75
+            <nextcloud min-version="26" max-version="28" />
76
+    </dependencies>
77
+
78
+    <navigations>
79
+        <navigation>
80
+            <name>SMS Relentless</name>
81
+            <route>sms_relentless.page.index</route>
82
+            <order>102</order>
83
+            <icon>../img/sms_relentless.svg</icon>
84
+        </navigation>
85
+    </navigations>
86
+
87
+    <settings>
88
+            <personal>OCA\SMSRelentless\Settings\Personal</personal>
89
+            <personal-section>OCA\SMSRelentless\Settings\PersonalSection</personal-section>
90
+            <admin>OCA\SMSRelentless\Settings\Admin</admin>
91
+    	    <admin-section>OCA\SMSRelentless\Settings\AdminSection</admin-section>
92
+    </settings>
93
+</info>
0 94
new file mode 100644
... ...
@@ -0,0 +1,904 @@
1
+{
2
+    "hashes": {
3
+        "CHANGELOG.txt": "9a8fed4ffd55bb0470964d35965937fbfde567033a42b1938fbb4beea0e8722f8080acfcca2891d500aefa54111209b2452788ba86b35c39aa3112aa27b55141",
4
+        "COPYING.txt": "a0a86214ea153fb07ff35ceec0848dd1703eae22de036a825efc8394e50f65e3044832f3b49cf7e45a39edc470bdf738abc36a3a78ca7df3a6e73c14eaef94a8",
5
+        "Contributors.txt": "8ab4ea9b8c38e4d115af6ca08e8e27592198b763982bd166b67f38ee0b9f2b7e093cd58ce0927ae38ee3bc015b129add2ffeb3967288c804da493241bc67ba9b",
6
+        "README.md": "3f22674ce78fc4465f1c017209c988fb4a8f5cef0edab979e4d83f821f00faede021134422af78bca9a5bfdeb52e6dd2db0deaa5528a5700968125d59a703fba",
7
+        "appinfo\/info.xml": "0f3cd791c54a9c5ddeedde4c068df2a574336a68f3a00f6d6e98ca93e4faa125472fd90e4bf185e9c2f6ce9a006262622c16d3c835c089cffff1f89f8d5f5521",
8
+        "appinfo\/routes.php": "a0a4316f90aee60bb2cc1ea595e04a5588e5b81a9c369be197099b8c6fe7714fead0fdc35e964557f1f0652c7ef3d0031b3a781ccebd762c4a985a4ed3fbbb35",
9
+        "css\/style.css": "2324394f0fe8e572057575c06b79bf32f716498f22cc0169d4446b9d6fa58b7e9bf1d616761983d33252fb3d7c0b7cf35e688c6ce4b41dc0f1b55929f61f1088",
10
+        "fonts\/Apache_License_v2.0_Open_Sans.txt": "fdae7ed259455ca9fa45939e7f25cbb4de29831cda16d9151de25a5f6e9d9be43b053f4fd3b896026239fca77abce04f543d591c501ecf4ce18c854bc0a51660",
11
+        "fonts\/Inter-Bold.woff": "f34ed611dc0ba6e7c0bf7242bad7c02e09f208bfbdd21d6649ebf9b41bc06696d8856707851944786c80c718df455e619caab170c70bfe97ba2043d651d4532e",
12
+        "fonts\/Inter-Bold.woff2": "736b4aaf8a2de0c17fbd5396a338577227326f078ee0646072d851d328b58a8058989af8735ac073f935b05f291d9310797d95c963e5e3ff0ea61a87f21c9da5",
13
+        "fonts\/Inter-BoldItalic.woff": "619e398d37249fae96ba0deb06fcf5dab215ba888740024287e2c8f1278b33273124cd5b9ea8f7525a17657566b72a1661b688ca670bc068ca6ddf466b7e7ffe",
14
+        "fonts\/Inter-BoldItalic.woff2": "a24bdb558a9b26fbe7631d6cf90b8db8f5f0164c3c814a2971fb7d45e807b0856454893bbd0d5bd0d9f060689f2be5f5bb1b69e4bdea0293d1122e13ad28e96f",
15
+        "fonts\/Inter-Italic.woff": "72defeb5040f6375683dba41d4ce43654fdbae4f64aea88b01feb023b3e894c278c8a8c7e5583b6d83d980495ca0d5afa5ec7e1bfcc731be08d3dbe1b8b3f348",
16
+        "fonts\/Inter-Italic.woff2": "b128da83c81fe4a28026dc0a2a75c7920f37d4e04d6d6bde4e60b3a9527dbff04ff0ebc8b300874db9bd90036a41a52f4c9d82eb2f78fb8e99a35bb04defa1c2",
17
+        "fonts\/Inter-Medium.woff": "1f7c25aeb1ed534a106254fdba6bf59dfa03542f813489dca31fe067e2a22ab9549babb48af4cd465ab3ef0ef2f4b0f46532efcc8aae8942ad2cf98d0a5a4a3f",
18
+        "fonts\/Inter-Medium.woff2": "ce94d1a0cea81d42546ebc0247403b02c6fae24d3afba618cf658436734557a8b2b8ebed54319a9f66b233bd224da3685f848470866de63a144c8c28070491d4",
19
+        "fonts\/Inter-MediumItalic.woff": "7b7bef9c7a7717c6d52d619059e5ec258b537f538ada38325c2c7bfa4968ff53109bc9ee17a57819ef37d0a145a973f4a7c8e4d8d09e71d3faa4d0fe14cbf487",
20
+        "fonts\/Inter-MediumItalic.woff2": "4a2c5dc8c2ece82489e63b16cd8b1536b8f5502cf8f93307b0c71c6d54594a28ec2a80b8e58dfbbcc1d38a51aa8dd6d6fa025aed2cdc1429a462745a2bf2d414",
21
+        "fonts\/Inter-Regular.woff": "e37409956d19653617af32af2f99f4038c815a3664f2dcb2fef5e6a1a7345c78aaac3badc2ae499b1423514076ad676ab4bd5d936ef9d159899a6f668d991e4c",
22
+        "fonts\/Inter-Regular.woff2": "731924aedf31d6ef8fcd57a3b74182331ec7ba743d64033d8912d350ba98fd5b1942decaa4268f4dc925be2ed711c71a77200b2497bec10cae499b452fb27138",
23
+        "fonts\/Inter-SemiBold.woff": "684602b1f45bf7a9ca5ea6b1aca2cc2046e07ac79eb63b920099463f25866f50cca77ca253f16078d3a6e781ca23b964a69c87389621fa101d5cfffdb292d132",
24
+        "fonts\/Inter-SemiBold.woff2": "12b7680eccc54f56f800ac3ea4eff0490f515911d0fc83f99f62fa0f72d848155c8a7186918301a372d0fd0238d8093109c7b9b3c05168058e3cb47b1f7216ae",
25
+        "fonts\/Inter-SemiBoldItalic.woff": "9623d9c91148b651b7d4a642751e4f9eaeda68b6f4c33355d0173e303252039b3bcd301556a1d8451ffbd36d7996c1e8fc5ca1276884636cf57468e38c9e442a",
26
+        "fonts\/Inter-SemiBoldItalic.woff2": "97b7d8ab268ebcbc00876bd69ca9cc7cf2ae9ba5a6a30c13e3412e41a88f1f5ed758a6d9abbab3a14359943a003b14307cbc379bb11505c014b002322fd53c6e",
27
+        "fonts\/SIL_Open_Font_License_v1.1_Inter.txt": "073e141d4e45a3adfd2cb569db6a4fd217b1721dd6aeab8159e36940b984df5ebdc345deb0eb6be65367f943e516a12dff41eb1238a322d248ca3478c50ef9b6",
28
+        "fonts\/opensans-bold.woff": "d094832745611e047ffa87fdb21bac41befabdb07aecade483d4dc5a5b97bad00f1d4a5dca2a615789cd494791f0ab4209be537eb4b1bc7cbee7c42eb5e201dc",
29
+        "fonts\/opensans-bold.woff2": "096abb618c9ce1a534f0198aeea53c6d1138000f98b883131ab49ee48b80b483af635f0196ac40a1c1bde679f63b3c3b907b8f9b0102a752862d623dd22393a5",
30
+        "fonts\/opensans-bolditalic.woff": "c80f105a10d37c812f5d1b29445cd21cbc95594f71d9c5fc1b3aeeb9985c5465ba017654f1453baefdc56cc27aa325b586d77323012073eb713ab8f88f08dab4",
31
+        "fonts\/opensans-bolditalic.woff2": "38b99ebf320264d74a456fe590fc610580b003bc77a39d97ff42dec41353a8f908d6f680b4777cdb34ed544d9b4ed20dce8c418317de1d721e25ab670f49fc1d",
32
+        "fonts\/opensans-extrabold.woff": "6636a395ba345853ada2237b8e1f81c52e54bfb65559cbcb8de143cac00232f20cf34c764c9c4d4b80e82dae79cba3064ebdf22999cce8839df2d5709ee64092",
33
+        "fonts\/opensans-extrabold.woff2": "758c90eb07c6db7e78cb703ea285f82b443ca2cfab792328a3f8c14acc1f932ae79ec2987b8b94bf19b3cc16fae31c76f3164c9437a2591283fb1592e40ec33d",
34
+        "fonts\/opensans-extrabolditalic.woff": "ab1966f1ab3bb436e489c2d6ee562cf22d05b6b8c9bbca17e903518311aa45659efc329255e08ab597e2b8effe3bda602a7fb56b7d0c1d872b69337537d49dff",
35
+        "fonts\/opensans-extrabolditalic.woff2": "2132d6309969f868521f2d788b991bc9bcf3239f1768db9a2b90faf8838c35efea85225b24db256f54c86d0a7915ecd50a7f5348e6ab040e0f172ba7510598cd",
36
+        "fonts\/opensans-italic.woff": "a9751e7ac7a3c3d9f739d1fe00730a545b68e4a6473beafee8edf583f175b34fd5e0b60a14ec3707c8691fdbebea17e191c51707f50a21281e76be46f55a1140",
37
+        "fonts\/opensans-italic.woff2": "7a80c01d34562e2fe248a71078ffa9413c04c9c320d27acb0bce96cc295101eb9e80a25e97dab3e67c184c40937862be820581441aa4100bd512a26ef2d523cf",
38
+        "fonts\/opensans-light.woff": "cca2c5d207e0935c1848e22965972cb6feea39aa93b1b546051cfabe5ab16e909934d007a7ccd174eda1e7671d838f477890dedcb93d68ba722eda39a16d0bb8",
39
+        "fonts\/opensans-light.woff2": "cdc332de1b13eb0f05cc9dd1ebc905fa5ce948eab71e2fdb1bc538ad54a0de980bf83352090becd650af9c101ec9a6898d2e4798e4fb777e41c20fae85fd568b",
40
+        "fonts\/opensans-lightitalic.woff": "26e7759869088d8abba380f0bb22bbb9fdf0a985c0999519390cbd85099e3f48864d866f4639a8ff1992e7c81c755b0bbf66f525d4d38a929067886e9b54eb88",
41
+        "fonts\/opensans-lightitalic.woff2": "b7f80b69abeca9d0369f5d46da192e98a6329cf1f948c897fb7130e0d815f73e293c37f0e6d0047273fe3f13a19e648d1bd06cfa2fac2142ec38ac244e7f0940",
42
+        "fonts\/opensans-regular.woff": "3a526ba177f8f16ad95941c185411f350fab7e5202b9f56ea9c5f972c62912781d66da10e278e065cc6748a4bc9ab9182d68b27eaf380131c602195148e4b8b4",
43
+        "fonts\/opensans-regular.woff2": "66b3e915b891f7b37b441ee18e40f01274fe19f2515470760e503f428fc1c524ccfbe832191978c2c5f6bc4b7ef46937e4f77f5457b6efbf878c97c054cb45f2",
44
+        "fonts\/opensans-semibold.woff": "173f703ab767d0fcff014dac2fa3dcac787ffd0eb39f0c532b6679935c0105daacfa6a32bca97de13e420e10194b701ad2487bfd35d28807563ebf0b16d0ca35",
45
+        "fonts\/opensans-semibold.woff2": "75068ba76befc2356fe83b198bf6da70e177e53cc3128af09d0d9f69dfe538013f2828b2363c6f533fcaca4d4b2a5ec5159b5eb6f288504ac73d33ac5d1d2c4d",
46
+        "fonts\/opensans-semibolditalic.woff": "9e1e965095991d4a12a0658fa22a116b043ce20fd5f73bb9655d870ae49c46170cec52827510be323332b535002eb96445f79c3d1e4dd0550ff622fda0465f1d",
47
+        "fonts\/opensans-semibolditalic.woff2": "d7e43f05802e26f4cb80ab6a492b01c398c5b41168c7f61356ca3ffc5f4fccabae5ba332956f0aecad69ccabb6b7526efbc0395552cc5d68e47bec00bc660ad7",
48
+        "img\/add.svg": "5711a740d20d8243b4fa9a52783689af96b3b01af6e422ec6a9f0aca16db068869a5a302e6960168d9c90e2dc0a69eed851d69e7f1bf33684304cf861f990604",
49
+        "img\/app-dark.svg": "cbe97fe9fe636790ea0b415035cd78321ff53ec93ab1276d4ef609555592fa13d09b2037c20e06bbb9024fcfcc0ebb806c89572b08adcfe4ee9d06c6466b685a",
50
+        "img\/app.svg": "010ad7cee20f3a256a24bee2482b6798f042a3992c7df5d56ba803cca93552c3cda2a68d1772e67143ce45207b89d397e34ba6909f6b8515134db64e2c5497eb",
51
+        "img\/arrow-top-small.svg": "3fba2fbf3a27f4d6b44d1c94da2260d025bbe682a3db18c21b9aa548f4878609770cdaa2e5c24e8b5cd97249647187b7499ab18bcd843ae7ee145def41561bbf",
52
+        "img\/arrow-top.svg": "389b15b7bfa8c90a79cd80958d1150538ddd0aeed875eae3a498b9bee8da3e63752fbc6c073cf58405fc35633a9b786e34b3ca1f6d234af685277aa8d439e1a6",
53
+        "img\/arrowDown.svg": "6fb30b189e848b26369238f7446eb1533327a4e99c70b699c10bb03088eeb7d47393f18d4f16bc03edb945f36cf13b96f05b763dba821c0b04b209cd81624103",
54
+        "img\/arrowUp.svg": "4f6a413d836635fd7e2e4d5846ee257c9a13e80624468e444ec906febfcf07a1c84f48d29cce730f29729cc8fbbbd3dab490e2192e5beb2707a6a4b1036bfd76",
55
+        "img\/check.svg": "aff77744fbd4e8eef8d91fd9e128e9e8be2830a93db9ba8d8a8277e78c8610d6ea5ec9678b3dfd2b8f2b4f8970dc40c4111e7af5011b0873bf461f5fbdeeaa88",
56
+        "img\/clearfilters.svg": "f554eff67f4c1440eb3865ea98b00bcde1f27361ae5888dfa7db1ed95d074915aaba0f6aed3f70d6d7c4cb5ca592dbc3f3175f958708e54830f895e8b652b499",
57
+        "img\/closewnd.svg": "38f6ba89d70905ab3d2c7d524fee42ce08f007622bb1256d04556cccdf40f549d39ab2fc455c878e6c318c03a8680d042c8e7d0dff9360a921e397e38567bf9a",
58
+        "img\/dots.svg": "e4a46301c4b70f3820be8d6906ccec273a96edaaab44d7c133bb58f5499f2fc6381f2029c27d0393e3d31e1cf10bc55ee98f05347fa6af3533cc74290d9bb909",
59
+        "img\/filter_icon.svg": "5258d0d0e3677c10a8ae5d8cc37318855e5a6d5071d5a61ee6d29aad7109292502d60571f2c5ae716295dd8f93a327c060ec7c65f2f9cbfee4b85086682a385e",
60
+        "img\/garbage.svg": "b76cde0659b7f127a810406d2b734f03871e3a7c8bc53acb723c2a97fa6ca0801a26cfebd4ceaa28d2ad237a67a222e00aafaecaf7e749cc8e8f93ae35a4c4f3",
61
+        "img\/garbage_bright.svg": "45bbad63a659b6add876294f8aebda1cf03790b0c253ba442f04fd9677c1a35795eb823dbb92bbf38066e8cdf89fb34671763dabbcdad4722aba3ffcaa21581b",
62
+        "img\/group.svg": "fbc10073fb9f5ac1780ccad2c61586512a922359b48ff76194bc5be2711ba99efcf9ce42a694e4cf1209dc78cf2bd077e12f98590c1fe1123260a23419cd256f",
63
+        "img\/incoming.svg": "c8f6e4c7e55c7fff5c74a87fe14e9f404fe5954a546949f148fd60cae7dd2e9165e883c34f1a3eb5500c12ae2bf281ab1607e04c4b75bd6322571ccf7e6ccc25",
64
+        "img\/list.svg": "2364a4ad93d0e4c85345a293f4f6b0e4135cbfb8b7b5e1ecd81d08affd0e0441439f9cd9e60da77eaa53052ef20cec20b49263e387b500c1fb4a3607b081e73f",
65
+        "img\/nextcloud_logo.svg": "4e0d3f0c371d668d83d443e5b1f69f0eedcc759092601d8fe8710dd97b16fd53aa3f9667bba7f305dc3aacfbc14e29b09b78da8b7bf6f41dcb83f5b16473991e",
66
+        "img\/nextcloud_logo_bright.svg": "aeab941556e29f9537508171583bb3309372866122c150c887c21d6a567c5aa06d2653db67c7151b064d4e2fa25f1fc63df21c786ede02ca5f40f12e5c1bad26",
67
+        "img\/outgoing.svg": "b5be7538df66570991b975b1fdca452144fdc27a14521dfb2ae4d0393d0f3b8abb6837458892e04adbdec0182ee3fd25ae33c6792457154dc2cab6e35bd6eb9e",
68
+        "img\/question.svg": "c2bb43256a2b8c43997dd6b40a2db8c811e3a2a28a0ebc11c8e87d71c21b8cfea3367a39730e6675ca77c9ec6e9adb4bab65cee474c02276f905b4477e28b1bf",
69
+        "img\/refresh.svg": "a95a19645bbde5e2146a3ec669950bc6029bfc6104886552eaeb4746733657ecbe4f9199e676ee2e9852ef0c5adb612d93e300e3fa9713fc611e1f8e7c1d5183",
70
+        "img\/reply.svg": "7e78973c9ef21f69c5138b036192a889350ba4333df42c3e343ab34ecc497574a601d5c6e2275846c9fd2adc525e209c006e9a957dff5d0c53fe1a69ee557e09",
71
+        "img\/sms_relentless.svg": "010ad7cee20f3a256a24bee2482b6798f042a3992c7df5d56ba803cca93552c3cda2a68d1772e67143ce45207b89d397e34ba6909f6b8515134db64e2c5497eb",
72
+        "img\/sms_relentless_dark.svg": "cbe97fe9fe636790ea0b415035cd78321ff53ec93ab1276d4ef609555592fa13d09b2037c20e06bbb9024fcfcc0ebb806c89572b08adcfe4ee9d06c6466b685a",
73
+        "img\/sms_relentless_delete_old_messages.png": "f8534ca040cd5e7d1bec0dcbd309742ff18e4cde8f978deaa2b50eeae8c810b1c4f605d941319e68353bb20a3b8fcf9e126d76e0b65a6176db530f8c2c9eae4a",
74
+        "img\/sms_relentless_exchanged_messages_popup.png": "7f64fb5e59222335a45fc93eb1ecf58e67635441d7768ecf3939dbee2ff3cb55f3e0f4c1b4e6b6e38744d86be65609ceca3e839538f185e62d98601218e16ee8",
75
+        "img\/sms_relentless_filter_messages_by_date_and_keyword.png": "d61047f211bfd6f51bb4222ec68fd13ec69af764964461f6e24194d99fab49c74c7e80c411c9be52f52e83357963a49fd7b2c0abe53dd60a145e5ef10993da26",
76
+        "img\/sms_relentless_grey.svg": "ffac810d151f22067a4ce4985b6c84ec6f6bbf7f1c0a8711ad4a374b838251d3681edfa8439e18c1fcb78160fcdfa20d4f08527a594c5080938aa611991acb2e",
77
+        "img\/sms_relentless_grouped_by_number.png": "fb34074ffba14dab82d4549162b4a447638c702b5e6c496f4bb7015b5456dbb2de919ec5c467c973f3299ef49b11e239a4ba4a7e78c4f306f49f11b6d78c19cd",
78
+        "img\/sms_relentless_logo.png": "bcc8bc7301aa9c4811ee875b5deb4ed21d9c7eca187970643962f0ae11a7483adc5257e26b307c41644dfef63ec82c4e61a221f133c62827e1d4418928c253c5",
79
+        "img\/sms_relentless_messages_to_from_popup.png": "a465c0c318bef7600610c345d3f88beee50bcfffa7b11986b1a8030f98797d73ab25f4eb1c773562566c0e0e02b69048f927a6da2a99e638f3ac09368b0ee0bb",
80
+        "img\/sms_relentless_received_messages.png": "c661692d3f1a766aac5e453a387f5d72cf374691010790f80087f35e78152652e963b937ff9f74bafc3513ae56561e4bae5409b5711cdd792aa09a10b7d17355",
81
+        "img\/sms_relentless_send_mass_sms.png": "277796f41a62a36683d9fc8f3b125dee29114be6e2cf6544c5023219c032f8ed2667ce02543b7550c0c72ccfc29f54d4a5e6d41d47c3dcbfa38eb8a48072c779",
82
+        "img\/sms_relentless_send_mms.png": "af7fa40084cb677f72f940585550c0a3515bec5989df70b56ed6e3a99d894b2fbc2a1faeb31135f897520d478f6aeb39ed5c3632a2375f4d8ca23a2b65a07474",
83
+        "img\/sms_relentless_send_sms.png": "75955a572f44c24c5e35a556de66d60f7af356d8c5b3a95134dc9165143326d285c4ec42a8154cc017fd4020d44a7df911461f00d2f3514cb2bbb6e519b206de",
84
+        "img\/sms_relentless_sent_messages.png": "ed145791dabad6478c05a9aa3a396e7a3422f64d90143b49a5df1a893f2279931df6945ba5b35b80291fd738066f4040dd468e4bee2acb630956af1d89c2a5ce",
85
+        "img\/user-grey.svg": "1128d96d0a4281591140149de57924e014a1d709ab97d351100c901569bbabc8c8834caf1a5932408b7918997547c323b8b9f4f410e1f03a4eeb89045bd95ff8",
86
+        "img\/user.svg": "d69cf4ee448f7ba5d46fcee24895e8705c297f078d943ecee1ea242b470c5e89318a5eb077c81e9c2a656f903c4e869298cc2935cf05a4a5f79e295dbf86df60",
87
+        "js\/adminsettings.js": "2bec7cde4e42442566f8c44c574651cd6862306b1ed13939a357d6bc5b45cbd9b2f9896d33c728d1045a422b8bbecae3e82d51020f9bdab72f5aa8b2ea363b4b",
88
+        "js\/arrowup.js": "819fd1975011e2819502cbe5bd006204122d5e73560f6f7fabe9c9f14c7086206e54c8b51e3b005820a1e2d9d29c9254ce2c1c8687285efc8daf3d667e51e738",
89
+        "js\/deleteoldsms.js": "7f967d97186690b1bf07a36efa4af3b593ef53c0efcecfb61d125aa15d077d5a6e69c703e3a0c0784475c5985272459c1fa9865395f7689838ecb37eb1b84ee0",
90
+        "js\/sendsms.js": "28334774a4bc5f5aa9e3c6a6b5e11267ea0299503d54f154916b403e4af413f80c866ab1271f73758e0f3e76c798eced3a7116ed72d254fec5d7a4ece3c3aa6e",
91
+        "js\/settings.js": "9ef1ca9719ecfbac27da8ad2bb1c0c22e19b56e61f098a84c9a0a00527ea06b68172023c7d58307193eab6a989d95f1a1c1a3dd76c67d5f84883e27220d067f4",
92
+        "js\/showsmstables.js": "f00ed0077d4b52481b2609ef4ffe7b72c72d81ea5a678d8b46bbe6ed8881aef75f9474cd7c5fed29f8ab97bf5521981049b860c00ae5ac0777f37358a309fd71",
93
+        "js\/tiff.js": "0c20e8d4f9f602ef497a26a50d8fd253abd55cf53afb0699638264550e931aba9b5b41c1ab0fdabee064046aab13b921c8d6988d76048f6c9795bed5aaac8aa7",
94
+        "js\/tiff.min.js": "c35f67b587aab62db7a3de662779a7b3264d70f5f856142cae88eadd1b477e474977f2b8c5ab31c16be002cb7ca9b52282e6de533b6fd79a02e6d33815919cb4",
95
+        "l10n\/en_GB.js": "5d918ab2b417bba0132c05ea1b0b186da73ad8e526c983998e3bece98891896835706d0512d96c84fd7ae17e22bea18fd7fb6942c7b344aa520efbfbf6edd600",
96
+        "l10n\/en_GB.json": "33b7ce5a3f4a6e59355f3581740594e87e974506e7830b528757e8d6c109c46cd67e9adeab2ee8e65073f3bbef45199564c89d84f85802b08ce945ca24106ee4",
97
+        "l10n\/en_US.js": "5d918ab2b417bba0132c05ea1b0b186da73ad8e526c983998e3bece98891896835706d0512d96c84fd7ae17e22bea18fd7fb6942c7b344aa520efbfbf6edd600",
98
+        "l10n\/en_US.json": "33b7ce5a3f4a6e59355f3581740594e87e974506e7830b528757e8d6c109c46cd67e9adeab2ee8e65073f3bbef45199564c89d84f85802b08ce945ca24106ee4",
99
+        "lib\/AppConfig.php": "c52269913ee80151397520bbebe4f0c725526910ce18f8717ba1c8016a5f4dcdc9a6f9350bc56c8a6b607ea342ee0cbe0f65afd9f03c31902190c008f41c9672",
100
+        "lib\/AppInfo\/Application.php": "7a4b185c9d8c130f7d3d804cd92099d38925e37b910f8bc2c433e3f0156f5631e2f952c7ece34f25e7139391f03158f3df1a3f60662d28699ecfbd89965b8cc7",
101
+        "lib\/Controller\/AuthorApiController.php": "0e88135b711d69751b22ca8208a2d9ae3e63f57fa57458771244c42b1e3c2fce66098b48222df105069948ff0caf6564ade04385c5663e6f74993f34b259d4c2",
102
+        "lib\/Controller\/PageController.php": "07da5883ea41b3f7993a3e358a03a3db592a30fa81ea1ed0f26a234fcc3824a243316b76824fb9a24f40304ae945c48118dd4bed1f0d2f6993e479ab2c1dcab6",
103
+        "lib\/Controller\/SmsrelentlessController.php": "b6c6dd70e18865830cc9bb27b10d35997fa5f30f085d0d043bf907c943d50955f0f5e7d52e5a5cc6a7f04f60392a643e613696c8406c11238ad6886298810fe0",
104
+        "lib\/Migration\/Version100Date20211106192148.php": "96b9793edf72598c0330aed9f0c6c27ebf02287bd84b6b7a0285fc784bdf6442b560bc5dd2e55b464bb384a24831ae17d7ea144b0896d9b11cb82a27fbf602ff",
105
+        "lib\/Migration\/Version106Date20220813144231.php": "33f1f2953e038350e37c670462cc79fa48ab3a72b595f5fce970fdcc6d7eefa3401722da4cc532c7114d0c8aab7fbf0281afb374a695d5c1c1b311c30f64c9b8",
106
+        "lib\/Migration\/Version108Date20220823132408.php": "5d94388496cd88cec1dbbe67a2e9d6ae6fd5db7ed42d4bc737710d3c51ad4d8ad29d53a62739e05e2986e2d4c96374f4660a53dd7b7808d30e44e5c605105971",
107
+        "lib\/Migration\/Version114Date20221202011625.php": "920ee001204afad537bf2b7dbdb7c78e95b4ad0c79f5f693bd56347a1df91045cd83348f99e2ad714df2a735cf1a1d85aeb385c675ef6e90eed26f18b0b7d344",
108
+        "lib\/Migration\/Version116Date20230508212745.php": "556137e5580eb33beffbf6198447581b71de677c2a2561508c0d7f2f51e3ab7ca9feb0715b994a2753616838ad732e01e6cacbcfb521eaf559fb40200f0594fd",
109
+        "lib\/Migration\/Version117Date20230509183517.php": "dd289fe9ed0947b1174390dbd921ee696b50af9bdb360585376a6d5334e390dbcae65833c13c332732309f8fbaf8d83d047df6accb8118c9e4fdde8370db7b18",
110
+        "lib\/Migration\/Version118Date20230509194216.php": "165c805c76bedec7f48811fb4a83685287daa07660cf369b952ed2dbd9a6c0bf1bee2b78d3642478acc37ebd597f0df7d9eb7035c047acfc69146b664afdd286",
111
+        "lib\/Migration\/Version120Date20230520072431.php": "322eda5d5112d5e52a466c91ba02c40f1e77231c627c155e00cf6a924fbe16b4d6cee69978b0b3789c5daa03dfdb3fbf0f33b42fd40811aa366c7a227db4c31e",
112
+        "lib\/Migration\/Version121Date20230523201743.php": "d4f5e1520213a4f0a1d74c6faa1da8a4988dacf8d3f3c7aa8bb932744789a366e1758e2a9be14c7768ca7114ac0e7588ad53b7a9ad6bc1a45da5ef22806126b4",
113
+        "lib\/Migration\/Version123Date20230524182156.php": "7bc033f8852ac9b79e15bea2e13421c603acfcc443304bd36cb0f015991a0816b90950e6b45a84ebe5e03e92c4604e3473dbc90bd72810166a6a20f97eec546c",
114
+        "lib\/Migration\/Version125Date20230603224815.php": "430f98229247d0ca7e3c96f44d810e84a04a9b971c42f645eaaad08b213ec87506b4253c013b47b4c06d7f595aad414a17e3a9078b0fac9c9ed0d980bc39b4d9",
115
+        "lib\/Notification\/Notifier.php": "87389f3cc99cd6e54357f7659cea534bddbefb9912150ccc9c38ee71606aed37831bae0dad3670156813ce50493dff9b2e7a4d838dac043bf9c7844879dd9f44",
116
+        "lib\/Service\/SmsrelentlessService.php": "4dcf695c13097155c52c661ac456255f3955627df4bc571d39549c3c76b6a05c45014fe4ed96cf6114c87db3085cb54e918d06c89f58cf5626052c6510601f60",
117
+        "lib\/Settings\/Admin.php": "e4e5f6e8fc5748b11c90b676326dc228fbc52fe1f77a07e7b7460c6dbf2a8013b5e0b0f9084aac3f941478ae6ae75c47be17df3d229d8a998363b9a1d289f405",
118
+        "lib\/Settings\/AdminSection.php": "1c8fb26e8347d67c69af385b0aa33be2764135a4672b872b6c6d41bef3eac6733ca2796c393c8ff334ff56accd7ed4d4c38ca50baff2360d8d8be02b9f8a7c08",
119
+        "lib\/Settings\/Personal.php": "db6fc80342c865841edcae7d2cce5e50d04473a9ac47e26c2daabce493bbb1bbb922bbe9eb7353d759965506dbf1b4c99ce8e9c93f5c43769e1064cba19f95dd",
120
+        "lib\/Settings\/PersonalSection.php": "e65e1a8939e3818e7cd295ce86581a603b1e2fedb732ce51ed1fce62cb61ebae9b93742b1d923f08e14cdc6bd5cf2818d47917321e0aa1736932830c05a81682",
121
+        "providers\/Flowroute\/readme.txt": "25f08fea0f30105e850dbf07bb7a9351e47883640dd87d26981cf50f02ab5af8ef59dbd1fbe5e4127c0e019e13ce036f9414401b9d3f3a924c4125c291e53446",
122
+        "providers\/Plivo\/composer.json": "2d8def5ce9444d4bfe4ff32e008e6aeec924efd40e0cb61f3a72585fc4cf89e7b62970e796d56ebdd5d2f6378f39d3ad540ffdd02c31e2c4daae9b760482619e",
123
+        "providers\/Plivo\/composer.lock": "d9a2b89de334156eaded5ca4cdaee9b53c05e5d78584faf000a141692225a1bf6a1dd9ea6259bee2158ca7669c4000b3c366703fcd1f55a835278aa9f653c7c1",
124
+        "providers\/Plivo\/vendor\/autoload.php": "597387bcc320be22e8b0060c456fc745d8e3fbb06cd1cfbdf093b0ee52aa30cb7e4c31d6d8c38450f52387c0cd5f9d0483e3976611d96f391f5651b71d2095fc",
125
+        "providers\/Plivo\/vendor\/composer\/ClassLoader.php": "2b6fa585122ace1ba816410acbd8372cb75329917aae6363dbad48e396cca581452616e1386a2e445a8fbb0e461b988279103f4f89adf704bce7726f761abf0e",
126
+        "providers\/Plivo\/vendor\/composer\/InstalledVersions.php": "62b61a5303337c975905fa55addb6b1157034fecaa5fb3b5bad251ef7fa1b1ba840308f64fd2e1244d2098b7f87431e35939a153298530cdbd82f81b99cabaa2",
127
+        "providers\/Plivo\/vendor\/composer\/LICENSE": "f3bb64009f41a425df5a9bbab53490f0eb9b74fa8d6aaa2f57efb928edc4ffff330260666edeaa04a91fed708c3663371cf01b284f3a08d6698aaef7a23f355a",
128
+        "providers\/Plivo\/vendor\/composer\/autoload_classmap.php": "1844f7843fdaabef42d1d9e4c09f92f51a5ad45b26d44b34a2aa9202a183489239a0f5ee6502f302b169ccfa3a4bea7308771ca02d3bad96095b5b2194a65377",
129
+        "providers\/Plivo\/vendor\/composer\/autoload_files.php": "c0eaa5b28b83539deb67f24a98ebff5ac0483f9117a72d5cbba02e26f1f18cd4c93ebc23786047ee61eeef11961c55ae6cd4d4096a16f18a19d2af49a47820bb",
130
+        "providers\/Plivo\/vendor\/composer\/autoload_namespaces.php": "0ac6bde683c053d62b7024686ecced083ca1a326d5346a248b1a058ac74a5af71d515d311ce76df799a518027f734b80b9e7f6e8022a9556c0f24ce90240d822",
131
+        "providers\/Plivo\/vendor\/composer\/autoload_psr4.php": "91bffab80b2ba961f206bf3008a7380f81b7cac7b09afe4bcd2d4787d8b4c839ffe2a67442e04010918631b1c76b66304e7d7bce76371e741b444f2ef527355f",
132
+        "providers\/Plivo\/vendor\/composer\/autoload_real.php": "2ff5b7a817e3acbf585fe506b11345f6f3ab0f21c0ee96c67037f09de6130126d4c0e728ea22508192787a451322369197610726f96f32a12f91b7e48cee86a1",
133
+        "providers\/Plivo\/vendor\/composer\/autoload_static.php": "4fdf5e58875a6dc6bab4aafefd254cf3504f78feecdeda5fb431a56f84b37d2cf8fab8e233ecaadc2667f1be492ded264423f3200e1095aa507172b0dad3f60b",
134
+        "providers\/Plivo\/vendor\/composer\/installed.json": "0365a8c8cb376a0b3ca8cdf63147012435d2488c5ab585db3f9e0d926b588887992c1c8cfe07ac187f5f72afa9a3db936c6885d443db444147d7c87ff0f3084b",
135
+        "providers\/Plivo\/vendor\/composer\/installed.php": "923c151f9cca2fe9489aa4cfe04053d20e1923dfb388cc6aea2486557d77284fe6d9d2a77a7acd94496237465f03b712166a2f2f5837ab13bbb7f0aed8d52552",
136
+        "providers\/Plivo\/vendor\/composer\/platform_check.php": "49e79f2c7c1c32796dfef02f64feda4fc8fc5aa05197465fba579997d332cb9dfcad3511efbb34a32a2b2c8d8901be4ca39867026b2471fb17999ba840c3c340",
137
+        "providers\/Plivo\/vendor\/firebase\/php-jwt\/LICENSE": "6f6cbdccc57476f5386f5336c1efa105b4116760a329ae2fedb30fabe1f34f7c1a3073e7f711e07284c8b57b3b8ab6dcb38ba8d71f6835ac024ad524ad658f94",
138
+        "providers\/Plivo\/vendor\/firebase\/php-jwt\/README.md": "8f3226941b2d676aa31b66f5a38f6fa78a4073ec7ea6d6a3aaf0209072cbc8df2ebee65f64460e350f499f8448542443f9859db75f927fcbe70f1f59384e1a70",
139
+        "providers\/Plivo\/vendor\/firebase\/php-jwt\/composer.json": "82e17e8f606504476175a3c5116bff37c3d58faf5fbd9590cc4047f787b6aae79a84c660bf2e8dca453b998926dec84e6d5bca5d81b6817e09d99c6774cd04e3",
140
+        "providers\/Plivo\/vendor\/firebase\/php-jwt\/src\/BeforeValidException.php": "8aac5fb14b6d94bcf048a1cd4935af09c25183e74eaad8f2db19902f1f017a33261707b12be8080d5a662bd01d997d4d5805cfcdf3127f447feb6ec6b971f563",
141
+        "providers\/Plivo\/vendor\/firebase\/php-jwt\/src\/ExpiredException.php": "7cf0ec0dd02717f5152abf5c01979526fbb89f04c01802915745097c8606e432b41a4de5bf92b7cd1543b37a939ce8e133b7622f29cc48798c321654dfb94a3a",
142
+        "providers\/Plivo\/vendor\/firebase\/php-jwt\/src\/JWK.php": "3f134e7503b44f882a92a699dc4cbb4d7415bb93526438e4395cbe877ab2da700d3ef7a8c037d7d2ffabb84e20165f93e338bb32c2bad9426e63708da4f842e3",
143
+        "providers\/Plivo\/vendor\/firebase\/php-jwt\/src\/JWT.php": "9e5e21477b0495c3cc6fdff79d9b6acc136c0187d732cfa4ea438d9802be4642c2fe0e76b288238fa29bb0a8e37e31d57546d548519436dc49de467cfa704ed1",
144
+        "providers\/Plivo\/vendor\/firebase\/php-jwt\/src\/SignatureInvalidException.php": "0c00a3a08bf4fc2eb675fe8ad3d8cb732a82a8f88d37dba5e510ec798a49342b8089098dfae1f1ef1906e62a4b8e465fb7b4c6d17c9c0d8e66ba33ab271e5c88",
145
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/CHANGELOG.md": "f99b50bf2d30b8e842d2db14a28068364b330b402db7bb1fe87fd4e1e3a9009edb05a519a4c35be68ba99c4c334680ff52ff0bebb84ab99de8814959d34e9c90",
146
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/LICENSE": "ed4199d68a412c0515450194549bac0c6a6d838b3950c036bff6c97457fade76fc914d11bf008321b3e2622ef0a3c14da0bee2f109529cfa5a5fdc11fc6452ae",
147
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/README.md": "dcb463420d7da1805c5cc020988f60c15fc5623a2493556ba4bba63d431c21f0584c1e65f27bf0a4c7962074aacf40d763981f878a10e12327cff9b89204ae57",
148
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/UPGRADING.md": "4f2540329c6e06bc0f05a574b0ce5d77ac3f7fa4032371665dce41a766cd28ee12a0b7803ca507faf005f6a3ec5107a60978b69a4fede8bc562333b736576f55",
149
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/composer.json": "8746b3c8b0fcf0ede926b6a60b4d34e7a3e0e9664aef67b34e7e238c25179d22ce599e8c4a580e9f3d73122a0c9b373b87526874c947878ab339e662b03c150d",
150
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/BodySummarizer.php": "649dbacf3be500e6171769c18b1eec1888bfe831dcef8464ebce4461d5fd337c60a200d3c89f9bd7c2714c0567e5e220b31ec2970e7a013f914123824ea324a8",
151
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/BodySummarizerInterface.php": "d0a1271ad03136dca5752c0dfaa7fa678c6fb03890be828780201cd9fbdc8169ff4fd7c17867cf82ef1672ecf0e9f871f682ade1a8ff37e7b84d24c572e1b962",
152
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Client.php": "8fc98c3490398476a81f660a0dda38306acedaab2f662f762881c11f98bab8b5194ea6c05477bfb2676848f54229087df8fac0e6aacec6499f2313e09b940ea4",
153
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/ClientInterface.php": "d1ab53fbb1b6695e6537050421b3a749a7b34b3184015da449a1c76987fd6944bcc1c4cca7247b98b338926af89fa477f9be4897e6316cefb2c1656520c3ea2d",
154
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/ClientTrait.php": "ec1e95b2f1c56e4443c6fcf695ede88e02f1129b7027287f968a0ef2f7debb7533ce2371a27b5ee07f78818786b0a6d1b3d2f8ce28f44f4a8f7e275bbd1b6727",
155
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Cookie\/CookieJar.php": "3fa0964d59cbba956bb47fe103f02e4707a2a6ebe5a60dd5c33f59402a090b6f0110c2795b52f961f6ddf338567382e1248f1e27bf2d0e2033a43efd15e2705c",
156
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Cookie\/CookieJarInterface.php": "a3c6b9138e285d6c6b7521dc7059a04e1c80bc0de7a925c93ecde6c95cb7fadab91ee05e9594d6b891872a557a1b98fc6717ca1d1d46e00992c9cdcdb934a71a",
157
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Cookie\/FileCookieJar.php": "35111b9229059f54b537baec960b8480d5e3caf2961ca3e7e45de3fa5ad5bd0b0a91c2c4231f6386a4966bf9d97aa308a7e444000dae9b21f8c58b6832dee68b",
158
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Cookie\/SessionCookieJar.php": "9cf11d2908913a7555e9e190e6a4ffb0f0e26ddb3d141faeb0e7bafaa6f0b3259119ce6febb6d01b5a7f5a3193f72a099f08ea45b5955bdc7120bfd4857879a6",
159
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Cookie\/SetCookie.php": "7d6c4c14c9d652c27da23923cb577fa999e24f81c1b82f13fa329da3eda3373ba7a832b72d793d924fda9d6a3a02cb39db97e49e17feab3ecc93f395e614d44b",
160
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Exception\/BadResponseException.php": "4b7a572e9796b8043d56dc6650709e59bde237b3bacab1206b807485cc850ec99dde86892696d73121c345f1c88a9d2e879dc91be2cd438defe2609e521011b4",
161
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Exception\/ClientException.php": "0011418b0cd07eff70f99645a008c30e9a6a90b9ec396e8cf70ffc281140054bf313eba40d97ed34b59e04e5fd6712330d34268353493d112b8029c1c42e5046",
162
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Exception\/ConnectException.php": "bca929720f3f8f4484899b18b40f5d4d40ebc4105b316679a9349b97200c74ad2ae6408e2362b4639bcc4a3150fe63ca1e08bc1b159c51744d76466c41203c83",
163
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Exception\/GuzzleException.php": "444ae2d2847cc99d9a3895e2d23f0abe59bf0eae279809f7a4983e34098ee0a0ad7408d251df821c4029621060aff1ea0dc890615535ea4368e5796151a767cb",
164
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Exception\/InvalidArgumentException.php": "2647ca6c297960b01b29435db7522ece3a997def6b3af71e26113abd43ca4493501c130e7767b845db0e723f9955164ce33664d49bd67a45bd29d270a66e0e3b",
165
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Exception\/RequestException.php": "b0b3163e4eb96ace90c03faf9406b89ae21c7cd5fcabe78035d5d9e1e7ba0ff72bcf31b877ce2d5cd38e940cf0ead52659c3637dfa3567745fb46a11cc9de31a",
166
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Exception\/ServerException.php": "9cab599fd913d8f0bb1b8f448932ae0b5c5b1cd7d83fc4e1e4c13fec29b0a849a5385a6c40183b8dc58404ed020227b9ea4483ac89d135c6c82e4c7985604044",
167
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Exception\/TooManyRedirectsException.php": "99c4e6f908a5dc03939ca083232cf48cecd742616e00839ae25ca173ec458e6da10be2690b98588b76e0f3c24ee7f35c09ed5c848f9348c639c414aecedf6c2d",
168
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Exception\/TransferException.php": "665600a8617328454b70a43fbb72c81ea196584dc22e10324b3c861974aa55ff5867b30b86a65123f1bd4fece75049a9f6c4bfeef5410a9f29913d350358178b",
169
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Handler\/CurlFactory.php": "1dd7a848ab73a8db9354fa2f0461a995320ccb677b29464812a484730a85f405d8b6c9b39783881b299328cb8f99e67b9d959b00672bf60a4559b136fdae8119",
170
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Handler\/CurlFactoryInterface.php": "0d063ee120e0ff6042a58d29b109bf6573494d427e20184a4d448ef31fe0cb0cedd60bb47c7289d5f6e1027413a28f9f57921823605d4f11086da5c9be8c0902",
171
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Handler\/CurlHandler.php": "ae0388a0146bd0cfff1c597570f58acec92876d3d01298e1988dabc717ffd76895b45359cafd7bbc62ca1fb5e7e96fdab70697a2cb469c8c5d0298aef12e44e9",
172
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Handler\/CurlMultiHandler.php": "d03d4a374657d671554d06e5622eef0d1b06d0a39a9167ec6f894ee28af31defe1d4306f937376cf5997c1421643e08e757880e45a1c9c10959c967022160f96",
173
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Handler\/EasyHandle.php": "7438c054921687fcc4bea6ef6b49aae15651a95cced2cf73ffe46bb15abdf924afdd4784e8d2121ca851934fafce69d3661f1a792e6f2352cc5f5c1803ace3de",
174
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Handler\/MockHandler.php": "0d8e2e43e0b8079f20de6b86c241afdc83bb5bcdc5a91ac47084ffdf2a3904a79e5db6fbafa4715785ded8fb90dd8fc418aa05bc0fa8c52220555720f81e827e",
175
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Handler\/Proxy.php": "9caf11da430da351eff6e9be0a1e8e029bce41283a6d8215e2215d6abbd3f021018564d1e6717f65f280703d5e4dab78a2b522042d63c5a9cfd019b0bb0aa4f9",
176
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Handler\/StreamHandler.php": "e45738ddf123fa57df229fccc94622b9a2ad5dd9bf6f65d24756239b587937bac9b7a37220e65c55f2abbd7159bc16ac785893d4aac5c192e6422af4fc4f1222",
177
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/HandlerStack.php": "900b9df966c3c1f3aadc45bd42a81e8ab153c74d0eb90cb3c8b2f9d46115353f45e5bcaf0eaba1281ab98dffb3d136a0c0fa0058fe73d906eebb741b273c150a",
178
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/MessageFormatter.php": "99460bb55080cbc7e08eb6f1b3c8abc71c38cd5d6e04422bdf8144ca554e7d7de29fc5d5dbf7aab5f7440c4ec9d779d684f8194f90139a1ece1bb086f14e3cc5",
179
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/MessageFormatterInterface.php": "609462659ab00682e7fdd1bb56aed5ad3cf54a2ee3b641623175b9dca0136b4e1cbd3cb0541526ed86d05174a18a9333ba52a9e50f4c05ece55cdc636815e385",
180
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Middleware.php": "42fea3a5bff7eb363a7af1f85a21a9322aee8d7e343295209815739f8bbd5dc372f14e3e8c5454f7650a3b9d802ca25fa069d64fa16b0f5d4d48c3d626ba3527",
181
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Pool.php": "a6d17779976754d7c16127680ae32f8e45ed54c3ef4a2a6364a1e4100ce732b8494b2848977ba6b2bf6fd296d7a54b30a2f021cba5a88ddd0d1e0f3a3712b9cd",
182
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/PrepareBodyMiddleware.php": "268182133f0e484b56fa23193d20def23166eeabcc2fd9626b17cbc20188d76549adaa4c768df695b787d31b2eb26a5316f0a3531ad3ed022aaddf0574fc2ac8",
183
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/RedirectMiddleware.php": "38bbd75b92a6764b0502cea113e222d5cce7abe53c7ea0c01e441fbbb6b0514f2f54388ff14d459ed611925eaf9b48c0aee1b1fb41892d07d1b260734a1d2afb",
184
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/RequestOptions.php": "239e524c17dadb296efbd8b9ba82b94ddfcd90c83377fe4bf2890dae5dbc62f58032205274575f14bb2e745112ee59bb559936b992d9a227dec00f5b2e32c03d",
185
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/RetryMiddleware.php": "01236bb2265c0761148ccdda7d3668c10f9539119bcdcc36f10d077ca32013ca0169938d6f4bd0703018f38fac53b2bd34e873a07d8e5287c26fb64b7284dfe8",
186
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/TransferStats.php": "4fe882f7f801ba55a3934e00d81aef09edd092eadef498f3bb424f7f32dc8d568940806a9d8e80b1b6c768cffd41ecf0814a0bb366195b2400f08a8e310a8c19",
187
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/Utils.php": "c3e52199a0a1755f52b6902b78d008de10e33ff8b93242a709d7a12e8c05c1c2c09c2874439606f0f3ce6b353bbe3b8ac385a236307b428fbccc078e1959c7c1",
188
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/functions.php": "f45c62cbff0de0255f4f149ee3e93c52bdae44492d43c9314a48d8a793ef028f8a8f704a2b28c5b84491687c3b682e9f85c4ea61bf63de56c6cc6a4ba8081ae8",
189
+        "providers\/Plivo\/vendor\/guzzlehttp\/guzzle\/src\/functions_include.php": "058a92f735b5848dc18be383478bd1659a0b578beba1dce5a1ef3b7a0b6b5f643e2f222dd72ed09ec72e8a5c5c9fae9757979f7c4016c5654bcce9d7dfd42d37",
190
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/.php_cs.dist": "4d42019074dff2a1a5bebfa51568de254e5128b88ad309bbed5e8348ef213035cf3a4da66ae6753354a0dcf6ccc0001bfafa2453028bffb3548f2ede26c30177",
191
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/CHANGELOG.md": "0c021cdbfea029de4a20511445e64d0d6c35400025f1361cc913754adce9b2dc16efeac12cbdd489ffcbb76e95f91108dcc557fb9dfdacc99e5bb98f20b55b43",
192
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/LICENSE": "9699a00cb2c5ebf932515e1232b83f79c944f8100881df096de09e25222fa01173bf24d9e083db7d9605d1e4f5dfa14c726aed52c0fc2499643714a9e64c4cc5",
193
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/Makefile": "a350f48cbb68a05cd07f787522193851f9cdc6b2643e34eb502fe261387d97e5ceb8499a22b20ff2fec5d7352ff239a952fa3b129ba3407fae871683d65e9bbe",
194
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/README.md": "1ea705deca28d726cc65d0f55db886545b9f5309ccc085bb482f627a0ddb5f8609d6635f65686e3e26b9a23cb8bf03b3e8d02a26d25eaf8195dc6c2cc93be0bf",
195
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/composer.json": "74a66451bfa422f886266ff300b4ca5f7b0ed62199293635671718caced457f6eab5b8c9467f24e999762f56368fb35742dc0adaa35a233d32c72783112a6c50",
196
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/phpstan-baseline.neon": "916bcb7d298578dfc4770a3c49ee558eef9a20dbff8e3d097506379c8680917b08a8f96f2b59d96b1b56b1ccf4a5478c868a2da504a1935956db70f51528494f",
197
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/phpstan.neon.dist": "ddfcf700a47b916ed1072c979f13d6d51327c9bc389c49ad264ba23279b01151b90aaeef0a81a13eafd40115d407ceaf471c20a61b47f1b4796f8adf3c1ad218",
198
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/psalm.xml": "52c09c8b7daf6d90db16a5ce50b7a8ce15c1ffa02265fd1d4b117cf717331475245bfd4f2dc45d3990d67333988a11081e13ebf783bca8854a1df9c1b0cc9cfa",
199
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/AggregateException.php": "97b6e46aa16ad26a2b714129b83d933cba02ec7afcda514ef67c5027cf5b9b93a5d7cbc72560307adf294179a4d7b86a6da9caa835bcf5be17e398501bb88fba",
200
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/CancellationException.php": "b958ade84fa4e6c7a7efed66dfb6a7f83b9743a9ac6581276eb99bcab667ebcdfea92a9bb114d086c5831d26abf7f6ec3e03254067e2b29abaec995e28cbce8d",
201
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/Coroutine.php": "d1c789e47536cf8c9db52acf791bc6de0d61790856a78f0cf6a9c98a1628d2c42cdf9e5e94e05fea802a099bd3ae3c65b790f2fb5a342bd130654c4cfb4fcf07",
202
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/Create.php": "a3651bfb1f458675c58397460c8534c2819404fc89422467f119de4cd80147177e462a9965bde6a75e74e4354c3c6935cebe1891e6a53a1bb26383f22e9dbccc",
203
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/Each.php": "e57ea03f69e1680b56676ca1057e8defe7eaefeffb456b636f3cb32295eb6be36073c7a9a621f656c40d5661c0fbfaa3a632961d82ec7f116ab7fb5aa9db196a",
204
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/EachPromise.php": "c7d79757cca80b7352ffd12a6743a515255e4a89764f65067035b16fe39c09b6dabb833aec3fad3cb741aefd778f620202caf79e98b86095c6b252f4e555bbcd",
205
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/FulfilledPromise.php": "952eac7f7cc150394dedb72ac97e624db8156ecd41c8afc382ed0cf8e4c2c6c94879b7ddf6ff76608c6a95ef30ee136f44fa03ab9f5ce4b7fa01bcd0c7e7574f",
206
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/Is.php": "894b3c475b5a828e442745507fae4b35bf394fc9fc93905258f9736a67112c321b1f3e353f8f3fb84e8778bff67bd9d27a6fd5ab6dab3218a30d82b8fd14ae0a",
207
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/Promise.php": "bbfba94124c36b87941e1548162708a5543f156d64a8f465f78397a02bdc34c764b60f73d5e77a3a2e48727f4cbd91f60b9c1cd47c0fe205994c4ffdadb99c5c",
208
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/PromiseInterface.php": "8d8d1d9e04d75ceb6d3e656794fa93170a3b1f9c2dd3b53ba6b4dd3e599f880599cab0b1ec15eaedc1b26d09d6c535dc9fe92802ea8ab1ed5927ee8cda7cb9b3",
209
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/PromisorInterface.php": "1058176a68078d02c288528673176648e38d2b8093e67b0984d73ebc710c0bda7019689303b1f064726cbbfc9382e733443e9d5443a77715ba40bb798ac79e04",
210
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/RejectedPromise.php": "53914a46ca238b8d079333f9c71180aed015a77bf765cd2793790dde21fa7fcf67dcedc5c797a1d7caa06d788bd9631628712861b1185f3cef9aa63260aff0cd",
211
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/RejectionException.php": "6dae5e0b0b47538e5c94a3d4890623e3ec41be8198a1d00ca84d77f32b9d074cae13e25ea90e2af614e802aa28271def466e5ab623c187df49425cdfc5bc05f3",
212
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/TaskQueue.php": "431a73762758dd08406a41587115a11e61f921cc01997ea71efd803b2e3882b9cb7f6d89694e06ecd2992f2bffa38ba55d631dba7fabfce3b84d68dd4913a02f",
213
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/TaskQueueInterface.php": "f0b2b36ffb75337c590f82d3d7d19a4caa4eecd6003c0bec7ef935604dfe35f4e960f49da7115b3b3cf65c61d04bdf258310ae1b4f4b6cff4eb09f52626adc11",
214
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/Utils.php": "9bb1eebf4d0f43bc47cda6f70f08b3fde962355075bb87d40ec75d41b552c262a79023a72e2e8d776b6d0db1ef1d412e398ae16d96476aa5c72afbdab9d5a9fc",
215
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/functions.php": "b756c2bce2557e9c6b8db2ebfb026354418c93f54169d1e9249478532bb02e1062c30e14060a3bae195098c74deb4f7580943aca944a162615c44139acfa7861",
216
+        "providers\/Plivo\/vendor\/guzzlehttp\/promises\/src\/functions_include.php": "17063296fca8aa655e7d5267abcf04051cd58fab5a7ff02530e1becb5002306252d5ec55c82461cc51f62c881c51dd80da53ed9d90640b6d0dd56d5e8f819022",
217
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/CHANGELOG.md": "0540da857957565d77741b846932c739e0883751660d561b2a0990a7cec8188573c2d31400cf9f125d1b6eab482455d19f30a8363354341e3c54088a0c418e7a",
218
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/LICENSE": "5d25479f1c9c0b802e2944e029d7011f9b9d3f7b37f7c12eb77321ba448414f79b0b254c0846d2e5e1b8826bed85d7c377803a4ad5d5afb288f220c761822043",
219
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/README.md": "b9759cedfe2199b2477e95fc0770f35ed6a4a18c6e6b4b4e30a20f75945505dcc76834e20e61e3aed90fd790c677536bb43f593de8a68558a200000eca8d0bdc",
220
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/composer.json": "27ad0b2937068e201fd0312a7dcfba706a8a318ca4e09d80f29611803bfb28d48433ba5f2b452da8bd76fdfe2b9f073f81f2e2cd6fc3e4223b20637408f6c836",
221
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/AppendStream.php": "d94d352d6f640589e84fe2aae0bd20880c4d6e897a29a47d4dffe6aed4d852fd5df274db2e68124c7f15b84d6f4fc684873fd03d003db39caa61b024b053e396",
222
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/BufferStream.php": "eee7de67e107fb33e8f97949743726a30e8201fd874490fc93870a410b1e0e3a059b75dda972b3a844b8c739b9b768a73d65c61bf8030589d0d787aa26f70e8e",
223
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/CachingStream.php": "e9b1e3d5e2bfae610677b9d216643be7b2e8b97cf661bc5c67631f994df0dc88a9a9ac7bb9dd68fcfd2ed343cadbbae227a8a46baa3b732733497e24f1338be7",
224
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/DroppingStream.php": "63db37354a2eba98b768f0929ee9a4ffbce1647a79cc9aee5e994cb693e53cfdb9f7a0fc4c32b68b46c64b39438b1c53a30532f5f8fb442f07062a6b4861e39e",
225
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/FnStream.php": "bd25e2ca8ea196a5e876c5b9d01c6f2a27b206f7ba05d047cb46476c52191a594f1280c7435b6429e4ea411fe5fc01a2388e213df26d27c5ae5094a0d0f2d619",
226
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/Header.php": "27014466522ffca93b4a3da6e96a5e8501f11691f7642a2e5091f3d0c1b146789ea41fd7fa1e3948f264926e7b764b557b1b564a95a7b5cd56c17c8ddfb6b7d1",
227
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/InflateStream.php": "e19b69eb2f1d2f8782f7285414095ea810f746d02a447badef5ec7185623235f17f5689682b185ba124e71a19b0dcf3d36b64894d183e25edf27f1d1e34c1c0f",
228
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/LazyOpenStream.php": "8c262a2c574767d61a9eb084d6848bef77d047601ec5688a90fbc012d5349d9b4ea188444fe509c8ffbcbf6ecdfd839a461505ed3746b6e1c5283860f7fd4a2d",
229
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/LimitStream.php": "81a43b1ec261207c1a52faac2c5099a429e43083bbe0c9099f447859d2ea12a45d30e7f0b5a994696084b3c59401bc28564685c432644caf6a9d8b9669404c91",
230
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/Message.php": "4e9b857c226b57e2d2faea27643d6f213bba65bf158889a528fd684cf1acce6f480805d04da39a32fbd25be9fc51c4f1a3c1bbc9e92f3707fcf33a120b2aa256",
231
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/MessageTrait.php": "367bacfe383be2caeb0064fe80e5f6b138050dd4189bb65ff82d8f86d0b1b604090b61a2473d7e80c733c395cb893fa9eb2dad0a63a353c19da32e940a1de01a",
232
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/MimeType.php": "98467f19beca7d4239963d4d91a7896d44539c13a5c694c4aa8ec68f3b57031367d1cddff19fb51c389393cd1402a574c9afdc448766c8807228d726796d2e9c",
233
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/MultipartStream.php": "5bbb8f71ad1f2f421eac8c0d40c3a18372516e8ab8f2bb3f917871bec9aef0eafbef930902084aa3ca64a8ae930edb1f2befe1e6b49dec387ea239c5c475c099",
234
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/NoSeekStream.php": "f003ec01ce15f5dd56200396a84a2c94a1b134d320230983ef91efb1abc770827018894a1b8d1f3a68c2aa481e8f0bfbaec4c568d0b0fe251a61f76ee22efa38",
235
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/PumpStream.php": "15192b83cabf910107b30bde59197618e524aece85f9d396dcd8459174fe50a1cb82de51e5225b8e6ea64fbeec7b4d94f035bba2ed893efebb660105021fc98d",
236
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/Query.php": "8ace1f141c08396103431803ed35e1bf247fdf7f7c7b727ca63e58a1cfdd7e353a6c266c8a7bdbb863e5d290414ea630bbe37f55f275cc5a5b946b794ce01740",
237
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/Request.php": "e0582b7b304fddcd81a214bd8ecd4db301479eddec3084b18b822f5e22fbc9d1fe3f3d2f6ba52959619dfbd0e98db304b2400e67675fca41f470ca6126085da2",
238
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/Response.php": "32524250d58fba5c152472ed37160a9aba92c586c9b2a6bc55f97134e490636189bc8708fd8ca4145478a5bb20ea51b5bc417fa8d61ab08fab3479a04c4506e2",
239
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/Rfc7230.php": "beb2f85fd643c3cdb3c92b401c4df1385bc6fcddf7dfbfbed88396611438720a1b86ecb9b913472ca8edf1bd9782a3692b2138195fb366ac1b8a7f1b0b81d390",
240
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/ServerRequest.php": "f3fead87c83ce2f73b2890ec79cc620f319c59ebc41a041e4b70b38bb1e412c928fd7ff0f10d96fffed841cdc1ef2874d5ddb0e7cfbbad3ffa81ce7484365c05",
241
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/Stream.php": "7d108ed410ba89cad35637f837d97f7ef53c43a4666d0502e3e7dc4aad06e7bc365f311961d2bb8768faf9d9c6d64d09e080aa9bc65638084a127e7a563acbbb",
242
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/StreamDecoratorTrait.php": "e1b90e1d97a4a1ed1eb1552bcaa9011f79733167b7e5e3f2af8cfdc54adf0d64a414ed630ec74418020fd8ecc7c75e43db6bbe0fdb9ec6d3ea928bd3bb3f4561",
243
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/StreamWrapper.php": "7ed1833a91a1f56b743172192b7ce4399928b261eddba6bdcdde958bbeedeadcaadff4fe5b3913dad0e4b2cd9346f47b43849cc65bbdb839c9d9e4b586638eef",
244
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/UploadedFile.php": "a66f1119bd7327a19315456f17ac2d3ecb40e564705d41047a91a02b431efcde1eab2750b2f354fd2f5c10c1ec1b5968e84e758d51210f011dafa8df5fb35c0c",
245
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/Uri.php": "fc5c81c97687dcd34ebd18c6714479eb6b4d1c7d58963bf7f1f732eae98a04b094dd9c99d58f4bff265b2faf0629a456c391ab5b96534c927420f51a95dda637",
246
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/UriNormalizer.php": "8992ef486358f43df4a9567a6a232ad76883d9c7cacdc94707343e5465c857a4385739f66d0024136df94c59e60a5ccbf1850634a55f2cc1f56adddc717434e0",
247
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/UriResolver.php": "46e4c0ed24579ad9a0cf467141fda7dce6dd3a3d3281a1606261f322462d1b19bca413f3c5590b7ad42fda1fc57e60ba86d121b5af0c5b5a2ea21bbdf07f44fa",
248
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/Utils.php": "be75312627f929b2ac94cd6d12972816a13660a40d25cf87f6fc7fb7af416316ba8988656147a16becfa8120ce2a484c84d9f399b43dea2cd3c7ed916f7d8302",
249
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/functions.php": "f31604b89969730b482cd03a13b1356ff9b91324eeaa9ec45a45f86be2bd52a8209cec55aa878d5875a3c82fadd86848d558789d0072e853505d644f0a2603ab",
250
+        "providers\/Plivo\/vendor\/guzzlehttp\/psr7\/src\/functions_include.php": "5b85d1438039f778c454f67bfd3ff2933d06b1aa4bbf9dc516e385bd36cd749f7001de6278c5a1b4e3c5a7d280876d4d35337f87a0dcc6e521ccc20a3ddad1bb",
251
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/AUTHORS.md": "bd202fc574c862a7c3d4a27653605b6fa377823744a793a7848ddaa7001166fd645d6047892d79c8488786d82fee785b87b19e9af1d04512503eb195bd300aad",
252
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/CHANGELOG.md": "ef87f930b797ba0b32dec670491e021b5c881f6986624c1906d8f910e8393b37e6d7f5eb9f860c1bb8447ce61a206bca80db4b2279c57bb064a28be3d83690fd",
253
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/Jenkinsfile": "98d95e7185d040e9aea6e75118ec17ac34e38e17f8ad5a38d869ea02c0c9de5dd79d208a78da23ccb87444df7b7de827b314469027ee7573cc51423521786320",
254
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/LICENSE.txt": "0974968907abaaf61b640ece98a502e3c677b7cf734ccc82cb522b3e166c50eaccb189b4d31b03bdfe8e61a97b3ce06917a7ff5c7c60887e2ae944f909fb6e72",
255
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/README.md": "ddaea1367057ed09023311b6ce37938985c188fbbcb6867c6c3ddfbdb984b954e42fd6450d1e5cfe10374ddc4448f9b96d6130d465983d634ddb3c0b01a276a4",
256
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/ci\/config.yml": "d50e43de2ba68261ae35625f8ce984903baffc3c6535d31a7fb3c5efddd08f71cf0ec3aaf22ee9e17e93852dd99284b653b343a053ba50a45cf6716033131e3f",
257
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/composer.json": "c6b4f35c928d33d62b48139a8be5d85868fdcd0716380865f8dbe0f5a708600ad7dffb3ba510a45bf4a8002f7e1fbefb1c835de7e3e2d9b7c1cbddf9fa2b565d",
258
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Examples\/JWT.php": "ee8052cfd45be4eac77df60902c518a14bf2df07ae7218322493a8e2d115280b87c65f9637ca766a63d82dce36c7c78e894984dc83031a9b7a8d5a6345d38214",
259
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Examples\/Phlo.php": "f9d6482c51987aaa3d7f0db59cd45030e17284262681866999309205161094d96a55a39dd2898d0b7980074d764e1bde6cb6ad1f50be8a40cc9d557431c1bf91",
260
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Examples\/SSML.php": "932a827eedcd81956c275529815a2f7542636b0cb887fcf182648e8f972006f6ba8ea4a763b3de48aac989f26a5e44752c7d3a62df256ee2b6a1c922de677e14",
261
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Authentication\/BasicAuth.php": "42c036c38225556834ad5cb916db0c4783c7127909053ef623e7f71aa51c9fc968b9523fe5dcdaebee769cecdb0c4c76215116cbf5959b268c8792fa96754531",
262
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/BaseClient.php": "029f2be5a3c7734b5030b4fa96e0d7c0c1252bb7b30b9f001a78abaa646d6d3821a127859e5d170ea5e3c7f5c86d06112f28152c5cb2315f94dbccd318f9e5e0",
263
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Exceptions\/PlivoAuthenticationException.php": "7ee7458999adea1ab1722358f669467cb35265eb616ef2eb16e6bc3d42a7f3c2fcb0b42655df8f4f21127bfecded765bcb479a6923dbf1a184e00f6e26321ab4",
264
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Exceptions\/PlivoNotFoundException.php": "bf54dd70534e988c27d5e7d17bf8edf9dc65191b77677d9ffbf95ae3bd019f1ba368065e82440e04f9a0d7045cd62b5915943273b5d8d72ba01676ebf2975edb",
265
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Exceptions\/PlivoRequestException.php": "6655a36e42e700283235b84889088e378bab6861ae98ea99c20bde017ed39b83dc743e5c166e8129b9910a434b119578b23523fdfd5e9e1dcf3d57c5cf9375ef",
266
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Exceptions\/PlivoResponseException.php": "4f18628f90b1c5142446f0e394d5071a91995baec240344a1afa47687ae463cdc3dd18a79008813077a3511c1b00dff7a8715d26990afcb6f9726598c96822f3",
267
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Exceptions\/PlivoRestException.php": "758babb40ea45fb50dafe5231605196214736f014860618af9ca7161157255cdf20c5b0bf534f6f6b30a4f9bf612b5ff5edd2f7adc45553ef12555354f82c15a",
268
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Exceptions\/PlivoServerException.php": "b2b8f6d1d03a720885ce5718b1c80bc75c7f483f72a1d2d2313b98a37e152ca78bb688f7923f025563517a52de7e915325cf86e463a2083c30ca2473446b91c6",
269
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Exceptions\/PlivoValidationException.php": "5faec3f351037d6affa710c10f733c57a7919cb04820f93ef0c19f75b2f2b2b8ae1a0d004c216673977539b713ca31475f233fdd21698a390319364d2b9a4ba3",
270
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Exceptions\/PlivoXMLException.php": "a66429863ac7caad7e0d77f7a1fc105fea0a45e7eecb753e64bfd5a76c89b5eb06e4228bd63a78134090774458a646e10a11417855d3e72b2a6fd75aa754c625",
271
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Http\/PlivoRequest.php": "3fa26ce55e1b201dbe78e4bf3615f8c38d9e6c4e96e5b3673f6cf7985bc4055b88f227677273189381bd29076ae5e8baba6c0cef4bd612f2ff8fbd2847b6c129",
272
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Http\/PlivoResponse.php": "3f9f1ce15ef75db2e028f198d1bb337c37f31fa6dc7e5b985ad589f6a4dd7d873e3dae968b80f5e1eb6056b4bd00e1a4df4d54242206861302f9d6263d177bbe",
273
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/HttpClients\/HttpClientsFactory.php": "a9fbd6c007260fc2169648c9c764ff7b5988af0874b21211f8e85e8a995897d597cbc0c9fce4ec5c8d60a901ea05c5a8cd70684c2302ea17bff528ac674ea578",
274
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/HttpClients\/PlivoGuzzleHttpClient.php": "dc661dc489b30bfa98e0d75f04147d164ad953e7dc51326a20fa94846fe30afff07ce92958c27a9bce9fd15371543852c0be4c24031cf382b54403a0901189ce",
275
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/HttpClients\/PlivoHttpClientInterface.php": "61a18efcb4383bea7598ad9167ffe49a73e295d2ed3229c015f9a5ea08b00362005df1388cf6846f1c331b123b187290a1651341c76ce2cd4233926c927b6e9c",
276
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/MessageClient.php": "f96e09d05b71a2e0b6675300132634f5664026bbb84472a1e7ca5f72b679390170ed5aa0d4e21a4dd1bc646cf0267f0f9240c931657f7cca9b2bdea501586d26",
277
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Account\/Account.php": "22bf526a376e6045fe9045ef4eaef52c769ceb8a7c3ef11902e66acdbb673fa521f70f446e6724155c8499cc700a6cf4f4d435ed06d81baab69f638cb15651ef",
278
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Account\/AccountInterface.php": "5093f51c3803de918f3a500f1754f47a3dbf990008804c07e543da253a22641b96ca2ae5faa7e6800cfa10a41f7d407e5d29e9907c0970a9183a8795be9f7543",
279
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Account\/Address\/Address.php": "7ba3e1e7e136d43989fa0449b29882d78fcea39cb764e54228c7a4a899d5ce4db2deae9d9ff9ed5cc53a8af72f98c55914c10be3dbb7b9a354b8a06e17cce829",
280
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Account\/Address\/AddressInterface.php": "36182073184f67cb024e0c020307d4d74c8b5c65e3ac7affcb76e189c91af9750c318404d8ba3a5a6e104d64459c59c80d7a944395796f0f5aaad18d43d93720",
281
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Application\/Application.php": "9431715557954e8ac1cc340f3f568a6eddd6e00a0ff0356154b2778b118f620d0afad3979e79eef0a583b313256fdd018516cc8128a441dc667b39668b6f506b",
282
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Application\/ApplicationCreateResponse.php": "cb1167e6057eb71e102d55ad2ac3cc2c7aa2a757b317cc97d8d08dc400548d4ac56379653583d53185ee8ab37c4dd189b66af011bc9a32baae55991922c41466",
283
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Application\/ApplicationInterface.php": "77af1063e341dacee15504837264b8140ffa3e8f537b9eb0b102e8f6d184deefab6a08ff7f771965c31d6c84333de9963b2e998bd0389bd0517479d5ee150d3f",
284
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Application\/ApplicationList.php": "0840ebcf3a0d9688cc68a82f11484339d8dadc9d1a50787ee11b3849a361a421f30417ad4322633c53633b4cf58ff7980de6ef87471fc88b16d090f127763450",
285
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Call\/Call.php": "8e0a3bd97abbb7b9d03e22a4eca6eac4989653c43facff064a374f6787698bcc91320352d105f66aa3f31cc0d70902c8cef0f9264062ec4bf4e5cba6d07549ec",
286
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Call\/CallCreateResponse.php": "a3a07958282fc5a6e7b99978427e2361e8828a63c06a940159a7fbb356ab9621a899e6e2a25c27d445fb92ac34b63d8e5a8b6f0782b7f20c7d9f4308306903ee",
287
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Call\/CallInterface.php": "9aa42eadb3b1c06c802d46f1a11b17acf59e0c78ae65b6c9039b4afd9fe53f171cd8023be738a359128afef545a6fddd43bc039d94b014d122e9714f9591ab71",
288
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Call\/CallList.php": "9883c38a74497c496cbf7c4a837051cb6bfa0ed0b9ca9298f8908e7195a000196f7c79b4846417c64af0aeddb6327e45ad4b36352a28e8300c977e21db0fbd0e",
289
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Call\/CallLive.php": "14fc226091078fd069998fe41625d086407e0c22455dde078284f9a3e8fb34fbcac0b75484c5350b437387dc203db7690d9fe1f02aeb09da2d5c57f7b2ffa651",
290
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Call\/CallQueued.php": "64552d83e5911b11202ae4a965bcd7c408643c446566c3d09aebb0bd02fac0dca41477988aae62e91bfb42913900f1eeae9d20693c6bc29651e2734b06cf18da",
291
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Call\/CallRecording.php": "d23438ea994b0ab936c3917d77ae9bb38bc9ca14dff4c5c120a0f583db46891af3bde1a8c3f55d15bacae99723e510184c14c60eb6d3d411d46aa90c5c8acfa8",
292
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/CallFeedback\/CallFeedbackCreateResponse.php": "cff0c47988bfee02787a2d73df6b3165749844c1a93b1fb91e87e80582bd28c8c7efe101fcd532bdab62886eadc6354924eea81278da5037ad9d3ee5d8dc8f29",
293
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/CallFeedback\/CallFeedbackInterface.php": "7860708568f488bd0832e626123f4bb5ab986fa5d54f305d4744503ceb4e919857b78a02b766e7241d324a77d86592f60f26d1ed78955f5550bd0fcc7bbabcab",
294
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Conference\/Conference.php": "8b97d6c9abee836cce410fa1216fdb5aa8a4df0c8543a75c2415bb31a5ee2d87531d5d162b218660a33cdc30539861cb09d85a780feab2d5321d0e8ce06194cc",
295
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Conference\/ConferenceInterface.php": "34f563cac4a75ca234e4517cb4678998461011440f30f9d81895adfdbb2e1960009114773ac30901dfbd2596d327554fd335057de66516b656f7a96446f4b06b",
296
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Conference\/ConferenceMember.php": "1a880200a2988394ed0436702f805ce60762be1774e1d156f38e45be39cc72203fd4f04411a521ceba8fa9647cb00f6d1bc6d94798b66f12175fc68d88c51dcb",
297
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Conference\/ConferenceRecording.php": "1c3239209726556971c2cccc812ce5bb5a3fc8c7a0e4f3ef520e037acde32d9659dea1dc5d3803e1f7cfd39e945a1680983bdeba8cf62459fc168f0df731adab",
298
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Endpoint\/Endpoint.php": "4c9a87fd6042a3eb486af5dc899d1e4c0948de5ebb1467cc85704030947e2588e79d23407ff662a21b097fb46a05925c3df29dd6e2a038555cf44844342cb206",
299
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Endpoint\/EndpointCreateReponse.php": "f77356f3ca29ef7163e47530004a5d79c1da73e922b17333a89512e39c7d3cc842b161d9dcbc745075f6a6c7ae27b7f7cf85f56a6d5bb796b87db4efbb8425ae",
300
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Endpoint\/EndpointInterface.php": "09914bc8e8eeca2812a4dc07469137011eec1dd77b99e3aefc8d5b8f4675b8f221bc54e37417f6c45b07896b84bed953f8c85831f9e7cc7b85b7293142b60fff",
301
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Lookup\/LookupInterface.php": "040b0a2c01ca3c0c02c2c8450b47e8d1847ab7158014ae161ce971e330712d14d389cd746a353707d2bd2667dc604e55c662af8eb15796cfc613f285e170ed15",
302
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Media\/Media.php": "72b83f02669ec7b942dd898a74c22e909cd9b058ea2e903e92ef4dd9e985305311d53c30a0c54a3f0c210433aeb7b8bd04a4b3a768c853aa73ee4dad9c621a56",
303
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Media\/MediaInterface.php": "1cda06754bd1ba503a8405561594f9d3cd5befee2cc6d9cee98542886c71601bd8744899e7ede346df6b90552f05a9eadeec4cb4d11fdab3269de88170cae961",
304
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Message\/Message.php": "54ae356246cc911258552001390f10f701929afa24801b2bc6cde72484c915e2e738a03d04aee90908003efb3b4b3cc8106f92d7ff87d2119e8a350f7aeab54e",
305
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Message\/MessageCreateResponse.php": "75495f459ecf577e2e0c2f8c075d569f36df80c5c828fd1d6b84a001de2c3d032add50b5ef08177d5c68014fccbc939c8ff89ce6c884ac0c1b64f4301d81cc5e",
306
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Message\/MessageInterface.php": "e96af121fd4a851e4c1f27297c602a5e6862e0ac54974aedb19248f017f2d98386ea9b495ef6cb775aacafa7b51b6117665c803356442786142c15e86066ef41",
307
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Message\/MessageList.php": "baacdb72ec116be9a14b8e7e55d6c40cfd8b04c5bd1b0d93d5c9919ccba2591105e03dee96effee29e95ab7b7e58e45569760ae825351c1891877dd96853254e",
308
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Number\/Number.php": "1bf8e1b1844ccced8d8068a80ae45b6904f59b0fa0e7d6a7c5b43adda906859ec11d709a501f560aac3f8315176e9260ba4796aa9cbbd637431ec94f0ec0c668",
309
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Number\/NumberInterface.php": "e633bf2e705735759f6e27f9e747e3e05e839484b57672e2da405b7e2d8615653fa828f8295a442d13f5b64645fd009ba6cd923f0c163f2070710c7df57a1a70",
310
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/PHLO\/ConferenceBridge\/ConferenceBridge.php": "3da97309ccefdb15596bab5180d386e2a78cf938823225820f5b206d8d8f366209dcf96bd139cd0364729c8b733612ae067d03e1e29aef472c4dc82527d3002f",
311
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/PHLO\/ConferenceBridge\/ConferenceBridgeMember.php": "9ee728dc1f37fc183fd4890ca5d213bb1f47899d2379a16009de7ae32b75b459444a1a329357faff349909ee89843ac5798c75699fb2b8d939501f61dc09b564",
312
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/PHLO\/MultiiPartyCall\/MultiPartyCall.php": "d13d863ee416714a697600882f33b88a8bc9de8d5603149fa199f787d7d904d55aaa6646cfdb3d71caa99e4e95d7e352199e8b54230d3c64cfb81924f1b603f9",
313
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/PHLO\/MultiiPartyCall\/MultiPartyCallMember.php": "6e8f1c6a1177d0c933352bc2d8bd54c989db7679f2feb893f430e9e634c446d033d01a82ea740185b1926734f285facdb3d99b18ffcefe83be723fc08b50fc12",
314
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/PHLO\/Node\/NodeClass.php": "b8a08dfe16a42c08ea66d141b3b4471caffd2bbf89fa4b360a1b16a7072ea29d538792c16b93f1e3f1a1a01d564acf1a40906c32482c4cef0ef42f1647e483d8",
315
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/PHLO\/Node\/NodeMember.php": "e13f76753f278f07e8778f1d0ad64c9ff401633423ab2476700ad0711ea5534f7caa871b5e10fbb26096feca64471205082f9ba45de607e7ce71eccda0e7db91",
316
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/PHLO\/Phlo.php": "da8e7b69e9290d876b6ebe6778c09ab68f47f13cb22438ac92d6eb880b7fe72ffcc68c681cbb9be074e36f3ce4afefc69680e7a3493d3046a04ca9ec432d7a99",
317
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/PHLO\/PhloRestClient.php": "5f3b9bb5e3f7dd96572f1dc71531caeb0b14b21ba7c291561c1ebb040c3ded22bfc0dbd9030843cfeda8b4f83e69d86ed9db2b3b7d0cc8b311ec64000f3b935c",
318
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/PHLO\/Phlorunner.php": "c1f3764aa4a4c14a33614bc7cdaa05043d268b24f88cb2312bec3596e5e7e5286e9d0429edb8583b640723784b28ebf69df691d5e4ec53b7d7912252832c3ed9",
319
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/PhoneNumber\/PhoneNumber.php": "57bb602a9f511dd39c7143c50a9ca6537bd83f398eeb6f198feec689877a9a423d9cfb0645c4d20eaf30490ae6b6ebb91fbf1d00ce633a2007333ddd6273b032",
320
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/PhoneNumber\/PhoneNumberBuyResponse.php": "6929f9a7447425d76afae60b91de8d6a5a42a1e7864871dc73a40199181d5af8be9f645185ce1e796e75440d138cd0f69ef86ef404879d74b58107ce32824b6b",
321
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/PhoneNumber\/PhoneNumberInterface.php": "3720a8056618a019c64de2e4e05e99e0b30cf48de07117e75172b8ba02f2b2c60a1e0b12c3cc07b3f5ba8aeee2e747c3eed43b5bf589c29c7236b47b5ce75747",
322
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Powerpack\/Numberpool.php": "a774de315b1d34a61c9b9af9b21b8fd1f624b48bcdbc7ed1302ed25cc21093e05ce1533c0ce4788ad36ab28792878321a99b941cf9e1a8ec7fa2f2ab1d16f872",
323
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Powerpack\/Numbers.php": "f62f6534b223fa353f2363e38fb1069c3d10544a4cae2efeaff30019c0cfec7de2b4b9f551cfc16bf26fa1dfb916f6d916f9cd1d1357f8cf6f7cc84815812237",
324
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Powerpack\/Powerpack.php": "895da995fc1445bb6f7458c3904c918d8ba8e8db75e94e558f04ab8355058bf82d881d7c282fd8e03acf723c232f3081733a9ace2bef1da42c3e9f4de452d2cb",
325
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Powerpack\/PowerpackInterface.php": "e09a8e4e67ece27935a81730b7587bf29afe72ff9aac57b6c0efa6fdbc4b7cf4c91d60bdcc506a2c0b86f7a4cf7df70c38135e295504417d39024a4671b3cd33",
326
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Powerpack\/Shortcode.php": "afd1a0a277918a55fabfc2b46460ab6a8740ac68e1d7b9a0180d88229d7a93269305765fdc362c02cc2996ff7c3d8c95417bc90bb74e44f9c2cf12f023f45b08",
327
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Powerpack\/Tollfree.php": "0c63aaf33046375a8d7c0f9c7c092ca1041f553b1987ad5e2944630dd23f865785e06205b0711c215468630455d8c2264c0b141fee5cbdb4bf9430e6ef90527d",
328
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Pricing\/Inbound.php": "285fd073a2fbf84c533af3c0e60b369689592882364413a1879691a025655bf4bdc40831d13d96c59ec7a8827233e92d478c14d1d648df885c75fbe3d054351b",
329
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Pricing\/Local.php": "5140df58e671179a4edbfa82fcb7b7277e440706406200255ade35177e9a715c3340f5920c4a57c351b6e222f7bb1ef20b207d0830c487bd14b9fa713d3d8c4f",
330
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Pricing\/Message.php": "ae4e8bbe3a668748ba57bfa571cabcd97932d6cb7a8a63ea04689863ccf75a63e0aa867fad60c39e263cc685521a8465b46f730014933dcdc941ebf152fc437b",
331
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Pricing\/Outbound.php": "7656989e6b1da4e4887f8443304e422ad2aa01c9c05aea5b5245b4f3edc333935be4f573fc5105e13cf03ba6ed0ee0ea323cc76c833846bc5cfa01f3a0f33763",
332
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Pricing\/OutboundNetwork.php": "900ae54c0c0aa0f85af4f02da252a34907999bcd311e9e39ef8d8e27a16fc6c8bbde5d5f6460af6b8e68cf584419ccd7fbc4de177cb827cabb5ae9b2c896494e",
333
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Pricing\/PhoneNumbers.php": "cb51001dfd504ac52dfd39e2a0fcd01686de42e78464c76767f99fbc7884cc2d6e304cedd72e66dde42852f72cd833dc49dc1e92fe1487b2682648432e7979fa",
334
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Pricing\/Pricing.php": "5d197bd5eef109ba3d877f6de48f8567f135466adf1d811d32908d8d4fa7c8961592733d6bdbaa4f646c3d25a31c8098768dff183d192617b2c1726e8f41c447",
335
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Pricing\/PricingInterface.php": "dc940fc2f0338348b06fefb22caa65b98fbfd37063621fb4e4f1e23c5dfe21149e2e648c1a32b09012b34c5bd622fe28126bd33ba1255c6ae3c370dabce6ee97",
336
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Pricing\/Tollfree.php": "ad733c0d904ecfd646e79a3b6bb3ade270f99df5e6353bd6c8695322a71238fae107a55d33167063dc2e4b1b905273bb0631f051d06cbfcf5d01c94e9252fbdb",
337
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Pricing\/Voice.php": "ab645548152bfd840951e981c0d18aad23d613afefd4453af077a6055f902d6bea6a0bcc805288f130da6686d8419913e86422cae35b57c1087eea3371b7e799",
338
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Recording\/Recording.php": "def8da050e24afea59514b4fda360ecd1d80a49df2013b258e3d78304d6eb2ccbe21ff1ac50a851079234a1460d0f2750da8fb59c9ff184e8ba1f1becdfffe6c",
339
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Recording\/RecordingInterface.php": "1953832ff8be0a6801f306632f3ca3bc46f067d08662b8ca6d53e29d53507a48750bdd891d2d0164c029f675b8c4c1dfa6765c9abf328578838b428dcea22615",
340
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/Resource.php": "b8a8f583217c43c3eceedcb8f047efa1569bfe5f440fcf4f252f1a8402f484e18abff63229521f89697c1f7df21a2ff919488fcd9df42b5aaf7a160a50f0c62a",
341
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/ResourceInterface.php": "85bde5b0479b85aefa79139d36192ac334e3deb3a07353b7b1b0cea1180a050a92dcb563ef4a968b6436f60ac990fc5c1322ba3ee6f4ffd41d2997d604653b6b",
342
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/ResourceList.php": "71fc010407c57d77f5b31105f6e645d04347d961c3c81eef6cacc7b8dd475d86bd228c5ea5dd5976ce34d025b0753083b5361a47cde5d5daf0507678762106fe",
343
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/ResponseDelete.php": "3acf13bc2797c0ed58c78abac46ae2822a67b9c9194b3c9864738516847618c0033fe12c5a62d9dcb7d110ffd4264c534fded370d04a2960a2da32059fecaa8e",
344
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/ResponseUpdate.php": "4db3ee43405d0a456dbc23801c2c0d71676c3f88ac7c4161395ad275e7fd0dc6b53aee99a882706da4f14fc6c35844d54143a7fa3b6597a5a25d59ed67e0e6bc",
345
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/SubAccount\/SubAccount.php": "b39e628ab06827320f3dcb47d3ea55d459af1a133430e8e51e8e6aed5216c31b54498c836cfd2a5c5f2d9cda4bcac03ac476bd8ae81c3ee2c7865ddfcd359dfb",
346
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/SubAccount\/SubAccountCreateResponse.php": "3b92a7ef8da848a7a5d7b79436ae557657e97141ecb2bad076e69d495d78f94f6e9c68464dd7e790d64dc563428e4567a1baf96df1f8bc97cfdcb946e60e94ce",
347
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/SubAccount\/SubAccountInterface.php": "a4cec509ce127faf30261cf75555a2905c6e551223b4b90949251f0822dc20d7b97efadbcb6bb189cc9302acffed8106ceab79628a7531c161f4f713d6a26c4e",
348
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Resources\/SubAccount\/SubAccountList.php": "228e0fc0fc27fb523c9d2d9e62de77a5deb3bb2a29c10d91d7c59b6cf36b3e12b8b1935a69fb0ceda72c4008b2a04436e6aa3f84740edf265d0f647eed7c52d4",
349
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/RestClient.php": "91f01799f98c6d65e1a0a8025668fb0c9f5fa4b77d44e86790b34599c2b9045cbce2cb3a5dcd93a1fa8523cb688d9f2b895d7d5f2377f64f2e33ce68e621dd82",
350
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Util\/ArrayOperations.php": "04a84eb09d1ba33c3414dfc74d1c4b31c3149dc8e3a038912be632673a92e693da8e531a987c5ce747aa11fe01bf65bc05ac91924ccbb8f157c15c62f8ce9694",
351
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Util\/jwt.php": "61ef00cfe10afee4047149729431595a9e21d44b25de3e8808014312a869110bc22898552fd9216cda6906c91de2b3ef9d723ff0d4e18020d1b7f5d1050fe810",
352
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Util\/signatureValidation.php": "2bf40afd282bd8711459cff1b366510ea253508349adca2f64ad101b6c4e3e20bf405194b9e421ea7cad5b738716624127969de5497e16e3647872e0b3bfc6a6",
353
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Util\/v3SignatureValidation.php": "d70083f5ecd20fc41035462a2a27e04a9367d9b7b13e6bad5579dde4556ff187b8ecdfa17b2c07a0fcf88cce0141baf7dccfaad85a17aa2fd1a7afe7998d1037",
354
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/Version.php": "365ed59af02f30183af840aafe55b67b682919cbb3d662f860baf1defaede8a67fccc5a7f087209494239466f356fc83f612faa02f9f03a301f5ffc66b52bd09",
355
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Break.php": "89a669d486a72465efc2c6128deb6760dd86c9fb69cd8c0f57c209d10eb74067efb50bc6f0e68e2d1c9c2f39862ef3fa03a35c65b7395aea6ca963a013869658",
356
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Conference.php": "bf673327e263996b05a0b45e323168e3d44b27a65efb8a8acb0eccb0276360c1a0391f08edc34ac617aa079c6c2b1f45eba6142446a7ae2286e23f337819caef",
357
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Cont.php": "45ed9435166f1b72dc5ee98afaf3547ae646d16d41677ce5409a6005ccb9ff23743e4c528385a1e0a8f5570eb7ec9374433f609bb8cdcbdfe756842f1005c52f",
358
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/DTMF.php": "14c619e3f01d6dee2dbbe9b718c6c64458a97bf70ae333455aa45c9cce91e4bab693f5265de0099c9cef2334a5310bb85e3374c5f0cde9b93c3051cdf5b57a4f",
359
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Dial.php": "5370d1f1a1ca8420560fa204d295558ba9aeb626fb7149ee06e12acf7f4b7d079307f329f91594e138847a2b3dd9e3f3e9a9e6e774a3c1095c3201ab249e9c03",
360
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Element.php": "4913c3c78365a85eb5c90aa721b0e1cf535c00d5815f509e336ce635cf47a9d9aed1346ff0cbc875eabae65190be2875d0820312a6a5c90c6df3acfa23bc80c0",
361
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Emphasis.php": "d6fda7993f909d3a1a50441ef74003811252d68a33ec2da63d3551236a005952d3b6c7e2bcdf5d9c85d33bee2a9255dbc2b95988cbe0e115b42eeb667d58ca38",
362
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/GetDigits.php": "e41a4e05fd55fec82a24cb2a545db122000251abc0986715a4d5866dc64604ac340c59cf0a30a35ffeeaf17713eed730a7705f32aa20aa3b14ffea368cdddfe2",
363
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/GetInput.php": "cb11a5e0311d3b8938f7d94462d24c5d4b8a2ea4d733943253ffcf36aaa648cd3a4337d732799f382526e0e2b2059dd1489e9ac7fc5ae478eb1db07b3830a711",
364
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Hangup.php": "6a7ac35846ffaf61d8de286929bdce05974799b26b17f4d61e68b6f740cff49bc4a0b72899d1150ae03d72e4f8c4dc7cac491872e76be0aec6b1a665446a9226",
365
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Lang.php": "c16c3db519373df61712fb1748f91785d79ba0fcd7e85a32cff1d17ae89768cbc10b3c4cbceab380fa9762cc1b6948d8fa56054d78185f8c9c1d6c60a012f527",
366
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Message.php": "541a76d5dc1e25633d7bf67c83d1fa123820296b4755e7e48aca094040ba0c2acc6215eb29176551516941b8e8225e6084fbf89892893557e12f678cbe2abb86",
367
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Number.php": "82569de717d895eca9c4270a3fc48022e666e59e6d6c74dffe4982a8db1f6031d80c51863226c750cef5db111f0de940878baaafb352153bd0d053f716c43fe2",
368
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/P.php": "d8bc0f70c13af91549bf4c37ce4c95b6683590ac9c9a3006bf2a4dc02d85ea63a33d0d8fce4a6465f25e0f86b35994d98e7bf75c07e30737305a7f2707ceb444",
369
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Phoneme.php": "9bce52123dcc7451f21ecb2e155884479b7530715d78d175cd616da86198151481632af22cfc19f9c70a4cf0f29f3262f335982fc9988e4aa3a435cd74f14c59",
370
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Play.php": "9b25a9f3a6149ad856c4aa008c405192bf2804432d83d3a572cf066dbb151b8298272b0a9185bb26a5faa51c03d069aed172ddb135d4dff3fb99af9fe982ded5",
371
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/PlivoXML.php": "03c37815022f4b4e7ea917f69b5516c3bb5499e68b65ed1b50f7427d9827de1e84037745d25b420c1f81ab829f51ae752b126943005c82b06a668c8ff895e923",
372
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/PreAnswer.php": "f66f22bedaae6dce341d650d5ded5007d867361c570162a642e0a15f5fd6e90b49a4c8fac2d3a1cb5fea446c75e30834a1106a3acd1ac02a87b5a7df7c1d5af2",
373
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Prosody.php": "12c8b634b226bad4ec0a7dea7b8249959943bc5ab0e71f75fd42afbf6d1413834563c38430e9348bde2cdf1059f266a2ef59fb7a8f6187ecec135ee9d5dede4b",
374
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Record.php": "070470af5650220e0556baa6b109684e1abceb6e80af620ec750f0c691824249121e1c6aef6cc1c91bebb45b76ea9db24f9cadbdbab8857b367ba2521d1cd001",
375
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Redirect.php": "34e09e0b208c4dde1c4b53c451b09f23985c8f74737e73f4675053494cfc81b14920afd6620ff161877c4e1b7b6e7381cf3f824a2b06508d84299aa4e0e45690",
376
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Response.php": "8db3a9e823e3c11b8377829c783d93f0b7cf98afc6d837e514803b478a7887d6602bae6efac9dae6a2e7683d8409c23f78c463185754fd7916845aec23e42c58",
377
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/S.php": "d0dc3f3bcc818d107fd8e4be38718587edf610e3f840d7e6763ce8fef51a1e96de3b49076995802aac9edc7d8a976ef024a1d45ef634599a56d13c56a8ba73de",
378
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/SayAs.php": "46c8fff6a9dbb36df1bb14d0c4247569e00ce77b37730d7f8fe6fc4a404a632ae70e48c774f40c4ac0e19b10ecca7c09686c7d5a6fc7d5311edcba657177b6db",
379
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Speak.php": "d18aafc18ac404a85d18627ddc66d2810ba1061f8e0d3d3634d5f5258b239a139649a8cf479367dc026929010288a291aa1144aec2415a2de6083040b8a4a96f",
380
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Sub.php": "9d34d26e76074e65fc01a3a477ac176027b1ceb5dca2fff450111bd2cfc0027c7f7338777b494728ae2617a27075888ea699d4226b60049c4fec633d42cff8d5",
381
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/User.php": "2dab0ac6bb38d9216c1b39b81ce20f1a2af1d385c90ea13aa566176eeb288f8ce80e11048209abf8c38151207137cc86b754b7784cc478dcfa1f567fcf929520",
382
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/W.php": "798d6f10e6d07a54b29916216dbb2382f25bbf2f96e15906f842cd2ae4aee22b8f3e56535264b1da6d40835d5b9da6a9f4346303f7602c9562587b29fa419f3b",
383
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/src\/Plivo\/XML\/Wait.php": "99e6e66fb4d2a81f0419ac823be64ea8c81e6ffc8313934b41d6189519d053b54b5e95dbc7b869dc979b72b551b5654dcd6eef0540c3b01eb900716e97d52dd9",
384
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/BaseTestCase.php": "662140921fab3f1e7be65bef2d063673900eb3c41de8ddf68320de194e254ec3fbba3322790812c258698af81da35277cbdfc0d2fc957fd5f68956e7db2ceac2",
385
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/accountGetResponse.json": "1ee7d7e260e8678fa70fa47206ac7c4645e9d698da7017ab05fb56266710e34bce48b19d3c65541a084be28cfe918e81fd52073064071daba77355af2eddbbf2",
386
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/accountModifyResponse.json": "ef0e777d38b4605ab58d951f26e975566b61a26ebe5710b9c8c7588aae799c68cf76dc5860f44aaa666864f3fc1f74185b5eba888c1dfa8c2004fb8baf6d859a",
387
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/applicationCreateResponse.json": "19336630707d50a021e3dd3cbcd8a229f9f6123211e27fdba211494bc40e9b9fc5573ef328806bf00b937106e7c894ef96a98080f6003d91cdec67f50196849d",
388
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/applicationGetResponse.json": "26a3aee28fa9219455b0c7a54d47eaf1ee7e9fb526185d1598d5611246c1ad7b0cb1abb05b12d21189463955e25d2da906cf5b04f1bd4c3b826d44de47c0d56d",
389
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/applicationListResponse.json": "b363791ef3276030677b53f555a42deb02a9873cb5b21e17aee9176d425ed38c562da7fc162cf5771f0bd259b46d615ded3799f34f6fef590e2df97180ebd228",
390
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/applicationModifyResponse.json": "742b49b7f428a281b1189fd5f23811931f2d6c71fa271ead086b6acfac63bafed22b86f2e460fcea35d8bdd46786c5db83707f35c7a855efbb92e51ec01a4859",
391
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/break.xml": "6707a46a4316a9f23104a23e4ce9c79f8b4f969639c08f5196a9aa94ba3abd4a1972a29d6131e563a685732e8cb0a4fc90a76f2d0ff5b72637fba2f974abecd3",
392
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/callCreateResponse.json": "513446e1e7fb97b30b86dad2119bc9fe73e70f01f4976ac40e57e41e7d96a2faf978fc72fe2ff49e3326fdef8e17cb4da24bf665be81089aad1232716e42e114",
393
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/callGetResponse.json": "2958c05e7fe02f5f6f2f8834b34050599df05c6f5751fde2fb038853383683e78b2b33b9534bf8da38770173e08ea9c7015d7b2d4f270efddcaedffd77ce661a",
394
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/callListResponse.json": "b2b35a27aaff76dafc6f5a42b6ff515e56ea9d7c196670613b97c2b4c0b7f2dfc3ba7ca705b2618f3851e1db554268018c7c2bb658e94b66493576048c54ab49",
395
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/callUpdateResponse.json": "06be7ca7ccaf82f24f23e8c33382d372ba639662283023a9b6ef555fa24d273efd845ab27fd423dd4267d66a8df24604f96113aa3bb8f8dcfa49e713f3d71bbf",
396
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/conferenceDeleteAllResponse.json": "6722c7663c8877f4bd5d417638d5a0fde3db7cd2ba1880dc66a7ce9ad25a14de60b4942d84647cc21c0b12211227161349109162ef3eafc2a9607c2645d3c93a",
397
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/conferenceDeleteResponse.json": "9a8baf62bab7971a89490d637633a3d498d4442bb11ca29486d21a3dde432ca6c0cb36d236bbc94859efac83b2e56d33442a13a4395f4b026dfece2103ca790d",
398
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/conferenceGetResponse.json": "950fb7d6e6e120ce670da43937ab4ce9e7a7df5296848cb52261f5f854bd89d47f26d76f89929adc59bdadbc8d0e77de79f29edc5d6e6b4b73aff1a0c126bd43",
399
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/conferenceListResponse.json": "9f5635d9e0988b03c2bffa8457962cb6870a39d4354ec6c065b58949850b188d2829fcd3db1761ec42a4bed30ee3704b6c353d2b9372742cd6d8b00bff273dc3",
400
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/conferenceMemberDeafCreateResponse.json": "b39ae8d7a1de7d5732afdc00da955a91850b855f6463b143b5837023dd8281b450fa79635a3fc729b5b198c6af5cb57f9c6797c8eb56daf72b7c7131196fb4da",
401
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/conferenceMemberDeleteResponse.json": "ec18404f82674de8b7ca25eaf95074cefef51b13b038de14dc9ed5f2664c6e6c5c87d3f7a08eeab3926869e171ac26d1647ba1cca03253085a194cb0fbe16975",
402
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/conferenceMemberKickCreateResponse.json": "9f924beac462c4ad9f42a705f7bfde5aafe5e73563b07e98ac9db42e95d3c657f5c4ba0d6ea64b01e2e061563fec41d53f8ae8fbd7f5e08857a903c948019e1c",
403
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/conferenceMemberMuteCreateResponse.json": "c3f1c38b6c8295b28d531c446199454fd7422d00e3cf71fdd318a821edca4afba444f8cea38175c0853b34dcda5dcc2c6317a9f3103e16474fb36c43241a52de",
404
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/conferenceMemberPlayCreateResponse.json": "ac345d15512ca5debe0a20092d8a4bba1f725a581799a632bbdccea771f1b6094b6df3362120a29c1d9109cd8ca8857447c3be08436fa94a5a4304725b75ef4d",
405
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/conferenceMemberPlayDeleteResponse.json": "10b6ab89ba98b9d6d08dba8637971ca9260757c318a4842521c7d2bb2a1b967498453aee4cef6fd964cf2e614c25364f543412a0a88b877154b3faa9f18ab3ca",
406
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/conferenceMemberSpeakCreateResponse.json": "b2b01526d4838a72c816ad9c6ca7f9cb473a89818d4444b48aefc269d0173fc9eeed1e2473667517280c18315d67a548f41937ab4b7d26f2edd4d0e13486aff7",
407
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/conferenceMemberSpeakDeleteResponse.json": "d42658e98680911d21be32033be208b53071e3ee2c514a86809ef4d06cc138ca0a74d9b2e546c54b51c66f3aa891cf0ba3b4db9a6a07e7f06ed37bfb39ef3a6f",
408
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/conferenceRecordCreateResponse.json": "c9d8570ab20fea79181b1416cdc44b8e9f8b18b06ad446a0929ecbec53a6bb3d66ddc8609a2baff92d8ddf9bb68b802ac4eb3d62e958d2cdc1485711a6286ed8",
409
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/contSpeak.xml": "1115d194144f96d3b4ba895d45268e346e7e56bd308b4b7c58bf62712380908bb71d5250323bfa6d13b8d25e64a86580437f7ac1f2c63896965e3c13909c240d",
410
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/defaultSpeak.xml": "2449ff96f102465168a4551ddac6ff85bc680370b423d46ee10b345c128755560e0bf48c070081e8045839503450c0f8b443fe0b33b455410ad5dfd639a6adb0",
411
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/emphasisSpeak.xml": "1ae7422578c6921013c5dd65650f0c1efa50512824b429334cc150ee6872dd2a7981a125b07a8023e360d8a881a32333de24f1b595c95a339507dfb29732af83",
412
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/endpointCreateResponse.json": "e0cd43507839270c51117e48fdf3158e67662c1bdf9c8c964b57a13c15517ab7c83483855764b763f63bfee011bb893c20eca7e7a0b3b8872bbb1f26228ed720",
413
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/endpointGetResponse.json": "05359131cc3ed432c1b29f3766d019be556f58e5e7f7b502d866d0057c04917ad7011bea5afd7ca8f2814dc75c45a52930d48464f7fd740ae94b45d0a07d3627",
414
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/endpointListResponse.json": "d6488ec5e6277af9a34629d901a211e37c9a522107f84ea77f861c417345ddfa409d7de389ae69b719997600a0495289bcde64791ef07c257f75bdef4fa8006e",
415
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/endpointUpdateResponse.json": "3f20870d3ef78c57407bd42cd424775a7014473d891020bfc41fd78c9187acc3d7fc2a2d7a137eb5bf9e8741525db9aec853889b11d2d3ff508f7fb16a4bfc88",
416
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/langSpeak.xml": "1eb16f6028ee00a12e677560ec9b3ca4921deb2d6da15b3686c43f506e9a13ab0cf811d71e942e1f225989f3a486ee39b4949d17d8692ac0a50574845491cc8f",
417
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/liveCallDtmfCreateResponse.json": "f30ceb762f24445068ff4a688935a84cb64840310bd518806c1259ec26fd60da6a8be9f11c9c0882d08c857058944cf1c69c95035517716dba322a1a865435f2",
418
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/liveCallGetResponse.json": "339633aa5d9cd2aea4a86dc48dd8c63ea8c0c56d5cc0f4513bcd2d66df425ce4b74b246a8c39d6cb0dcde75a8c01d4ec8347e69342649ac27599a79a72fafd9e",
419
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/liveCallListGetResponse.json": "7e8efa8df76422d6a9bb0133c81d96b9ed932f7f529644a109b35e9f8f301b3a548e8e7f6a9213e301f25e914b98c3855160ca7e0d6f0283e947cd6fc95c5ed8",
420
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/liveCallPlayCreateResponse.json": "4cf2ddd4f3087fdcdf772219c5ed84ffe1dc027208540059bc532961b6c4cad382bce98dec481e0245c99e288c9523e8f33ae7c3c35316c8130f49f81db40604",
421
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/liveCallRecordCreateResponse.json": "02f2c4c88fc63e5585f6e5988d5f615488507a7d7eba442430753a60f0cc2763c38abf905042c9ae0f7d017dc50caf67f269267972b5a7fdd4fe7675572589a6",
422
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/liveCallSpeakCreateResponse.json": "ef69736cd0199704894c2fd938e4f84768b09a6b9d2f334ef0a83b1750db0bf0eab538471fead4397b49ffa8e86011da111e867d5d8b3532bf3f4250958d6146",
423
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/liveCallSpeakDeleteResponse.json": "63a9fda757cfbe1a338c42f19532609e8607f3c2c8a317ec8e5aa2a164b0e9f9a652129bbf7fbf9fe05c38a0f68138ba10b4d256f48dda1fa292c18f2b717d3b",
424
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/lookupGetResponse.json": "6b2dd461ce651012160ed88d092de0859ff1cc132c57091a1064b5745b83cd6e5144e8204b6810da7bb675eca802fff54fa298f03be6ef858c59058acd24e640",
425
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/mediaGetResponse.json": "251c9d7226411a160031776b1c7039d7e7f3d715ad7bb89131353611a2509a570656b8e29577e505102cf588ba50cab34b3b74351dd33e2a99333676d48b7aaf",
426
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/mediaListResponse.json": "1512baf046701056ae6b5ef06a1e6405cd62a27d4b82f5b38ed2b2ef6faddfd147b6d57074d04d77cc14325d50d7908c0446acd4a5a0355e9dd9316f80b0f448",
427
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/mediaResponse.json": "329e01ec90033528ca170704dc7a3de8f5d004a609fda5abaee4ad610b1559464a97b423ca27248f49fa3696f12ce6c1b3ef69ba198ae57877927ff78257231f",
428
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/messageGetResponse.json": "10494dc350e9a659083f44802a899a893e67fd82acdc506210c827642e27bb4ca1fca7c00a73a7aa20900ead392b9983ae719c6a9aaeeb0ff9f9b9e02539ca4b",
429
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/messageListResponse.json": "5751782fdb135ac45cec47687b7bcb10d4e2c4c8ae88461baca0eb6f0f81b8144aca9b610cc6ef7f3cffd4b5dc2ddac08247e74608166d147bafb1a9ecd4b834",
430
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/messageSendResponse.json": "ae5ef8b7e2a5db03fc5c04e96cef35b3f819f1670cce72e0e729b57de018bd6ffc254e00f20fa7c662eea100f78bb1824f0080275ac270f7e1229566683fc62a",
431
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/mmsmediaListResponse.json": "fa4d1e3885b6c84d72c9f9a4a414de7d1ae1d574db325cd773600c7a17f83fcbe2a84c0daa8fc690d5f5d95431b1ffe5097c17279593ccb4155d5f99b1a853c6",
432
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/numberCreateResponse.json": "e7acbc2aac3a716dd50e27de2e8937e27fe70da7dfcce17561f4d81a2de53e8cdfb5a695255e1ac65c8c49e4b894722e7ecc9297b9d040dadff97d1cb61ea414",
433
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/numberGetResponse.json": "261a85df87eb4ebd1d310575e8f33d94f74c30f5ba3aef1ed47654f7569ebe4310019c5dd317a8c6e2b015a1ac3f72455118e0878d688817580b18b747d6dda4",
434
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/numberListResponse.json": "134543e58c07917a79e0498e85466b9cbb1c97a0e3087473463419bc6c178bc278ca75e148f885eead7f6b1074063256fa61745c57a0dec4ac060c4b03afc499",
435
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/numberUpdateResponse.json": "e7acbc2aac3a716dd50e27de2e8937e27fe70da7dfcce17561f4d81a2de53e8cdfb5a695255e1ac65c8c49e4b894722e7ecc9297b9d040dadff97d1cb61ea414",
436
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/numberpoolListResponse.json": "961fe25a8fe8c35dee1b0608a24d741b6ab91f2104a9f2af2080279d6cbe4e631416d7b3d8e3772715e376a603cb740d652435a0f2d7971e64e00eb44e7cd518",
437
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/numberpoolResponse.json": "c725314dd96d000028683c175528d15657c046cb421add91a927472c235ae5c1ee1aab060aa0eec56b6c717138623684f827a2de50bdbec1017e7bff937b437f",
438
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/pSpeak.xml": "1e49af0752b825db21fc50126642fde3f39dd8b63cec3db00c3df92ca38935d58b8752ad14928278b98ef23421d0926d624b6aae948f9473398d25e2d087b963",
439
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/paramBreak.xml": "1202da39615a87758a5fd85096a4d98f6c2726d705ef0b1086cfc66cd0f456b15e3f79d9850e1bb8b99e9114e41b3ca19ee4fd269a42c002c205de005c72ceef",
440
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/phoneNumberCreateResponse.json": "a1dd38958ee69b5036aaa1c86cc730802dc2d7612eb1de9266f9a6651f6f067cf9a42d44c736bf85d1f40048f01f99fa05ccb3fb26baf3875e3bea98fbb9bbd8",
441
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/phoneNumberListResponse.json": "f2c263fdf122dfcf98289f6cd9276cd8c22fe4ff5bffca19b3509800d07909664e9ddfa3e145da04c06dfc6c5227a39868d17ca947e55b65a9cb18a6faadfe57",
442
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/phonemeSpeak.xml": "30620187252e4a92154e06e611a2cda1ca881a0d85b1c6c36e3c713734c0be9ce79bb9ad38a11e040cff437c5676c01638eecbacc5b50a20e0adb506565a9475",
443
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/powerpackDeleteResponse.json": "f170bba1b0b6bb42c88bc74353ea4db09b82f07f5a2166f693d0579e5b7d6beacb8cf11e39cff546345333b14752456212584e284c2c360cc673d009fd2aa018",
444
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/powerpackListResponse.json": "0cf4f36945bf4f73377a6688f99bb3efb0c35924ca9278bd777ecd0081c3f667d45de4a34f7101588b7a7b3b20179d18a393dcc468ed88df8eb53b5e2463d7c1",
445
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/powerpackResponse.json": "4318b75a2ac1642f6ee33fc62f18765a5142aa52e0353082a9d38cbc7660e40f24e1665a59c723ba90ba9a86edb4cd4a396bb9a0c00cebf6d5944e0ba84e7919",
446
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/pricingGetResponse.json": "25a616f338c147cb22228535abafa9c1439f663230d1fc5109af24f4f11a637c5d0cfdbfbf3b2762b87d0b4693f14223254e431f3b8ab1f518b32ea884e2d1fd",
447
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/prosodySpeak.xml": "0529a04b9ebbfc245e7d50bce1177e3eea9f0f6ede900e9fd3a447f86078ca86fe8c9911fad4645494cc784394194c5e6b63141a2a9125a1ecdde2cbe8bd7c86",
448
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/recordingGetResponse.json": "bdf9cd97b6c687685b9c37a0921bcba910dfc811abe416be7b17fefbf857c3ee1233e987570eb444d168edd660c26acb55377f60b8aa0a898f0c9af1743edc81",
449
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/recordingListResponse.json": "2d831eb418cd0de8a0d63da8a2ed133005a3e15e4e021c3451a737c45f42e5753ca5143204acf2f8bdf6ee91cf1ee8b04ee960f942ae0e62bfc3583ab44a1dbb",
450
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/sSpeak.xml": "b81f50357fb60ad968d8e949aed15c7544abed0a45c26c5bdcd4b166fa1d9bf74f57137fcfd378fec345e1fb2281ac38c30b2a3150cc6fcdc13581ea29379796",
451
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/sayAsSpeak.xml": "84e2d4a310c8d1fccc5be4be4cab026e1dde129ed2e18ab4fedcd50512cee91a52cf437606cc936c474cbfa508a105f36272edb6bcae29388f2a75bcb354de6b",
452
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/shortcodeListResponse.json": "449e0c165ad81254715b4521e5f4d39b0a6d1ecd583bf337e8b85ba40550a0942c04a8e33b69e5327a275fca4e42e31dd1719f100c8d6e459939a3696ede1a71",
453
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/shortcodeResponse.json": "867e2309b5c912c9dac5b06929a835b578b0dd3391c43f6e0d454adccf997060e1e5013051b394a94d44af3e5cfea67a88f4376088a376a031d6fde5fafa09be",
454
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/speak.xml": "a781afeb86ed31833e74d834de6d9834783264ec43678fe3e70a7f963e97a9dfd05dcb5ae75f51fdeec1d5d8d299d8c476454307a23efb830022a477500c02f2",
455
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/subSpeak.xml": "06ff8e0c15b36727265d9f80c736a1781438c04445e91bd563b73a1f9ed4b501458f7e3ec22607dcd96e9f95da6e6d874c39381ca061a768c2b664a1b4bfc504",
456
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/subaccountCreateResponse.json": "7fb28239b065aab21f14d158e51ab6bfff6b10de97ca558da02adb639fd15e99343ca54277d0e0b0dc6be11c01abe6517fcc2f0e862d5a3538342f86bea87994",
457
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/subaccountGetResponse.json": "929de7e767657a691c8bf34be8abe52990835f9787114256bca7a1fd6016b34798d36e2318ad3d4a2a8931986d8034e2310e4b4247fa38a84314658402aa3bc3",
458
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/subaccountListResponse.json": "c57bcf1f52d302550eacbe5492bbb1cc17bd399d03b6c83971bebd83fa8be975e97859063a2115edfed47f622adfb413d5c28d6cc180710211bce192d867052c",
459
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/subaccountModifyResponse.json": "a06022b797598bdabfd7029128d9ebc9934784edf77175292c17b60152e7464938f78ddb8ab2883e0da22fdf94e584d0fe8d766c40228bc0a564e6ce76c39365",
460
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/uploadmedia.json": "35f19877904dd5eacf97183a286db18153002e37159f6e007c9c70644843d73963e9293a5e64c1854665821e36592f5ca11289d2ece86fafb3ddc4b8b758dc4f",
461
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Mocks\/wSpeak.xml": "05cdd9418d049dc33432e02bc305b10635daf3bda936c695c4136bc4bb8167ac63e6ae809202a566e5a1488d8543c06fd9c52f869b03a474bfc3db560769c00b",
462
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Resources\/AccountTest.php": "8a98fbb165ab60db8a7423252e78d9db1da922dc2e1de9ef5cde32488c04380ab01e8fe53f4f542c602b28e574966adf58385456388fb4aff543dc04467de668",
463
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Resources\/ApplicationTest.php": "e23381682056702928ea1c587bf8241f71743e4349cb30b621f2c843711c108c0811689c953ecd52515b2c780c50c134f959e4ef77ad2c0dd65dfccfa8c79c2c",
464
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Resources\/CallTest.php": "7aa7df68b91782de7a8ff67ce4bdce917de03ce4800da2d6c103f0d1297fc26c09effbbb7ead06d70566398b8679c54246213c4babefca43976c289b8bdb895c",
465
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Resources\/ConferenceTest.php": "3d1149c50cc760ec57de791d7a1eb46a5210c113fe91e1756dc642d2d94b333067c9c3c5ff9d0c90d9ad8981963394d332287b57b84c634c8e4008ec5cb2356c",
466
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Resources\/EndpointTest.php": "aae4c23a72674a9d4da6261986147a3b3a1c5e4da03d2efe7f4ec21336e03d352ddc0f7e47dab3c9b4063a170d37e0eebeba649ecd1159d85a3c5553789c51b1",
467
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Resources\/LookupTest.php": "c436483d9ad54681ed44ef7a6b44d4899d06b7b421be27d2a076aa4bbef23a5d160d5098c60d5c380a8e66ebf8245c917074edf6a7b682d056f9f60e082de032",
468
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Resources\/MediaTest.php": "a6ea3f17046c123698c0b8fc1e7cfca6665159166dd53b51d1b5a7700373527c7346a90e67a382f4df26ed3f92209790c3ca93c0c3d3b653d424e17a1fed9f17",
469
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Resources\/MessageTest.php": "9749cc39c4acb64b49150958745f19952ffeab648abf06ae839eccf8eb9a6c66bea62e7d8fa398dc48a79bdc97ee063df934ba827632faf88f4aca01e5432181",
470
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Resources\/NumberTest.php": "9123fe40158482d314279a729e4c5c0eecf3733884ea39df16de986e775e93e90b8d9c7ad35fbde8f3d4cde3e02b33c70ebe87cbb27039615de8213cc27aad47",
471
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Resources\/PhoneNumberTest.php": "4b52dd78392c66e1d1803a278ab98bb03e4bfe5275e28b043e4f672357125b4373acece1c2c5668081be021a683acd2796e6ba5ff2646baf3435dda1d6de7667",
472
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Resources\/PowerpackTest.php": "52a3c6967c93b1b996abb3fe7e40ebaec915e58e715c6943b0f5ebd945c8a59023184dd1339cd044d2f3ef1a0041a61559a41a3832bfc222332fd85bca8371c9",
473
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Resources\/PricingTest.php": "91a088d32f726c2eb49160363f7a77d351f3f65d43a9282cbea646310e2d01a33d22a2adff9ce5795f949bd205c0b6e77571f0a231265514704f42bdefbc51bf",
474
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Resources\/RecordingTest.php": "353008dcfc66ae09e915787634877d598930e60fff3f1e6eec0aa5590881f66d78ebd79aa1ba2b2a20409e4b9372eef9ab28406c9fd29f95ca6c773d8c83fa63",
475
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/Resources\/SubAccountTest.php": "6dd803629402c6f7b8d923753477f6c03d6cfbd50aa59fcd63556527cdbc3d932557b318cf8c7a9f5a9d3ff8ff143ef15f31256e488fa8c35cd62bf80ae04d5a",
476
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/TestClient.php": "8917a380e2cc030228dbb37a7a3aaedd2cd624d8102eee1fc3469a9838f31f7ee734a40cd45e510d63bf4c1526da4bb3af8d45bd4ebd4382cc9fd5bc2ba178c1",
477
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/UtilTest.php": "6a66cd73b0cd403f64f8a4752381964bbac7507b4449e81c9aaa64d61db244128c604a8995327dd8e8ccc8a30cee7a3a57fc617b845ebe65a65ac38125ca7394",
478
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/XML\/BreakTest.php": "740c84bc38e7044f5138e3816b72c6a94bca3accb592733421578a6eee2080bc6721d85cefeb8b6f1db751e2056fbf722e0dae61d260b089dd803e72cd9cc0d7",
479
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/XML\/ContSpeakTest.php": "f3b641231907bf807c5c09b65a13409ea054b0116b9b36f5bbcc2bfa651592ae1f4707be5780c37c5b9f1516044a9f524f4ca829cd0b5387a6a32526ba11cc94",
480
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/XML\/EmphasisTest.php": "b76b6d0eee048b44965f87fa6f59614e64d885864ef3ff0aa2310746d76304fb5ac6cc6d0c714e7560e5472e018fd0183cf9a918d3e4ee5415723314d7d219e6",
481
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/XML\/LangTest.php": "1a4ef409ded7d9c7abd8c63994dd3e221b16bd1fcca8133ce43e04b300a28468cea68e430098393acafb78e537e37b0574644735cb84fd08e33dbd828e2fb071",
482
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/XML\/PTest.php": "9084715ad9065f1a926e8dfdabc5816b16a385dd5cd74f16f6fdfd1aef043b7d344d9cdac4b9dc43df85e8e63f329909553e20b86d995d9eb6d25d716fc5fd1b",
483
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/XML\/PhonemeTest.php": "f85a3119f95615c3d3e16c0a4c1d2aec7b2191629b60de276cedb769b23e11546fc27fff57e329c1ac6cb52868208d29f88d1412b452932b573d88cee9fbd68c",
484
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/XML\/ProsodyTest.php": "5aecbb6cb41b0269b0895e580bf87dae24703c3116dd39774c11d52406635f4167bf55ed0b950cb4d8af9138c03361161527c7f0e08867053034d8aea1fb1daa",
485
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/XML\/STest.php": "55343bd191ba9b88fdafcc409c1685224cd6673225c1ecdc006d4c3643d9e4f71fde0a07ead3f1bfda80bed486f09a7fdf42e16cf3d4fe66f592bb72397320bf",
486
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/XML\/SayAsTest.php": "005fb0efa4803847719d9e7d52438ada0026b3860d7143fa4deb96a80826ff0f8608b3dd9302617547dd36cdee5293ec25570dd6513cd81a921ff483379574ab",
487
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/XML\/SpeakTest.php": "cc92de5d0f5df6de17b121249074752bb191265335a6e50dcc4739fe525cc9d0014c187a7d15cd0c1226c56360277469ba10da72dc56dde01f478acc510a8dad",
488
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/XML\/SubTest.php": "5c113371cb363691313226362512772facc38c30afdc32e96976aa309d6ac33aa32bab7d4ba674cd566182641048434dc65cf1403f25ea4adfdf6c6793db2fc9",
489
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/XML\/WTest.php": "f7cb4983bde61290a90fac15c009ff1780b02fb81c8568d0e8a1f40fab97dc1ec2245cd477b5ec669c6f54e56bcf7351e38c09caac7255756174baf4070c9284",
490
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/XmlTest.php": "58317dda536a0383749d695ee8cce6f73d6ab413984673d46b10d9299e5a70c6cc464051e986b75c849286787a8fb23ef15e8bdf6bbc9a27e1c0cadf46a1bcd3",
491
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/bootstrap.php": "fb1c83cc2a11ffef9903eaf721f4cbcda4767f70368be33a0980aec4e5b515fa8258750f6e19fca0eff6843d0294de9c35b8e95af0e62f51a94442be0099720d",
492
+        "providers\/Plivo\/vendor\/plivo\/plivo-php\/tests\/phpunit.xml": "74191aa62aebbcf797167fc2bfb6bb304cb3d309287a73919caa1c43c188dcef47a1f1905e56143952e4b342ef183a84887dacd6976c18e58025582d5f672035",
493
+        "providers\/Plivo\/vendor\/psr\/http-client\/CHANGELOG.md": "82bb81ca074204aff5d95ac5d3edfa9c85569c8b9114f809e3e2f9525a6046a1276187ca42f638ed428311631791f60e6dace74cd60d77f1af0a41e9f76ab2ac",
494
+        "providers\/Plivo\/vendor\/psr\/http-client\/LICENSE": "3e0ee70fc857b6dda26ef2eafa55ef09384d82bb2f85b4289abcd94a60201c698eb477dcf03a73858b2cbb9efcf00affa199e848344b84dd4a4c135601e886ce",
495
+        "providers\/Plivo\/vendor\/psr\/http-client\/README.md": "a8fc38f5744eb4c1f14f5016b02108319b7cceea7fb3219f57f0604a2e92778fa9be6f1e340003b095f70c962aff0b49ccfb0264b26eecb8fa7782667e62cf3a",
496
+        "providers\/Plivo\/vendor\/psr\/http-client\/composer.json": "b767c510e3dc28fc5c8c0debf4e5627f4897940d41ced88cb0c85284c2e0765f49305997407e84d87154a4d9e14045e6c50fd86163d3d7452294af8b7bc36ccf",
497
+        "providers\/Plivo\/vendor\/psr\/http-client\/src\/ClientExceptionInterface.php": "33aededf573747615cbf7b8bc6aa10faea7762c903a0cc98bc43803043f9bad58460f09f7301814c22e95f2a6d0269388d8ca899ab76fcf0f2bd8d82aea5d9c3",
498
+        "providers\/Plivo\/vendor\/psr\/http-client\/src\/ClientInterface.php": "11b1cee24748c4ed1a41681b1b6e43e865e08150be14452de885daaca737f4029d65e8381632a23910789d3cf5e9f9d02f4999aad62e4e8c80a2fda9ac96a4ed",
499
+        "providers\/Plivo\/vendor\/psr\/http-client\/src\/NetworkExceptionInterface.php": "6d3d81d18a51f451e8a1b74a16b3ac8ce6c5642013a2d1375ce6718090de5369779f9d6f594675aeeb7bc3f55a11f1b9396036354c4e9ae0c90183ff369fd65e",
500
+        "providers\/Plivo\/vendor\/psr\/http-client\/src\/RequestExceptionInterface.php": "46391124b679cd54538ce5ae6b05d7fcfb6b9ef7680f33c8771f94b38075a366788293b757ccc674060d615783476e1151d0ab8a5f2a10e24578c9b46cc1433f",
501
+        "providers\/Plivo\/vendor\/psr\/http-message\/CHANGELOG.md": "5567e49c016bd259491fd13a96e5b88629fe67ccaa0d75f7aa7c54096edd663fc743930eeade981a041cf7524d9f65104718c129fa36a200397d30c0e5d2c954",
502
+        "providers\/Plivo\/vendor\/psr\/http-message\/LICENSE": "22ef0ac33682fbed60a5274a5b25991308decbb45c6ed45fb3222cc045bb9e552fa7310b1ab6f38329b63f53a02c25e7bc5e955ad23c5bb2366b417563cb71de",
503
+        "providers\/Plivo\/vendor\/psr\/http-message\/README.md": "d58ab57a3e35e51848c3c21313836c88eaca950eb5b716878ba950ad2389bdd84b24a5fd8e6b19ce3ff04b07d879b5206b0f26d5e3a63a5be19beac0e9ccc1de",
504
+        "providers\/Plivo\/vendor\/psr\/http-message\/composer.json": "4f074821b6fb7074c418bed0fb6232677a0cf6ae5ddf24694e14bd5aa7fb3610a645f2221fd024e7c4bfe3e95501421455dcfbbbb38468e9db442b8cde9471a7",
505
+        "providers\/Plivo\/vendor\/psr\/http-message\/src\/MessageInterface.php": "b79e96e691ad169d4d70420953ccb5933301ce7cedc17d4eaba859dbd56719008198fd201e3be1606ea5dbc78b559f1d86ba17b73ab7e843f0c2f0b49564147f",
506
+        "providers\/Plivo\/vendor\/psr\/http-message\/src\/RequestInterface.php": "f54aefad46987c6b4880d5f09f7e99909e6e2a99f9d305d1f73e4de58b43493179149912352869e50fc46e057f50c78ba7ed5df6280a7c0347f3d7c36afcbfe4",
507
+        "providers\/Plivo\/vendor\/psr\/http-message\/src\/ResponseInterface.php": "69d177fb504f47ca0181ab35e2155cacf16e77535d07bf4eb4d790e1ddbc7a133f3de21eff936a3e75acb704c936ee2f2b12b2cf3516464222c3d60ea9760488",
508
+        "providers\/Plivo\/vendor\/psr\/http-message\/src\/ServerRequestInterface.php": "ea36ff66e8bd962e468fb2bc832e70f7bbd81f92dc0e607cd69092b737609d565f3e254a2d54fb3588f5302315f62e53c6eefe9299ba4b6f1f53ba8feffa815c",
509
+        "providers\/Plivo\/vendor\/psr\/http-message\/src\/StreamInterface.php": "11ab8a9d07beea1f1633f8f6cabb2a463ff288555f2fb8a4cc0b99404d8580493018557a0f2674feef653be51f6fb8d9aa3ad8e6dede0391cadb7bb49f96f781",
510
+        "providers\/Plivo\/vendor\/psr\/http-message\/src\/UploadedFileInterface.php": "65da733a08d80c5490fec8e69c7b56a47efc522e720a2ddcc673bd74c0e21f5fad4d522ad47da4942d25d139b5392e0882de32b7fe5a5697b86f40fd96ff0f8e",
511
+        "providers\/Plivo\/vendor\/psr\/http-message\/src\/UriInterface.php": "0d46735005331a3489e3ef4c8229307320de44b0443ff74d238cf8f3962d83e99316da9435259d479b48477d33e8713dd3d1a1859264c22f2a53b43cd6adae2c",
512
+        "providers\/Plivo\/vendor\/ralouphie\/getallheaders\/LICENSE": "ba7ad111dab105773d8a75d20024b48c4222cba6f7836b7b608fddf34f367cd218302829a1926a675bfd22660f4562b0e9a679d15b41162412924ebcc1a4e557",
513
+        "providers\/Plivo\/vendor\/ralouphie\/getallheaders\/README.md": "48ce2def80836640ced369db92da9f9e943b319849cc89441023bc260edd6919c710d08c91fbdf04864c6e08bf89e60a397f5e814b3e9699b48df574f5799522",
514
+        "providers\/Plivo\/vendor\/ralouphie\/getallheaders\/composer.json": "495b111d0e0b4f4496ccaec984dc89c897f189a67d840c09b0cf17034629e1c896c37c4ddb1afdceb7d5a188dd0d90405ce34aad409d3b7722169628411d3ca4",
515
+        "providers\/Plivo\/vendor\/ralouphie\/getallheaders\/src\/getallheaders.php": "a61a5f91f21a68108c7e9c8eef22282e4b1b6f6f14ff997c5f47c83f39acd08ec60f4b9d25d306d67fdc68ec57c7f71a44a1f63ebf7c25b40ad61fa1cb4e58a6",
516
+        "providers\/Telnyx\/CHANGELOG.md": "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e",
517
+        "providers\/Telnyx\/LICENSE": "8756122099aea86ddf6f176a480c0454f2be6dd278e475bd6be7d7ab3d572162f1bd44c9f623e52e53514cb15336be6e84a5eafc8e2a347b481ab5799ebd6e17",
518
+        "providers\/Telnyx\/README.md": "321748e1de717ff62ccd3fb2c10fbed8ce92a66271f2047c83be8929f965c179cd163e429175b44893ae30addef3623f96659b98528a405a585f7afc7394e866",
519
+        "providers\/Telnyx\/VERSION": "7558cccb74c98362a480e1c0ae17e711de8e5d6cd10f508a31395105c0efb22cdea79aa6f9f6f890837d519acafc2cb3c429d3ab17a283e1992e5aca5053e25b",
520
+        "providers\/Telnyx\/build.php": "485d76b827a54d8455550e8a8f8d14862f9444381da251e66c2bb8ceaf2106a554c1cd339666b1260450749d0244d6b9ba0c6d0a2220ab2411aa4041fc83f8ad",
521
+        "providers\/Telnyx\/composer.json": "7ab90dcc0b5854786b213e5f2ee8c8030b21f65b2f8d0f74a3aa6d771ca1054ae5e1ba58ad6684dd1234e7eb7244be537cdb0a6888172cffcdaefcc7f5908dd5",
522
+        "providers\/Telnyx\/composer.lock": "1e4b665caeb711f94b1e7f0ce6388e91ada9973159c1230d4e60f0dcfd44ba9af2dd236e6acaa27564e91b4a89dde817d5a73cad8682aa9cb93b203f467c6be0",
523
+        "providers\/Telnyx\/data\/ca-certificates.crt": "66816e077ee99ceb9535a472e6bbf4f0e48ca838099c8a97c7baf3297fcada9a43016ea1ded63a455ee56a8f18501417a0f744fc17b215bb599cafd76b754518",
524
+        "providers\/Telnyx\/docker-compose.yml": "1fe4c651e406095f0ff1bfc196406d473184bf53cf80f7c67dc79f1aa94b26db74174e0e9bc47adc95eb2a5f6eb950255c4a5cf44ccb7029ba712df3be9e6384",
525
+        "providers\/Telnyx\/docker\/Dockerfile": "a63d1fabd8c19fef37b90922aa4bb21fbd1094635666cf2a3a4db47009888bfd3f1ad5c34c05184e2ccc8f581971f6dae91c1ff137730821422cd482c39e9390",
526
+        "providers\/Telnyx\/docker\/entrypoint.sh": "2bf3911c365a271fc52d17a0aac1687abf52e5286a5d52cd34367e18651dcfd6ef1f791b54105b7742f5d691564ddca3c05a9ba4ce8edfbc68fe919e0bdf6c1e",
527
+        "providers\/Telnyx\/init.php": "e590e355286b775423b39dd23b5aa0d3383d8a85ed2d1346802e0c487cb834154b4ba1b0ca41ae112ba81cf5afbcc9133db8747e08565c00fa3b0ea04fa7ccbd",
528
+        "providers\/Telnyx\/lib\/AlphanumericSenderID.php": "c6f7d381cd9901af59d67c66fbe6ace0729c77ac2b2962ce41351ed076cb39c9049aeeb72ba0e3933ebce4ab8a936b86a7e21d30a1c07b2b08cad9da2abcda1e",
529
+        "providers\/Telnyx\/lib\/ApiOperations\/All.php": "5caeaf5bede40fa19422387d224255ed534a866638b22a7a832111cada5496764bc0434cb1aa7365e1d4e0a8ad55545bb05a42a17ae5f2b361ed42c12166a229",
530
+        "providers\/Telnyx\/lib\/ApiOperations\/Create.php": "811f9227ecc5acb172e8e7120541227de0bc22cbf66a41490b743b3e49647a38889d5cfa5d64139b602572f0fcc0fbb96e3971c78801ed9acf7b50db2ab7499c",
531
+        "providers\/Telnyx\/lib\/ApiOperations\/Delete.php": "4c03010d81be8014694e366cf93244dd2f73dfb38fe8a1f3066b6ce179b999967de5a9d3e3140b3076d0dbbeccea329ac750ebb93915ced1e44891ab589f0c7f",
532
+        "providers\/Telnyx\/lib\/ApiOperations\/NestedResource.php": "390efb020ed7c101b32379716bc2111e83273e2a7092da61623f85295c67ad1f6ac2fda617ec91eb28d02ed52a86db9992ee044356f3d96aff2e3474b16da601",
533
+        "providers\/Telnyx\/lib\/ApiOperations\/Request.php": "5b947c7171a05a754fce9c5bcb81f93c1614db086fd4ceef9be1a57977f8bfa7311af0a60a2879d8cb9380c64ddbf7c991738e5b5a4e4b2feb5d88e25c822f3d",
534
+        "providers\/Telnyx\/lib\/ApiOperations\/Retrieve.php": "d2a5aed1aaab9421f2f2b41f69047a70bdea46082e118cd94e087f4082865313d7c67aa037fac194063c53b06d9dccbfa5e65582a9adbbcaaa2982396cbda01c",
535
+        "providers\/Telnyx\/lib\/ApiOperations\/Update.php": "a102e823a46dca1eea6c0bd67b4b7c63bdc0d074c97b42a830de18006782309d3c5f77103b32e82c778f670aade73d3c31f49da49682d9ac204560bd868cd526",
536
+        "providers\/Telnyx\/lib\/ApiRequestor.php": "617ebb71c97dbd896ad736a4e1235f784ea7b89dd73a980a2b259820e3dde0ae935fa532d1fc8e0d9e14a63f843e880e074319bab2f9c519c1ec19467f80bbd7",
537
+        "providers\/Telnyx\/lib\/ApiResource.php": "5adbc90947859652ee20745236c330c5a3124edd3140cb54cb2d4ecb46409d4d825024708b6bc0a44a418f181fd5631a65b41381aae7a55d7c98d80ca9751b5e",
538
+        "providers\/Telnyx\/lib\/ApiResponse.php": "0d292d053a85224f4ac839f54253decab0eec5ae9861ca95314e98cad0fec2d2f0a7e712a8ec433adb302b6702d69262c8866b20fd08d67b2d18571965bf6789",
539
+        "providers\/Telnyx\/lib\/AvailablePhoneNumber.php": "7c82ca4fa28264c4fdd910c71741270657e52cdbc760343339bbb7c1d5980d27b7af476f7e1bd431926d428dba685a6e34d250f9678ef0a4e3cd8c4b06289e55",
540
+        "providers\/Telnyx\/lib\/Collection.php": "8953b7490974401e598cfdba09be005dcc037ff74d7eed660d11afca7a45d62c47f6b6c4f31b3b3003f3d9401599283122034362618a9c3d487eb131d05cfa13",
541
+        "providers\/Telnyx\/lib\/Error\/Api.php": "5c496f65e000a74652c5e7e3c79303befb693e497d67dab4e13287ebe72722c9651fa04c4de4065ea969e140f7a2f74ccaee2ab728f05790ee26200558d0085c",
542
+        "providers\/Telnyx\/lib\/Error\/ApiConnection.php": "469821ef557d096a088d2997f762b4a39c82c49bcf22ca707bcbf611b20006106522150d6365835e0c7e23e3303bd407d78181fb7b5d86bd35095645e68da158",
543
+        "providers\/Telnyx\/lib\/Error\/Authentication.php": "e1c7a938a695fcd8602e5a972086989efd349a6d8d5e3abddbf6f548ba2e1f9bdabe708b5ea75474f7c3588ba7cca8a1dc60970a8be70a80962f90342e67c13c",
544
+        "providers\/Telnyx\/lib\/Error\/Base.php": "9d311a5445b2f3d9c4e25c42094734c3d6243fdc5025c7e5a609ce49d2b2a47f01ea2f163154917f3330e1a92d30a736319c4daf3ae18bb6ddc41d131afae0ff",
545
+        "providers\/Telnyx\/lib\/Error\/Idempotency.php": "cde2f56479baab53e74c6784878c7914e7393b655bfdbf7a36e0619fa9c521671c105c3d5002983b3759989a22eafa0bba7b4aedd4801d7d6b820842c0285e35",
546
+        "providers\/Telnyx\/lib\/Error\/InvalidRequest.php": "0c5748224174c20020155c9f0c734121d07c752460ef63648b08a2392bb6d8b6ff0a9eba13ed1cfb8988545f6dc8c70930de6e78da03c63da0e59bc5fa109a9f",
547
+        "providers\/Telnyx\/lib\/Error\/Permission.php": "3a03b08e77e6fd0897de16d69fb3769707f6fb46717b2a00f1282d7b3e33527f5ca5ea94b6df03c883ea177520140ab2dce4986e0ee0977cce8c375e8a5011fd",
548
+        "providers\/Telnyx\/lib\/Error\/RateLimit.php": "0ceb884f1078559f5bbfbba6153e6bacd6ebc49dac2d047da9e7c64d45c7cff0abc067711366aaec74a4f2736b7205c02ae9de8c214871a82ed1fc53faf4be73",
549
+        "providers\/Telnyx\/lib\/Error\/SignatureVerification.php": "8aec6ea46f62c2b6ecf845cadb726332f89a6c0dd92f4864ac71ffd25268b2af0468cfa83b32a24e91c735ae947498bdc6181efe09857c6bfa799cec721dadda",
550
+        "providers\/Telnyx\/lib\/HttpClient\/ClientInterface.php": "f47e88048bac320e8cabb1b61869f138f84a04858afc3b7aff4de858db9b3efc507d1607037bf07ec5fb1f1df4069b71bf8ec1d0edf953bd1eb8255e67651ae9",
551
+        "providers\/Telnyx\/lib\/HttpClient\/CurlClient.php": "fed4939d221213da7fa7865b4405e5c0b7dc092375e5acd890bfdf178baa6572ec7ac7ad57cb02caab5af24d2aa52763bae1b21679f3b94e6f7ba659cee7a438",
552
+        "providers\/Telnyx\/lib\/Message.php": "18acf4bf51ec27d330df16216924c65a45db59895b610a3c803ef1d09beb7d96d20753b4ec16be06ed40f2886ad46bb3d866f14a87021484ede5d33ac1a93c4a",
553
+        "providers\/Telnyx\/lib\/MessagingPhoneNumber.php": "2a2caa5e44efc5de92ef9b0f8ed0a68af1ab2c80932f4cd7fe79caa87ca1e146af3bd0e1d16d977738da2a3af1fb3cef77081c32a0dac50bbe8ef54a108efbc9",
554
+        "providers\/Telnyx\/lib\/MessagingProfile.php": "351d96a913427c045f534b6993c37fa6ce2ecbdd7a398502ae6447d631ff322ce146cd73dcd1161c999f6bc9ab9764221b4bd3567888dd14c110b98bdc4432b3",
555
+        "providers\/Telnyx\/lib\/NumberOrder.php": "52067d9999c150fbefcbba9969b308bb6118eabe25bd08f30cc4978cdebd68fce4479e53d71ce29632133e8c69bb4ce9276301f5a36ea95bd77d29fd057f5d46",
556
+        "providers\/Telnyx\/lib\/NumberReservation.php": "2b44bfa3fdcce2e21668004d458e9e6bcdb5e33cc37e9a0c980bbdcacec945dc4e06e489bf5b9d0194df00229a79e39bc2a62395d44e4072473441e258841baa",
557
+        "providers\/Telnyx\/lib\/Reporting\/ReportRun.php": "2a7b066db83e08b86e3da4c0b2d041c4d53ce0a1fc95ca3dab76ad2bbf549d74f9a97974be6bbbf0d7b592a814a00b514bb26ad13c7621b5c229f9bc40abac7c",
558
+        "providers\/Telnyx\/lib\/Reporting\/ReportType.php": "92ad055c626d39d9f878666310ffec1c425d4625af9e7803547d50f1684c166ea1dc67d79c35580ae08850bb6e570a81994014e82f4d4080377cfbc664c4fbc5",
559
+        "providers\/Telnyx\/lib\/RequestTelemetry.php": "cefdb55dce61e5f276bd49f6b49e57c78085338537e56cce6fea5a81cd1d2235f1eaa78be326cbd513117be88a046177afb628659088b66ce423799995c53709",
560
+        "providers\/Telnyx\/lib\/ShortCode.php": "4abc882d0dbc72becbff07212d17b8e1383b0efb43818a7eab983fd2a08c3f591a4f4ba2f185003fab0622a43329c969d2fcc80b23cb94410007a0879309ad49",
561
+        "providers\/Telnyx\/lib\/SingletonApiResource.php": "f11599b789dfaef76ef6cf10bade1b426d2e16749bd207c6d08ddd007fea470fdbf0492f9a59cf8bc9f8589aa4532cd6c3887629cf27060696c3f086b0a48673",
562
+        "providers\/Telnyx\/lib\/Telnyx.php": "4971ff61049149242b0cfdca4a15dce213c465ee697cb444eb47da8215eddf2737508164c59393bd7661cf40b1a525afa9fc0df0dae8a071a59f3646a5ec44b9",
563
+        "providers\/Telnyx\/lib\/TelnyxObject.php": "a1bb11b6bfecd69ba694dd34d6309707e916ef45edea1e81e160c572dc404aa4e16841f3be7a82b3965037efef24db7c7c9730fbb65d26e8a188d30fa9af01f6",
564
+        "providers\/Telnyx\/lib\/Util\/AutoPagingIterator.php": "d03ac3841bb553d847be9ea73ab9debd8c1f2c829b0d38ac4416a121ac535a5ece2ecd9943d89e720cb5abb1c907ca9b96df899a561c190ccd6843bde785114b",
565
+        "providers\/Telnyx\/lib\/Util\/CaseInsensitiveArray.php": "bcdf3fba35ae234bc63ba6cdb5429aaa5fd6baed85857991abb9eff854b23eb7a878184ed038636292ac470b67f91c6bf8d79c20a6214d31c872d22fe51833a5",
566
+        "providers\/Telnyx\/lib\/Util\/DefaultLogger.php": "50a69f9f6ad628e489a05fdad0df811c926c957c301adb0b4b906dcce9733a0598f6c2eb126865c54a0100131dc4230a834b1e98275237ce8e90bff2e96cd0fb",
567
+        "providers\/Telnyx\/lib\/Util\/LoggerInterface.php": "8d2dc2c59af5e625eaeef0b85b09f78a42e533b62fee84717d67a4c706fbacd94674f439d3ac60984c0a3947b7d2f5a8ccfb64e071c41d063b8298f57578f88c",
568
+        "providers\/Telnyx\/lib\/Util\/RandomGenerator.php": "292c880420b28390e3d734c6343acd48f322db0c474f80430402916de1dcbf8e988b3d2753a7c18e763e632f474284b213ccc8e8fe4e52f00569e72728dcccb4",
569
+        "providers\/Telnyx\/lib\/Util\/RequestOptions.php": "61a13e62a72e7fc4a1f4d2a707d03ca785af36dd8566e037efa4b1a07d91debe1bccc637bbae6ab9dd836b20a4133cdb7316d6c2628da0d13d2164d6613f1e3f",
570
+        "providers\/Telnyx\/lib\/Util\/Set.php": "1381d2144748a490fd27329fe231e9d3a9a8b428499d4005f9ff18a946c350d8dda1ea90285314a1a99f5d351b1b235ad37a74823c37d7345da8af528dbbba87",
571
+        "providers\/Telnyx\/lib\/Util\/Util.php": "d7c35dbf5a2832ced6059800a6730fbe75338252641edab902adfb134a179d96e162f05bca2902c6c2d99cf4827d5b89b0daac826162c7d460e17017ee405606",
572
+        "providers\/Telnyx\/phpunit.no_autoload.xml": "06ad2f4fe0a292902757629f5605509f32a0d1dca527550619c98a61519d83fc70f3c886b12f5e5734b1031186fd9c7fed6fba813cd816b0f07d36c2a6bf11e4",
573
+        "providers\/Telnyx\/phpunit.xml": "82ac037adc20f2aa76682878094e8bffbfe31782dc6a94e2987bac5546e3ffec90577d03715f4ce481cc977685eec9e4109a61b4b46bc19351c2cad555d7cadf",
574
+        "providers\/Telnyx\/tests\/TelnyxMock.php": "e8e93ca1114530cb7e9cad46eb20e32072934496d515a9391ce8093773450dd60f3288f9d3ba46533a0f650fe67b508d5e54bbfc6e1642443d1fc043b88eaaeb",
575
+        "providers\/Telnyx\/tests\/TestCase.php": "9945df738b56e344648cc00d3d4b94345c15d8749ce511b5095a87d5e52aed35d8e3c773276d9dde9d9fa04eada784a55e4876ebf70a198ba719c8e94c8c32d8",
576
+        "providers\/Telnyx\/tests\/api_resources\/AlphanumericSenderIDTest.php": "1db47c5c215f1dccbc0456035edb1619cb7575dfe2b152924a6e1abe4a021bf63be3b1d1cf1b86285c5425f5df46c8e396cd66b6ff6a27534e402e145e5fb194",
577
+        "providers\/Telnyx\/tests\/api_resources\/AvailablePhoneNumberTest.php": "823ab5138035a84a790d70c9bc5964e7aa163f195aeaa2fb50d2cfc7068f1a77440f09a134bec36a187cf57cca6c735b428b225239a263aa26cc5cecbecdf6d5",
578
+        "providers\/Telnyx\/tests\/api_resources\/CollectionTest.php": "af248a4d4c4504f5fb7148e8f5ddbce3a05cc859a761f57cffb8335be10b07ef6d4e808002601f92eff2968e86873fbbc3fad838420db0694f81b9cd95091452",
579
+        "providers\/Telnyx\/tests\/api_resources\/MessageTest.php": "a616a69339b599526dfd24a25d8e99eefc99c2341bb7d4f635d1b4984f41dc38a3eb6bca3e4242caccb974b141a490624669b5c2b2f5315b6cb07540d74fcad7",
580
+        "providers\/Telnyx\/tests\/api_resources\/MessagingPhoneNumberTest.php": "40409c270a6f9a683bc690f6e91051fe1ac4c8a6cb1b4e5536416d64fc3f8c81f327f33e562ee94cee1481e0ec2f13148b0dc3f76f3f20a49a9d80adfa5c1afa",
581
+        "providers\/Telnyx\/tests\/api_resources\/MessagingProfileTest.php": "1ca7abc2b47f221b491ebbe7def5569deada6eaf4184bd6e6327f7bf2da15669d1fff581e24c466621e8462e816c0a12d02e0aa1d91aa3746092f8a09a9131ae",
582
+        "providers\/Telnyx\/tests\/api_resources\/NumberOrderTest.php": "dd6e4382dcdb0cd60ded9d9db6262bbc7f523e8f5eb842e15655fe8ba4e24ad5192b8be40bbc762de2c62de3aeec31e1373063420a99e39bf02f5bf74915d5ab",
583
+        "providers\/Telnyx\/tests\/api_resources\/NumberReservationTest.php": "8b8386c0e044e120b6d60f97433c9ecf0ddc272f805034768300bf01bfbc731a3f6f964758e509d650013df03bca66eb1db13fa1a24315df76ea55fd86287fd6",
584
+        "providers\/Telnyx\/tests\/api_resources\/ShortCodeTest.php": "8aef092868b89adda6517905c7f05245b3c39affed4c7723e5a32cf17b8e39528e8925923aad4b2add5a0bbce9049a8f934141b87a790fcb002eaf77aa494258",
585
+        "providers\/Telnyx\/tests\/bootstrap.no_autoload.php": "cb002f7c8f77834b6414db6535f083bcd227ee6085363fa3cb0f66b55226680a45c8562fd8458249868465957b2aeae134b3379f8ee2ed22c96425475e9c0af1",
586
+        "providers\/Telnyx\/tests\/bootstrap.php": "50e143ed68aceb91d3e119d5a31521e76bfe9876bd780c90ac83afb7ca4f32be48ff81c33c134109eafe1d22f35e0957a9a834966b8853df99dc1df04795adf4",
587
+        "providers\/Telnyx\/tests\/data\/test.png": "6ad523f5b65487369d305613366b9f68dcdeee225291766e3b25faf45439ca069f614030c08ca54c714fdbf7a944fac489b1515a8bf9e0d3191e1bcbbfe6a9df",
588
+        "providers\/Telnyx\/tests\/openapi\/README.md": "0c54fffd5b7a5f393358864ff9e3bd3793075d6060cc1336603b2455d60f16d160ffd47b52bca6834acf0d9713855b386f69580099a3dcc131e8d5d617975ff2",
589
+        "providers\/Telnyx\/update_certs.php": "46dfc1129c3dff2211cdd8274fadd8629c450e94a7a1c8527373221b25a0664b6043d6b007351ac9afa4b40ba349a7fdbf4ad2e088cf0a8d864f7cbb81145fb9",
590
+        "providers\/Telnyx\/vendor\/autoload.php": "1d4735a3ebfd65901ce478f8bb98ac576ef9ba2706f17a1c6ab125979a882ec7ff463b577fed1c418f817c1a56e842fc25b6aeb8e7ce6dcdd554a25e03959c3a",
591
+        "providers\/Telnyx\/vendor\/composer\/ClassLoader.php": "866e8cbde808b4e7774c5d9e2bdda44e84ff9bc84268785aff1a75277bd7918dc26ceeb27732718c9ea93756777ec0d16c09c15f9c1179be3cbb410c7914d295",
592
+        "providers\/Telnyx\/vendor\/composer\/InstalledVersions.php": "86ebb1216b59b01b7cd1f3b2e66311cd6295b58fab91a9a82603f903c6d2f716d7697a82d625372538f809e9e45f7dbd257a00e2b95d23c3785e4eeb3a6ebb60",
593
+        "providers\/Telnyx\/vendor\/composer\/LICENSE": "f3bb64009f41a425df5a9bbab53490f0eb9b74fa8d6aaa2f57efb928edc4ffff330260666edeaa04a91fed708c3663371cf01b284f3a08d6698aaef7a23f355a",
594
+        "providers\/Telnyx\/vendor\/composer\/autoload_classmap.php": "a298b75d605ec9a330a5efe11769e79f02cf202f49d8b241afbd175c7fcfa0ac4db8e72a29aa1d839138e3b181fbfeca525181eb57e998a4a2c14ec9e457cf1a",
595
+        "providers\/Telnyx\/vendor\/composer\/autoload_files.php": "107b2d75757e7b39e2d279e373fd4291d57e91a7f442b0f880b51d07e7119beb9d41d1cdf916131bba717e8da953e2117ff83f1bd9ef850fc1d9056d0f02996f",
596
+        "providers\/Telnyx\/vendor\/composer\/autoload_namespaces.php": "30324cf2dc20c214c5b5c8fdc2099b67772149ddea1d1d51969c711be9a83d036e43746c600f958a6b49969b16a10ef93e9b1e3d5af9714721ead916b9aef344",
597
+        "providers\/Telnyx\/vendor\/composer\/autoload_psr4.php": "02804e683dc13b4eb2ad98284be2dff3eeb97f0ae9054c3a45641ce7e6144a3b5f34ae36eb764fd2faae39fe5dd4131b4dffd4649c6ba3220ef24aeab45efcb4",
598
+        "providers\/Telnyx\/vendor\/composer\/autoload_real.php": "469f95fde429006c3262cabe72cd49970b0cd6098b743d8e5a646af25679dfe539c98d3337b51a8faf7f30d9c64e1def8d131a93e8897f801830e7e1c4da5874",
599
+        "providers\/Telnyx\/vendor\/composer\/autoload_static.php": "4845f043e32744886f456f358ea87cdcfd641508151ba6c3b0169c9aa53fe111f05b78b82e204368da01da68d7007709c9140d08dce4e7dca3cc4c9f60397dcb",
600
+        "providers\/Telnyx\/vendor\/composer\/installed.json": "5ca47a408f164e118f7ccba81577933913002efce47331f2eeb13f3e24d78878521db08454026d270deaa6552095260d745f0a424c91eb7efd36f6a9a20adfba",
601
+        "providers\/Telnyx\/vendor\/composer\/installed.php": "38fb24f1f4e4aa0435926d601c7b78797c231eb0e3621e370b17078645f5d238a1d02da3a29cd14a9125f78f53964445f4326311f6e830cf8faa24e944215ce4",
602
+        "providers\/Telnyx\/vendor\/composer\/platform_check.php": "4d385b31994301facce94382fa007a56ee32268d2e1cdbe7c9f9cfa834ed4195d3cf8e8e7c9a800c97aafe2c9b46f3c1a93e632c7415e8a9e4a282c083cc6f9a",
603
+        "providers\/Telnyx\/vendor\/paragonie\/random_compat\/LICENSE": "0c0bf603f7e196edaf56d02acbb2e14df7f73a2da0617d62b5fc811f088c29865ecdbc7c6925a19bda63132cc651c56f1cdac79dfa02aaeb3fcca49033636ee0",
604
+        "providers\/Telnyx\/vendor\/paragonie\/random_compat\/build-phar.sh": "a5ecc580bc6e95a9c901ad1a0097fd47ab857dee79d0221ae463e27f27cc8b2227e1975ab2699b9d0782f0b0396ed9b3ac0106f53fe61315cd2954ae54beb333",
605
+        "providers\/Telnyx\/vendor\/paragonie\/random_compat\/composer.json": "c400438df2f41ace7bff40d284236bb06c6095ac03b58caef5b062e7ef317bac5a6bf551c94459ffc838acdae7df6cdfc615dfc3cbecd16be37ba67bd948415f",
606
+        "providers\/Telnyx\/vendor\/paragonie\/random_compat\/dist\/random_compat.phar.pubkey": "e8909663e5350be2fa9416e28c6b179c41e87feab8da0d6fa6a41c294c9b00e8cc40ae8bcd03997770056f70d946315fd530f72f42974f63195f14b3c675e3c9",
607
+        "providers\/Telnyx\/vendor\/paragonie\/random_compat\/dist\/random_compat.phar.pubkey.asc": "f07fb9c7b00f297e73127dddb1f3986fcebdb0760454765f6ce0977347919c0c74ea197ed310bcd86dca7ed227812bfa6d1595c44e40f10c085cbcbf602e163f",
608
+        "providers\/Telnyx\/vendor\/paragonie\/random_compat\/lib\/random.php": "fe4539e2b55b47dfff1e2256c91498e5a41a85e28e42d790fdbcc42102c16abb09b0d7a0e2268ee004c555e1001241a9925fab1eeaa16c11ae2188e1f01540b9",
609
+        "providers\/Telnyx\/vendor\/paragonie\/random_compat\/other\/build_phar.php": "370c622746a37b65aa6e36c2fb94486b4fb01f2db3f3c9539a7fde711d1abe3f9e9c30bc61f4200e6da9b47086c207b03cd7258d77dd2ea6b48126a618e2fa0e",
610
+        "providers\/Telnyx\/vendor\/paragonie\/random_compat\/psalm-autoload.php": "f05ea11c8e973ddffde4d60688b161701217ac8e5c9237cfb57babf7113482d5e19ea441f5092eb1448a21b95ceed75f994427d6febfe0de100c376ed17e91c3",
611
+        "providers\/Telnyx\/vendor\/paragonie\/random_compat\/psalm.xml": "88c631fb2f70a79d0e56a4484fb7ae8b6b3502ed2a9599757e7a3302c42b0adfc6f0c45c9916b88d7430f209d8934b6121221dd8b424dd913c49236db7ef01c4",
612
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/LICENSE": "db260eb10b8775cb408f675dcbe11bfb1a738d638f4215467df6c4bd03b8265dec7712fffa30dbcd38b5ef944266c3963343d033f497eaa6dc602f55fdd8729d",
613
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/README.md": "82f123f85b02a7e91c3ebece404b85ef5a0950e0ca79bb0841735a5a03b88d1a3efed4bc8229b3ee1db245471cf58b81923ac9800586ace3b794421f379f7bb3",
614
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/appveyor.yml": "ed6f025871e47d5afb1eda2e0705a2185670c447279cadd8c0fa796779fa2f1d7a5f17efaf6412c403e40bee345ac3224a45f9aa0e5143f06ea5e25ba8cb848a",
615
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/autoload-fast.php": "a40c6c77f211a2257d3339ad80ae7197ede8ba0a94c76b48052cfbcc8ce903959dbd8e3434e6660bfce2c5e935cb9f38568f96cf00819d03f4a1c46cd6b7b0b1",
616
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/autoload-pedantic.php": "c1a0e8a5b461135bc58ebf0a37d75e865d9e44ce666aba9a95d6416cc7d57a834aae6fb6ef4a9cb4176690a4e41cdd8638106a11b32a155f3a8ca3acebf7a504",
617
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/autoload-php7.php": "0ac98043c8df48e7bdd3a20c11688ad3702a06271687e1019c2a7288288532ea593e7e462635b806c0b18dacbb8f2bd6d9c700a61d2b1deb90eba0b49660b008",
618
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/autoload-phpunit.php": "d34cda9cd77a67d93817d5b9b1bb51a13521b2539f9a8d0189debb1938934df1d5fd51fd2a82c9d4775f5a8613708a1e78687fab86c3afdc356bc4b02045bc66",
619
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/autoload.php": "91c2a6366a27a76a0390c69dc4cf061c73cb03a22a3303aad673cd08e8cd659c7fa7e6796acdd9d2d271f015eb16b15663c5d21d8a538fe14f459519c9f9e8d1",
620
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/build-phar.sh": "5bc154a32c62797e85b82595da69ed11676d98deb9644b62a12d5ec169d3edfd4d3b24c67170143f12ca63d9bea06cd0803f68d5e63a7849ea9c4dc9483f7b4e",
621
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/composer-php52.json": "10cd40189c6ef385b9e21311b8b2bc8f7943273552227c8006a38889d743fde82c8c61286484d59bebfb83e645a87cf6d99f29409439a1057fd16a4ca7727417",
622
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/composer.json": "e9b03b450c47dc1a593e35493c7c80c373f958ac5ddbe89a163f15e7a30a8139ac0f9868466610899e3d5e5d573d517bf09acfc68d2b9420e3301b39e7736aad",
623
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/dist\/Makefile": "1cb0cca3e1413538bad70b8c8a22dd68d17bcb6450e0c4ee41fab9fab09c36bffb4816dd0f7ea2f40ca1b4cec6b030c5c0cc17955d2c83ec08759e748b04d965",
624
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/dist\/box.json": "47543b120abf7596f26b58f9911963e9bd0cbe2297b65d43f74dc52130e503ce09049a4be53146387b7fb42b7640f6577e3c1f4862540d4f8a0e668b0001e62c",
625
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/lib\/constants.php": "4e0597dadc39ae7b81e46ef5f3f045812a11753d9116215bf0d905e0bb3760bc44639988f1ec8f0ae8998f507e0c99eecbd19705f5399edfacb87172d7a577ba",
626
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/lib\/namespaced.php": "c550633d5dbd23c1bb2fe9a14b787e239bd5fa898932ddb8a1b1f8909a57393e01f12337fcc53f54b24bc48a97c3ed89de03da089ffbea71ef90d48c5091e200",
627
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/lib\/php72compat.php": "85b52455b2764ef4b80d60b8d99d5f65264b2a2e7d770b2ab05871a5aad213ad35f2cd755a8b5d19b5ddcea758c024175480f2dbc89ec75dc86ccdb453f5fc25",
628
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/lib\/php72compat_const.php": "177d6b1b8fb5286842400019be1465fa0438e06dfce2fbf5e93e93d0715c161ad07c0c31c17394cb0c6673a058f34544454cc0845893242dfb5a998655c93701",
629
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/lib\/ristretto255.php": "f2c36f65a9a556c43bf9f2fcad02f1c87c29d89bb5b3d81634112defbae7ac0c85e558fb3b5a5e74d95906a4b543e7a2cf16fd444ff28888ef09d73fb9e6b6f9",
630
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/lib\/sodium_compat.php": "75e3119fb1d400aba554506a562c64c1b1b82e66277383bf307406fd1f4c68499a32b82108529d5af99878890e3551dfd1fef1ab62ae86982c27dc975dd39155",
631
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/lib\/stream-xchacha20.php": "4cf0cb7bf023249c18f2261057f994faf8c4233022651285fdf8978fe9a71d7eae0511ea1f64faf2f3fcb1ae5b010112a5a4ebe8df9fea7ce908916cc2ec90af",
632
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Compat.php": "7a8389a0ca9cb8e544b7f345c60705e1cca41769105531211219142f15c83bd60b442dbe8bd62042a5fddf31040a19ba1f3f00ba6c2a44c3160089a2605099da",
633
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/BLAKE2b.php": "91aa0293c7c821d238f36fbb1f4327e67a718b53c13f0ea0f4d6e1d1675618bdadf183d842d4dea103017be863d40762a20c644a4f3619c7549991f11a19445b",
634
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/ChaCha20.php": "7e09160954fc59c77890f28e75f7ce8b75fdf08b9d5461c5e7dc1f49bc664bcb1b7ac74e3f5437657a20729c2db965d968060b27309a4a06a252d22b7f8dd4f6",
635
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/ChaCha20\/Ctx.php": "f19f61e54d42bf154182d203594613371f430d7c78f5b8229cb9bb94e19e42bb9a8e434639accff18497cd728ef391a1128d0145b8958f8d4350ee340340df39",
636
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/ChaCha20\/IetfCtx.php": "41ac6fb53ae553db13ef5c12d8c1c16d017267f130e8a00e9c2a8ad10d723aaee5ee08f2888f016babe4d712a0f1fa50012e4ebe6626b34973c26ad6728e36da",
637
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/Curve25519.php": "5404d91b94a8e6c442c3eb30b763f1dd0c1234b845b967b7048f71d5a0b6e1ab287b44f43e06ae5bd6fce31f78154b8655353d7df86b6ac699a41200b9df33d7",
638
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/Curve25519\/Fe.php": "937defa56e99d4f38a81b88c03c649deca5b0f41f5d0b8e340cadccb34ef0677563f18967bb9f63e9547137a2a1827f9e37c62005fe745aff3764e39adf86cee",
639
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/Curve25519\/Ge\/Cached.php": "3db1263681f9414d237a8318c08ad07bbe3279b7310e21a40c22033f5d90eb5d7074dbde430eec7910a8d7e4286fa6c0131938c92045520f56fe6acc37af70af",
640
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/Curve25519\/Ge\/P1p1.php": "d757efd8638aa0c1609d59c47f3b18608a0fc6e1e5bc3cb94f16fd3fa2d6125872a796f4837cd8b940ca6988db92d3c668bba684c721476ee5fdb6fb6d50670e",
641
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/Curve25519\/Ge\/P2.php": "cd70c62efef16eb21967d5bb0489dadef845fb3cd4faf0b1bb7d080a8685164b2b0fde4d8865dec22037795eea6df605dc2151f20871c31d5e9e0084f0066219",
642
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/Curve25519\/Ge\/P3.php": "56c14b848691af72c00f5dcc3d31281a300d0ea9b6ec273ff929cf30d2279cf34d51891729a5b095445fffa8a63b8c8147f4d1ea24935c86b0216b3c40aa4241",
643
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/Curve25519\/Ge\/Precomp.php": "f6c53daf36931b4289248a231da52759e91e5c38af10b2cb89a1bd7e55d29e316dc77d144fb9e52ca1cbf50db84234aeebf13603c62d58d5b3ee58dc19cc18f0",
644
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/Curve25519\/H.php": "c2e48f6273cabcdc40f20fd0f7ea55975fc9da5a419b1c9cb834b694c858533f9a0d3e3ce768b532ea6b69ff5d2df1ae4c246a15b7129916d4034ac497ca2be4",
645
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/Ed25519.php": "eda61c7ee144449df655ea9a9142d0b26624644542012652598bdc51493f61938c13651b32b05e942d31d3cfbfb7899b8621f4ebd8a5909a1ed12704b2bcfbca",
646
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/HChaCha20.php": "b5005439c15ef7aed83b566e670053819f59c415d9c5f607550c756622d7161ca32fe65dad8f688e6a292f88192637260d859302064b416465c08bbf7f6dbe13",
647
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/HSalsa20.php": "c882b541376c8eea8ab3bb63d8b51dddb345cc45ade8d5d264dbaa96427f72f0201aea828e696808155da7a978c4a1fad09723d42ec393117693e48187cf2a4f",
648
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/Poly1305.php": "c438e61d6b330be26cff863f8b5c42fa3284d6e8abdd1e43a2023c2695dec643d2641b2239a9b0fbea1a34e9e8011d5094b4eb024b111b6fa903a1c026328747",
649
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/Poly1305\/State.php": "4558eb5b05c7664408a4e793c2b85a4c2593ab8a1118c3b89db712f337a12346e2e882a0c638c32af733f5589a310b4a528c9bc02c136692ae82f3ac7e6cddab",
650
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/Salsa20.php": "2836d7eeeec597187c456ec790107a5dc478a1f79c1c1e4ede4314bb830f865f189e048e3dc55742703e2fb7bf31275f515cca57ab5bc47332961bbdcac7c490",
651
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/SipHash.php": "345fc6b9f37659ec9830c9b3bd1459257b81568dc73809c023c551dd825981b0da6b150b6b7cd57b00097ae9cd3b742d730ebfda2d2e459ebd7d5257fc967156",
652
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/Util.php": "81aac8187fcd44a14ae856e34d7337c012ff3603c606e1b9ff5a95fd5cdeb962725b70672a57b600d344fb2f34aeea00ddc8f1d4d8f8888961fae9171f8262d1",
653
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/X25519.php": "d11fca34bc3d313e365ca47981a0efb880a3cc8be3e2cb00da7df69de8d52f2f1fc793c1654cce1385ea66aec40eb5339c5cbf120c127cb399b72fe84b7297c4",
654
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/XChaCha20.php": "de5d7f3dd4402fe3c99b66a92fa4f0766beec66928c8996b3754b2f7a8869b65035c6ebafcc8ba2fe9b309adf541e89eba9491554f1ba548af6139770aedabf8",
655
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Core\/Xsalsa20.php": "6abb7e9217d5463d373023d5aab49c41cd3e1026835985dd13256e68374ef63b90b7dd033f7fe14ea60229a98e5e64d0d0f23b7a382ecc9d8b41746bbe3fec11",
656
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/Crypto.php": "257d3d05f1acc745b21f25652ddf0b09b5a68b2b75abaa9216bee10ea958f8ed1d3c964dda5326216366d9cca4a71e8678c23994fd07eca2582e3d8c8aa75500",
657
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/namespaced\/File.php": "d7cce5179670dc18544eace3bf8b8b9863e62fc9520526da2870e45d5d400004fdeeb3c0f44a90caf0742f89b633e7fe3f996bd5f89af4c7f52ea37f429e453b",
658
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/phpunit.xml.dist": "0f8b25b7effe47068dfafdc568c3298d7c5f2d4eb1abc040c8dcda1b0daea8523a1f82d8e00d6475ffde3cb566c18d17ccfd07db59c72bda11f40d555b692d32",
659
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/psalm-above-3.xml": "5bb5402c96cd45a0d88542bfaa12ee03c26c3242f42f1e33a2a32e5a16143e6b66e7dd4bca7cbe30f73ee9eea7e72862e356f1bc4c4daaaaf1ebcb248d63b230",
660
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/psalm-below-3.xml": "9ef67d2d8ee81c94d0ed80d592894be0c200045b295178f246865d12a54d963e97b4a8d75ab88595bbb73d74c75ab2275a54b9a33733bea2d15487c5894f515c",
661
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Compat.php": "1c233a4b931c13b00e243f699eed9e81fc683846e089a24ad90dd17f786bfdec9ab32509eb9666074c9fc2a168ea8d411144274e6c4d4413996c78bd3c536515",
662
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/BLAKE2b.php": "27fdd20dc655cc7f58454cfa97fb974e4d99f6da5b97d79e669d41b9c5bfd1be18fa34f0ef7a353731a3bebb11b56fcb68818cabb3d8ff026682e7b39106c6f5",
663
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Base64\/Common.php": "c8512fc6d570a3198107493c7b8d20f38539caec221adb14161d7efbd6ab7d1d0bef4cb5528fcd84cd9484f1a9e0fbeb45aaa2365012680b0106ea92f8873281",
664
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Base64\/Original.php": "4564f7cfef60c318abe626832bcd355cffbe04d020e04d18c5554fc1610c4a1b0ae8d1111681e2a458ae0b9d7ef3528bd62aef019fe3c1a3f9d28b5ae58da86f",
665
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Base64\/UrlSafe.php": "dcbd158a52f33b9c64c8046c8f091d9af95657a562ac694c9ac0beb3a1876d55a3f23cd42c1777d9cf2a55cdae38d88ec54628b2d5fccd6befc92d4d51eaca2a",
666
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/ChaCha20.php": "f0015a4f95fb6028c015c954992233d76ff0b07c7c60de6347e7b7ff1cf704e80de4ed5b3e236502fddd3c56071aa8012758d905031d6154f965c4898251329c",
667
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/ChaCha20\/Ctx.php": "aeb8c31a1bb46b8519f280f23d349fa93911bf766715c0964c0a901369d0f0599e87c6e13459734f582a04ce74d9ba9f3ed7553d4b7214855a815424a8a8610d",
668
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/ChaCha20\/IetfCtx.php": "d22a84b5bbe07297fa80c989e93681b27b3ee502a9b77b63e2b08eccdca03cb98c39834feec5fce3cb0e1915f2944b06e94fe555da123de982fedc61b30c1f91",
669
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Curve25519.php": "b25ba0383cbaa00339f5cbaff6b400a25f3bd4d244d2fe70a08b987ead0ebb04a7f51b9476baf01fea5967610911f809114e39d21d4e278a9be72b48ca39b09e",
670
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Curve25519\/Fe.php": "0fad7d424e7f3fbc0abd6a4f9113c83523aadc3f9d3423a94da0954f56d31705ca567ffad0972794bfbba00c4909c8638130b99a983cc52022d262d6b7d145bb",
671
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Curve25519\/Ge\/Cached.php": "58ed8181f08dd61076c0ae9ce176455d951de04b9b1b03260c593d009414e9757d9120ea9e94040ddc1e0867f8a6574dc55e3acf82f946100d03d4506c9f778b",
672
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Curve25519\/Ge\/P1p1.php": "63b5f5a6c7061826799c2e3285884ac2108adb19ea246475b98fb68a26aebd694eeba56191fe15fbc1a9ecb9b85c139bf9e8b65b4456b8fb42652fcf29097fad",
673
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Curve25519\/Ge\/P2.php": "4caf0b912ad4bd82f8c447fc25829177323ba7af6d2355a7709b8ef99a855b51158e5252a1739cf6e9ae72b780e415af0cf3d510bded3fbce3542c99cf057535",
674
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Curve25519\/Ge\/P3.php": "5bd84bc8087c48e62e9d29451c0165376ae8486ad9288556c81e4cb897822cdaf95a2df6093f16e2a336839d0a4ea7c1535361bf041d8be0fddeb1eb245eae55",
675
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Curve25519\/Ge\/Precomp.php": "a58cbf2c93a75948b4576395ba1ebcef5a35b6dfb4625690e872010a44edd92939ba146b145cf40bc2cb6e45da0e19f169a45b575d813a70428f171459ee2d8c",
676
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Curve25519\/H.php": "0ce669e4f370acdbf6cf27d5a525b0a3a3bb7c794b8a2ccc7b2f3a3670fbb048a8493e3e6306a5f148204f50a5458d47ffe4a2705520e15631b02d45d39b0676",
677
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Curve25519\/README.md": "3f50765b54a3cf172c9cdaf2541a54273b811df61330af83883de5309103d6309a0900ecbae056f60aa831e438543c16c809fe183cc15c6a2f2bf15f6f910cf7",
678
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Ed25519.php": "89eada60bdd8739af528cd74b771a2ac04e36aa3e588549c7e8a82d2267a4df5eb4ef13c806185ac65bcd33fcba0f49a03cdbc03f143ffaa576ba6f4ab5efaa7",
679
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/HChaCha20.php": "e221d5f3c4818256a895cc05a8e68ae2b3cced7eaf4e425f3c373d59b2cec31fa7b498e5e42af7e374e70c3a176f966da3cccc4be97b646182a8bef2817986cd",
680
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/HSalsa20.php": "05e5376ceaa53ddb24971a43ded855892cf37fe0f03647660f573334ca79e61edafdd511c418cdb3d42e62298462e729c69b4dae3eb802c4749774b43d659536",
681
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Poly1305.php": "1bc3f6e6323d44ab76eca14cce61e7043ee98d8f7c50f29a5e29704c35adee345faaac767af588e1c6566f5732c1ec40ea815c51711056737460c9143adef1e8",
682
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Poly1305\/State.php": "9a69f92ff7c3e384cd57c0d5fddf9111d57abc9849acebb329ffd1ac4f53e539e1548140f4a430f628cb378d7fc980494307df13e4d1837b0af377bd7811c6d5",
683
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Ristretto255.php": "c4fcc5c22d8ece4e704c847ca01ce6edba7682fb2b9b91d74d664a204cd5955128c3bf8089a855312244f28c4ef6953927832ed989a03edf6eaec5c26df1722e",
684
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Salsa20.php": "8c2ad19b46f527ef9c091cbab17f64d36610745ef32f778e3911e1aa2a142e88c0f6e005ced046a678d66982d2e9ca48677f082697af3999cb62fecee4d800bb",
685
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/SecretStream\/State.php": "629c6f96a7bba323ddb8eb422e7048839c188560932cb4306b9f11ba8a2b15afdfc037fc14ce8725ed3efc72c26700cf6cd2ca4a85870fa885aad6b6d57a4a0c",
686
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/SipHash.php": "6f24cd7d32eb80c943461199a0937b0acdf01560542c54ca916fae6843c3dc5fa65d751380434508aa50501f7dfb6c227e9330996956c4a8c8b32b6ae55bebba",
687
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/Util.php": "fe12c7259ad5daa7eecd8e199c77f822e612333169878309cec5b5483a9bcc775261c344a31023c2741d53f37f05a0f6dc6289dc45c7d7b8ac7fedafd5458d57",
688
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/X25519.php": "ea1d665ec23534de7f18c4f48094de4463753baf8b9ba011e38b969873bbaaa32e6b90bbbd0597baed3687c28e37fe394c224a229d734671b7d7e03197d039f1",
689
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/XChaCha20.php": "56d827be22c68fe9a2cc01b9f5890846197c5831c3c0f129d9b8c522391b7d7391a217a2dc48a4bd78e81c3d2f3bd8187546d311f991148fdf43a8a67730c81e",
690
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core\/XSalsa20.php": "c0367d97622bfb654340a6a7948e8ca4ed399d106dd8b27169a9f5d9bc6532129548b4dabf9f12ffba654f490b8adfa07b0b76935bda15705560feb7c590a3bb",
691
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/BLAKE2b.php": "97cb339b44cc54299394b4fc27c8ab13d5a8d48aa4c8fce71733a27cea5d3226df4341bf9722fb4f4ba71c38f5491d677774245d75bd91a693269aaba0487036",
692
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/ChaCha20.php": "da693dd0be25c739b477673933d361ed4b2f83110ae98f7c6805af20789fb4379b4b7a4ae34aca588666cfbdf61c2dd5776f8a4b1ee0215dae64ea09c6479a10",
693
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/ChaCha20\/Ctx.php": "621194fbbe2eb42c04c9d94e45e3a0ebafdb4cd87195b924705f8c2a9e54c9dc52fa6dcb39967ea1dc4ceeb6f2d20659a1b0aced8035529376f6244ffaa96f07",
694
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/ChaCha20\/IetfCtx.php": "b4a0690f9af7ace9fb3f8c10ca78989573a1cd49d3309f9c0011501daa3c44f7b616868e417096076846b19502ddaaaacb7c85f9b5c8622c57e4882982e09a10",
695
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Curve25519.php": "fd10531c29a88f84f8b7de7c09a0e9e66472658827bcbdc55dcb1fba54f620b32dfe9359788e67abe4f6ffed3e4841e6b74939d7504188cfda243512a86c7eb4",
696
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Curve25519\/Fe.php": "e6e5ce11b327d42167d51d2fa462ca6a54bf180229261af9ac1189fab30941148136ddabfff606dcf656985cb9da9bee93902f1863a84a3e5d42bfccbb0111d3",
697
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Curve25519\/Ge\/Cached.php": "350f529a5a178921a2f40818a1668c3effdeac12b9b8aded2f57f1654343d0f7f535c780c5a271d9b7772969fff9381befcb85aaf676650c67b6e583d616c064",
698
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Curve25519\/Ge\/P1p1.php": "fc8344d196cfa17fb61ab576b0a73f0ecbdfdf03de53d669cbf56bf10cf13eabd8c8a83d3eab7d9f9436b4dbb8d0785f9929c190059e0695579811405f3c840a",
699
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Curve25519\/Ge\/P2.php": "6c4051bff3e25a7863fcfef3b9c1f028fa8b94d301e4de5dcb6654c629bc95f44978fdb697698375e3cfd1dfb9ae6a3c8dfcad0bd5138e51cd5d5315b5e5b788",
700
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Curve25519\/Ge\/P3.php": "d6ee2e6bd34cba83a2025bd79e2d8a829d39f148c65ceee5a382662ef25b1c684552e0486ca29215f52d5d1e140176bdf6e2c40febd55970db55675b76d448e2",
701
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Curve25519\/Ge\/Precomp.php": "397b94e8292ad4f09cc37f1b08a7f364e12d6acb74f125ff0148c5562631f632a2ecc44db517cbd5ea61865e70732e6223a0c736b831c751df859a7d2afc4ae6",
702
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Curve25519\/H.php": "7bd14df9e3afbf8bc2ba27d5faf6ba72f17eed218cb7e89f4a458f500f6d9a60c52eaf5f1fd656d7de492246b0b0ac3d5904da319c5d85b754c64ce4b1f1b433",
703
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Curve25519\/README.md": "3f50765b54a3cf172c9cdaf2541a54273b811df61330af83883de5309103d6309a0900ecbae056f60aa831e438543c16c809fe183cc15c6a2f2bf15f6f910cf7",
704
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Ed25519.php": "30b970fe798803452a504ac453c70b5a2b51cf3094639dc58195b3c8e44fc37089c58bec2337d7f79ca60c91c4951af5dfa89e9dfbe3ae327084a806a6b8db7f",
705
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/HChaCha20.php": "d4fdd553cde5a1ff277805bbba85128e3ea59e4fc32eaacbc8502414148933c760ef6da06fd967bc594f9d22523c62e45ebd7cc9411ad4b76e2d76c0fc2c00c5",
706
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/HSalsa20.php": "8bbde85156bb88b6f0f14cab67840cabf1e1c456f9459edc145e09907161bd6fbea93fd37f121678064de6922102e78789cbfa3c2eddfcb40b93178fa3fbab6e",
707
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Int32.php": "325772c5cadd6953316e83afe2a04804041292f25cb16e6027ea230e20aebcdd819c937977918161eeb9c43187fc105be2824949c9d6059e9c0a39e0cbc42219",
708
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Int64.php": "8fde2b57266d78e8b03d8c3f89a1fbca3329bb6d0ed4526b3c6dbf5a0e92ef9d8e9e3697cd23b7eb5f7524fba7474cc5a2e06f1ba6faa04f7cb8729c985a5794",
709
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Poly1305.php": "f0cc2f5cf32a37ad6c3dbaff1a8a155ff334995eab78ab42f2e5bd950390babaee0c1588e3f17d4e73cf970b8e3c34f536096d7da23182f526b0eed704e3ecc8",
710
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Poly1305\/State.php": "8656ebf7aa0c2c7e8cf01546a261bf5e9f6c374eb5f40f8133bcb33e35bda2f19f47471b2ae6af6224df7ab9bf3886cc43b88049e8ddbe54b8dd129b28491129",
711
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Salsa20.php": "bbb3dc0a30030d9c5f5ef1ef63e36f9a067d67891185b9620ebee17a67bee31a7abc420abb7b82f38e913b5de54d235859f0e8f5f718d8f02316f4fb03e24b2a",
712
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/SecretStream\/State.php": "69d505517dbbdd2e77cf5aed72673edffa2aa008e70325db88877ba5673ac3ac070bc4c19cf13707932b0b4d71ee0a9b007e06a0f822292ec278a60def7cf511",
713
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/SipHash.php": "8c3c2d2e4c656ee6f7af729856cc4c79918ae2e09a167d6d0cb92f7dc9240c0bdaa36e65a167f5b63961d9f9ac4df2c19e50c848e5a6da5855566deb5b9ab8b4",
714
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/Util.php": "d6ff44eb1015687847600f8b7f6a80974f4de1cb80224ea7f733e908fd53ba2aa669b97d891fe89bf0bb8d358c15a2bbf0661a779e68a715cde0405455127eb4",
715
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/X25519.php": "9e2d803c100fc9a3749100dda30fabe25c6ec59382be64f9995b6505e1652d5b2762111f2243b69316abd942c88106fa5239adcae842971f22fedd8e3aedd954",
716
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/XChaCha20.php": "1d4ef660701da25af79c9d4af2f158e3f62afbc1e5c2aa062f64b970dd33378d5f67c9f0172991985ddd65a976759e09f4604ffdf6ae158bd8a98f4e97af851d",
717
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Core32\/XSalsa20.php": "ffcbccb7d8a1d0262c5e74cbc679022bbcf1acf9160599ce2b92f66e261996f0e93b419231fd41ca95852e09b7a892dd8e98101c3426d30cb294f869908ee21b",
718
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Crypto.php": "1af076765319483b5e0c2a3ed9d5a12133fd41b7172cd15073da3723200c41cdf077dbee04f1e4badc2b86ee5e23965dfd0e8f3af3f52b3b584ab2f775f64cf7",
719
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/Crypto32.php": "9fd3ecc6e6faec645f2c5166ca551cbb4ff8430664bdb46c383da399048de42ab505a05c709b6ed0de245402a1abd701f21398252f059003a59fd55bffd6399b",
720
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/File.php": "4f2a6c996bd3fe4a07e4e1d49d2790e68798add08c4887efb3d7bdc7beb5ec2c1601b8e77a0b40e570211f7d3b4e5a5f97471f60df8b31434487495677052640",
721
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/PHP52\/SplFixedArray.php": "2adc50710dd4bc2cc1138b741cde09f225f727f2177d006ce8ca82691de0336dc51b6c30384938eef1693ae92628460f8984aaacf336815dea092de4ed1521b5",
722
+        "providers\/Telnyx\/vendor\/paragonie\/sodium_compat\/src\/SodiumException.php": "705f6e9777db6be71970f7e218339e36d50023abf723446195cef782976d7431f815a90d1ed83e32ec527303057287f890215b4b0a9a8c992a13d111e8bfb947",
723
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/CHANGELOG.md": "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e",
724
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/LICENSE": "8756122099aea86ddf6f176a480c0454f2be6dd278e475bd6be7d7ab3d572162f1bd44c9f623e52e53514cb15336be6e84a5eafc8e2a347b481ab5799ebd6e17",
725
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/README.md": "b552bcb37ad765a0aba888fe43d2e2f41b5bee6c90e734c365797e74dd0b8c4df017ae74dab2458edb410630299efd7b649438db57acd53fefb1723e233416f3",
726
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/VERSION": "294108697ec66acf16af2f9518c5999605a8585058ad25dc9303029fd890e6835b2fcda23fff2ad60058f8f6a8a19c945d998e4e228453d4946e395b9aa2055d",
727
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/build.php": "485d76b827a54d8455550e8a8f8d14862f9444381da251e66c2bb8ceaf2106a554c1cd339666b1260450749d0244d6b9ba0c6d0a2220ab2411aa4041fc83f8ad",
728
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/composer.json": "e05f4af7ceef33d82ed5704be36e1b9839236d13073d0e23ef77d33ce7ec303cc2cfc2ddcd25318f1a5295bbe3b61a13bc2fe72f55c226e2f072e2a0b1959481",
729
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/composer.lock": "2b8c24986c6cbd290c0ce53ac4f773836751aebfd65a2350fd07b4cf45292ce2667a54494fa098da13a385ce7a9e10a2ed55d20f7c8dd6817f93f33a6cc710fd",
730
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/data\/ca-certificates.crt": "659e8d36bcb65a7fdd299ee008fc4ecd42be87d8ae7d7d15828567b9be44b4ed8a316978f2f7d3d5d7e96a4da0b30bb8bdcfae5202ef099691daa796318a869e",
731
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/docker-compose.yml": "1fe4c651e406095f0ff1bfc196406d473184bf53cf80f7c67dc79f1aa94b26db74174e0e9bc47adc95eb2a5f6eb950255c4a5cf44ccb7029ba712df3be9e6384",
732
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/docker\/Dockerfile": "a63d1fabd8c19fef37b90922aa4bb21fbd1094635666cf2a3a4db47009888bfd3f1ad5c34c05184e2ccc8f581971f6dae91c1ff137730821422cd482c39e9390",
733
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/docker\/entrypoint.sh": "2bf3911c365a271fc52d17a0aac1687abf52e5286a5d52cd34367e18651dcfd6ef1f791b54105b7742f5d691564ddca3c05a9ba4ce8edfbc68fe919e0bdf6c1e",
734
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/examples\/example_webhook.php": "336b92a647e49d8c994c8e6dc6b26670f0a58cb57d4679d0ba7177fa1f56a84a628e5385dd4c1c25a1395b1d8499e54d34eb2c20f9742a2a2a3d0cb20c36be08",
735
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/examples\/simple_webhook.php": "ed299912ca9a55170796df76b25c5c92462660b065ef7eabf24bf7f552e75fe44512fc3fa977fae2a9dd5e9be1ea28100a456de926fd7f24c32152f577f8e46b",
736
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/examples\/verify_sms_demo.php": "042dee741d4fe90d78edcd0614df6a371cee77d1a95d34623b4e558ead69378c693a33d044f450ea204efd7253e7eeee1e5a4119708dfddbafeea358bc5408b0",
737
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/init.php": "82a207681a76c9b00d1a35fcfe64753cf286d9d0122366f8c1f3009ecd6c548369d2b65d5b4e03f20faa9502b967a3bdae30865e5bf8598eba630b5f9555542f",
738
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Address.php": "a01e1efcaab0209fa7cf32ed85722ff793b9c0f750daf7d3bcd0499037dea764f2a61defa54b4bbaf602f8d0f5f477fd4198e35d6d8b47b82fd13c7a7e70ad59",
739
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/AlphanumericSenderID.php": "c6f7d381cd9901af59d67c66fbe6ace0729c77ac2b2962ce41351ed076cb39c9049aeeb72ba0e3933ebce4ab8a936b86a7e21d30a1c07b2b08cad9da2abcda1e",
740
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/ApiOperations\/All.php": "5a6381d1492e2ebd1498fb4371b55c7e112ebf2c898e1861d7dfd2345db8c56df221795208a29b2a0e42295846fcf98f6a60fa8839df7e28fb66b9bde9226ce5",
741
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/ApiOperations\/Create.php": "811f9227ecc5acb172e8e7120541227de0bc22cbf66a41490b743b3e49647a38889d5cfa5d64139b602572f0fcc0fbb96e3971c78801ed9acf7b50db2ab7499c",
742
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/ApiOperations\/Delete.php": "e3cde9f67ab7281870c7399c4e76ff5807791b94b595567f56ee4ee494574e0f6f282a8d0c024c78c1709940198460f386ab8de6118a85de7d8a52feea0b0dd9",
743
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/ApiOperations\/NestedResource.php": "209aecf9e6abb679b4f1ec2b59b1ce363a73970f6d389829b77802cb88b7bb368506e4d0aad42f090b715b4d4a580fdbe5c8479c02227102b4d147d615fbdb8e",
744
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/ApiOperations\/Request.php": "afcba7de3fa312bc9e532e43bdcab8fcc5ca8b532c6f7bec08f94a8d7b2849467266f98af029bd688a136ac24ab2b7f438ca2fc666395c589d578e9d0156053b",
745
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/ApiOperations\/Retrieve.php": "6f29bd2711e3c6b586c2bf6d9805b986a5f76fb0cd8c98c63259cd9873eeacd679f9718dd333110966ec3bb772e2ad06da7b1586bb590180770bf300aef63c8f",
746
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/ApiOperations\/Update.php": "1d353ac81bc74cd57c75f01da21d6c59e053813930a0eb0fa054417bc87b6a140f64393bc04ac312b8c16803bb4c3eabae278839973f772e3202df32828480c0",
747
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/ApiRequestor.php": "deeca798d9ba058eced71d846bd22cac360cbb25bd1271db25cd0ebdb29b1af9ee863b362849035e8a9f6ee62bd49b8415cec97e1fc01e674ad6942ac987b6e0",
748
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/ApiResource.php": "f093051a36277165763e1ee66594056cc266fdb89caec9ab9223ae6af9add8ea4a20e6e3ea6fff4e9625fcbb95f430686f1f89db36f981d7d54034d79bf397a4",
749
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/ApiResponse.php": "0d292d053a85224f4ac839f54253decab0eec5ae9861ca95314e98cad0fec2d2f0a7e712a8ec433adb302b6702d69262c8866b20fd08d67b2d18571965bf6789",
750
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/AvailablePhoneNumber.php": "7c82ca4fa28264c4fdd910c71741270657e52cdbc760343339bbb7c1d5980d27b7af476f7e1bd431926d428dba685a6e34d250f9678ef0a4e3cd8c4b06289e55",
751
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Balance.php": "333bbe5f278ca247d8287c8da5cf3b3f6a96c896a82e3c3b54d01277e3cdc82dd5bbda2a1253fb473a29c49d3030b73b24eb8231cc34f85b0a43bd853682e000",
752
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/BillingGroup.php": "60d9fed23d1520237a50a707986709f3b700d42d049e4070a48fbb50f257a98eab779f45a15939af3d5bce811014c01abbcb86fa1b9ccc5b89d55f44c4b1a308",
753
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Call.php": "eec97591c5e7af2b057dac6e6498cbb2c1fee0439b1b7f31c2d879a5a0fdb5a3eb5ba3bb7e3c5a9195d9019e9df82c99a491ec52f15bec59b496435c0787d43e",
754
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/CallControlApplication.php": "fee499465ecfdd2d5aee0479d3770a80219a5837bed934e0930413e6dde740be21bcd965216c782e0765ba18fd71714ac69a5ee887497845ccc1bd7797d6cac4",
755
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Collection.php": "ba4afd20a921ae7c838a74bd9efcc4e468fc12ecae86b2222f97c9405d376a77533f55924bd1d577429825e746ac59142f6d4576f4d446cb3757cb36b65894fd",
756
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Conference.php": "ef9da126fc06537687947c8eea71fc34a53a7d44607d60bcaea7d8c7f55e76a94a9d7e0057f9abf7efb1f4f270680cba042112a127c2c487fe3c617c5102be29",
757
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Connection.php": "c5f43a62ff80b2e91556dc63ad2f78cd83b4fcae4a7a28ede36388177591fbfc6c20b244f6fd4e540cd9401e34b04946bf422eedfce25316e61c89f15de97665",
758
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/CredentialConnection.php": "fe9d8b7b34a24f5b3b83d6a2597359fedce871db3a526124832d4bf4129e7515366ae16517b8dae259305ae69f95655aaa8b4710a9addc23fffee0e70b70b74c",
759
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/ErrorObject.php": "cf83764f49da72bbc816c8741644e15b9a74481145c6c0c11c390221ee4c7ae485cfc09d77db24a48b0756b69c85570242bb2b903c39ca699e636a299ec4dd31",
760
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Event.php": "4e4ccaef81755432630c46881a958928c8b633ef1dea76d05f05711da17f68bf6e5b7b77395abf297b3ab128c065da7b4ed38d1be3a45306eb6d7a1080e72994",
761
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Exception\/ApiConnectionException.php": "b2a920958f3e1664a6ea5c5f32c73f9914b3f59d8a927c4e920d385ce87a6676475823729f203b09f5530da667f52e3dc3d4471fa498277270ee9360d0797b5f",
762
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Exception\/ApiErrorException.php": "b775efde92c04d1a53dd3f948f2efd92baf1f1dcb5092ed0863f37bb71fe03052562fa89349b1030f3d27a0dffa974ee47c9a3655b40a3941b05e721e7fe97c9",
763
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Exception\/AuthenticationException.php": "f8154528a04642cdd24f3de876b1a38d6f97e357d36badafd39e596ca739df7fb77f4259de1efde8bc300f126b20f6e242db4c1e3a25503565df579b62676ec7",
764
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Exception\/BadMethodCallException.php": "5e6df108c1df11bc1275948d96829f0ca6ff039126934ec57dbeee74913af00a64e6a9f2b58f42bf74aebeb94596c45cbcf66e5a4afa8924b238ca63d424f452",
765
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Exception\/ExceptionInterface.php": "77d5904b79a9a5b265ef121cd19d91b952f631ac7436e7896bb0786d9afc0b7ffe54c7ea901091baefa0154b91abfbb3f9f3a7fcfea4053f27cb44be2d7cb23f",
766
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Exception\/InvalidArgumentException.php": "f2872cf684dba5abd50bf876971e32364a23c9259c1e85a01575348614274453d00cc655b01c2dbf2c78c88f4a6143cb486c786dd1664204dc7676a64a9cac4c",
767
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Exception\/InvalidRequestException.php": "fa310ff5d5ea8f02f731089c27e6903d9b0e692a3faf272efd19ae4f1075a2a1219d167730b21cac6a30e705816c4230e2511fdda981fb47714f4d81606ffcdd",
768
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Exception\/PermissionException.php": "4cc209df863027760738530c5c01962702970a73ac7f11be232234413376dfd34db049f4e49305c8a15ee1f016b26f1c128312930e10cab174e80d6ba20cb12f",
769
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Exception\/RateLimitException.php": "c37157b02475d2a3940dc7d007b84cc3c86cab88b42e841a392e3ce4919e637c9b59bc7b33ad3ed8b4b32e74dddafd8e61a6f30d60029b8b1ecc82b8faad4833",
770
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Exception\/SignatureVerificationException.php": "3aaa44cc52efcc4caeaee624c070e8ec87b665decbdf00d8aef04ac857358028e4bc0495c4a86c504f3ccc6d753413c5ed685816e3b80851026bf2034514cb59",
771
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Exception\/UnexpectedValueException.php": "33504e45241779bae5e9c1d6ace82a75d545e6f7ae76f7d7f071fa4bbab13b2c23d11e59230da3c242b548ee7b5386bf4795e0d06d1719812348d1f9efb0c1cb",
772
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Exception\/UnknownApiErrorException.php": "cf5cc44f46c03d9d0de656e2ae61d7b077d123a4b6666a4b0f57fafa2033e072ceb5b14d6a47987bb14e0acd48ae00b39d4d6ac1849fadc879bcc43ed1acb44a",
773
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/FQDN.php": "b7d44de17cfcd207ac1fe6aada6c24871a98dadafc4cddebe28b135c6e507634608e1b6c7052a40cc750f6515fe19c2de29864d4b9551e7002fd800cc6cc05fa",
774
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/FQDNConnection.php": "527d18ad480447e4d79e567e7a91796ca31bb778f10011aa9fafafba6e769d387fdfbc306a6f1ba58e583bc7c37a9a66f1961494d3639dcdcd8912efcd0e6a55",
775
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Fax.php": "fd8af5f711fb5341e2b86a7fc66a49707bd31efabd2cd63a1d5153c24462f07341d6af618b7e82ff1faeb9bdc203f62b6dd5570d74754e052300d0d7edd0424b",
776
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/FaxApplication.php": "f489a9e161565a6e7f55a4d90fc05bdc8147a8947788a757a2b5464059ff2c49e61fa26b6d1f0b43fbf9ce8d0c08328e276442ab4d2d100e7ef34e9b2e0860c0",
777
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/HttpClient\/ClientInterface.php": "da6ee5de3e8aec8ac144511858cb3bec53bfd2aa0b5ff27eb43c7f72dcdbfb1646da223cbd861db7595db904007ff4c8d6a010122547a98bc1d2c07139328a80",
778
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/HttpClient\/CurlClient.php": "dfcbf2f40053699b94de74defc4a57461c2e07280976a377cf4ec3600e6279fa9cc434060b0291c7e10a634647e1a86e67cbaaadc49783eb532681ca25256a42",
779
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/IP.php": "624821d6dcc5d30a1a08368bacba88cc7ce8b768bb3315b3f8013606e303fa8940c13da8ece0c67a43329a0cfd86d8bd09682963eb54138f4253eb2f159c7560",
780
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/IPConnection.php": "01239dc2096fbe207ce1a5a58dad8d25795b9a8a81dbdd4290730009f2fafee76d74335aa951fb7b54e930e4e9530a0566daa9ef7e99ea60a50b8daf956f11dd",
781
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/InboundChannel.php": "c37478b08abc62ca491806db6e2814c4a28a11357fef873f6aff8867e179dc8d89817ee3db3fdaa84150111cbeb426ad0282dfd7550eb815dca100843f542178",
782
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Message.php": "18acf4bf51ec27d330df16216924c65a45db59895b610a3c803ef1d09beb7d96d20753b4ec16be06ed40f2886ad46bb3d866f14a87021484ede5d33ac1a93c4a",
783
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/MessagingHostedNumberOrder.php": "ecee6ab7a46ebf03b93870017aba4ce00c10ee36342a6d3ead209078aacf4ebcb798ae129535fb15af860355b52ea72ae6bcbf0e5261a9d66224e43560858227",
784
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/MessagingPhoneNumber.php": "2a2caa5e44efc5de92ef9b0f8ed0a68af1ab2c80932f4cd7fe79caa87ca1e146af3bd0e1d16d977738da2a3af1fb3cef77081c32a0dac50bbe8ef54a108efbc9",
785
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/MessagingProfile.php": "7a561dcea7b45a4ad4c3dbfc6baa766f011de2b2dee9a23e512689b374017b05f4fcc5c3510f19111a9d8484ed93a5e05d3dc01f35d75e356f475a894596dc49",
786
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/MobileOperatorNetwork.php": "d4436bfd9a628713889a37846829763909033339a086b6983eac792e9af42c0df2a8bcbd688c5c54a196d1fcb3d22aae7b45e9e18c015592d979e9a924c42ffd",
787
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/NumberLookup.php": "cac3b5f1ea0ca30f9121849a8aa52ed2e18b7776c4f1d552dca4c3536e0d4eb96af45267bb687319a9ec715972bc95a19c7dda54c33a2701e20cff9564dfcee5",
788
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/NumberOrder.php": "52067d9999c150fbefcbba9969b308bb6118eabe25bd08f30cc4978cdebd68fce4479e53d71ce29632133e8c69bb4ce9276301f5a36ea95bd77d29fd057f5d46",
789
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/NumberOrderDocument.php": "007830f9c03979a7811a4e0dd0c74c4b2b6d05e05b56b9d6ceb5a6e55167eb95b2546087ae17328715e01d486c0e58e396bc41816b44866391b98d48ca246d03",
790
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/NumberReservation.php": "988c853084f13e0d86445d6638517f84ef3d90c3f618c2c85c0bd8ab790012c3986a1a3eb3e00fef7759d04a6a1957bd9521bb8da6ade8c05fd2e02a8040f6a3",
791
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/OtaUpdate.php": "3c9579c6ac1ef6f31ff572fa3fb7562b3618182cb36eab3f406d8fbe6fc7b1d35a996e47923074428583ee3653aaff3792f9fdc47eabe1627f1a85722fd9dbf0",
792
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/OutboundVoiceProfile.php": "d0c5985f6f629904f4c95b892e329f280f7e0e13b8794d1950e216ef4c28ede7b94baa99f18803ff6f60b09d6178ad39fe5d3c182e984c2b4b57e9732991597e",
793
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/PhoneNumber.php": "8106765a769bf3f6190783917aa923f3f7690af5b7bf971e3dbe73ee5f227b27531a553cff9cc425ccfc7cf2ac52bcfc685f3d3b178875f8fa837a5de99a077c",
794
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/PhoneNumber\/Messaging.php": "d0aded1cbbd4c6108b0fc6e6773dbd03040af54c967f0a8aa9b2523db769317182889c882e6efe6fb0e187ac3f2919563aa6a937c77f4c1ff94e5bbc31f4d9d6",
795
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/PhoneNumber\/Voice.php": "e7e8184351cb186fee77019e88600dcb15da0435161d1878799433686e012167ab3347d7f02efb5cd511b5d02cd7b6547453f6ecaab623ed23fac7c91b0a7333",
796
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/PortingOrder.php": "ad9a683aab02c8817796e62131fa9cad6f3490d3afe231b5718b3b4f0689a535543362a88333ab808c36e9c41bfc8b7b6178be7fbd5b12f38b6d806053726997",
797
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/PortingPhoneNumber.php": "ff2e1e98371b6a7b0cc5265d1ab82f053d97711a72633a7d3911a4211dacf75c08083d6629aa4fc028643c0dc929d3ab56132f6f21808b875a9ce679e56fe055",
798
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Portout.php": "71de0eb22350f649e5023b2c4a374b3d10a4beb0f8066d67482c62f68a39219d9cda4bd95d91e1df2fc215479f45b1ab79bfc0ccc2d39267d2f268356ae83ec8",
799
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/RegulatoryRequirement.php": "0658d49bc2c20a9a16ac72ea01b5306eda422d81747529c3373333facb5ce1940252387aa498d2957dec62f0eeaa8aac3979ffd84ca72308e660a1a0708796d4",
800
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/RequestTelemetry.php": "cefdb55dce61e5f276bd49f6b49e57c78085338537e56cce6fea5a81cd1d2235f1eaa78be326cbd513117be88a046177afb628659088b66ce423799995c53709",
801
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/ShortCode.php": "4abc882d0dbc72becbff07212d17b8e1383b0efb43818a7eab983fd2a08c3f591a4f4ba2f185003fab0622a43329c969d2fcc80b23cb94410007a0879309ad49",
802
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/SimCard.php": "46289711eda27b37931b0d9f7e9624c114ef9c1e997ea88055dfdf6fe6dfaf7f9169b9a67cbfe48100dc4df2b73ba4d27328b0ca3ff0af3655789535ec3c0b26",
803
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/TelephonyCredential.php": "497a3dde2d7fcf8bf57b502c71daa5e166010daae45e30e1db7ebacb3a37028fc70c7cdcf39a356dd32f845664e8e9723a366fa69610c8f9bd31fa59b3300624",
804
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Telnyx.php": "f5ecf9589eaf7db991051de8482d582b36edc387b8a7ca48c80a419c1a99e1393d7f099aa4ad3e87adb4706ab62c8714dc843c9a8ce77d6fe6ea5ab929d9a882",
805
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/TelnyxObject.php": "0f45c91559ef686a3eb4ce3777ab7d43ba288b380ffd1031cc3c562138410d3582c251e2d986e8a84a2c189257ed4307500e3fa0d662a48a30b28a9622ae8ad2",
806
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Util\/AutoPagingIterator.php": "d03ac3841bb553d847be9ea73ab9debd8c1f2c829b0d38ac4416a121ac535a5ece2ecd9943d89e720cb5abb1c907ca9b96df899a561c190ccd6843bde785114b",
807
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Util\/CaseInsensitiveArray.php": "d5bcc37aeab4fcbbe0b9f4a9057a5654f6080ed899ae54f8ef18bfc907f244071a6693386dd306caceb6bf338883a13c7972574ac5d700aa00e22ec363932cd6",
808
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Util\/DefaultLogger.php": "50a69f9f6ad628e489a05fdad0df811c926c957c301adb0b4b906dcce9733a0598f6c2eb126865c54a0100131dc4230a834b1e98275237ce8e90bff2e96cd0fb",
809
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Util\/LoggerInterface.php": "8d2dc2c59af5e625eaeef0b85b09f78a42e533b62fee84717d67a4c706fbacd94674f439d3ac60984c0a3947b7d2f5a8ccfb64e071c41d063b8298f57578f88c",
810
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Util\/ObjectTypes.php": "99ce4f7d4d4d9d43e24f3124a7c21b9540267aa160c780efe69d6559843a12948f3790b179db66282b0adda384309a793636d71aeb97d9aab0a62dccfbe2b51b",
811
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Util\/RandomGenerator.php": "292c880420b28390e3d734c6343acd48f322db0c474f80430402916de1dcbf8e988b3d2753a7c18e763e632f474284b213ccc8e8fe4e52f00569e72728dcccb4",
812
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Util\/RequestOptions.php": "00b6d4890b5a38f42f13ffdca556bbf1377c05c8a79ad2d6d0b69b7e27deb70252c15088458da4bbd56e7832cc6b2828e261241661dc344727e2bfb170465de2",
813
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Util\/Set.php": "9cfa1c1bc6c012e8a7a797ba8a7893382eeeb234da73f93594a159f78b9858c984dec1e42da5a6cdb240f00d27d250e3fd6a7842d40c23513661201a148a6c5e",
814
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Util\/Util.php": "4556fc8b785486adfb60ea8001296ad0ae7b13d785f92d545324b557fc4aad85a69ec19dbca27dd868050d64670e4e2be2e3a4f50e4aaac609b0089c0e9e2749",
815
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Verification.php": "b63d4f9d717ba204dcedd1c3315db3300567fe09563faed0e4b8f1415171e43e0068fb06ebb2f42c808602248f623f5773414a1612539a873070f461398be650",
816
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/VerifyProfile.php": "fbdf0818dbe1fdcd6bf13720f21ab6552a3ee7930c80a9adc44c3863ebb3df990b18adc8beee6770f4fca9bcda0d514a689d051c129d871eca48f2c0eccd7649",
817
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/VerifyVerification.php": "f2883946ac990666dfa62e07dad649ae0c9de75d5682857cd22419fda8926d45d504ce4fbf38896a1cbf25323a604a818d3b89f05baf58d91cef497c54d981e7",
818
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/Webhook.php": "b451d90496fcad105eb4f61d5716b93878405315742c09d7c4be96c6b9c0427e35c03c1a664ab2f30f1288566b45117f87b069a3ce96d64111ef6a1ef289ac9e",
819
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/lib\/WebhookSignature.php": "ad990cd80d771718468e39aab1b06809a0efb9bb47f5ea4d42a649dbe481f5929fcbd502da6140f1438920e96ce2e4af82d9cfd810b0ddd0eaea391599685c0d",
820
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/phpunit.no_autoload.xml": "06ad2f4fe0a292902757629f5605509f32a0d1dca527550619c98a61519d83fc70f3c886b12f5e5734b1031186fd9c7fed6fba813cd816b0f07d36c2a6bf11e4",
821
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/phpunit.xml": "82ac037adc20f2aa76682878094e8bffbfe31782dc6a94e2987bac5546e3ffec90577d03715f4ce481cc977685eec9e4109a61b4b46bc19351c2cad555d7cadf",
822
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/TelnyxMock.php": "e8e93ca1114530cb7e9cad46eb20e32072934496d515a9391ce8093773450dd60f3288f9d3ba46533a0f650fe67b508d5e54bbfc6e1642443d1fc043b88eaaeb",
823
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/TestCase.php": "9945df738b56e344648cc00d3d4b94345c15d8749ce511b5095a87d5e52aed35d8e3c773276d9dde9d9fa04eada784a55e4876ebf70a198ba719c8e94c8c32d8",
824
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/AddressTest.php": "dd980e7890ad3dc1d12858f2d241a461689a34892bd780a8db034e620c23d01587996042c2c12d82333b2072bfcca6585afb06213694b7415b0b13d3084b83f5",
825
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/ApiOperations\/AllTest.php": "6031bc6fa9e899f06af9465468fb9e15bf5a9a7c1051fb52fbd383ea879842e72ba4b5347d07566182c632b5f66d5f2d4bdf73c1368a3581c6010330bff91ec9",
826
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/ApiOperations\/CreateTest.php": "c94c7e854a40716aec0e257c4d7fa279c3e941d64a37e167d4885dae5a0e22a513c8f3b018c436eff90ee045432c5e34b96aeb7d879380e9386c2bc177b94f39",
827
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/ApiOperations\/DeleteTest.php": "02ea2d3adfd1d83770f10dc42cc2c12c28079ca80933fbe02219ea79fe7eb6958d2b1d76cb7a0bfee9e308c01efb1eff61901e22d192e15e89ae67f7edcabe5e",
828
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/ApiOperations\/RequestTest.php": "f6e158958616f0637f827b94cce168e873e0d3be09e4ec27165f984af3d89c0be4d5d5cd3ed66df5b6237bf183003a0de1c652f599827fd01a2ee7ad47d5fd61",
829
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/ApiOperations\/RetrieveTest.php": "b26b8f61eb3cb893ce4ff9517817295fe9b727dd570b1cf79ace36e16902e0ab9f460d6b65342afa28c59236b59ec0ba0809e1cee673f69ea26489fdbf5f4f42",
830
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/ApiOperations\/UpdateTest.php": "6aafed3640a1173822ac9a26c002168eeef552f9b681fab9ec4f191df4f988a920d8c290b2f875c02596ef613273ed003e4b5a6bb6e0bc2760f54ffff445cdd1",
831
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/ApiRequestorTest.php": "5a1234c4a1e4107aaf970bf87f0fdb1420979dd575a548e589b046cd7feea4dc914f25bf15474fe5bcd9773c94184b610d06b309d48639964a78e6137078cb5a",
832
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/ApiResourceTest.php": "05562966c7ecea541b0ae95f67a11d9e2b86e45439b436b319e252d5998e0eb7a6c9b677e233572fc616caee856d9764b56feed80fd07cc1bec0d861490753b4",
833
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/ApiResponseTest.php": "6f8d458b49e34df5c0634276659fd441e4140fb4dade92b384230e4e2b897e0da6d0e82c373b1eca98770dc3396ffc8b924672ce2141426706c624d00ffc7af9",
834
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/AvailablePhoneNumberTest.php": "354326429958fdd199df78d11bbc582a0988018b8f907d93808cbd53243f50332482c0603bf4ff12db2a8977ffe7e663ea9d6e8cb5f485aece0d46ae8942833d",
835
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/BalanceTest.php": "8f866f88a8a59754e2fce7d5fe2a0bf50399fd21711cef171873a45308ff96f929b23163495c273e96c9894b7ea39ee5149c45e764fa0de3b51807a329c674c6",
836
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/BillingGroupTest.php": "4333c81ee3ac767fa600095d95f324286d289c7e105ab251f635d9a942e75c418bde60f96c5954ae29dc152ee5fe7679bc5a8b67452f5fa1f59a411dc4854c69",
837
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/CallControlApplicationTest.php": "2bb4f83cdf82457840352c5beaaed8963aba1dcb59711e310d5aaed0d35429730796b412f1aa4e85d5be5a2288ebdd12fc2be9ad75549506d1a613d604d20749",
838
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/CallTest.php": "50f830a3a3c28953ec53c244d22381910307513ba18b7199d5e7bffc5747863e4da975fa972114b2f8a81d0c24afb2f72df8315010febd8d606d086d79d82165",
839
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/CollectionTest.php": "9e742f72d8a223e64bf1a25362f9a28356c0b55037811510692880a359ee5e39266d9e76aa0832de39530e26798806929fb9ab9795a04651ff316f609e2211f8",
840
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/ConferenceTest.php": "4e8ab0baaf21da65e3942b0d98caff11b7a30c24bae10ba546b82f7031d7a85b9d88087f9ac8172e69546eb7635bc1cf8f39b509017b82116e0e13b557bc1f7e",
841
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/ConnectionTest.php": "429f80316a563f45783c87db6b6d3dd1564190b5c6a259f254e91ad8b71b2aa5e6ed40b9cf1a98632b7c89b66441e07f0285d434c78dd9729c032c7a4891d4ee",
842
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/CredentialConnectionTest.php": "a1c37f36e418debb034faa2b7df5095eee175ac8801baed517089622123dcc4af642448aecde7aa8b19cf67629de087e4995ec816d791b5007923ee614590c1c",
843
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/ErrorObjectTest.php": "97344e9d24c204ae429b856d0b32299de4380ec52e9cfbdef6090add25355d268e3dd3ec35ae7c5e0893f5bb204624930d1a856932243180bb71b40e5a1dc08f",
844
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/EventTest.php": "5152c008cb3de14a47586eeaf3ef778629b2beef87fe154a2c40c337c3f918d664c0ea44d8339e22846fedc696fe6b98f0bb0b557d3f88a3ac62990445a55ec5",
845
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/Exception\/ApiErrorExceptionTest.php": "7d54379e1ab9f7d6bddb721ea1c284a8d023674e24e99d115f388ae367250089e10b5962e2bd091e3ebbedd0cc83bb4f821eb0a986ae11487e341569ef7f5c6e",
846
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/Exception\/InvalidRequestExceptionTest.php": "a7da1818af1dfb3eaade1e1a122a8a3224e03a557396e11528af75b13cfae07764f82a282a3161d514358b4c55312193c73b5a8900fd70463fe0a66b448cc9f8",
847
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/Exception\/SignatureVerificationExceptionTest.php": "1bb0fd1563a5c91b78b02e4f66f3cf0288986f546a0805830e0d4ad1ac449549930558caf86c06cdc578279323c43e4739747961065d5ddfa198dbbcd9540599",
848
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/FQDNConnectionTest.php": "0af10bfb2398682865c4ee72cfb34425fe73b0fd20c86b51c61c4cf72f8c4d39a4ecfa21e4ae2e07a67fdf956057549f0c8c4f77e27e65dc1b75dae8b9b849c9",
849
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/FQDNTest.php": "625370468fb338819fb823fbd38656799a8750f5093eebf75c02cfb592969a8635a442ec2febfe07705a5d6feea362b7644c25c67ae653a245bdf55fc178a2ed",
850
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/FaxApplicationTest.php": "64a60460c62983cb0afc2c76880628e16270f14b0b761a8d62766cbe4c0fb33dfc7bd93ae0cb62de25a8f2b3e1994826fcbfe300ea37353f398c4cc8ed7dd62b",
851
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/FaxTest.php": "a920c8ac18021bedbbc4972109afb0cd0afc16e5d86df2fffa2f8e0bdf837e5684124f926f01daf0bae439473022899498441a770ad8cc52479da3d012f1ea1f",
852
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/HttpClient\/CurlClientTest.php": "cff15215b95a804e4ee233df60671c5c1e9270f621025f6ea7cd5a0bdbb55175caa6c43c62e176300bde05c9ee90d84efda0dcdf0d0b5dda4dab2a47d1a669b7",
853
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/IPConnectionTest.php": "6e034e287616ac89e5059d337c682e3fde010130f4403dc76fe4efa12742c40dac114ddc1aaf7ce9e553c597d9ac27170419c5e33fb1439c31c6b585953ff1a4",
854
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/IPTest.php": "7ff33e91d1c7b8bdbef1ca1f5e373150a05f709e524d5a62b000b5c8b8d697ce42306ea8df917305d9ef2a4ea19f797ca28e2f8d0d5f9e3e31c4ebe5eab55ee9",
855
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/InboundChannelTest.php": "c430f6df3eb5add5bda2342e4b4a3acd77b33d74758516782ee0a045d75e7387aaccf36017fdaef18d71cf8865a28faaa0cf07a4f31c9876858719d84d479657",
856
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/MessageTest.php": "08ae5ad7b98362fa7c1478254f851078ef7e9a223c74f3fc57619d2b9c255259edefefc400e261cceafce7072fa7457b8c1cb4dc8dda29b51e432f6d274a8c3a",
857
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/MessagingHostedNumberOrderTest.php": "f8f8ac7271fb01b07815e2a92d7a0974e4320de63942eadc12df307c9458a7cbda7ddae505a731c491e4aa6bcdda7bec04786890df80dd9acd422593f2a02c0e",
858
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/MessagingPhoneNumberTest.php": "7827d12be3191d1329168c6b277899b81df17aa18b775be538b9b29ec9a90868969c05cf61d53715c42105b92cc37977270c1a7b78bee3d13214d8ece51172f2",
859
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/MessagingProfileTest.php": "0949c56ac67ee6f87854959635dbd003391e497325305692784905987d114b399e4c648252f314bc1147e385daf4e60198cbfd6aa940a6cb24992b8cb5abc24e",
860
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/MobileOperatorNetworkTest.php": "6cdaa23aa8cd0a0e9cc43b6f17c86d9c1f7793f7eb30b774f4a8ae9754488e59e0c180823c31d062abaa356578a8718c65f367588c61015e5e36f9f98e7a5cbe",
861
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/NumberLookupTest.php": "e03a73e589abd73cf52a637dd7d273dd2477533b66bcb75685552b77b47f7b58116c4637477da7f9ccb36a408909d91d3f0d3079396aca9bee996b862f358499",
862
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/NumberOrderDocumentTest.php": "06f3e8f8e8dcf5d8c96f25a6f1888d59e9433654ff060701bcc5cb9f54b07357bb3606ac17af3e3913033fb639358df85c6d5c55bff114407168333d7d49cbec",
863
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/NumberOrderTest.php": "176ca2e94df05262e8a43f14e112fb62108ce886bd90a690e8b907881c696e35bd223f08a4960fb58ebebd20cd42bd4217ffa14132e53ddac260926c6d7e8842",
864
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/NumberReservationTest.php": "11742f7449c279908848fd493817731f3f1343895e16d3426a7a7f9fc3d4cc27e275a858e16d7efb8e9c18d32de1ffffc92929e8e3ba277157ab7304c3023c86",
865
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/OtaUpdateTest.php": "14830affab4936804afdd723714f2dc76c520fc2fd6e4d36d7bb255ef566836eafb6b29c18c5adb8785eed39f4bab030e3cd1aab1ef0293d9660b38a10fd6a45",
866
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/OutboundVoiceProfileTest.php": "e49828087e2114fb11569db7387a0acb7cce8bdb0cd655b280b567445ba2dbf16f8b66a88369876e7a2530fb282bf5a04be702719adf4ace871c2b6df8fa5edf",
867
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/PhoneNumber\/MessagingTest.php": "b3c5665f4661624f58f02b814ab1edbee5ceb8c26643bd356b486f049dbb498a44da0af43daf200890c79acad16d51c169d7aa1a2ad4befe074b0ac539ebe3c0",
868
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/PhoneNumber\/VoiceTest.php": "af08b444289d0194437c414916a8ec9285b98413d78e74d1c832b9b45583f9037832a538751628b5dc86b5a13c40c63e9dd360b719501762e8e868fcaa6fb215",
869
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/PhoneNumberTest.php": "7a07f41165e45e5fab268b0e01523c2f67f0ad146965c401856582c4b4a3f63e53324585b1785b41cbeb637d8e61e26e2bfdb57feaf6c6c04cc33be8e4864df8",
870
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/PortingOrderTest.php": "48d2ed4bb9354c772eef6484a0c9a195487c39f26bee3d143ddf64ae7da15e42e5f280a3e26eaa280940230fdee52ea09b7e5320823d4baefa73eec4490537ad",
871
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/PortingPhoneNumberTest.php": "476748b7e467c4f5a648c394eb19dbf297aebc2c16357c946dbc4f363241639dd1001985a7bb21166d5bc77bff1e31edce6e379dbda10f04406377dafcae1bd5",
872
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/PortoutTest.php": "cd262d5eae7c9ef9ba8c76856ef2d4f604484e6bf8646e9ad5231e89f5d45c8176a8ac33a757c53e4be8e2c98e6bb750c6041aefe8b2a589ac1e70a2db4493b2",
873
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/RegulatoryRequirementTest.php": "daa2836606e7c3f34fa122045e982e42f5da86b46f367ddcd7fe9b12e2a3fe5d472d4f38403d4b63aa0c58473d3b5901b8dd49b93a56fa3e76a0bdcf88ebade0",
874
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/RequestTelemetryTest.php": "61190b3601f7c2c72f55e9b1634cfaf11ca53231cf4b5f854ab14859b97f5dc0f07f6c95b8f7c3516ed253e13768b7d4ed9c1d15d0772fd1850eb894f5821152",
875
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/ShortCodeTest.php": "f2e867e0b75d8334ccce51f7bdce842b350e7028319e8d388e0512b5e119585952a54ea79762010f12de8ffcd1c440638ba5300ddbe59adfdcefc712d8e079ac",
876
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/SimCardTest.php": "7000edb2f9b739bdbd44fceeee2e4a16c708efb22c7e38483569d5416f3c107bcecdc759e2e6108553193ba99acc542f5bf3bc353ee1428593a81b80d89ad7c8",
877
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/TelephonyCredentialTest.php": "1f65bad536cd49b2df684db54533b9799856b32464b80700bed5008c9379c414f756d075ab8e231d83f5bd9c1729dba064a5ab5c7e515ca5c32e85698e2036ad",
878
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/TelnyxObjectTest.php": "6214f2c38865c7a183f6a3fd64bc79e7f04963bd726fc124a87b65412075fd236e00cb5f5ed514a3ca2847faec77f4e7a14c59e8906478543daea9c4ddecb7b7",
879
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/TelnyxTelemetryTest.php": "ced938d8d20bdcd0d465155e1bd3ffbaec8ba96a6392c42dbec27a1d10a04da17b90fd3b91322c94b54fcd5a974528e6f10d081ca9b1915a8c8166e0727ceb31",
880
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/TelnyxTest.php": "d88d70053ebb64905acccf7e3cf651ea40c9155130e351d56135c96ada96263311faeabc83d4cef1e72387302ea4a11edf338c3744093d9828e056351eefe11a",
881
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/Util\/CaseInsensitiveArrayTest.php": "671262198a48a16dc2ddb7ecf1c7fd309241db9c74c11072d86cbd2f56403973e4bb17ca5bc6c489bddf46cc391098dd6b666b134fded9430c211c2a3193fc58",
882
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/Util\/DefaultLoggerTest.php": "39942a071430588bf6c089f5d0c97596b3b46b5b7a2b45d900cc41670dcf4bcf0d34e37895e494f0c89242e52d11d8a62f419650407c26ed91b43ea18c816e9e",
883
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/Util\/ObjectTypesTest.php": "2d697994485e6c8f9084f9155a5a5b753261bcd2afcc9dfc5760daa5d4196b7c5baee49b264142a705ca7dd6c5d2cde227db3c1f860173aee6769299db95cd83",
884
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/Util\/RequestOptionsTest.php": "86d628c4b19e4b7d057cac471219603643b6405e83745535b6c5f743fe84d5cf918a273f9e8e22c5eded36cc20ce49453e90c0ae05a9ed437059ddc287ccb5f7",
885
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/Util\/SetTest.php": "c91cbf6d983f16e033eec154e56705b1d942243371df25d5cec7cb375a359faf29fec0c87fa5f3e4d7aad512d7e757361cf409e60d643fff7fa8fef72d9ff172",
886
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/Util\/UtilTest.php": "10f13d306d3ac2211b67e759a6e1fbbbdcbc1cb791db4531ac799a8f84be67b3ab43cc85498b786b0630510324bf5039ac7ed39e2252f607f7937e802f9b578d",
887
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/VerificationTest.php": "8ea7985bfc5075c0e5d3a8b0b703af578479e481d769a0e8659d4b0996314aae15de36cc7022e087c0625c5976255aae323f9ac141e9e4fef3939a23fda6d260",
888
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/VerifyProfileTest.php": "c0986530c0ddd14e2227cbf9ceb0614aeec3c3b2dc37b5bce0de0d174ebd047f61fa28ba0787b4de1fd3efb5d77d5924e36ebf6fbba09711d0237f520365e8fc",
889
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/api_resources\/WebhookTest.php": "7e06c31d714348c6c9a6cf14c4a21a1f593287fe61e41630a6d766f15cf2595dccb1cd92981578cc205f6c89839a07c7c845efca2b44521d0aa36c0be9e444f7",
890
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/bootstrap.no_autoload.php": "cb002f7c8f77834b6414db6535f083bcd227ee6085363fa3cb0f66b55226680a45c8562fd8458249868465957b2aeae134b3379f8ee2ed22c96425475e9c0af1",
891
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/bootstrap.php": "50e143ed68aceb91d3e119d5a31521e76bfe9876bd780c90ac83afb7ca4f32be48ff81c33c134109eafe1d22f35e0957a9a834966b8853df99dc1df04795adf4",
892
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/data\/test.png": "6ad523f5b65487369d305613366b9f68dcdeee225291766e3b25faf45439ca069f614030c08ca54c714fdbf7a944fac489b1515a8bf9e0d3191e1bcbbfe6a9df",
893
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/tests\/openapi\/README.md": "0c54fffd5b7a5f393358864ff9e3bd3793075d6060cc1336603b2455d60f16d160ffd47b52bca6834acf0d9713855b386f69580099a3dcc131e8d5d617975ff2",
894
+        "providers\/Telnyx\/vendor\/telnyx\/telnyx-php\/update_certs.php": "6a7fd896832dbc4c039fc907c74f25fad01f26882809d1ed0bef2870ba7db5d5930311208e2864190209862a077e4397dabcc1760ef2ec7e29127868016fc0d8",
895
+        "providers\/Twilio\/readme.txt": "879f75eaefe03b56788a884a5cb031533b33a94acd816b9e3e51a9cf0db826de700062955fc45d9561bd4c69f71178e2976f702e801fc06c3c076494c55c8bcb",
896
+        "templates\/content\/index.php": "63d6e27dee39188b80cef2b095db84791e02af0526b80d41bd37845386714f9f82cc9dafaf97fa355b927ab9b74527199ec70604480e09feb10a2b076e313b5a",
897
+        "templates\/index.php": "15ea019ef66fa303773941fa9ca673e472e9521b3f9fdb9052870e6f0596ca3939b247c8924ec0d67e0f3fee6e612e2c447a1297cf23cb5b6144e58a6197d65e",
898
+        "templates\/navigation\/index.php": "ec8a01f96781a8f7a6e6281cde2179100818f7bd3eafc8947f4f28f204571061ce7b2ba0c23daaecef9b1188c396c2e1bb8b3fff762c6eac3565f1e33722de64",
899
+        "templates\/settings\/admin.php": "fc11bdc9a9ebd20114ac1a0c7105cc2a950e6e6818808706786c1b36384102121feaf5eca3677335b7b13e879f586b256d55094c8ba70cc81bd0e0db2e468e9d",
900
+        "templates\/settings\/personal.php": "c2318964fec2a2f1cf3710fecea66bac9bc9f7fb10abbf65be5268c21ab1679f3a174f750821982a55fb43820ff873a4fc6437a89c4155bbb51622439d996439"
901
+    },
902
+    "signature": "ggFBfZJe5rbGRi1zFPtWv\/t7jtpbteAQGAvzKJrUs1f7acWcyXmgP7YsX4al\/BcnIcZIXXUJNvgI5E1vGZVn6DB6VMHwFfbUI7wMagiH9panhiao3RPwCf6MGW0Pd45fSLj5gQ1vDVhZgnVZPPzB9dMSYV2okZQC53hNxeWmOnt5HceYccIMnm5Rh2pWeLsWXSg77HfVWPa5Es9oyh6dyJ5JKNZraeFrEiftSZiA3PvrQVvGuPxMSEZrsna8jFmGf+x6NFKiWxjT4OEMQ4fmz1iWXvhpjAkW8Z5zLbP\/ftPOuI1384UEBeyU0jK0yf5dI7XRRmNhJVcLMYznF+LmLoelaoBi4VRkqf+kwcGjRdDl4225p7dr4E91y+RAprSPKzk09lRUYbnRVyuxkFG98XRGENNMPfUxfg0pcv28Dj099kskDYMu8UNF5xJPPbCKXkkgwq84h5ePbxUWkpIZxfjt+7bHHpHgVbrRjNB\/a6xcUiVDt4ObZ6MYNM0yqs3jbfzm9EVQaO9Zo747adn1PuXcXs5goly41OyeKAIKjaRggg918snIs2Mo0dIsiBElyEnvv9bb\/YQYXVOxpE\/60Bsch3nBQdmkKHyxgIVxRu76CME9eoWOrU+2uLT6HlUo2aCOXn6ugOL8mzS0xKBidHs8K+8P54xGtPsZ+5CDUjI=",
903
+    "certificate": "-----BEGIN CERTIFICATE-----\r\nMIIECTCCAvECAhG8MA0GCSqGSIb3DQEBCwUAMHsxCzAJBgNVBAYTAkRFMRswGQYD\r\nVQQIDBJCYWRlbi1XdWVydHRlbWJlcmcxFzAVBgNVBAoMDk5leHRjbG91ZCBHbWJI\r\nMTYwNAYDVQQDDC1OZXh0Y2xvdWQgQ29kZSBTaWduaW5nIEludGVybWVkaWF0ZSBB\r\ndXRob3JpdHkwHhcNMjIwMjI1MTYwMjIyWhcNMzIwNjAyMTYwMjIyWjAZMRcwFQYD\r\nVQQDDA5zbXNfcmVsZW50bGVzczCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC\r\nggIBALbJJdLJIooOqb46AyOdNlWR9LXm3hWzjNBkH0o8wtMFEnotUOLcbaXbmTun\r\niG0Q0eunZGLSF6in+kY5M420Jh9bbDP6bYI8iDG6CSDkmKgnfcdJRlB6i7g0qBG8\r\noMzOB1x7ZVTef8Ho2ylTMWCxCfTlcQ15okAUpLU1G37I5rg0DZH2fPdGs9PMg11a\r\n64Tofl2GJSf9aHsgLi0AXXVzSN\/96wmK2fJYBqTVsPo5qIqKtMVWduhDXsb9yT4q\r\nDMYzyHrr8ydrMSGPwfs940R00hG2qHJcuKKGjYCCtu7djMfpKA9fqsGZBE6IWlVH\r\nCZxYIHPaEfHOybPR5d2GIKzncUQjtO2\/9rsju31GwzrVswG7w0tQUIIaj5AFLIL3\r\njnagjo2LH11ta9mB+DikaZDfd4VYEEfkTJA4BjnNCDa9pYOaFBGGwJMBSH3eWJCZ\r\nURBtk2NBnIheFRaGWRAzUpKAc+ZYdnmuAqe3Eh1en9GNlKTMCO+mAHkFJp3z8Nai\r\n1ijEVK+PIgtrzqc48ft0r6L43Zd184JnSIscBm\/9GUb0sCf+Uv4WFBKm4c7nrWtM\r\nC1LMKqmj2OYD1fZJ65M1VrkAqh8VXNtqQI1caBGMkcs4\/\/1eo\/XomL6sEkvfa9Y2\r\n1OywnVt52ZeLHyUS2P1mvPyWZgL8AxIie82Mtp7ZWX9Q8ubbAgMBAAEwDQYJKoZI\r\nhvcNAQELBQADggEBAI6OdKpKpevWVprPZ1TzUpq5ATj2JyCZySYC71Ud8l3lAEmn\r\nuh9ok5P7ccY\/c\/9\/ePWuvGxNSHmk1+nEEWC8XNXY5OoU9+i+g7vXd6EKOsowallw\r\nvWZB2rjl6+eNC\/AVa0NE2d9C6AWZtLxiV6rVsmkNUbBS6orHq8JJ2PSJKPT0\/nfM\r\nWL+ZORuFguWazEsy9oZBlplaWNxyAgq\/L66SKXynQPe74kZeVdZ5aQluHnBKZAoh\r\n6v0c2YiaoG5Mg6tDWcx4zM8HXv39Nbg2hcAtP2j3F9EkHZaytW9nM7nTIOxZJtR\/\r\nuGJtkj5+e1NQaMYn2NDiYSZALGUQ3YkHv4OIzDY=\r\n-----END CERTIFICATE-----"
904
+}
0 905
\ No newline at end of file
1 906
new file mode 100644
... ...
@@ -0,0 +1,3188 @@
1
+/**
2
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
3
+ *
4
+ * @author Double Bastion LLC
5
+ *
6
+ * @license GNU AGPL version 3 or any later version
7
+ *
8
+ * This program is free software; you can redistribute it and/or
9
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
10
+ * License as published by the Free Software Foundation; either
11
+ * version 3 of the License, or any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public
19
+ * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+@font-face {
24
+    font-family: 'Inter';
25
+    src: url('../fonts/Inter-Bold.woff2') format('woff2'),
26
+         url('../fonts/Inter-Bold.woff') format('woff');
27
+    font-weight: 700;
28
+    font-style: normal;
29
+}
30
+@font-face {
31
+    font-family: 'Inter';
32
+    src: url('../fonts/Inter-BoldItalic.woff2') format('woff2'),
33
+         url('../fonts/Inter-BoldItalic.woff') format('woff');
34
+    font-weight: 700;
35
+    font-style: italic;
36
+}
37
+@font-face {
38
+    font-family: 'Inter';
39
+    src: url('../fonts/Inter-MediumItalic.woff2') format('woff2'),
40
+         url('../fonts/Inter-MediumItalic.woff') format('woff');
41
+    font-weight: 500;
42
+    font-style: italic;
43
+}
44
+@font-face {
45
+    font-family: 'Inter';
46
+    src: url('../fonts/Inter-SemiBold.woff2') format('woff2'),
47
+         url('../fonts/Inter-SemiBold.woff') format('woff');
48
+    font-weight: 600;
49
+    font-style: normal;
50
+}
51
+@font-face {
52
+    font-family: 'Inter';
53
+    src: url('../fonts/Inter-Regular.woff2') format('woff2'),
54
+         url('../fonts/Inter-Regular.woff') format('woff');
55
+    font-weight: 400;
56
+    font-style: normal;
57
+}
58
+@font-face {
59
+    font-family: 'Inter';
60
+    src: url('../fonts/Inter-SemiBoldItalic.woff2') format('woff2'),
61
+         url('../fonts/Inter-SemiBoldItalic.woff') format('woff');
62
+    font-weight: 600;
63
+    font-style: italic;
64
+}
65
+@font-face {
66
+    font-family: 'Inter';
67
+    src: url('../fonts/Inter-Italic.woff2') format('woff2'),
68
+         url('../fonts/Inter-Italic.woff') format('woff');
69
+    font-weight: 400;
70
+    font-style: italic;
71
+}
72
+@font-face {
73
+    font-family: 'Inter';
74
+    src: url('../fonts/Inter-Medium.woff2') format('woff2'),
75
+         url('../fonts/Inter-Medium.woff') format('woff');
76
+    font-weight: 500;
77
+    font-style: normal;
78
+}
79
+
80
+@font-face {
81
+    font-family: 'Open Sans';
82
+    src: url('../fonts/opensans-light.woff2') format('woff2'),
83
+         url('../fonts/opensans-light.woff') format('woff');
84
+    font-weight: 300;
85
+    font-style: normal;
86
+}
87
+@font-face {
88
+    font-family: 'Open Sans';
89
+    src: url('../fonts/opensans-lightitalic.woff2') format('woff2'),
90
+         url('../fonts/opensans-lightitalic.woff') format('woff');
91
+    font-weight: 300;
92
+    font-style: italic;
93
+}
94
+@font-face {
95
+    font-family: 'Open Sans';
96
+    src: url('../fonts/opensans-regular.woff2') format('woff2'),
97
+         url('../fonts/opensans-regular.woff') format('woff');
98
+    font-weight: 400;
99
+    font-style: normal;
100
+}
101
+@font-face {
102
+    font-family: 'Open Sans';
103
+    src: url('../fonts/opensans-italic.woff2') format('woff2'),
104
+         url('../fonts/opensans-italic.woff') format('woff');
105
+    font-weight: 400;
106
+    font-style: italic;
107
+}
108
+@font-face {
109
+    font-family: 'Open Sans';
110
+    src: url('../fonts/opensans-semibold.woff2') format('woff2'),
111
+         url('../fonts/opensans-semibold.woff') format('woff');
112
+    font-weight: 600;
113
+    font-style: normal;
114
+}
115
+@font-face {
116
+    font-family: 'Open Sans';
117
+    src: url('../fonts/opensans-semibolditalic.woff2') format('woff2'),
118
+         url('../fonts/opensans-semibolditalic.woff') format('woff');
119
+    font-weight: 600;
120
+    font-style: italic;
121
+}
122
+@font-face {
123
+    font-family: 'Open Sans';
124
+    src: url('../fonts/opensans-bold.woff2') format('woff2'),
125
+         url('../fonts/opensans-bold.woff') format('woff');
126
+    font-weight: 700;
127
+    font-style: normal;
128
+}
129
+@font-face {
130
+    font-family: 'Open Sans';
131
+    src: url('../fonts/opensans-bolditalic.woff2') format('woff2'),
132
+         url('../fonts/opensans-bolditalic.woff') format('woff');
133
+    font-weight: 700;
134
+    font-style: italic;
135
+}
136
+@font-face {
137
+    font-family: 'Open Sans';
138
+    src: url('../fonts/opensans-extrabold.woff2') format('woff2'),
139
+         url('../fonts/opensans-extrabold.woff') format('woff');
140
+    font-weight: 800;
141
+    font-style: normal;
142
+}
143
+@font-face {
144
+    font-family: 'Open Sans';
145
+    src: url('../fonts/opensans-extrabolditalic.woff2') format('woff2'),
146
+         url('../fonts/opensans-extrabolditalic.woff') format('woff');
147
+    font-weight: 800;
148
+    font-style: italic;
149
+}
150
+
151
+#smsrelentless_vbar {
152
+   font-family: 'Open Sans';
153
+}
154
+
155
+div > label {
156
+   position: relative;
157
+}
158
+
159
+label span {
160
+   display: inline-block;
161
+   min-width: 110px;
162
+   padding: 0px 0px 8px 0px;
163
+}
164
+
165
+select {
166
+  min-height: 25px;
167
+  box-sizing: border-box;
168
+  text-overflow: inherit;
169
+}
170
+
171
+.providerSettings {
172
+   background-color: #F7F7F7;
173
+   padding: 14px;
174
+}
175
+
176
+.providerName {
177
+   font-size: 18px;
178
+   font-weight: bold;
179
+   margin-bottom: 20px;
180
+}
181
+
182
+#smsrelentless_vbar {
183
+   padding: 18px;
184
+   color: #6d6c6c;
185
+}
186
+
187
+.smsr_textbox {
188
+   display: block;
189
+   box-sizing: content-box;
190
+   width: 70%;
191
+   font-family: 'Inter';
192
+   font-size: 15px;
193
+}
194
+
195
+.smsr_textbox[type='password'] {
196
+   font-size: 10px !important;
197
+}
198
+
199
+.smsr_textboxspec {
200
+   box-sizing: content-box;
201
+   width: 70%;
202
+   font-family: 'Inter';
203
+   font-size: 15px;
204
+}
205
+
206
+#copyToClipboardtel, #copyToClipboardnex, #copyToClipboardtwil, #copyToClipboardflow {
207
+   display: inline-block;
208
+   width: 18px;
209
+   height: 18px;
210
+   margin: 0px 0px -4px 5px;
211
+   cursor: pointer;
212
+}
213
+
214
+#copyToClipboardtel:hover, #copyToClipboardnex:hover, #copyToClipboardtwil:hover, #copyToClipboardflow:hover {
215
+   background-color: #E0E0E0;
216
+}
217
+
218
+#telapi_url, #nexapi_url, #twilapi_url, #twilapi_url_rec, #flowapi_url, #flowapi_url_rec {
219
+   display: inline-block;
220
+   box-sizing: content-box;
221
+   width: 70%;
222
+   font-family: 'Inter';
223
+   font-size: 15px !important;
224
+}
225
+
226
+#generate_tel_rcpt, #generate_tel_delrcpt, #generate_nex_rcpt, #generate_nex_delrcpt, #generate_twil_rcpt, #generate_twil_delrcpt, #generate_flow_rcpt, #generate_flow_delrcpt {
227
+   display: block;
228
+   white-space: normal;
229
+   word-wrap: break-word;
230
+}
231
+
232
+.generateUrl {
233
+   color: #161616;
234
+   background-color: #e3ecf0 !important;
235
+   font-family: 'Inter';
236
+}
237
+
238
+.generateUrl:hover {
239
+   background-color: #c2dcea !important;
240
+}
241
+
242
+.generateUrl:active {
243
+   background-color: #b5cfdd !important;
244
+}
245
+
246
+.setlabeltext {
247
+  font-size: 15px;
248
+}
249
+
250
+#smsr_save_msg {
251
+   display: inline;
252
+   color: #181918;
253
+   background-color: #a5e5b3;
254
+   font-weight: bold;
255
+}
256
+
257
+#get_notify {
258
+   display: block;
259
+   margin-bottom: 18px;
260
+   cursor: pointer;
261
+}
262
+
263
+#includesmsinemail, #showdisplaynames, #adddisplaynames, #showallmessages {
264
+   display: block;
265
+   margin-bottom: 14px;
266
+   cursor: pointer;
267
+}
268
+
269
+#currentbaldiv, #smsnumbersdiv {
270
+   display: block;
271
+   position: relative;
272
+   font-size: 15px;
273
+   font-weight: bold;
274
+   height: 30px;
275
+   margin: 0px 0px 14px 0px;
276
+   background-color: #4CA3D9;
277
+   border-radius: 20px;
278
+}
279
+
280
+.providername {
281
+  color: #FFFFFF;
282
+}
283
+
284
+.providername:hover {
285
+  color: #2c0cfc;
286
+}
287
+
288
+#currentbalance {
289
+  display: inline;
290
+  position: absolute;
291
+  margin: 3px 0px 0px 114px;
292
+  color: #262626;
293
+  font-weight: 600;
294
+}
295
+
296
+#smsprovider {
297
+  display: inline;
298
+  position: absolute;
299
+  width: 102px;
300
+  height: 22px;
301
+  margin: 3px 0px 0px 0px;
302
+  padding: 0px 0px 1px 0px !important;
303
+  -moz-box-sizing: border-box;
304
+  -webkit-box-sizing: border-box;
305
+  box-sizing: border-box;
306
+  background: #fcfcfc;
307
+  font-family: 'Inter' !important;
308
+  font-size: 14.5px;
309
+  font-weight: 600;
310
+  color: #565656;
311
+  text-align: center;
312
+  border-radius: 20px;
313
+}
314
+
315
+#currentsmsnmbrs {
316
+  display: inline-block;
317
+  position: absolute;
318
+  height: 22px;
319
+  width: 54%;
320
+  padding: 0 !important;
321
+  margin: 2px 0px 0px 0px;
322
+  text-align: center;
323
+  text-overflow: inherit;
324
+  font-family: 'Inter' !important;
325
+  font-size: 14px;
326
+  font-weight: 600;
327
+  color: #565656;
328
+  -moz-box-sizing: border-box;
329
+  -webkit-box-sizing: border-box;
330
+  box-sizing: border-box;
331
+  background: #fcfcfc;
332
+  border-radius: 20px;
333
+}
334
+
335
+.cllridcls {
336
+  position: relative;
337
+  display: inline;
338
+  font-size: 17px;
339
+  color: #000000;
340
+}
341
+
342
+.tooltipbalanceid  {
343
+  position: relative;
344
+  display: inline-block;
345
+  float: right;
346
+  font-size: 15px;
347
+  color: #000000;
348
+  z-index: 9;
349
+}
350
+
351
+.tooltipsetid  {
352
+  position: relative;
353
+  display: inline-block;
354
+  float: right;
355
+  font-size: 15px;
356
+  color: #000000;
357
+  z-index: 8;
358
+}
359
+
360
+.tooltipbalanceid #infobalance {
361
+  display: block;
362
+  position: relative;
363
+  margin: 4px 14px 0px 0px;
364
+  color: #000000;
365
+  font-size: 19px;
366
+  font-weight: bold;
367
+  font-family: 'Open Sans';
368
+  font-style: italic;
369
+  z-index: 6;
370
+}
371
+
372
+.tooltipbalanceid .balancetooltip {
373
+  display: block;
374
+  position: absolute;
375
+  visibility: hidden;
376
+  width: 264px;
377
+  background-color: #fafafa;
378
+  font-size: 14px;
379
+  font-weight: bold;
380
+  color: #595959;
381
+  text-align: left;
382
+  border-radius: 5px;
383
+  padding: 5px 5px 5px 8px;
384
+  margin: -4px 0px 0px -244px;
385
+  box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
386
+  -webkit-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
387
+  -moz-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
388
+  z-index: 6;
389
+}
390
+
391
+.tooltipbalanceid:hover .balancetooltip {
392
+   visibility: visible;
393
+}
394
+
395
+#infotipid {
396
+   display: block;
397
+   position: relative;
398
+   margin: 4px 14px 0px 0px;
399
+   color: #000000;
400
+   font-size: 19px;
401
+   font-weight: bold;
402
+   font-family: 'Open Sans';
403
+   font-style: italic;
404
+   z-index: 5;
405
+}
406
+
407
+#setcalleridtp {
408
+   display: block;
409
+   position: absolute;
410
+   width: 274px;
411
+   overflow-y: scroll;
412
+   visibility: hidden;
413
+   background-color: #fafafa;
414
+   border-radius: 5px;
415
+   margin: -6px 0px 0px -250px;
416
+   scrollbar-width: auto;
417
+   scrollbar-color: #a2a2a2 #ececec;
418
+   box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
419
+   -webkit-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
420
+   -moz-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
421
+   z-index: 10;
422
+}
423
+
424
+.calleridtooltip {
425
+   display: block;
426
+   position: relative;
427
+   width: auto;
428
+   height: auto;
429
+   background-color: #f4f4f4;
430
+   font-size: 14px;
431
+   font-weight: bold;
432
+   color: #595959;
433
+   text-align: left;
434
+   padding: 5px 12px 5px 10px;
435
+   z-index: 10;
436
+}
437
+
438
+.tooltipsetid:hover #setcalleridtp {
439
+   visibility: visible;
440
+}
441
+
442
+.pflabels {
443
+   font-size: 15px;
444
+   font-weight: bold;
445
+}
446
+
447
+.srheader {
448
+   display: block;
449
+   position: relative;
450
+   margin: 0px 0px 7px 0px;
451
+   font-size: 15px;
452
+   font-weight: bold;
453
+}
454
+
455
+.sendtomultrcvrs {
456
+   display: block;
457
+   position: relative;
458
+   margin: 0px 0px 7px 0px;
459
+   font-size: 17px;
460
+}
461
+
462
+.smsnbformat {
463
+   display: block;
464
+   position: relative;
465
+   margin: 0px;
466
+   font-size: 15px;
467
+   font-weight: bold;
468
+}
469
+
470
+.smsrelentless_box {
471
+   width: 400px;
472
+   display: block;
473
+}
474
+.indtext {
475
+   display: inline-block;
476
+   padding-left: 10px;
477
+}
478
+
479
+#settings-dscr {
480
+   padding-top: 3px;
481
+}
482
+
483
+#sms_upload_msg {
484
+   display: block;
485
+   color: #181918;
486
+   background-color: #a5e5b3;
487
+   font-weight: bold;
488
+}
489
+
490
+#sms_submit_msg {
491
+   display: none;
492
+   margin: 14px 0px 8px 0px;
493
+   padding: 3px 20px 0px 20px;
494
+   width: 100%;
495
+   color: #181918;
496
+   background-color: #a5e5b3;
497
+   font-size: 15px;
498
+   font-weight: bold;
499
+   text-align: center;
500
+   border-radius: 14px;
501
+}
502
+
503
+#pickedfilename {
504
+   font-size: 13px;
505
+}
506
+
507
+#smstodiv {
508
+   display: block;
509
+   position: relative;
510
+   height: 32px;
511
+}
512
+
513
+#smsto {
514
+   display: block;
515
+   width: 99%;
516
+   max-height: 32px;
517
+   padding: 0px 15px 0px 15px;
518
+   color: #565656;
519
+   font-family: 'Inter';
520
+   font-size: 15px;
521
+   font-weight: bold;
522
+   border-radius: 20px;
523
+}
524
+
525
+#sendtomultiple {
526
+   display: inline-block;
527
+   position: relative;
528
+   margin: 10px 0px 12px 0px;
529
+   font-size: 15px;
530
+   font-weight: bold;
531
+}
532
+
533
+#entermessage {
534
+   display: block;
535
+   position: relative;
536
+   margin: 4px 0px 0px 0px;
537
+   font-size: 15px;
538
+   font-weight: bold;
539
+}
540
+
541
+#uploadfileforsms {
542
+   margin-left: 7px;
543
+   background-color: #ffffff;
544
+   border-radius: 3px !important;
545
+}
546
+
547
+.entertime {
548
+   display: inline;
549
+   font-size: 15px;
550
+   font-weight: bold;
551
+   margin-right: 7px;
552
+}
553
+
554
+#sendmediafl {
555
+   display: block;
556
+   position: relative;
557
+   margin: 0px 0px 20px 0px;
558
+   font-size: 15px;
559
+   font-weight: bold;
560
+}
561
+
562
+#tomultchckbx {
563
+   display: inline-block;
564
+   position: absolute;
565
+   margin: 3px 0px 0px 10px;
566
+}
567
+
568
+#mediafilechckbx {
569
+   display: inline-block;
570
+   position: absolute;
571
+   margin: -7px 0px 0px 10px;
572
+}
573
+
574
+#deleteoldchckbox {
575
+   display: inline-block;
576
+   position: absolute;
577
+   margin: 3.5px 0px 0px 10px;
578
+}
579
+
580
+#tomultchckbx:hover, #mediafilechckbx:hover, #deleteoldchckbox:hover {
581
+   cursor: pointer;
582
+}
583
+
584
+.maxmessagelength {
585
+   display: none;
586
+   position: relative;
587
+   margin: 2px 7px 4px 0px;
588
+   font-size: 15px;
589
+   color: #000000;
590
+   z-index: 6;
591
+}
592
+
593
+#maxlengthinfo {
594
+   display: block;
595
+   position: absolute;
596
+   width: 274px;
597
+   height: 200px;
598
+   overflow-y: scroll;
599
+   visibility: hidden;
600
+   background-color: #fafafa;
601
+   border-radius: 5px;
602
+   margin: -11px 0px 0px -6px;
603
+   scrollbar-width: auto;
604
+   scrollbar-color: #a2a2a2 #ececec;
605
+   box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
606
+   -webkit-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
607
+   -moz-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
608
+   z-index: 10;
609
+}
610
+
611
+.maxlengthtooltip {
612
+   display: block;
613
+   position: relative;
614
+   width: auto;
615
+   height: auto;
616
+   background-color: #f4f4f4;
617
+   font-size: 14px;
618
+   font-weight: bold;
619
+   color: #595959;
620
+   text-align: left;
621
+   padding: 5px 12px 5px 10px;
622
+   z-index: 10;
623
+}
624
+
625
+.maxmessagelength:hover #maxlengthinfo {
626
+   visibility: visible;
627
+}
628
+
629
+.up-bttn-wrapper {
630
+  display: block;
631
+  position: relative;
632
+  overflow: hidden;
633
+  padding-top: 20px;
634
+  padding-bottom: 30px;
635
+}
636
+
637
+#smstext {
638
+  display: inline-block;
639
+  color: #2a2a2a;
640
+  width: 100%;
641
+  height: 130px;
642
+  text-align: left;
643
+  font-family: 'Inter';
644
+  font-size: 15px;
645
+  font-weight: 500;
646
+  border-radius: 6px;
647
+  resize: vertical;
648
+  white-space: pre-wrap;
649
+}
650
+
651
+#char_count {
652
+  display: none;
653
+  font-size: 14px;
654
+  font-weight: bold;
655
+}
656
+
657
+#mtextSize {
658
+  display: none;
659
+  margin-left: 10px;
660
+  font-size: 14px;
661
+  font-weight: bold;
662
+  color: #4CA3D9;
663
+}
664
+
665
+#submitsms {
666
+   display: block;
667
+   position: relative;
668
+   margin-top: 14px;
669
+   color: white;
670
+   font-family: 'Open Sans';
671
+   font-weight: 700;
672
+   font-size: 15px;
673
+   background-color: #4CA3D9;
674
+   border-radius: 20px;
675
+   cursor: pointer;
676
+   opacity: 1 !important;
677
+}
678
+
679
+#submitsms:hover {
680
+   border-color: #5CAECC;
681
+}
682
+
683
+#submitsms:active {
684
+   background: #4B96B1;
685
+   border-color: #4B96B1;
686
+}
687
+
688
+#multiplerecivers {
689
+   display: none;
690
+   background: #e8f6ff;
691
+   border-radius: 6px;
692
+   padding: 5px;
693
+   margin: 0px 0px 20px 0px;
694
+}
695
+
696
+#multsetrows {
697
+  display: block;
698
+  padding: 5px;
699
+}
700
+
701
+#multsmsinterval {
702
+  display: block;
703
+  width: 100px;
704
+  height: 25px;
705
+  font-family: 'Inter';
706
+  font-size: 14px;
707
+  font-weight: 700;
708
+  padding: 0px 0px 0px 10px;
709
+  border-radius: 20px;
710
+}
711
+
712
+#app {
713
+  position: relative;
714
+  display: flex;
715
+  min-height: 100%;
716
+  min-width: 100%;
717
+}
718
+
719
+#app-content {
720
+   position: relative;
721
+   z-index: 1000;
722
+   flex-basis: 100vw;
723
+   min-width: 0;
724
+   min-height: 100%;
725
+   margin: 0 !important;
726
+   overflow-y: scroll;
727
+}
728
+
729
+#viewerContainer {
730
+   display: block;
731
+   position: relative;
732
+   width: 100%;
733
+   height: 100%;
734
+}
735
+
736
+.pdfViewer #viewer {
737
+   display: block;
738
+   position: relative;
739
+   min-width: 100%;
740
+   min-height: 100%;
741
+}
742
+
743
+#smsdocpreview {
744
+   display: inline-block;
745
+   position: relative;
746
+   width: 100%;
747
+   height: 100%;
748
+   margin-top: -50px;
749
+}
750
+
751
+#outerContainer {
752
+   display: block;
753
+   position: relative;
754
+   width: 100%;
755
+   height: 100%;
756
+}
757
+
758
+#mainContainer {
759
+   display: block;
760
+   position: relative;
761
+   width: 100%;
762
+   height: 100%;
763
+}
764
+
765
+.texttooltip {
766
+  font-family: 'Open Sans';
767
+  font-style: italic;
768
+  color: #000000;
769
+  font-size: 19px;
770
+  font-weight: bold;
771
+  margin: 0px 0px 4px 4px;
772
+}
773
+
774
+.fortooltip {
775
+   position: relative;
776
+   display: inline-block;
777
+   margin: 0px;
778
+   font-size: 15px;
779
+   color: #000000;
780
+   z-index: 7;
781
+}
782
+
783
+.fortooltipsec {
784
+   position: relative;
785
+   display: inline-block;
786
+   font-size: 15px;
787
+   color: #000000;
788
+   padding: 2px 0px 4px 2px;
789
+   z-index: 3;
790
+}
791
+
792
+.fortooltiptert {
793
+   position: relative;
794
+   display: inline-block;
795
+   font-size: 15px;
796
+   color: #000000;
797
+   padding: 2px 0px 4px 2px;
798
+   z-index: 0;
799
+}
800
+
801
+.fortooltipfourth {
802
+   position: relative;
803
+   display: inline-block;
804
+   font-size: 15px;
805
+   color: #000000;
806
+   padding: 2px 0px 4px 2px;
807
+   z-index: 4;
808
+}
809
+
810
+#tonmbrformat {
811
+   display: block;
812
+   position: absolute;
813
+   width: 274px;
814
+   overflow-y: scroll;
815
+   visibility: hidden;
816
+   background-color: #fafafa;
817
+   border-radius: 5px;
818
+   margin: -11px 0px 0px -6px;
819
+   scrollbar-width: auto;
820
+   scrollbar-color: #a2a2a2 #ececec;
821
+   box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
822
+   -webkit-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
823
+   -moz-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
824
+   z-index: 10;
825
+}
826
+
827
+.fortooltiptext {
828
+   display: block;
829
+   position: relative;
830
+   width: auto;
831
+   height: auto;
832
+   background-color: #f4f4f4;
833
+   font-size: 14px;
834
+   font-weight: bold;
835
+   color: #595959;
836
+   text-align: left;
837
+   padding: 5px 12px 5px 10px;
838
+   z-index: 10;
839
+}
840
+
841
+.fortooltip:hover #tonmbrformat {
842
+   visibility: visible;
843
+}
844
+
845
+#uploadfileinfo {
846
+   display: block;
847
+   position: absolute;
848
+   width: 274px;
849
+   overflow-y: scroll;
850
+   visibility: hidden;
851
+   background-color: #fafafa;
852
+   border-radius: 5px;
853
+   margin: -11px 0px 0px -6px;
854
+   scrollbar-width: auto;
855
+   scrollbar-color: #a2a2a2 #ececec;
856
+   box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
857
+   -webkit-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
858
+   -moz-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
859
+   z-index: 10;
860
+}
861
+
862
+.fortooltiptextsec {
863
+   display: block;
864
+   position: relative;
865
+   width: auto;
866
+   height: auto;
867
+   background-color: #f4f4f4;
868
+   font-size: 14px;
869
+   font-weight: bold;
870
+   color: #595959;
871
+   text-align: left;
872
+   padding: 5px 12px 5px 10px;
873
+   z-index: 10;
874
+}
875
+
876
+.fortooltipsec:hover #uploadfileinfo {
877
+   visibility: visible;
878
+}
879
+
880
+#deleteoldinfo {
881
+   display: block;
882
+   position: absolute;
883
+   width: 274px;
884
+   height: 200px;
885
+   overflow-y: scroll;
886
+   visibility: hidden;
887
+   background-color: #fafafa;
888
+   border-radius: 5px;
889
+   margin: -11px 0px 0px -6px;
890
+   scrollbar-width: auto;
891
+   scrollbar-color: #a2a2a2 #ececec;
892
+   box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
893
+   -webkit-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
894
+   -moz-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
895
+   z-index: 10;
896
+}
897
+
898
+.fortooltiptexttert {
899
+   display: block;
900
+   position: relative;
901
+   width: auto;
902
+   height: auto;
903
+   background-color: #f4f4f4;
904
+   font-size: 14px;
905
+   font-weight: bold;
906
+   color: #595959;
907
+   text-align: left;
908
+   padding: 5px 12px 5px 10px;
909
+   z-index: 10;
910
+}
911
+
912
+.fortooltiptert:hover #deleteoldinfo {
913
+   visibility: visible;
914
+}
915
+
916
+#uploadmmfileinfo {
917
+   display: block;
918
+   position: absolute;
919
+   width: 274px;
920
+   height: 350px;
921
+   overflow-y: scroll;
922
+   visibility: hidden;
923
+   background-color: #fafafa;
924
+   border-radius: 5px;
925
+   margin: -11px 0px 0px -16px;
926
+   scrollbar-width: auto;
927
+   scrollbar-color: #a2a2a2 #ececec;
928
+   box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
929
+   -webkit-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
930
+   -moz-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
931
+   z-index: 10;
932
+}
933
+
934
+#tooltiptextfourth {
935
+   display: block;
936
+   position: relative;
937
+   width: auto;
938
+   height: auto;
939
+   background-color: #f4f4f4;
940
+   font-size: 14px;
941
+   font-weight: bold;
942
+   color: #595959;
943
+   text-align: left;
944
+   padding: 5px 12px 5px 10px;
945
+   z-index: 10;
946
+}
947
+
948
+.fortooltipfourth:hover #uploadmmfileinfo {
949
+   visibility: visible;
950
+}
951
+
952
+.fileupload {
953
+   display: none;
954
+}
955
+
956
+.uploadflbt {
957
+   width: 411px;
958
+}
959
+
960
+#infotipmms {
961
+   display: block;
962
+   position: relative;
963
+   margin: 0px;
964
+   color: #000000;
965
+   font-size: 19px;
966
+   font-weight: bold;
967
+   font-family: 'Open Sans';
968
+   font-style: italic;
969
+   z-index: 5;
970
+}
971
+
972
+#mmsfoldersview {
973
+   display: none;
974
+   position: relative;
975
+   width: 100%;
976
+   height: 100%;
977
+   margin-top: -50px;
978
+   background-color: #f4f9ff;
979
+}
980
+
981
+#upmediafiles {
982
+   display: none;
983
+   background: #e8f6ff;
984
+   border-radius: 6px;
985
+   padding: 10px;
986
+   margin: 0px 0px 20px 0px;
987
+}
988
+
989
+.uploadflbt .icon-upload {
990
+   display: inline;
991
+}
992
+
993
+.pfprompt {
994
+   font-size: 15px;
995
+   font-weight: bold;
996
+}
997
+
998
+.fileuploadstl, .filesfromnc {
999
+  display: block;
1000
+  font-size: 15px;
1001
+  font-weight: bold;
1002
+  color: #000000;
1003
+}
1004
+
1005
+#uploadfileformms {
1006
+  margin-left: 21px;
1007
+  background-color: #ffffff;
1008
+  border-radius: 3px !important;
1009
+}
1010
+
1011
+#filestotsize {
1012
+  display: none;
1013
+  position: relative;
1014
+  height: auto;
1015
+  padding: 0px 0px 8px 0px;
1016
+  font-size: 14px;
1017
+  font-weight: bold;
1018
+  color: #189558;
1019
+}
1020
+
1021
+#filessizetext {
1022
+  display: inline;
1023
+  position: relative;
1024
+  padding-left: 10px;
1025
+}
1026
+
1027
+#fileuploadednm #induploadfile .indivflcls {
1028
+  display: inline-block;
1029
+  position: relative;
1030
+  height:auto;
1031
+  max-width: 90%;
1032
+  overflow: visible;
1033
+  white-space: normal;
1034
+  word-break: break-all;
1035
+  text-overflow: ellipsis;
1036
+  font-size: 15px;
1037
+  color: #0e6ba0;
1038
+}
1039
+
1040
+#fileuploadednm #induploadfile .indivflcls:hover {
1041
+  cursor: pointer;
1042
+  text-decoration: underline;
1043
+}
1044
+
1045
+#fileuploadednm #induploadfile .indupfldl {
1046
+  position: relative;
1047
+  display: inline-block;
1048
+  float: right;
1049
+  cursor: pointer;
1050
+  width: 20px;
1051
+  color: #0e6ba0;
1052
+  text-align: center;
1053
+  font-size: 15px;
1054
+}
1055
+
1056
+#fileuploadednm #induploadfile .indupfldl:hover {
1057
+  background-color: #e8f6ff;
1058
+  cursor: pointer;
1059
+}
1060
+
1061
+#filespickednc .indivflpckd {
1062
+  display: inline-block;
1063
+  position: relative;
1064
+  height:auto;
1065
+  max-width: 90%;
1066
+  overflow: visible;
1067
+  white-space: normal;
1068
+  word-break: break-all;
1069
+  text-overflow: ellipsis;
1070
+  color: #0e6ba0;
1071
+}
1072
+
1073
+.indivflpckd:hover {
1074
+  cursor: pointer;
1075
+  text-decoration: underline;
1076
+}
1077
+
1078
+.indpckfldl {
1079
+  position: relative;
1080
+  display: inline-block;
1081
+  float: right;
1082
+  cursor: pointer;
1083
+  width: 20px;
1084
+  color: #0e6ba0;
1085
+  text-align: center;
1086
+}
1087
+
1088
+#filespickednc .indpckfldl:hover {
1089
+  background-color: #e8f6ff;
1090
+  cursor: pointer;
1091
+}
1092
+
1093
+#pf_upload_msg, #pf_choose_msg {
1094
+  display: block;
1095
+  color: #181918;
1096
+  background-color: #a5e5b3;
1097
+  font-weight: bold;
1098
+  text-align: center;
1099
+  border-radius: 3px;
1100
+}
1101
+
1102
+#choosefilen {
1103
+  display: inline;
1104
+  position: relative;
1105
+  margin: 0px 0px 20px 16px;
1106
+  padding-top: 15px;
1107
+  background-image: url('../img/nextcloud_logo.svg');
1108
+  background-repeat: no-repeat;
1109
+  background-size: 110% 125%;
1110
+  background-position: center center;
1111
+  min-width: 66px;
1112
+  min-height: 30px;
1113
+  cursor:pointer;
1114
+}
1115
+
1116
+#choosefilen:active {
1117
+  background-image: url('../img/nextcloud_logo_bright.svg');
1118
+  background-repeat: no-repeat;
1119
+  background-size: 110% 125%;
1120
+  background-position: center center;
1121
+  min-width: 66px;
1122
+  min-height: 30px;
1123
+}
1124
+
1125
+#pickFromNext, #uploadFile {
1126
+  display: inline-block;
1127
+  position: relative;
1128
+  font-size: 15px;
1129
+  font-weight: bold;
1130
+  color: #6d6c6c;
1131
+}
1132
+
1133
+#filespickednc .indivflpckd {
1134
+  display: inline-block;
1135
+  position: relative;
1136
+  height:auto;
1137
+  max-width: 90%;
1138
+  overflow: visible;
1139
+  white-space: normal;
1140
+  word-break: break-all;
1141
+  text-overflow: ellipsis;
1142
+  color: #0e6ba0;
1143
+}
1144
+
1145
+#filespickednc .indpckfldl:hover {
1146
+  background-color: #e8f6ff;
1147
+  cursor: pointer;
1148
+}
1149
+
1150
+.uploadflbt {
1151
+  width: 411px;
1152
+}
1153
+
1154
+.uploadflbt .icon-upload {
1155
+  display: inline;
1156
+}
1157
+
1158
+.uploadfiledv {
1159
+  display: inline-block;
1160
+  position: relative;
1161
+  margin: 16px 0px 22px 0px;
1162
+}
1163
+
1164
+#mmsfileuploadednm .indivflcls {
1165
+  display: inline-block;
1166
+  position: relative;
1167
+  height:auto;
1168
+  max-width: 90%;
1169
+  overflow: visible;
1170
+  white-space: normal;
1171
+  word-break: break-all;
1172
+  text-overflow: ellipsis;
1173
+  color: #0e6ba0;
1174
+}
1175
+
1176
+#mmsfileuploadednm .indivflcls:hover {
1177
+  cursor: pointer;
1178
+  text-decoration: underline;
1179
+}
1180
+
1181
+#mmsfileuploadednm .indupfldl {
1182
+  position: relative;
1183
+  display: inline-block;
1184
+  float: right;
1185
+  cursor: pointer;
1186
+  width: 20px;
1187
+  color: #0e6ba0;
1188
+  text-align: center;
1189
+}
1190
+
1191
+#mmsfileuploadednm .indupfldl:hover {
1192
+  background-color: #e8f6ff;
1193
+  cursor: pointer;
1194
+}
1195
+
1196
+#filessizetext {
1197
+  display: inline;
1198
+  position: relative;
1199
+  padding-left: 10px;
1200
+}
1201
+
1202
+.srheaderch {
1203
+  display: block;
1204
+  position: relative;
1205
+  margin: 0px 0px 15px 0px;
1206
+  font-size: 15px;
1207
+  font-weight: bold;
1208
+}
1209
+
1210
+.indgenflclsmms, .indgenpckfls {
1211
+  display: block;
1212
+  margin: 10px 6px 0px 6px;
1213
+}
1214
+
1215
+#pickfilesNext {
1216
+  display: block;
1217
+  margin: 20px 0px 0px 0px;
1218
+}
1219
+
1220
+#dirbuttons {
1221
+  margin-top: 20px;
1222
+}
1223
+
1224
+button, input, textarea, div[contenteditable="true"], div[contenteditable="false"] {
1225
+  min-height: 9px;
1226
+}
1227
+
1228
+#choosefilen {
1229
+  display: inline;
1230
+  position: relative;
1231
+  margin: 4px 0px 20px 16px;
1232
+  background-image: url('../img/nextcloud_logo.svg');
1233
+  background-repeat: no-repeat;
1234
+  background-size: 110% 125%;
1235
+  background-position: center center;
1236
+  min-width: 66px;
1237
+  min-height: 30px;
1238
+  cursor:pointer;
1239
+}
1240
+
1241
+#choosefilen:active {
1242
+  background-image: url('../img/nextcloud_logo_bright.svg');
1243
+  background-repeat: no-repeat;
1244
+  background-size: 110% 125%;
1245
+  background-position: center center;
1246
+  min-width: 66px;
1247
+  min-height: 30px;
1248
+}
1249
+
1250
+#pickid, #showsum {
1251
+  display: inline-block;
1252
+  position: relative;
1253
+  font-size: 15px;
1254
+  font-weight: bold;
1255
+  margin: 3px 4px 0px 14px;
1256
+  color: #FFFFFF;
1257
+}
1258
+
1259
+.smsrelentless_checkbox:hover {
1260
+  cursor: pointer;
1261
+}
1262
+
1263
+#smstables {
1264
+  display: block; 
1265
+  position: relative;
1266
+  min-width: 100%;
1267
+  min-height: 100%;
1268
+  font-family: 'Inter' !important;
1269
+}
1270
+
1271
+#smsRGreyLogo {
1272
+  display: block;
1273
+  position: relative;
1274
+  background-image: url('../img/sms_relentless_grey.svg');
1275
+  background-repeat: no-repeat;
1276
+  background-position: center center;
1277
+  width: 100%;
1278
+  height: 675px;
1279
+}
1280
+
1281
+#recSmsTable, #sentSmsTable {
1282
+  display: block;
1283
+  position: relative;
1284
+  top: 0px;
1285
+  width: 100%;
1286
+  height: auto;
1287
+  font-size: 14px;
1288
+  z-index: 50;
1289
+  background: #FFFFFF;
1290
+}
1291
+
1292
+.receivedrows, .receivedrowsbody, .sentrows, .sentrowsbody, .groupedmsgrows {
1293
+  border: 1px solid #f3f3f3;
1294
+  padding: 8px;
1295
+}
1296
+
1297
+#groupedSmsTable {
1298
+  display: block;
1299
+  position: relative;
1300
+  top: 0px;
1301
+  width: 100%;
1302
+  height: auto;
1303
+  font-size: 14px;
1304
+  z-index: 50;
1305
+  background: #FFFFFF;
1306
+}
1307
+
1308
+#groupedSmsTable td {
1309
+  text-align: left;
1310
+  vertical-align: top;
1311
+  border: 1px solid #f3f3f3;
1312
+  padding: 5px;
1313
+}
1314
+
1315
+.groupedrowsbody {
1316
+  border: 1px solid #f3f3f3;
1317
+  padding: 8px;
1318
+}
1319
+
1320
+.groupedLstNmbr {
1321
+  overflow: scroll;
1322
+  white-space: nowrap;
1323
+}
1324
+
1325
+.groupedLstNames {
1326
+  overflow: scroll;
1327
+  white-space: nowrap;
1328
+}
1329
+
1330
+.groupedLstMsgs {
1331
+  overflow: scroll;
1332
+  white-space: nowrap;
1333
+}
1334
+
1335
+.groupedSentMsg {
1336
+  display: block;
1337
+  width: 95%;
1338
+  float: right;
1339
+  margin: 6px 6px 6px 0px;
1340
+  padding: 8px 10px;
1341
+  border: 0;
1342
+  border-radius: 10px;
1343
+  background-color: #f2fbff;
1344
+  white-space: normal;
1345
+  word-break: break-word;
1346
+}
1347
+
1348
+.groupedRecMsg {
1349
+  display: block; 
1350
+  width: 95%;
1351
+  float: left;
1352
+  margin: 6px 0px;
1353
+  padding: 8px 10px;
1354
+  border: 0;
1355
+  border-radius: 10px;
1356
+  background-color: #f2fff8;
1357
+  white-space: normal;
1358
+  word-break: break-word;
1359
+}
1360
+
1361
+.fixedRowHeight {
1362
+  max-height: 300px;
1363
+}
1364
+
1365
+.expandGrpRow {
1366
+  display: block;
1367
+  margin:-3px auto 7px auto;
1368
+  cursor: pointer;
1369
+}
1370
+
1371
+.dispNameList {
1372
+  display: block;
1373
+  margin: 2px 0px;
1374
+  font-size: 14.5px;
1375
+  font-weight: 500;
1376
+  color: #0a559e;
1377
+  cursor: pointer;
1378
+}
1379
+
1380
+.dispNameList:hover {
1381
+  color: #1483f0;
1382
+}
1383
+
1384
+.phoneNmbrRow {
1385
+  font-size: 14.5px;
1386
+  font-weight: 500;
1387
+  color: #06866f;
1388
+  cursor: pointer;
1389
+}
1390
+
1391
+.phoneNmbrRow:hover {
1392
+  color: #08b899;
1393
+}
1394
+
1395
+#selectListedNmbrs {
1396
+  display: block;
1397
+  width: 100%;
1398
+  font-family: 'Inter';
1399
+}
1400
+
1401
+.sentMssgStatus {
1402
+  display: inline-block;
1403
+  margin: 0px 6px 0px 6.5px;
1404
+}
1405
+
1406
+.saveRestrictions, .saveAutoReply {
1407
+  display: inline-block;
1408
+  border-radius: 8px !important;
1409
+  padding: 0px 14px !important;
1410
+  margin: 0px 0px 0px 10px !important;
1411
+  color: #ffffff !important;
1412
+  background-color: #59d0b4 !important;
1413
+}
1414
+
1415
+.savealwdKeys {
1416
+  display: inline-block;
1417
+  border-radius: 8px !important;
1418
+  padding: 0px 14px !important;
1419
+  margin: 0 !important;
1420
+  color: #ffffff !important;
1421
+  background-color: #59d0b4 !important;
1422
+}
1423
+
1424
+.saveRestrictions:hover, .saveAutoReply:hover, .savealwdKeys:hover {
1425
+  background-color: #40c1a3 !important;
1426
+}
1427
+
1428
+.saveRestrictions:active, .saveAutoReply:active, .savealwdKeys:active {
1429
+  background-color: #3aad92 !important;
1430
+}
1431
+
1432
+#save_admin_settings {
1433
+  display: inline-block;
1434
+  border-radius: 8px !important;
1435
+  padding: 0px 14px !important;
1436
+  color: #ffffff !important;
1437
+  background-color: #1e89c2 !important;
1438
+}
1439
+
1440
+#save_admin_settings:hover {
1441
+  background-color: #0369a0  !important;
1442
+}
1443
+
1444
+#save_admin_settings:active {
1445
+  background-color: #025480  !important;
1446
+}
1447
+
1448
+#phoneNmbrRestr th {
1449
+  font-weight: 500;
1450
+}
1451
+
1452
+#tnxKeysAccessTbl th, #plvKeysAccessTbl th, #twlKeysAccessTbl th, #flrKeysAccessTbl th {
1453
+  font-weight: 500;
1454
+  color: #222222;
1455
+}
1456
+
1457
+.restrAuthor {
1458
+  width: 200px;
1459
+  height: 40px !important;
1460
+}
1461
+
1462
+.restrPhoneNmbr, .arplPhoneNmbr {
1463
+  width: 194px;
1464
+  height: 40px !important;
1465
+}
1466
+
1467
+.restrGroups, .restrUsers {
1468
+  width: 330px;
1469
+  height: 40px !important;
1470
+  border: 1px solid #000;
1471
+  border-radius: 6px;
1472
+  margin: 0px 1px 0px 0px;
1473
+  padding: 0px 4px;
1474
+  overflow: hidden;
1475
+}
1476
+
1477
+.restrGroups:hover, .restrUsers:hover {
1478
+  overflow: auto !important;
1479
+}
1480
+
1481
+.alwdKeysGroups, .alwdKeysUsers {
1482
+  width: 398px;
1483
+  min-height: 80px !important;
1484
+  background-color: #ffffff !important;
1485
+  border: 1px solid #000;
1486
+  border-radius: 6px;
1487
+  margin: 0px 1px 0px 0px;
1488
+  padding: 0px 4px;
1489
+  overflow-y: scroll;
1490
+  white-space: pre-wrap;
1491
+}
1492
+
1493
+.alwdKeysGroups:hover, .alwdKeysUsers:hover {
1494
+  overflow: auto !important;
1495
+}
1496
+
1497
+#addRestrRow, #addArplRow {
1498
+  display: block;
1499
+  margin: 10px 0px 0px 6px;
1500
+  width: 16px;
1501
+  height: 16px;
1502
+  cursor: pointer;
1503
+  border-radius: 2px;
1504
+}
1505
+
1506
+#autoReplyTbl td {
1507
+  text-align: left;
1508
+  vertical-align: top;
1509
+  padding: 0px 0px 10px 0px;
1510
+}
1511
+
1512
+#autoReplyTbl th {
1513
+  font-weight: 500;
1514
+}
1515
+
1516
+.arplAuthor {
1517
+  width: 200px;
1518
+  height: 38px !important;
1519
+}
1520
+
1521
+.arplMode {
1522
+  display: inline-block;
1523
+  width: 330px;
1524
+  height: 184px;
1525
+  border: 1px solid #000;
1526
+  border-radius: 6px;
1527
+  margin: 0px 4px 0px 0px;
1528
+  overflow: visible;
1529
+}
1530
+
1531
+.modeContent .date-picker-x {
1532
+   top: -170px !important;
1533
+   left: -170px !important;
1534
+}
1535
+
1536
+.arplText {
1537
+  display: inline-block;
1538
+  color: #000000;
1539
+  width: 330px;
1540
+  height: 184px;
1541
+  font-size: 15px;
1542
+  text-align: left;
1543
+  border: 1px solid #000;
1544
+  border-radius: 6px;
1545
+  margin: 0px 1px 0px 0px;
1546
+  resize: vertical;
1547
+  white-space: pre-wrap;
1548
+  overflow: auto;
1549
+}
1550
+
1551
+.selectArplMode {
1552
+  display: block;
1553
+  width: 322px;
1554
+  margin: 4px 0px 0px 4px;
1555
+  cursor: pointer;
1556
+  font-weight: 500;
1557
+}
1558
+
1559
+.daysOfWeek {
1560
+  display: block;
1561
+  width: 100%;
1562
+  height: 26px;
1563
+  margin: 3px auto;
1564
+  font-weight: 500;
1565
+  text-align: center;
1566
+}
1567
+
1568
+.daysInWeek {
1569
+  display: block;
1570
+  position: relative;
1571
+  width: 322px;
1572
+  height: auto;
1573
+  margin: 0px 0px 0px 4px !important;
1574
+  text-align: center;
1575
+  border: 1px solid #000;
1576
+  border-radius: 6px;
1577
+}
1578
+
1579
+.chooseTInterval {
1580
+  display: block;
1581
+  width: 100%;
1582
+  height: 26px;
1583
+  margin: 5px auto 0px auto;
1584
+  font-weight: 500;
1585
+  text-align: center;
1586
+}
1587
+
1588
+.selectArplHours {
1589
+  display: block;
1590
+  width: 100%;
1591
+  text-align: center;
1592
+}
1593
+
1594
+.tooltipautoreply {
1595
+  display: inline-block;
1596
+  position: absolute;
1597
+  font-size: 15px;
1598
+  z-index: 9;
1599
+}
1600
+
1601
+.tooltipautoreplyst, .tooltipautoreplypn, .tooltiprestrict {
1602
+  display: inline-block;
1603
+  position: absolute;
1604
+  font-size: 15px;
1605
+  z-index: 7;
1606
+}
1607
+
1608
+#infoautoreply, #infoautoreplyst, #infoautoreplypn, #inforestrict {
1609
+  display: inline-block;
1610
+  position: relative;
1611
+  margin: -2px 0px 0px 10px;
1612
+  color: #000000;
1613
+  font-size: 18px;
1614
+  font-weight: bold;
1615
+  font-family: 'Open Sans';
1616
+  font-style: italic;
1617
+  cursor: pointer;
1618
+}
1619
+
1620
+.autorpltooltip, .autorpltooltipst, .autorpltooltippn, .restricttooltext {
1621
+  display: block;
1622
+  position: absolute;
1623
+  visibility: hidden;
1624
+  width: 330px;
1625
+  height: auto;
1626
+  background-color: #fafafa;
1627
+  font-size: 15px;
1628
+  font-weight: 600;
1629
+  white-space: normal;
1630
+  color: #595959;
1631
+  text-align: left;
1632
+  border-radius: 5px;
1633
+  padding: 5px 5px 5px 8px;
1634
+  margin: -4px 0px 0px -150px;
1635
+  box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
1636
+  -webkit-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
1637
+  -moz-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
1638
+}
1639
+
1640
+.tooltipautoreply:hover .autorpltooltip, .tooltipautoreplyst:hover .autorpltooltipst, .tooltipautoreplypn:hover .autorpltooltippn, .tooltiprestrict:hover .restricttooltext  {
1641
+   visibility: visible;
1642
+}
1643
+
1644
+.selectHrMin {
1645
+  font-weight: 500 !important;
1646
+  color: #01446d !important;
1647
+}
1648
+
1649
+.chooseDateIntvl {
1650
+  display: block;
1651
+  width: 100%;
1652
+  height: 32px;
1653
+  margin: 19px auto 4px auto;
1654
+  font-weight: 500;
1655
+  text-align: center;
1656
+}
1657
+
1658
+.arplstrtendDates {
1659
+  display: block;
1660
+  position: absolute;
1661
+  width: 330px;
1662
+  height: auto;
1663
+}
1664
+
1665
+.stdtTitle {
1666
+  display: inline-block;
1667
+  position: absolute;
1668
+  width: 140px;
1669
+  height: 38px;
1670
+  left: 10px;
1671
+  top: 2px;
1672
+  font-weight: 500;
1673
+  text-align: center;
1674
+}
1675
+
1676
+.enddtTitle {
1677
+  display: inline-block;
1678
+  position: absolute;
1679
+  width: 140px;
1680
+  height: 38px;
1681
+  right: 10px;
1682
+  top: 2px;
1683
+  font-weight: 500;
1684
+  text-align: center;
1685
+}
1686
+
1687
+.startDate {
1688
+  display: inline-block;
1689
+  position: absolute;
1690
+  width: 140px;
1691
+  height: 38px;
1692
+  left: 10px;
1693
+  top: 26px;
1694
+  border: 1px solid #3b3b3b;
1695
+  border-radius: 6px;
1696
+  text-align: center;
1697
+  font-weight: 500;
1698
+  color: #01446d !important;
1699
+}
1700
+
1701
+.endDate {
1702
+  display: inline-block;
1703
+  position: absolute;
1704
+  width: 140px;
1705
+  height: 38px;
1706
+  right: 10px;
1707
+  top: 26px;
1708
+  border: 1px solid #3b3b3b;
1709
+  border-radius: 6px;
1710
+  text-align: center;
1711
+  font-weight: 500;
1712
+  color: #01446d !important;
1713
+}
1714
+
1715
+#adminOverlay {
1716
+  display: block;
1717
+  position: absolute;
1718
+  top: 0;
1719
+  left: 0;
1720
+  opacity: 0;
1721
+  z-index: 4990;
1722
+}
1723
+
1724
+.grpsList, .usrsList {
1725
+  display: block;
1726
+  position: absolute;
1727
+  width: 300px;
1728
+  max-height: 400px;
1729
+  z-index: 5000;
1730
+  overflow: auto;
1731
+  background-color: #ffffff;
1732
+}
1733
+
1734
+.groupsList, .usersList {
1735
+  display: block;
1736
+  position: relative;
1737
+  float: left;
1738
+  padding: 6px 4px;
1739
+  width: 300px;
1740
+  height: auto;
1741
+  color: #353535;
1742
+  border-radius: 6px;
1743
+  border: 1px solid #dadada;
1744
+  cursor: pointer;
1745
+}
1746
+
1747
+.groupsList:hover, .usersList:hover {
1748
+  background-color: #f1f1f1;
1749
+}
1750
+
1751
+.selectedGrps, .selectedUsrs {
1752
+  display: inline-block;
1753
+  position: relative;
1754
+  margin: 6px 1px 0px 1px;
1755
+  padding: 0px 6px;
1756
+  color: #353535;
1757
+  background-color: #ffffff;
1758
+  border: 1px solid #dadada;
1759
+  border-radius: 6px;
1760
+  box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
1761
+  -webkit-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
1762
+  -moz-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
1763
+}
1764
+
1765
+.removeGroup, .removeUser {
1766
+  margin: 0px 0px 0px 6px;
1767
+  width: 9px;
1768
+  height: 9px;
1769
+  cursor: pointer;
1770
+}
1771
+
1772
+.showAllGroups, .showAllUsers {
1773
+  max-width: 40px !important;
1774
+  margin: 3px 10px 0px 6px;
1775
+  background-color: #ffffff;
1776
+  border-radius: 6px;
1777
+  padding: 4px 4px 0px 4px;
1778
+  z-index: 5000;
1779
+}
1780
+
1781
+.showAllGroupsak {
1782
+  max-width: 40px !important;
1783
+  margin: 3px 12px 0px 6px;
1784
+  background-color: #F7F7F7;
1785
+  border-radius: 6px;
1786
+  padding: 4px 4px 0px 4px;
1787
+}
1788
+
1789
+.showAllUsersak {
1790
+  max-width: 40px !important;
1791
+  margin: 3px 10px 0px 6px;
1792
+  background-color: #F7F7F7;
1793
+  border-radius: 6px;
1794
+  padding: 4px 4px 0px 4px;
1795
+}
1796
+
1797
+.showByNmbrTitle {
1798
+  display: block;
1799
+  width: 100%;
1800
+  color: #353535;
1801
+  text-align: center;
1802
+  font-size: 16px; 
1803
+  font-weight: 500;
1804
+  margin: 0px auto 5px auto;
1805
+}
1806
+
1807
+#refreshMsgsWrap, #refreshMsgsWraptf {
1808
+  display: block;
1809
+  position: sticky;
1810
+  width: 21px;
1811
+  height: 21px;
1812
+  bottom: 12px;
1813
+  left: 0;
1814
+}
1815
+
1816
+#refreshMsgsConv, #refreshMsgsConvtf {
1817
+  display: inline-block;
1818
+  position: relative;
1819
+  background-image: url("../img/refresh.svg");
1820
+  background-repeat: no-repeat;
1821
+  background-color: transparent !important;
1822
+  width: 21px;
1823
+  height: 21px;
1824
+  opacity: 0.30;
1825
+  border: none;
1826
+  cursor: pointer;
1827
+  z-index: 5300;
1828
+}
1829
+
1830
+#refreshMsgsConv:hover, #refreshMsgsConvtf:hover {
1831
+  opacity: 1;
1832
+}
1833
+
1834
+#stopAutoRefresh, #stopAutoRefreshtf {
1835
+  display: inline-block;
1836
+  width: auto;
1837
+  height: auto;
1838
+  vertical-align: top;
1839
+  border: 1px solid #c6cedb;
1840
+  border-radius: 20px;
1841
+  color: #0a559e;
1842
+  font-size: 12px;
1843
+  padding: 0px 9px;
1844
+  text-align: center;
1845
+  font-weight: 400;
1846
+  cursor: pointer;
1847
+  visibility: hidden;
1848
+}
1849
+
1850
+@media (max-width: 1020px) {
1851
+  #stopAutoRefreshRec, #stopAutoRefreshSent {
1852
+    display: none;
1853
+    position: fixed;
1854
+    left: 86px;
1855
+    top: 50.7px;
1856
+    z-index: 5000;
1857
+  }
1858
+}
1859
+
1860
+@media (min-width: 1021px) {
1861
+  #stopAutoRefreshRec, #stopAutoRefreshSent {
1862
+    display: none;
1863
+    position: fixed;
1864
+    left: 340px;
1865
+    top: 50.7px;
1866
+    z-index: 5000;
1867
+  }
1868
+}
1869
+
1870
+#stopAutoRefreshRecBtn, #stopAutoRefreshSentBtn {
1871
+  display: inline-block;
1872
+  position: relative;
1873
+  width: auto;
1874
+  height: auto;
1875
+  vertical-align: top;
1876
+  border: 1px solid #c6cedb;
1877
+  border-radius: 20px;
1878
+  color: #0a559e;
1879
+  font-family: 'Open Sans' !important;
1880
+  font-size: 12px;
1881
+  font-weight: 400;
1882
+  padding: 0px 9px;
1883
+  text-align: center;
1884
+  cursor: pointer;
1885
+}
1886
+
1887
+#stopAutoRefresh:hover, #stopAutoRefreshtf:hover, #stopAutoRefreshRecBtn:hover, #stopAutoRefreshSentBtn:hover {
1888
+  border: 1px solid #79a2be;
1889
+  box-shadow: 0 0 6px rgba(0, 0, 0, 0.23);
1890
+  -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.23);
1891
+  -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.23);
1892
+}
1893
+
1894
+.mmstblUrls {
1895
+  color: #09579b;
1896
+  cursor: pointer;
1897
+}
1898
+
1899
+.mmstblUrls:hover {
1900
+  color: #1479d3;
1901
+}
1902
+
1903
+.marksent {
1904
+  background-color: #F2FBFF !important;
1905
+}
1906
+
1907
+.markreceived {
1908
+  background-color: #F2FFF5 !important;
1909
+}
1910
+
1911
+#sentfiltersrow, #recfiltersrow, #grpfiltersrow {
1912
+  display: none;
1913
+  position: sticky;
1914
+  top: 27px;
1915
+  background: #FFFFFF;
1916
+  box-shadow: 0 6px 7px rgba(0, 0, 0, 0.1);
1917
+  z-index: 1000;
1918
+}
1919
+
1920
+#sentSmsTable th, #recSmsTable th, #groupedSmsTable th {
1921
+  position: sticky;
1922
+  top: 27px;
1923
+  z-index: 999;
1924
+  border: 1px solid #f3f3f3;
1925
+  padding: 7px;
1926
+  background-color: #bfe5f2;
1927
+  font-size: 15px;
1928
+  font-weight: bold;
1929
+  text-align: center;
1930
+}
1931
+
1932
+#sentSmsTable td, #recSmsTable td {
1933
+  border: 1px solid #f3f3f3;
1934
+  padding: 5px;
1935
+  white-space: normal;
1936
+}
1937
+
1938
+.datecolsent {
1939
+  text-align: center;
1940
+}
1941
+
1942
+.sentdbidcolumn {
1943
+  text-align: center;
1944
+}
1945
+
1946
+.dbidcolumnrec {
1947
+  width: 50px;
1948
+  text-align: center;
1949
+}
1950
+
1951
+.messagecolumnsent {
1952
+  background: #fffff2;
1953
+  text-align: left;
1954
+  font-weight: 500;
1955
+  width: 250px;
1956
+  word-break: break-word;
1957
+}
1958
+
1959
+.messagecolumnrec {
1960
+  background: #fffff2;
1961
+  text-align: left;
1962
+  font-weight: 500;
1963
+  width: 526px;
1964
+  word-break: break-word;
1965
+}
1966
+
1967
+.messageAuthorName {
1968
+  border: 0px;
1969
+  border-radius: 20px;
1970
+  padding: 4px 10px;
1971
+  margin: 0px 4px 0px 0px;
1972
+  color: #414141;
1973
+  background-color: #eff9ff;
1974
+}
1975
+
1976
+.msgAuthorNameGrp {
1977
+  border: 0px;
1978
+  border-radius: 20px;
1979
+  padding: 3px 8px;
1980
+  margin: 0px 4px 0px 0px;
1981
+  color: #616161;
1982
+  background-color: #e8edff !important;
1983
+}
1984
+
1985
+.addNameToPhNb {
1986
+  cursor: pointer;
1987
+  border-radius: 20px;
1988
+}
1989
+
1990
+.listToFromMsgs {
1991
+  display: block;
1992
+  margin: 0 auto;
1993
+  width: 30px;
1994
+  text-align: center;
1995
+  cursor: pointer;
1996
+}
1997
+
1998
+.lstMsgConv {
1999
+  display: block;
2000
+  position: relative;
2001
+  width: 30px;
2002
+  height: auto;
2003
+  text-align: center;
2004
+  margin: 4px auto 0 auto;
2005
+}
2006
+
2007
+.lstMsgConvImg {
2008
+  cursor: pointer;
2009
+  height: auto;
2010
+}
2011
+
2012
+.lstMsgToFromImg {
2013
+  cursor: pointer;
2014
+  height: auto;
2015
+}
2016
+
2017
+.lstMsgToFromImg:hover, .lstMsgConvImg:hover {
2018
+   box-shadow: 0 0 7px rgba(0, 0, 0, 0.25);
2019
+   -webkit-box-shadow: 0 0 7px rgba(0, 0, 0, 0.25);
2020
+   -moz-box-shadow: 0 0 7px rgba(0, 0, 0, 0.25);
2021
+}
2022
+
2023
+.lstMsgToFromImg:active, .lstMsgConvImg:hover {
2024
+   box-shadow: 0 0 9px rgba(0, 0, 0, 0.25);
2025
+   -webkit-box-shadow: 0 0 9px rgba(0, 0, 0, 0.25);
2026
+   -moz-box-shadow: 0 0 9px rgba(0, 0, 0, 0.25);
2027
+}
2028
+
2029
+
2030
+#loadMoreMsgs, #loadMoreMsgsusr {
2031
+  display: none;
2032
+  width: 180px;
2033
+  height: auto;
2034
+  margin: 1px auto 2px auto;
2035
+  padding: 0px 0px 2px 0px;
2036
+  border: 1px solid #b8d4e6;
2037
+  border-radius: 20px;
2038
+  color: #6c91b2;
2039
+  line-height: normal;
2040
+  text-align: center;
2041
+  font-size: 15px;
2042
+  font-weight: 500;
2043
+  cursor: pointer;
2044
+}
2045
+
2046
+#loadMoreMsgs:hover, #loadMoreMsgsusr:hover {
2047
+  color: #3a6c9a;
2048
+  border: 1px solid #95bad3;
2049
+}
2050
+
2051
+#loadMoreMsgs:active, #loadMoreMsgsusr:active {
2052
+  box-shadow: 0 0 6px rgba(0, 0, 0, 0.23);
2053
+  -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.23);
2054
+  -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.23);
2055
+  border: 1px solid #79a2be;
2056
+}
2057
+
2058
+.addNameToPhNb:hover {
2059
+  box-shadow: 0 0 8px rgba(0, 0, 0, 0.23);
2060
+  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.23);
2061
+  -moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.23);
2062
+}
2063
+
2064
+.addNameToPhNb:active {
2065
+  box-shadow: 0 0 12px rgba(0, 0, 0, 0.33);
2066
+  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.33);
2067
+  -moz-box-shadow: 0 0 12px rgba(0, 0, 0, 0.33);
2068
+}
2069
+
2070
+#recTblOverlay, #alertMsgOverlay {
2071
+  display: block;
2072
+  position: absolute;
2073
+  top: 0;
2074
+  left: 0;
2075
+  width: 100%;
2076
+  height: 100%;
2077
+  background-color: #000000;
2078
+  opacity: 0.09;
2079
+  z-index: 5050;
2080
+}
2081
+
2082
+#disNameWindow, #alertMessage, #alertConfMessage {
2083
+  display: block;
2084
+  position: absolute;
2085
+  width: 338px;
2086
+  height: auto;
2087
+  white-space: pre-wrap;
2088
+  border-radius: 6px;
2089
+  background-color: #ffffff;
2090
+  box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
2091
+   -webkit-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
2092
+   -moz-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
2093
+  z-index: 5100;
2094
+}
2095
+
2096
+#alertTextWrap {
2097
+  display: block;
2098
+  text-align: left;
2099
+  font-family: 'Inter';
2100
+  font-size: 15px;
2101
+  margin: 30px 22px 16px 22px;
2102
+  color: #353535;
2103
+  white-space: pre-wrap;
2104
+  word-break: break-word;
2105
+}
2106
+
2107
+#closeDisNmWindow {
2108
+  display: block;
2109
+  position: absolute;
2110
+  width: 12px;
2111
+  height: 12px;
2112
+  right: 8px;
2113
+  top: 10px;
2114
+  padding: 0;
2115
+  background-image: url('../img/closewnd.svg');
2116
+  background-repeat: no-repeat;
2117
+  background-position: center center;
2118
+  cursor: pointer;
2119
+}
2120
+
2121
+#closeFrmMsgWindow, #closeAlertWnd, #closeAlertWndcf {
2122
+  display: block;
2123
+  position: absolute;
2124
+  width: 12px;
2125
+  height: 12px;
2126
+  right: 8px;
2127
+  top: 10px;
2128
+  padding: 0;
2129
+  background-image: url('../img/closewnd.svg');
2130
+  background-repeat: no-repeat;
2131
+  background-position: center center;
2132
+  cursor: pointer;
2133
+}
2134
+
2135
+#sendMsgConvBtn {
2136
+  display: flex;
2137
+  width: 200px;
2138
+  height: 20px;
2139
+  padding: 0;
2140
+  margin: -2px auto 0 auto;
2141
+  color: #ffffff;
2142
+  background: #40c1a3;
2143
+  border: 1px solid #40c1a3;
2144
+  border-radius: 20px;
2145
+  text-align: center;
2146
+  font-weight: 500;
2147
+  cursor: pointer;
2148
+  line-height: normal;
2149
+  justify-content: center;
2150
+  align-items: end;
2151
+}
2152
+
2153
+#sendMsgConvBtn:hover {
2154
+  background-color:  #3bb397 !important;
2155
+  box-shadow: 0 0 6px rgba(0, 0, 0, 0.23);
2156
+  -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.23);
2157
+  -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.23);
2158
+}
2159
+
2160
+#sendMsgConvBtn:active {
2161
+  background-color: #33a087 !important;
2162
+  box-shadow: 0 0 6px rgba(0, 0, 0, 0.23);
2163
+  -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.23);
2164
+  -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.23);
2165
+}
2166
+
2167
+#saveDispName, #alertOk {
2168
+  display: block;
2169
+  border-radius: 20px !important;
2170
+  padding: 0px 14px !important;
2171
+  margin: 10px auto !important;
2172
+  min-height: 30px !important;
2173
+  height: 30px !important;
2174
+  color: #ffffff !important;
2175
+  background-color: #40c1a3 !important;
2176
+}
2177
+
2178
+#cancelOkWrap {
2179
+  display: block;
2180
+  width: 100%; 
2181
+  margin: 10px auto !important;
2182
+  text-align: center;
2183
+}
2184
+
2185
+#confirmOk, #confirmCancel {
2186
+  display: inline-block;
2187
+  min-width: 76px;
2188
+  border-radius: 20px !important;
2189
+  padding: 0px 14px !important;
2190
+  margin: 0 5px;
2191
+  min-height: 30px !important;
2192
+  height: 30px !important;
2193
+  color: #ffffff !important;
2194
+  background-color: #40c1a3 !important;
2195
+}
2196
+
2197
+#saveDispName:hover, #alertOk:hover, #confirmOk:hover, #confirmCancel:hover {
2198
+  background-color:  #3bb397 !important;
2199
+}
2200
+
2201
+#saveDispName:active, #alertOk:active, #confirmOk:active, #confirmCancel:active {
2202
+  background-color: #33a087 !important;
2203
+}
2204
+
2205
+#sendMsgReply {
2206
+  display: none;
2207
+}
2208
+
2209
+#sendMsgConv {
2210
+  display: block;
2211
+  width: 558px;
2212
+  height: auto;
2213
+  margin: 0 auto;
2214
+  border: none;
2215
+}
2216
+
2217
+#sendMsgConv td {
2218
+  background-color: #ffffff;
2219
+  border: none;
2220
+}
2221
+
2222
+#sendMsgConvText {
2223
+  display: inline-block;
2224
+  width: 558px;
2225
+  height: 72px;
2226
+  padding: 3px 5px;
2227
+  color: #000000;
2228
+  text-align: left;
2229
+  font-family: 'Inter';
2230
+  font-size: 16px;
2231
+  border-radius: 6px;
2232
+  resize: none;
2233
+  white-space: pre-wrap;
2234
+  border: 1px solid #dedede;
2235
+  background-color: #ffffff;
2236
+  overflow-y: auto;
2237
+}
2238
+
2239
+#fromPhoneNmbrConv {
2240
+  display: inline-block;
2241
+  width: 50%;
2242
+  height: auto;
2243
+  margin: 6px 0px 2px 10px;
2244
+  font-weight: 500;
2245
+  color: #222222;
2246
+}
2247
+
2248
+#toPhoneNmbrConv {
2249
+  display: inline-block;
2250
+  width: 50%;
2251
+  height: auto;
2252
+  margin: 6px 0px 2px -20px;
2253
+  font-weight: 500;
2254
+  color: #222222;
2255
+  text-align: right;
2256
+}
2257
+
2258
+#selectFromNbConv {
2259
+  height: 26px;
2260
+  width: auto;
2261
+  margin: 0;
2262
+  text-align: left;
2263
+  color: #222222;
2264
+  background-color: #ffffff !important;
2265
+  border: 1px solid #d8d8d8;
2266
+}
2267
+
2268
+#listAllMsgsFromTo {
2269
+  display: block;
2270
+  position: absolute;
2271
+  width: 600px;
2272
+  height: 490px;
2273
+  font-family: 'Inter' !important;
2274
+  white-space: pre-wrap;
2275
+  border-radius: 6px;
2276
+  background-color: #ffffff;
2277
+  box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
2278
+  -webkit-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
2279
+  -moz-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
2280
+  z-index: 5100;
2281
+}
2282
+
2283
+#listAllMsgsConv {
2284
+  display: block;
2285
+  position: absolute;
2286
+  width: 600px;
2287
+  height: 490px;
2288
+  font-family: 'Inter' !important;
2289
+  white-space: pre-wrap;
2290
+  border-radius: 6px;
2291
+  background-color: #ffffff;
2292
+  box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
2293
+  -webkit-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
2294
+  -moz-box-shadow: 0 0 23px rgba(0, 0, 0, 0.23);
2295
+  z-index: 5100;
2296
+}
2297
+
2298
+#expandWindowRpl {
2299
+  display: block;
2300
+  margin: 4px auto 0 auto;
2301
+  cursor: pointer;
2302
+}
2303
+
2304
+#dragDispNmWindow {
2305
+  display: block;
2306
+  position: relative;
2307
+  width: 40px;
2308
+  height: 20px;
2309
+  margin:-3px auto 0px auto;
2310
+  cursor: grab;
2311
+  text-align: center;
2312
+}
2313
+
2314
+#draglstMsgmWindow {
2315
+  display: block;
2316
+  position: relative;
2317
+  width: 500px;
2318
+  height: 20px;
2319
+  margin:-3px auto 0px auto;
2320
+  cursor: grab;
2321
+  text-align: center;
2322
+}
2323
+
2324
+#draglstMsgmWindowsc {
2325
+  display: block;
2326
+  position: absolute;
2327
+  width: 100%;
2328
+  height: 14px;
2329
+  bottom: 3px;
2330
+  cursor: grab;
2331
+  text-align: center;
2332
+}
2333
+
2334
+#frmMsgLstWrap {
2335
+  display: block;
2336
+  position: relative;
2337
+  width: 560px;
2338
+  height: 400px;
2339
+  margin: 0 auto;
2340
+  overflow-y: auto;
2341
+  overflow-x: hidden;
2342
+}
2343
+
2344
+#frmMsgLstTbl {
2345
+  display: block;
2346
+  position: relative;
2347
+  width: 100%;
2348
+  height: 100%;
2349
+}
2350
+
2351
+#frmMsgLstTbl td {
2352
+  text-align: left;
2353
+  vertical-align: top;
2354
+  background-color: #ffffff !important;
2355
+}
2356
+
2357
+.groupedLstNamespn {
2358
+  display: block;
2359
+  position: fixed;
2360
+  width: 130px;
2361
+  height: auto;
2362
+  padding: 0px 0px 0px 4px;
2363
+  overflow-y: auto;
2364
+  white-space: pre-wrap;
2365
+}
2366
+
2367
+#msgListRowCell {
2368
+  display: block;
2369
+  width: 428px;
2370
+  height: auto;
2371
+  min-height: 358px;
2372
+  margin: 0px 0px 0px 130px;
2373
+  padding: 0px 0px 0px 4px;
2374
+  overflow: scroll;
2375
+  white-space: nowrap;
2376
+}
2377
+
2378
+.dispNameListAll {
2379
+  display: block;
2380
+  width: 100%;
2381
+  height: auto;
2382
+  border: 1px solid #c6cedb;
2383
+  border-radius: 20px;
2384
+  margin: 6px 0px 0px 0px;
2385
+  color: #04957b;
2386
+  font-size: 13px;
2387
+  padding: 0px 9px;
2388
+  text-align: center;
2389
+  font-weight: 500;
2390
+  cursor: pointer;
2391
+}
2392
+
2393
+#selectAllChckbx:hover {
2394
+  cursor: pointer;
2395
+}
2396
+
2397
+.indivchckbx:hover {
2398
+  cursor: pointer;
2399
+}
2400
+
2401
+.selectsmsdv {
2402
+  width: 30px;
2403
+  padding: 5px 5px 5px 7px;
2404
+  text-align: center;
2405
+}
2406
+
2407
+#selectalldv {
2408
+  width: 30px;
2409
+  padding: 5px 5px 5px 7px;
2410
+}
2411
+
2412
+.indivfilter {
2413
+  height: 30px;
2414
+  font-weight: bold;
2415
+  padding: 0px;
2416
+}
2417
+
2418
+.selectalldvfilter {
2419
+  border: 1px solid #f3f3f3;
2420
+  padding: 3px;
2421
+  margin: 0px; 
2422
+}
2423
+
2424
+.filterbuttonsrec, .filterbuttonsent {
2425
+  display: block;
2426
+  position: relative;
2427
+  margin: 5px auto !important;
2428
+  border-radius: 3px !important;
2429
+  background-color: #ffffff !important;
2430
+  background-image: url('../img/filter_icon.svg');
2431
+  background-repeat: no-repeat;
2432
+  background-position: center center;
2433
+  cursor: pointer;
2434
+}
2435
+
2436
+#clearrecfilters, #clearsentfilters, #cleargrpfilter {
2437
+  display: inline-block;
2438
+  width: 22px;
2439
+  height: 22px;
2440
+  background-color: #ffffff;
2441
+  background-image: url('../img/clearfilters.svg');
2442
+  background-repeat: no-repeat;
2443
+  background-position: center center;
2444
+  margin: 0px 0px 8px 0px;
2445
+  border: none;
2446
+  cursor: pointer;
2447
+}
2448
+
2449
+#deleterecrows, #deletesentrows {
2450
+  display: inline-block;
2451
+  width: 16px;
2452
+  height: 20px;
2453
+  background-color: #ffffff;
2454
+  background-image: url('../img/garbage.svg');
2455
+  background-repeat: no-repeat;
2456
+  background-position: center center;
2457
+  margin: 0px 0px 4px 0px;
2458
+  border: none;
2459
+  cursor: pointer;
2460
+}
2461
+
2462
+#deleterecrows:active, #deletesentrows:active {
2463
+  background-image: url('../img/garbage_bright.svg');
2464
+}
2465
+
2466
+#toptablerec, #toptablesent, #toptablegrp {
2467
+  display: block;
2468
+  position: sticky;
2469
+  top: 0px;
2470
+  height: 27px;
2471
+  width: 100%;
2472
+  z-index: 1001;
2473
+}
2474
+
2475
+.topbuttonandpage {
2476
+  display: block;
2477
+  position: relative;
2478
+  width: 100%;
2479
+  height: 27px;
2480
+  border-radius: 0px 24px 0px 0px;
2481
+  background: #FFFFFF;
2482
+  z-index: 1001;
2483
+}
2484
+
2485
+#paginationrec, #paginationsent, #paginationgrp {
2486
+   display: block;
2487
+   position: relative;
2488
+   float: right;
2489
+   width: auto;
2490
+   margin: -25px 14px 0px 0px;
2491
+   font-size: 15px;
2492
+   font-weight: 600;
2493
+   color: #0082C9;
2494
+   z-index: 1002;
2495
+}
2496
+
2497
+.arrowDownCl {
2498
+   background-image: url('../img/arrowDown.svg');
2499
+   background-repeat: no-repeat;
2500
+   background-position: center center;
2501
+   z-index: 1010;
2502
+}
2503
+
2504
+.arrowUpCl {
2505
+   background-image: url('../img/arrowUp.svg');
2506
+   background-repeat: no-repeat;
2507
+   background-position: center center;
2508
+   z-index: 1010;   
2509
+}
2510
+
2511
+@media (max-width: 1020px) {
2512
+  #recarrow, #sentarrow {
2513
+    display: block;
2514
+    position: relative;
2515
+    float: left;
2516
+    margin: 3.8px 0px 0px 50px;
2517
+    width: 17px;
2518
+    height: 17px;
2519
+    border: none;
2520
+    cursor: pointer;
2521
+  }
2522
+}
2523
+
2524
+@media (min-width: 1021px) {
2525
+  #recarrow, #sentarrow {
2526
+    display: block;
2527
+    position: relative;
2528
+    float: left;
2529
+    margin: 3.8px 0px 0px 7px;
2530
+    width: 17px;
2531
+    height: 17px;
2532
+    border: none;
2533
+    cursor: pointer;
2534
+  }
2535
+}
2536
+
2537
+#totalrecmessages, #totalsentmessages, #totalgrpmessages {
2538
+  display: block;
2539
+  position: relative;
2540
+  padding: 10px 0px 0px 7px;
2541
+  font-size: 14px;
2542
+  font-weight: bold;
2543
+  color: #4cbc86;
2544
+}
2545
+
2546
+.pagenumbers, .pagenumbersbottom, .pagenumbersrec, .pagenumbersbottomrec, .pagenumbersgrp {
2547
+  color: #0082C9;
2548
+}
2549
+
2550
+#dbidtextsent {
2551
+  display: block;
2552
+  margin: auto;
2553
+  width: 95%;
2554
+  padding: 0 3px !important;
2555
+  text-align: center;
2556
+}
2557
+
2558
+#dbidtextrec {
2559
+  display: block;
2560
+  margin: auto;
2561
+  width: 95%;
2562
+  padding: 0 3px !important;
2563
+  text-align: center;
2564
+}
2565
+
2566
+#useridtext {
2567
+  display: block;
2568
+  margin: auto;
2569
+  width: 95%;
2570
+}
2571
+
2572
+#useridtextrec {
2573
+  display: block;
2574
+  margin: auto;
2575
+  width: 95%;
2576
+}
2577
+
2578
+#messageidtext {
2579
+  display: block;
2580
+  margin: auto;
2581
+  width: 95%;
2582
+}
2583
+
2584
+#messageidtextrec {
2585
+  display: block;
2586
+  margin: auto;
2587
+  width: 95%;
2588
+}
2589
+
2590
+#datetext {
2591
+  display: block;
2592
+  margin: auto;
2593
+  width: 95px;
2594
+}
2595
+
2596
+#datetextrec {
2597
+  display: block;
2598
+  margin: auto;
2599
+  width: 95%;
2600
+}
2601
+
2602
+#fromtext {
2603
+  display: block;
2604
+  margin: auto;
2605
+  width: 95%;
2606
+}
2607
+
2608
+#fromtextrec {
2609
+  display: block;
2610
+  margin: auto;
2611
+  width: 95%;
2612
+}
2613
+
2614
+#totext {
2615
+  display: block;
2616
+  margin: auto;
2617
+  width: 95%;
2618
+}
2619
+
2620
+#totextrec {
2621
+  display: block;
2622
+  margin: auto;
2623
+  width: 95%;
2624
+}
2625
+
2626
+#networktext {
2627
+  display: block;
2628
+  margin: auto;
2629
+  width: 95%;
2630
+}
2631
+
2632
+#pricetext {
2633
+  display: block;
2634
+  margin: auto;
2635
+  width: 95%;
2636
+}
2637
+
2638
+#statustext {
2639
+  display: block;
2640
+  margin: auto;
2641
+  width: 95%;
2642
+}
2643
+
2644
+#deliveryrcpttext {
2645
+  display: block;
2646
+  margin: auto;
2647
+  width: 95%;
2648
+}
2649
+
2650
+#messagetext {
2651
+  display: block;
2652
+  margin: auto;
2653
+  width: 95%;
2654
+}
2655
+
2656
+#messagetextrec {
2657
+  display: block;
2658
+  margin: auto;
2659
+  width: 95%;
2660
+}
2661
+
2662
+#databaseidfilter {
2663
+  display: block;
2664
+  margin-left: auto;
2665
+  margin-right: auto;
2666
+}
2667
+
2668
+#sentstatuscolumn {
2669
+  max-width: 160px;
2670
+}
2671
+
2672
+.useridcolrec {
2673
+  width: 124px;
2674
+  background-color: #ffffff;
2675
+  text-align: center;
2676
+}
2677
+
2678
+.messageidcolsent {
2679
+  overflow: visible;
2680
+  word-break: break-all;
2681
+  text-align: center;
2682
+}
2683
+
2684
+.messageidcolrec {
2685
+  overflow: visible;
2686
+  word-break: break-all;
2687
+  width: 420px;
2688
+  text-align: center;
2689
+}
2690
+
2691
+.datecolrec {
2692
+  width: 160px;
2693
+  text-align: center;
2694
+}
2695
+
2696
+.fromcolumnrec {
2697
+  width: 140px;
2698
+  text-align: center;
2699
+  background-color: #f2fff5;
2700
+}
2701
+
2702
+.tocolrec {
2703
+  width: 140px;
2704
+  background-color: #f2fbff;
2705
+  text-align: center;
2706
+}
2707
+
2708
+.networkcolumnsent {
2709
+  max-width: 90px;
2710
+  background-color: #ffffff;
2711
+  word-break: break-word;
2712
+  text-align: center;
2713
+}
2714
+
2715
+.useridcolsent, .pricecolumnsent, .statuscolumnsent, .deliveryrcptcolsent {
2716
+  background-color: #ffffff;
2717
+  text-align: center;
2718
+}
2719
+
2720
+.tocolumnsent {
2721
+  background-color: #f2fbff;
2722
+  text-align: center;
2723
+}
2724
+
2725
+.fromcolumnsent {
2726
+  background-color: #f2fff5;
2727
+  text-align: center;
2728
+}
2729
+
2730
+.active {
2731
+  color: #c62b71;
2732
+}
2733
+
2734
+#deleteoldmssgs {
2735
+  display: inline-block;
2736
+  position: relative;
2737
+  margin: 10px 0px 10px 1px;
2738
+  font-size: 15px;
2739
+  font-weight: bold;
2740
+}
2741
+
2742
+#deleteoldsms {
2743
+  display: none;
2744
+  background: #e8f6ff;
2745
+  border-radius: 6px;
2746
+  padding: 5px;
2747
+}
2748
+
2749
+#delOldrecSMS, #delOldsentSMS {
2750
+  display: block;
2751
+  background-color: #0082C9;
2752
+  color: #ffffff;
2753
+  margin: 10px 0px 10px 5px;
2754
+  border-radius: 20px;
2755
+  font-family: 'Open Sans';
2756
+  font-size: 14px;
2757
+}
2758
+
2759
+#delOldrecSMS:active, #delOldsentSMS:active {
2760
+  background: #00a2f9;
2761
+}
2762
+
2763
+#delsetrows {
2764
+  display: block;
2765
+  padding: 5px;
2766
+}
2767
+
2768
+.deletesmsolder {
2769
+  display: inline;
2770
+  font-size: 15px;
2771
+  font-weight: bold;
2772
+}
2773
+
2774
+#oldrecSmsInterval, #oldsentSmsInterval {
2775
+  display: inline;
2776
+  width: 60px;
2777
+  height: 25px;
2778
+  padding: 0px 0px 0px 10px;
2779
+  font-family: 'Inter';
2780
+  font-size: 14px;
2781
+  font-weight: bold;
2782
+  border-radius: 20px;
2783
+}
2784
+
2785
+#upArrow {
2786
+  background-image: url("../img/arrow-top.svg");
2787
+  background-repeat: no-repeat;
2788
+  background-color: transparent !important;
2789
+  opacity: 0.30;
2790
+  position: fixed;
2791
+  bottom: 40px;
2792
+  right: 4px;
2793
+  width: 50px;
2794
+  height: 50px;
2795
+  border: none;
2796
+  cursor: pointer;
2797
+  display: none;
2798
+  z-index: 1010;
2799
+}
2800
+
2801
+#upArrow:hover {
2802
+  opacity: 1;
2803
+}
2804
+
2805
+#arrowupWrap {
2806
+  display: block;
2807
+  position: sticky;
2808
+  width: 21px;
2809
+  height: 21px;
2810
+  bottom: 12px;
2811
+  left: 530px;
2812
+}
2813
+
2814
+#upArrowSmall {
2815
+  position: relative;
2816
+  background-image: url("../img/arrow-top-small.svg");
2817
+  background-repeat: no-repeat;
2818
+  background-color: transparent !important;
2819
+  width: 21px;
2820
+  height: 21px;
2821
+  opacity: 0.30;
2822
+  border: none;
2823
+  cursor: pointer;
2824
+  display: none;
2825
+  z-index: 5300;
2826
+}
2827
+
2828
+#upArrowSmall:hover {
2829
+  opacity: 1;
2830
+}
2831
+
2832
+.opensmsfolder {
2833
+  display: block;
2834
+  position: relative;
2835
+  margin: 10px 0px 10px 0px !important;
2836
+  padding: 7px 0px 7px 0px;
2837
+  width: 100% !important;
2838
+  color: #FFFFFF !important;
2839
+  font-family: 'Open Sans' !important;
2840
+  font-size: 15px !important;
2841
+  background-color: #CB99C5 !important;
2842
+}
2843
+
2844
+.opensmsfolder:hover {
2845
+  border: 2px;
2846
+  background-color: #c18bba !important;
2847
+}
2848
+
2849
+.opensmsfolder:active {
2850
+  background-color: #b777af !important;
2851
+  border: 2px;
2852
+  color: #FFFFFF !important;
2853
+  border-color: #b777af;
2854
+}
2855
+
2856
+.opensmsfolder:focus {
2857
+  background-color: #a3669b !important;
2858
+  border: 2px;
2859
+  border-color: #a3669b;
2860
+}
2861
+
2862
+#save_sms_settings {
2863
+  display: inline-block;
2864
+  border-radius: 8px !important;
2865
+  padding: 0px 14px !important;
2866
+  color: #ffffff !important;
2867
+  background-color: #1e89c2 !important;
2868
+}
2869
+
2870
+#save_sms_settings:hover {
2871
+  background-color: #0369a0 !important;
2872
+}
2873
+
2874
+#save_sms_settings:active {
2875
+  background-color: #025480 !important;
2876
+}
2877
+
2878
+#conversationsTable {
2879
+  display: block;
2880
+  position: relative;
2881
+  top: 0;
2882
+  bottom: 0;
2883
+  width: 100%;
2884
+  height: 100%;
2885
+  font-size: 14px;
2886
+  z-index: 50;
2887
+  background-color: #ffffff;
2888
+}
2889
+
2890
+#conversationsTable td {
2891
+  text-align: left;
2892
+  vertical-align: top;
2893
+  border: 1px solid #f3f3f3;
2894
+  padding: 2px;
2895
+}
2896
+
2897
+#conversationsTable tr:hover {
2898
+  background-color: #ffffff;
2899
+}
2900
+
2901
+/* Timer for page auto-refresh */
2902
+#refreshTimerRec, #refreshTimerSent {
2903
+  display: none;
2904
+  margin: 1.5px 0px 0px 6px;
2905
+}
2906
+
2907
+.arftimer {
2908
+  background: -webkit-linear-gradient(left, #3c76bd 50%, #eee 50%);
2909
+  border-radius: 100%;
2910
+  height: calc(var(--size) * 1px);
2911
+  width: calc(var(--size) * 1px);
2912
+  position: relative;
2913
+  -webkit-animation: time calc(var(--duration) * 1s) steps(1000, start) infinite;
2914
+  -webkit-mask: radial-gradient(transparent 50%,#000 50%);
2915
+  mask: radial-gradient(transparent 50%,#000 50%);
2916
+}
2917
+.arfmask {
2918
+  border-radius: 100% 0 0 100% / 50% 0 0 50%;
2919
+  height: 100%;
2920
+  left: 0;
2921
+  position: absolute;
2922
+  top: 0;
2923
+  width: 50%;
2924
+  -webkit-animation: mask calc(var(--duration) * 1s) steps(500, start) infinite;
2925
+  -webkit-transform-origin: 100% 50%;
2926
+}
2927
+@-webkit-keyframes time {
2928
+  100% {
2929
+      -webkit-transform: rotate(360deg);
2930
+  }
2931
+}
2932
+@-webkit-keyframes mask {
2933
+  0% {
2934
+      background: #eee;
2935
+      -webkit-transform: rotate(0deg);
2936
+  }
2937
+  50% {
2938
+      background: #eee;
2939
+      -webkit-transform: rotate(-180deg);
2940
+  }
2941
+  50.01% {
2942
+      background: #3c76bd;
2943
+      -webkit-transform: rotate(0deg);
2944
+  }
2945
+  100% {
2946
+      background: #3c76bd;
2947
+      -webkit-transform: rotate(-180deg);
2948
+  }
2949
+}
2950
+
2951
+#sms_relentless_adm {
2952
+  font-family: 'Inter';
2953
+}
2954
+
2955
+.arplAuthor, .arplPhoneNmbr, .selectArplMode, .daysInWeek, .startDate, .endDate, .arplText, .restrAuthor {
2956
+  font-family: 'Inter' !important;
2957
+}
2958
+
2959
+.indivfilterrec, .indivfiltersent {
2960
+  font-family: 'Inter';
2961
+  padding: 0 4px !important;
2962
+}
2963
+
2964
+/* Changes for dark themes */
2965
+[data-theme-dark] .srheader,
2966
+[data-theme-dark-highcontrast] .srheader {
2967
+  display: block;
2968
+  position: relative;
2969
+  margin: 0px 0px 7px 0px;
2970
+  color: #fafafa;
2971
+  font-size: 15px;
2972
+  font-weight: 700;
2973
+}
2974
+
2975
+[data-theme-dark] #sendtomultiple,
2976
+[data-theme-dark-highcontrast] #sendtomultiple {
2977
+  display: inline-block;
2978
+  position: relative;
2979
+  margin: 10px 0px 12px 0px;
2980
+  color: #fafafa;
2981
+  font-size: 15px;
2982
+  font-weight: 700;
2983
+}
2984
+
2985
+[data-theme-dark] #entermessage,
2986
+[data-theme-dark-highcontrast] #entermessage {
2987
+  display: block;
2988
+  position: relative;
2989
+  margin: 10px 0px 0px 0px;
2990
+  color: #fafafa;
2991
+  font-size: 15px;
2992
+  font-weight: 700;
2993
+}
2994
+
2995
+[data-theme-dark] #sendmediafl,
2996
+[data-theme-dark-highcontrast] #sendmediafl {
2997
+  display: block;
2998
+  position: relative;
2999
+  margin: 0px 0px 20px 0px;
3000
+  color: #fafafa;
3001
+  font-size: 15px;
3002
+  font-weight: 700;
3003
+}
3004
+
3005
+[data-theme-dark] #deleteoldmssgs,
3006
+[data-theme-dark-highcontrast] #deleteoldmssgs {
3007
+  display: inline-block;
3008
+  position: relative;
3009
+  margin: 10px 0px 10px 1px;
3010
+  color: #fafafa;
3011
+  font-size: 15px;
3012
+  font-weight: 700;
3013
+}
3014
+
3015
+[data-theme-dark] #smsto,
3016
+[data-theme-dark-highcontrast] #smsto {
3017
+  display: block;
3018
+  width: 99%;
3019
+  max-height: 32px;
3020
+  padding: 0px 15px 0px 15px;
3021
+  color: #fafafa;
3022
+  font-family: 'Inter';
3023
+  font-size: 15px;
3024
+  font-weight: 700;
3025
+  border-radius: 20px;
3026
+}
3027
+
3028
+[data-theme-dark] #smstext,
3029
+[data-theme-dark-highcontrast] #smstext {
3030
+  display: inline-block;
3031
+  color: #ffffff;
3032
+  width: 100%;
3033
+  height: 130px;
3034
+  text-align: left;
3035
+  font-family: 'Inter';
3036
+  font-size: 15px;
3037
+  border-radius: 6px;
3038
+  resize: vertical;
3039
+  white-space: pre-wrap;
3040
+}
3041
+
3042
+
3043
+[data-theme-dark] .arplText,
3044
+[data-theme-dark-highcontrast] .arplText {
3045
+  display: inline-block;
3046
+  color: #fafafa;
3047
+  width: 330px;
3048
+  height: 184px;
3049
+  font-size: 15px;
3050
+  text-align: left;
3051
+  border: 1px solid #000;
3052
+  border-radius: 6px;
3053
+  margin: 0px 1px 0px 0px;
3054
+  resize: vertical;
3055
+  white-space: pre-wrap;
3056
+  overflow: auto;
3057
+}
3058
+
3059
+[data-theme-dark] #oldrecSmsInterval, [data-theme-dark] #oldsentSmsInterval,
3060
+[data-theme-dark-highcontrast] #oldrecSmsInterval, [data-theme-dark-highcontrast] #oldsentSmsInterval {
3061
+  display: inline;
3062
+  width: 60px;
3063
+  height: 25px;
3064
+  padding: 0px 0px 0px 10px;
3065
+  color: #fafafa;
3066
+  font-family: 'Inter';
3067
+  font-size: 14px;
3068
+  font-weight: bold;
3069
+  border-radius: 20px;
3070
+}
3071
+
3072
+[data-theme-dark] .tooltipbalanceid #infobalance,
3073
+[data-theme-dark-highcontrast] .tooltipbalanceid #infobalance {
3074
+  display: block;
3075
+  position: relative;
3076
+  margin: 4px 14px 0px 0px;
3077
+  color: #fafafa;
3078
+  font-size: 21px;
3079
+  font-weight: bold;
3080
+  font-family: 'Open Sans';
3081
+  font-style: italic;
3082
+  z-index: 6;
3083
+}
3084
+
3085
+[data-theme-dark] #infotipid,
3086
+[data-theme-dark-highcontrast] #infotipid {
3087
+  display: block;
3088
+  position: relative;
3089
+  margin: 4px 14px 0px 0px;
3090
+  color: #fafafa;
3091
+  font-size: 19px;
3092
+  font-weight: 700;
3093
+  font-family: 'Open Sans';
3094
+  font-style: italic;
3095
+  z-index: 5;
3096
+}
3097
+
3098
+[data-theme-dark] #inforestrict,
3099
+[data-theme-dark-highcontrast] #inforestrict {
3100
+  display: inline-block;
3101
+  position: relative;
3102
+  margin: -2px 0px 0px 10px;
3103
+  color: #fafafa;
3104
+  font-size: 18px;
3105
+  font-weight: bold;
3106
+  font-family: 'Open Sans';
3107
+  font-style: italic;
3108
+  cursor: pointer;
3109
+}
3110
+
3111
+[data-theme-dark] .fortooltip .texttooltip, [data-theme-dark] .maxmessagelength .texttooltip,
3112
+[data-theme-dark-highcontrast] .fortooltip .texttooltip, [data-theme-dark-highcontrast] .maxmessagelength .texttooltip {
3113
+  font-family: 'Open Sans';
3114
+  font-style: italic;
3115
+  color: #fafafa;
3116
+  font-size: 19px;
3117
+  font-weight: 700;
3118
+  margin: 0px 0px 4px 4px;
3119
+}
3120
+
3121
+[data-theme-dark] #uploadfileforsms,
3122
+[data-theme-dark-highcontrast] #uploadfileforsms {
3123
+  margin-left: 7px;
3124
+  background-color: #434343;
3125
+  border-radius: 3px !important;
3126
+}
3127
+
3128
+[data-theme-dark] #uploadfileformms,
3129
+[data-theme-dark-highcontrast] #uploadfileformms {
3130
+  margin-left: 21px;
3131
+  background-color: #434343;
3132
+  border-radius: 3px !important;
3133
+}
3134
+
3135
+[data-theme-dark] .smsnbformat a,
3136
+[data-theme-dark-highcontrast] .smsnbformat a {
3137
+  color: #cedfff !important;
3138
+}
3139
+
3140
+[data-theme-dark] .smsnbformat font,
3141
+[data-theme-dark-highcontrast] .smsnbformat font {
3142
+  color: #f7547a !important;
3143
+}
3144
+
3145
+[data-theme-dark] .indivfiltersent, [data-theme-dark] .indivfilterrec,
3146
+[data-theme-dark-highcontrast] .indivfiltersent, [data-theme-dark-highcontrast] .indivfilterrec {
3147
+  color: #ffffff !important;
3148
+  padding: 0 4px !important;
3149
+  font-family: 'Inter';
3150
+}
3151
+
3152
+[data-theme-dark] #recSmsTable, [data-theme-dark] #groupedSmsTable, [data-theme-dark] #sentSmsTable,
3153
+[data-theme-dark-highcontrast] #recSmsTable, [data-theme-dark-highcontrast] #groupedSmsTable, [data-theme-dark-highcontrast] #sentSmsTable {
3154
+  color: #000000 !important;
3155
+}
3156
+
3157
+[data-theme-dark] .providerSettings .setlabeltext,
3158
+[data-theme-dark-highcontrast] .providerSettings .setlabeltext {
3159
+  color: #272727;
3160
+}
3161
+
3162
+[data-theme-dark] .providerName,
3163
+[data-theme-dark-highcontrast] .providerName  {
3164
+  font-size: 18px;
3165
+  font-weight: bold;
3166
+  margin-bottom: 20px;
3167
+  color: #272727;
3168
+}
3169
+
3170
+[data-theme-dark] .selectHrMin, 
3171
+[data-theme-dark-highcontrast] .selectHrMin,
3172
+[data-theme-dark] .startDate,
3173
+[data-theme-dark-highcontrast] .startDate,
3174
+[data-theme-dark] .endDate,
3175
+[data-theme-dark-highcontrast] .endDate {
3176
+  color: #ffffff !important;
3177
+}
3178
+
3179
+[data-theme-dark] #infoautoreply, [data-theme-dark] #infoautoreplyst, [data-theme-dark] #infoautoreplypn,
3180
+[data-theme-dark-highcontrast] #infoautoreply, [data-theme-dark-highcontrast] #infoautoreplyst, [data-theme-dark-highcontrast] #infoautoreplypn {
3181
+  color: #ffffff;
3182
+}
3183
+
3184
+[data-theme-dark] .generateUrl,
3185
+[data-theme-dark-highcontrast] .generateUrl {
3186
+  color: #013351 !important;
3187
+  font-family: 'Inter';
3188
+}
0 3189
new file mode 100644
... ...
@@ -0,0 +1,201 @@
1
+Apache License
2
+                           Version 2.0, January 2004
3
+                        http://www.apache.org/licenses/
4
+
5
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+   1. Definitions.
8
+
9
+      "License" shall mean the terms and conditions for use, reproduction,
10
+      and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+      "Licensor" shall mean the copyright owner or entity authorized by
13
+      the copyright owner that is granting the License.
14
+
15
+      "Legal Entity" shall mean the union of the acting entity and all
16
+      other entities that control, are controlled by, or are under common
17
+      control with that entity. For the purposes of this definition,
18
+      "control" means (i) the power, direct or indirect, to cause the
19
+      direction or management of such entity, whether by contract or
20
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+      outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+      "You" (or "Your") shall mean an individual or Legal Entity
24
+      exercising permissions granted by this License.
25
+
26
+      "Source" form shall mean the preferred form for making modifications,
27
+      including but not limited to software source code, documentation
28
+      source, and configuration files.
29
+
30
+      "Object" form shall mean any form resulting from mechanical
31
+      transformation or translation of a Source form, including but
32
+      not limited to compiled object code, generated documentation,
33
+      and conversions to other media types.
34
+
35
+      "Work" shall mean the work of authorship, whether in Source or
36
+      Object form, made available under the License, as indicated by a
37
+      copyright notice that is included in or attached to the work
38
+      (an example is provided in the Appendix below).
39
+
40
+      "Derivative Works" shall mean any work, whether in Source or Object
41
+      form, that is based on (or derived from) the Work and for which the
42
+      editorial revisions, annotations, elaborations, or other modifications
43
+      represent, as a whole, an original work of authorship. For the purposes
44
+      of this License, Derivative Works shall not include works that remain
45
+      separable from, or merely link (or bind by name) to the interfaces of,
46
+      the Work and Derivative Works thereof.
47
+
48
+      "Contribution" shall mean any work of authorship, including
49
+      the original version of the Work and any modifications or additions
50
+      to that Work or Derivative Works thereof, that is intentionally
51
+      submitted to Licensor for inclusion in the Work by the copyright owner
52
+      or by an individual or Legal Entity authorized to submit on behalf of
53
+      the copyright owner. For the purposes of this definition, "submitted"
54
+      means any form of electronic, verbal, or written communication sent
55
+      to the Licensor or its representatives, including but not limited to
56
+      communication on electronic mailing lists, source code control systems,
57
+      and issue tracking systems that are managed by, or on behalf of, the
58
+      Licensor for the purpose of discussing and improving the Work, but
59
+      excluding communication that is conspicuously marked or otherwise
60
+      designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+      "Contributor" shall mean Licensor and any individual or Legal Entity
63
+      on behalf of whom a Contribution has been received by Licensor and
64
+      subsequently incorporated within the Work.
65
+
66
+   2. Grant of Copyright License. Subject to the terms and conditions of
67
+      this License, each Contributor hereby grants to You a perpetual,
68
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+      copyright license to reproduce, prepare Derivative Works of,
70
+      publicly display, publicly perform, sublicense, and distribute the
71
+      Work and such Derivative Works in Source or Object form.
72
+
73
+   3. Grant of Patent License. Subject to the terms and conditions of
74
+      this License, each Contributor hereby grants to You a perpetual,
75
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+      (except as stated in this section) patent license to make, have made,
77
+      use, offer to sell, sell, import, and otherwise transfer the Work,
78
+      where such license applies only to those patent claims licensable
79
+      by such Contributor that are necessarily infringed by their
80
+      Contribution(s) alone or by combination of their Contribution(s)
81
+      with the Work to which such Contribution(s) was submitted. If You
82
+      institute patent litigation against any entity (including a
83
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+      or a Contribution incorporated within the Work constitutes direct
85
+      or contributory patent infringement, then any patent licenses
86
+      granted to You under this License for that Work shall terminate
87
+      as of the date such litigation is filed.
88
+
89
+   4. Redistribution. You may reproduce and distribute copies of the
90
+      Work or Derivative Works thereof in any medium, with or without
91
+      modifications, and in Source or Object form, provided that You
92
+      meet the following conditions:
93
+
94
+      (a) You must give any other recipients of the Work or
95
+          Derivative Works a copy of this License; and
96
+
97
+      (b) You must cause any modified files to carry prominent notices
98
+          stating that You changed the files; and
99
+
100
+      (c) You must retain, in the Source form of any Derivative Works
101
+          that You distribute, all copyright, patent, trademark, and
102
+          attribution notices from the Source form of the Work,
103
+          excluding those notices that do not pertain to any part of
104
+          the Derivative Works; and
105
+
106
+      (d) If the Work includes a "NOTICE" text file as part of its
107
+          distribution, then any Derivative Works that You distribute must
108
+          include a readable copy of the attribution notices contained
109
+          within such NOTICE file, excluding those notices that do not
110
+          pertain to any part of the Derivative Works, in at least one
111
+          of the following places: within a NOTICE text file distributed
112
+          as part of the Derivative Works; within the Source form or
113
+          documentation, if provided along with the Derivative Works; or,
114
+          within a display generated by the Derivative Works, if and
115
+          wherever such third-party notices normally appear. The contents
116
+          of the NOTICE file are for informational purposes only and
117
+          do not modify the License. You may add Your own attribution
118
+          notices within Derivative Works that You distribute, alongside
119
+          or as an addendum to the NOTICE text from the Work, provided
120
+          that such additional attribution notices cannot be construed
121
+          as modifying the License.
122
+
123
+      You may add Your own copyright statement to Your modifications and
124
+      may provide additional or different license terms and conditions
125
+      for use, reproduction, or distribution of Your modifications, or
126
+      for any such Derivative Works as a whole, provided Your use,
127
+      reproduction, and distribution of the Work otherwise complies with
128
+      the conditions stated in this License.
129
+
130
+   5. Submission of Contributions. Unless You explicitly state otherwise,
131
+      any Contribution intentionally submitted for inclusion in the Work
132
+      by You to the Licensor shall be under the terms and conditions of
133
+      this License, without any additional terms or conditions.
134
+      Notwithstanding the above, nothing herein shall supersede or modify
135
+      the terms of any separate license agreement you may have executed
136
+      with Licensor regarding such Contributions.
137
+
138
+   6. Trademarks. This License does not grant permission to use the trade
139
+      names, trademarks, service marks, or product names of the Licensor,
140
+      except as required for reasonable and customary use in describing the
141
+      origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+   7. Disclaimer of Warranty. Unless required by applicable law or
144
+      agreed to in writing, Licensor provides the Work (and each
145
+      Contributor provides its Contributions) on an "AS IS" BASIS,
146
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+      implied, including, without limitation, any warranties or conditions
148
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+      PARTICULAR PURPOSE. You are solely responsible for determining the
150
+      appropriateness of using or redistributing the Work and assume any
151
+      risks associated with Your exercise of permissions under this License.
152
+
153
+   8. Limitation of Liability. In no event and under no legal theory,
154
+      whether in tort (including negligence), contract, or otherwise,
155
+      unless required by applicable law (such as deliberate and grossly
156
+      negligent acts) or agreed to in writing, shall any Contributor be
157
+      liable to You for damages, including any direct, indirect, special,
158
+      incidental, or consequential damages of any character arising as a
159
+      result of this License or out of the use or inability to use the
160
+      Work (including but not limited to damages for loss of goodwill,
161
+      work stoppage, computer failure or malfunction, or any and all
162
+      other commercial damages or losses), even if such Contributor
163
+      has been advised of the possibility of such damages.
164
+
165
+   9. Accepting Warranty or Additional Liability. While redistributing
166
+      the Work or Derivative Works thereof, You may choose to offer,
167
+      and charge a fee for, acceptance of support, warranty, indemnity,
168
+      or other liability obligations and/or rights consistent with this
169
+      License. However, in accepting such obligations, You may act only
170
+      on Your own behalf and on Your sole responsibility, not on behalf
171
+      of any other Contributor, and only if You agree to indemnify,
172
+      defend, and hold each Contributor harmless for any liability
173
+      incurred by, or claims asserted against, such Contributor by reason
174
+      of your accepting any such warranty or additional liability.
175
+
176
+   END OF TERMS AND CONDITIONS
177
+
178
+   APPENDIX: How to apply the Apache License to your work.
179
+
180
+      To apply the Apache License to your work, attach the following
181
+      boilerplate notice, with the fields enclosed by brackets "[]"
182
+      replaced with your own identifying information. (Don't include
183
+      the brackets!)  The text should be enclosed in the appropriate
184
+      comment syntax for the file format. We also recommend that a
185
+      file or class name and description of purpose be included on the
186
+      same "printed page" as the copyright notice for easier
187
+      identification within third-party archives.
188
+
189
+   Copyright [yyyy] [name of copyright owner]
190
+
191
+   Licensed under the Apache License, Version 2.0 (the "License");
192
+   you may not use this file except in compliance with the License.
193
+   You may obtain a copy of the License at
194
+
195
+       http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+   Unless required by applicable law or agreed to in writing, software
198
+   distributed under the License is distributed on an "AS IS" BASIS,
199
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+   See the License for the specific language governing permissions and
201
+   limitations under the License.
0 202
\ No newline at end of file
1 203
new file mode 100644
2 204
Binary files /dev/null and b/fonts/Inter-Bold.woff differ
3 205
new file mode 100644
4 206
Binary files /dev/null and b/fonts/Inter-Bold.woff2 differ
5 207
new file mode 100644
6 208
Binary files /dev/null and b/fonts/Inter-BoldItalic.woff differ
7 209
new file mode 100644
8 210
Binary files /dev/null and b/fonts/Inter-BoldItalic.woff2 differ
9 211
new file mode 100644
10 212
Binary files /dev/null and b/fonts/Inter-Italic.woff differ
11 213
new file mode 100644
12 214
Binary files /dev/null and b/fonts/Inter-Italic.woff2 differ
13 215
new file mode 100644
14 216
Binary files /dev/null and b/fonts/Inter-Medium.woff differ
15 217
new file mode 100644
16 218
Binary files /dev/null and b/fonts/Inter-Medium.woff2 differ
17 219
new file mode 100644
18 220
Binary files /dev/null and b/fonts/Inter-MediumItalic.woff differ
19 221
new file mode 100644
20 222
Binary files /dev/null and b/fonts/Inter-MediumItalic.woff2 differ
21 223
new file mode 100644
22 224
Binary files /dev/null and b/fonts/Inter-Regular.woff differ
23 225
new file mode 100644
24 226
Binary files /dev/null and b/fonts/Inter-Regular.woff2 differ
25 227
new file mode 100644
26 228
Binary files /dev/null and b/fonts/Inter-SemiBold.woff differ
27 229
new file mode 100644
28 230
Binary files /dev/null and b/fonts/Inter-SemiBold.woff2 differ
29 231
new file mode 100644
30 232
Binary files /dev/null and b/fonts/Inter-SemiBoldItalic.woff differ
31 233
new file mode 100644
32 234
Binary files /dev/null and b/fonts/Inter-SemiBoldItalic.woff2 differ
33 235
new file mode 100644
... ...
@@ -0,0 +1,43 @@
1
+Copyright (c) 2016-2018 The Inter UI Project Authors (me@rsms.me)
2
+
3
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
5
+
6
+-----------------------------------------------------------
7
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
8
+-----------------------------------------------------------
9
+
10
+PREAMBLE
11
+The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
12
+
13
+The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
14
+
15
+DEFINITIONS
16
+"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
17
+
18
+"Reserved Font Name" refers to any names specified as such after the copyright statement(s).
19
+
20
+"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).
21
+
22
+"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
23
+
24
+"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
25
+
26
+PERMISSION & CONDITIONS
27
+Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
28
+
29
+1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
30
+
31
+2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
32
+
33
+3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
34
+
35
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
36
+
37
+5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
38
+
39
+TERMINATION
40
+This license becomes null and void if any of the above conditions are not met.
41
+
42
+DISCLAIMER
43
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
0 44
\ No newline at end of file
1 45
new file mode 100644
2 46
Binary files /dev/null and b/fonts/opensans-bold.woff differ
3 47
new file mode 100644
4 48
Binary files /dev/null and b/fonts/opensans-bold.woff2 differ
5 49
new file mode 100644
6 50
Binary files /dev/null and b/fonts/opensans-bolditalic.woff differ
7 51
new file mode 100644
8 52
Binary files /dev/null and b/fonts/opensans-bolditalic.woff2 differ
9 53
new file mode 100644
10 54
Binary files /dev/null and b/fonts/opensans-extrabold.woff differ
11 55
new file mode 100644
12 56
Binary files /dev/null and b/fonts/opensans-extrabold.woff2 differ
13 57
new file mode 100644
14 58
Binary files /dev/null and b/fonts/opensans-extrabolditalic.woff differ
15 59
new file mode 100644
16 60
Binary files /dev/null and b/fonts/opensans-extrabolditalic.woff2 differ
17 61
new file mode 100644
18 62
Binary files /dev/null and b/fonts/opensans-italic.woff differ
19 63
new file mode 100644
20 64
Binary files /dev/null and b/fonts/opensans-italic.woff2 differ
21 65
new file mode 100644
22 66
Binary files /dev/null and b/fonts/opensans-light.woff differ
23 67
new file mode 100644
24 68
Binary files /dev/null and b/fonts/opensans-light.woff2 differ
25 69
new file mode 100644
26 70
Binary files /dev/null and b/fonts/opensans-lightitalic.woff differ
27 71
new file mode 100644
28 72
Binary files /dev/null and b/fonts/opensans-lightitalic.woff2 differ
29 73
new file mode 100644
30 74
Binary files /dev/null and b/fonts/opensans-regular.woff differ
31 75
new file mode 100644
32 76
Binary files /dev/null and b/fonts/opensans-regular.woff2 differ
33 77
new file mode 100644
34 78
Binary files /dev/null and b/fonts/opensans-semibold.woff differ
35 79
new file mode 100644
36 80
Binary files /dev/null and b/fonts/opensans-semibold.woff2 differ
37 81
new file mode 100644
38 82
Binary files /dev/null and b/fonts/opensans-semibolditalic.woff differ
39 83
new file mode 100644
40 84
Binary files /dev/null and b/fonts/opensans-semibolditalic.woff2 differ
41 85
new file mode 100644
... ...
@@ -0,0 +1,39 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<svg
3
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+   xmlns:cc="http://creativecommons.org/ns#"
5
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+   xmlns:svg="http://www.w3.org/2000/svg"
7
+   xmlns="http://www.w3.org/2000/svg"
8
+   version="1.1"
9
+   id="Layer_1"
10
+   x="0px"
11
+   y="0px"
12
+   width="42.000px"
13
+   height="42.000px"
14
+   viewBox="0 0 850.394 680.314"
15
+   enable-background="new 0 0 850.394 680.314"
16
+   xml:space="preserve"><metadata
17
+   id="metadata17"><rdf:RDF><cc:Work
18
+       rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
19
+         rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
20
+   id="defs15">
21
+	
22
+</defs>
23
+
24
+<g
25
+   aria-label="sms"
26
+   id="text857-2"
27
+   style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:292.064px;line-height:1.25;font-family:monospace;-inkscape-font-specification:monospace;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:24.3387"><path
28
+     d="m 224.01817,366.0671 q -19.56829,0 -33.00323,-2.92064 -13.43495,-2.92064 -23.65719,-9.34605 -4.08889,-2.04444 -6.4254,-7.00953 -2.33652,-4.96509 -2.33652,-11.09843 0,-7.88573 4.0889,-12.85082 4.38096,-5.25715 10.80637,-5.25715 4.38096,0 8.17779,1.16826 3.79683,0.87619 9.34605,3.2127 9.34604,3.2127 16.35558,4.96509 7.3016,1.75238 18.40003,1.75238 7.88573,0 12.26669,-2.04445 4.67302,-2.33651 4.67302,-6.4254 0,-3.21271 -2.33651,-4.96509 -2.04445,-1.75239 -8.17779,-3.21271 -6.13334,-1.75238 -20.73654,-4.67302 -25.9937,-4.96509 -37.67626,-14.89526 -11.39049,-10.22224 -11.39049,-28.62228 0,-13.43494 8.17779,-24.24131 8.46985,-10.80637 23.07305,-16.93971 14.6032,-6.13334 32.71117,-6.13334 13.14288,0 25.40957,3.2127 12.55875,3.21271 22.19686,9.05398 9.05399,5.25716 9.05399,16.93972 0,8.17779 -4.38096,13.727 -4.38096,5.54922 -10.80637,5.54922 -7.59367,0 -18.10797,-4.96509 -7.00954,-3.2127 -12.55875,-4.67302 -5.25715,-1.75239 -12.55875,-1.75239 -7.3016,0 -11.3905,2.33652 -4.0889,2.04444 -4.0889,6.13334 0,4.67302 5.54922,7.3016 5.84128,2.62858 22.78099,5.84128 28.33021,4.96509 40.01277,15.18733 11.68256,9.93017 11.68256,28.91433 0,21.32068 -17.8159,34.17149 -17.52384,12.55875 -47.31437,12.55875 z"
29
+     style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-size:292.064px;font-family:Nunito;-inkscape-font-specification:'Nunito, Heavy';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:24.3387"
30
+     id="path837" /><path
31
+     d="m 493.88524,216.53034 q 23.65718,0 36.508,14.31113 12.85082,14.01907 12.85082,47.60643 v 63.08583 q 0,11.97462 -7.59367,18.10796 -7.3016,5.84128 -18.40003,5.84128 -11.09843,0 -18.6921,-5.84128 -7.3016,-6.13334 -7.3016,-18.10796 v -64.25408 q 0,-11.68256 -4.08889,-16.35559 -4.0889,-4.67302 -11.97463,-4.67302 -10.22224,0 -16.35558,7.3016 -6.13334,7.3016 -6.13334,20.15242 v 57.82867 q 0,11.97462 -7.3016,18.10796 -7.3016,5.84128 -18.6921,5.84128 -11.09843,0 -18.69209,-5.84128 -7.3016,-6.13334 -7.3016,-18.10796 v -64.25408 q 0,-11.68256 -4.0889,-16.35559 -4.0889,-4.67302 -11.97462,-4.67302 -10.22224,0 -16.35559,7.3016 -5.84128,7.3016 -5.84128,20.15242 v 57.82867 q 0,11.97462 -7.59366,18.10796 -7.3016,5.84128 -18.40003,5.84128 -11.09844,0 -18.6921,-5.84128 -7.3016,-6.13334 -7.3016,-18.10796 V 240.47958 q 0,-11.39049 7.59366,-17.23177 7.88573,-6.13334 18.6921,-6.13334 10.22224,0 16.93971,5.54921 7.00954,5.25715 7.3016,15.47939 14.31114,-21.61273 43.8096,-21.61273 31.25085,0 41.76515,25.40956 7.3016,-11.68256 19.56829,-18.40003 12.26669,-7.00953 27.74608,-7.00953 z"
32
+     style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-size:292.064px;font-family:Nunito;-inkscape-font-specification:'Nunito, Heavy';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:24.3387"
33
+     id="path839" /><path
34
+     d="m 629.1107,366.0671 q -19.56829,0 -33.00323,-2.92064 -13.43495,-2.92064 -23.65719,-9.34605 -4.08889,-2.04444 -6.42541,-7.00953 -2.33651,-4.96509 -2.33651,-11.09843 0,-7.88573 4.0889,-12.85082 4.38096,-5.25715 10.80637,-5.25715 4.38096,0 8.17779,1.16826 3.79683,0.87619 9.34605,3.2127 9.34604,3.2127 16.35558,4.96509 7.3016,1.75238 18.40003,1.75238 7.88573,0 12.26669,-2.04445 4.67302,-2.33651 4.67302,-6.4254 0,-3.21271 -2.33651,-4.96509 -2.04445,-1.75239 -8.17779,-3.21271 -6.13334,-1.75238 -20.73654,-4.67302 -25.9937,-4.96509 -37.67626,-14.89526 -11.3905,-10.22224 -11.3905,-28.62228 0,-13.43494 8.1778,-24.24131 8.46985,-10.80637 23.07305,-16.93971 14.6032,-6.13334 32.71117,-6.13334 13.14288,0 25.40957,3.2127 12.55875,3.21271 22.19686,9.05398 9.05398,5.25716 9.05398,16.93972 0,8.17779 -4.38096,13.727 -4.38096,5.54922 -10.80636,5.54922 -7.59367,0 -18.10797,-4.96509 -7.00954,-3.2127 -12.55875,-4.67302 -5.25715,-1.75239 -12.55875,-1.75239 -7.3016,0 -11.3905,2.33652 -4.0889,2.04444 -4.0889,6.13334 0,4.67302 5.54922,7.3016 5.84128,2.62858 22.78099,5.84128 28.33021,4.96509 40.01277,15.18733 11.68256,9.93017 11.68256,28.91433 0,21.32068 -17.81591,34.17149 -17.52383,12.55875 -47.31436,12.55875 z"
35
+     style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-size:292.064px;font-family:Nunito;-inkscape-font-specification:'Nunito, Heavy';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:24.3387"
36
+     id="path841" /></g><path
37
+   id="rect913"
38
+   style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:55.8973;stroke-linecap:round;stroke-miterlimit:2.6131;stroke-dasharray:none;stroke-dashoffset:3.09983;paint-order:stroke fill markers"
39
+   d="m 599.83207,647.23061 c -0.43406,-36.10702 4.91329,18.7541 4.16129,18.33388 C 593.28975,659.58323 451.48459,553.46664 451.48459,553.46664 l -224.0571,0.0513 C 117.92549,553.54309 30.294192,464.24995 30.294192,354.74782 V 223.8223 c 0,-109.50213 88.155158,-197.65728 197.657278,-197.65728 h 395.14668 c 109.50212,0 197.65725,88.15515 197.65725,197.65728 v 130.92554 c 0,109.50214 -88.17941,195.35255 -197.65725,197.65728 l -18.96187,0.39919 c 0,0 1.75633,95.44168 0.68133,112.88428" /></svg>
0 40
new file mode 100644
... ...
@@ -0,0 +1,39 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<svg
3
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+   xmlns:cc="http://creativecommons.org/ns#"
5
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+   xmlns:svg="http://www.w3.org/2000/svg"
7
+   xmlns="http://www.w3.org/2000/svg"
8
+   version="1.1"
9
+   id="Layer_1"
10
+   x="0px"
11
+   y="0px"
12
+   width="42.000px"
13
+   height="42.000px"
14
+   viewBox="0 0 850.394 680.314"
15
+   enable-background="new 0 0 850.394 680.314"
16
+   xml:space="preserve"><metadata
17
+   id="metadata17"><rdf:RDF><cc:Work
18
+       rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
19
+         rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
20
+   id="defs15">
21
+	
22
+</defs>
23
+
24
+<g
25
+   aria-label="sms"
26
+   id="text857-2"
27
+   style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:292.064px;line-height:1.25;font-family:monospace;-inkscape-font-specification:monospace;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:24.3387"><path
28
+     d="m 224.01817,366.0671 q -19.56829,0 -33.00323,-2.92064 -13.43495,-2.92064 -23.65719,-9.34605 -4.08889,-2.04444 -6.4254,-7.00953 -2.33652,-4.96509 -2.33652,-11.09843 0,-7.88573 4.0889,-12.85082 4.38096,-5.25715 10.80637,-5.25715 4.38096,0 8.17779,1.16826 3.79683,0.87619 9.34605,3.2127 9.34604,3.2127 16.35558,4.96509 7.3016,1.75238 18.40003,1.75238 7.88573,0 12.26669,-2.04445 4.67302,-2.33651 4.67302,-6.4254 0,-3.21271 -2.33651,-4.96509 -2.04445,-1.75239 -8.17779,-3.21271 -6.13334,-1.75238 -20.73654,-4.67302 -25.9937,-4.96509 -37.67626,-14.89526 -11.39049,-10.22224 -11.39049,-28.62228 0,-13.43494 8.17779,-24.24131 8.46985,-10.80637 23.07305,-16.93971 14.6032,-6.13334 32.71117,-6.13334 13.14288,0 25.40957,3.2127 12.55875,3.21271 22.19686,9.05398 9.05399,5.25716 9.05399,16.93972 0,8.17779 -4.38096,13.727 -4.38096,5.54922 -10.80637,5.54922 -7.59367,0 -18.10797,-4.96509 -7.00954,-3.2127 -12.55875,-4.67302 -5.25715,-1.75239 -12.55875,-1.75239 -7.3016,0 -11.3905,2.33652 -4.0889,2.04444 -4.0889,6.13334 0,4.67302 5.54922,7.3016 5.84128,2.62858 22.78099,5.84128 28.33021,4.96509 40.01277,15.18733 11.68256,9.93017 11.68256,28.91433 0,21.32068 -17.8159,34.17149 -17.52384,12.55875 -47.31437,12.55875 z"
29
+     style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-size:292.064px;font-family:Nunito;-inkscape-font-specification:'Nunito, Heavy';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;stroke-width:24.3387"
30
+     id="path837" /><path
31
+     d="m 493.88524,216.53034 q 23.65718,0 36.508,14.31113 12.85082,14.01907 12.85082,47.60643 v 63.08583 q 0,11.97462 -7.59367,18.10796 -7.3016,5.84128 -18.40003,5.84128 -11.09843,0 -18.6921,-5.84128 -7.3016,-6.13334 -7.3016,-18.10796 v -64.25408 q 0,-11.68256 -4.08889,-16.35559 -4.0889,-4.67302 -11.97463,-4.67302 -10.22224,0 -16.35558,7.3016 -6.13334,7.3016 -6.13334,20.15242 v 57.82867 q 0,11.97462 -7.3016,18.10796 -7.3016,5.84128 -18.6921,5.84128 -11.09843,0 -18.69209,-5.84128 -7.3016,-6.13334 -7.3016,-18.10796 v -64.25408 q 0,-11.68256 -4.0889,-16.35559 -4.0889,-4.67302 -11.97462,-4.67302 -10.22224,0 -16.35559,7.3016 -5.84128,7.3016 -5.84128,20.15242 v 57.82867 q 0,11.97462 -7.59366,18.10796 -7.3016,5.84128 -18.40003,5.84128 -11.09844,0 -18.6921,-5.84128 -7.3016,-6.13334 -7.3016,-18.10796 V 240.47958 q 0,-11.39049 7.59366,-17.23177 7.88573,-6.13334 18.6921,-6.13334 10.22224,0 16.93971,5.54921 7.00954,5.25715 7.3016,15.47939 14.31114,-21.61273 43.8096,-21.61273 31.25085,0 41.76515,25.40956 7.3016,-11.68256 19.56829,-18.40003 12.26669,-7.00953 27.74608,-7.00953 z"
32
+     style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-size:292.064px;font-family:Nunito;-inkscape-font-specification:'Nunito, Heavy';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;stroke-width:24.3387"
33
+     id="path839" /><path
34
+     d="m 629.1107,366.0671 q -19.56829,0 -33.00323,-2.92064 -13.43495,-2.92064 -23.65719,-9.34605 -4.08889,-2.04444 -6.42541,-7.00953 -2.33651,-4.96509 -2.33651,-11.09843 0,-7.88573 4.0889,-12.85082 4.38096,-5.25715 10.80637,-5.25715 4.38096,0 8.17779,1.16826 3.79683,0.87619 9.34605,3.2127 9.34604,3.2127 16.35558,4.96509 7.3016,1.75238 18.40003,1.75238 7.88573,0 12.26669,-2.04445 4.67302,-2.33651 4.67302,-6.4254 0,-3.21271 -2.33651,-4.96509 -2.04445,-1.75239 -8.17779,-3.21271 -6.13334,-1.75238 -20.73654,-4.67302 -25.9937,-4.96509 -37.67626,-14.89526 -11.3905,-10.22224 -11.3905,-28.62228 0,-13.43494 8.1778,-24.24131 8.46985,-10.80637 23.07305,-16.93971 14.6032,-6.13334 32.71117,-6.13334 13.14288,0 25.40957,3.2127 12.55875,3.21271 22.19686,9.05398 9.05398,5.25716 9.05398,16.93972 0,8.17779 -4.38096,13.727 -4.38096,5.54922 -10.80636,5.54922 -7.59367,0 -18.10797,-4.96509 -7.00954,-3.2127 -12.55875,-4.67302 -5.25715,-1.75239 -12.55875,-1.75239 -7.3016,0 -11.3905,2.33652 -4.0889,2.04444 -4.0889,6.13334 0,4.67302 5.54922,7.3016 5.84128,2.62858 22.78099,5.84128 28.33021,4.96509 40.01277,15.18733 11.68256,9.93017 11.68256,28.91433 0,21.32068 -17.81591,34.17149 -17.52383,12.55875 -47.31436,12.55875 z"
35
+     style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-size:292.064px;font-family:Nunito;-inkscape-font-specification:'Nunito, Heavy';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;stroke-width:24.3387"
36
+     id="path841" /></g><path
37
+   id="rect913"
38
+   style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:55.8973;stroke-linecap:round;stroke-miterlimit:2.6131;stroke-dasharray:none;stroke-dashoffset:3.09983;stroke-opacity:1;paint-order:stroke fill markers"
39
+   d="m 599.83207,647.23061 c -0.43406,-36.10702 4.91329,18.7541 4.16129,18.33388 C 593.28975,659.58323 451.48459,553.46664 451.48459,553.46664 l -224.0571,0.0513 C 117.92549,553.54309 30.294192,464.24995 30.294192,354.74782 V 223.8223 c 0,-109.50213 88.155158,-197.65728 197.657278,-197.65728 h 395.14668 c 109.50212,0 197.65725,88.15515 197.65725,197.65728 v 130.92554 c 0,109.50214 -88.17941,195.35255 -197.65725,197.65728 l -18.96187,0.39919 c 0,0 1.75633,95.44168 0.68133,112.88428" /></svg>
0 40
new file mode 100644
1 41
Binary files /dev/null and b/img/sms_relentless_delete_old_messages.png differ
2 42
new file mode 100644
3 43
Binary files /dev/null and b/img/sms_relentless_exchanged_messages_popup.png differ
4 44
new file mode 100644
5 45
Binary files /dev/null and b/img/sms_relentless_filter_messages_by_date_and_keyword.png differ
6 46
new file mode 100644
7 47
Binary files /dev/null and b/img/sms_relentless_grouped_by_number.png differ
8 48
new file mode 100644
9 49
Binary files /dev/null and b/img/sms_relentless_messages_to_from_popup.png differ
10 50
new file mode 100644
11 51
Binary files /dev/null and b/img/sms_relentless_received_messages.png differ
12 52
new file mode 100644
13 53
Binary files /dev/null and b/img/sms_relentless_send_mass_sms.png differ
14 54
new file mode 100644
15 55
Binary files /dev/null and b/img/sms_relentless_send_mms.png differ
16 56
new file mode 100644
17 57
Binary files /dev/null and b/img/sms_relentless_send_sms.png differ
18 58
new file mode 100644
19 59
Binary files /dev/null and b/img/sms_relentless_sent_messages.png differ
20 60
new file mode 100644
... ...
@@ -0,0 +1,1612 @@
1
+/**
2
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
3
+ *
4
+ * @author Double Bastion LLC
5
+ *
6
+ * @license GNU AGPL version 3 or any later version
7
+ *
8
+ * This program is free software; you can redistribute it and/or
9
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
10
+ * License as published by the Free Software Foundation; either
11
+ * version 3 of the License, or any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public
19
+ * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+  var userid = "<?php p($userId); ?>";
24
+  var charcolorthr = 160;
25
+  var textread = '';
26
+  var providerUsed = '';
27
+  var receiversNumbers = [];
28
+  var waittime = 1000;
29
+  var selectedid = '';
30
+  var isMMS = 0;
31
+  var n = 1;
32
+  var textsizekb = 0;
33
+  var uploadedtomms = [];
34
+  var msgtotalflsize = 0;
35
+  var readtxtfile = [];
36
+  var readjpg = [];
37
+  var readpng = [];
38
+  var readgif = [];
39
+  var readbmp = [];
40
+  var readtif = [];
41
+  var readmp4 = [];
42
+  var chosenProvider = '';
43
+  var chosenProvFullName = '';
44
+  var infonotecontent = '';
45
+  var validExtensions = [];
46
+  var maximumsize = 750;
47
+  var maxsizenonimage = 600;
48
+  var maximumfilenumber = 10;
49
+  var maximumsizeinit = 750;
50
+
51
+  // Adjust the path, so that the uploaded pdf files can be previewed while Nextcloud is served on a subdomain or on a subdirectory, by Nginx or by Apache
52
+  var locHref = window.location.href;
53
+  var pathSplit = locHref.split('/');
54
+  var firstPathEl = '';
55
+  if (pathSplit.length == 7) { firstPathEl = '/' + pathSplit[3]; }
56
+
57
+
58
+  // Get the available phone numbers associated with the API keys saved on the Settings page
59
+  $("#smsnumbersdiv").addClass('icon-loading');
60
+
61
+  var getsmsnumbersUrl = OC.generateUrl("/apps/sms_relentless/user/getsmsnumbers");
62
+
63
+  $.ajax({
64
+          url: getsmsnumbersUrl + '/' + userid,
65
+          type: "POST",
66
+          data: { userid: userid },
67
+          cache: false,
68
+          processData: false,
69
+          contentType: false,
70
+          success: function(currentnmbrs) {
71
+
72
+                     $('#currentsmsnmbrs').empty();
73
+
74
+                     if (currentnmbrs.length > 1) {
75
+
76
+                         $('#currentsmsnmbrs').append("<option value='' class='optselectsmsnb' selected disabled>Choose an ID</option>");
77
+
78
+                         $.each(currentnmbrs, function(key, valsmsnmb) {
79
+                                $('#currentsmsnmbrs').append("<option value='"+ valsmsnmb +"' class='optselectsmsnb'>"+ valsmsnmb +"</option>");
80
+                         });
81
+
82
+                         // Append the available providers to the 'see balance' drop-down list
83
+                         var providerNm = [];
84
+                         for (var n = 0; n < currentnmbrs.length; n++) {
85
+
86
+                              var provfirstchr = currentnmbrs[n].split(": ")[0];
87
+                              if (provfirstchr == "Tx") {
88
+                                  if (providerNm.indexOf("Telnyx") === -1) {
89
+                                      providerNm.push("Telnyx");
90
+                                      $("#smsprovider").append("<option value='Telnyx' class='selectsmsprov'>Telnyx</option>");
91
+                                  }
92
+                              } else if (provfirstchr == "Pl") {
93
+                                  if (providerNm.indexOf("Plivo") === -1) {
94
+                                      providerNm.push("Plivo");
95
+                                      $("#smsprovider").append("<option value='Plivo' class='selectsmsprov'>Plivo</option>");
96
+                                  }
97
+                              } else if (provfirstchr == "Tw") {
98
+                                  if (providerNm.indexOf("Twilio") === -1) {
99
+                                      providerNm.push("Twilio");
100
+                                      $("#smsprovider").append("<option value='Twilio' class='selectsmsprov'>Twilio</option>");
101
+                                  }
102
+                              } else if (provfirstchr == "Fl") {
103
+                                  if (providerNm.indexOf("Flowroute") === -1) {
104
+                                      providerNm.push("Flowroute");
105
+                                      $("#smsprovider").append("<option value='Flowroute' class='selectsmsprov'>Flowroute</option>");
106
+                                  }
107
+                              }
108
+                         }
109
+
110
+                     } else if (currentnmbrs.length == 1) {
111
+
112
+                                $('#currentsmsnmbrs').append("<option value='"+ currentnmbrs[0] +"' class='optselectsmsnb' selected disabled>"+ currentnmbrs[0] +"</option>");
113
+
114
+                                selectedid = currentnmbrs[0];
115
+
116
+                                var unqprovider = currentnmbrs[0].split(": ")[0];
117
+
118
+                                if (unqprovider == 'Tx') {
119
+
120
+					  validExtensions = ["jpg", "jpeg", "png", "gif", "mp3", "ogg", "amr", "mp4", "3gpp", "pdf", "vcf", "vcard", "txt"];
121
+					  // Maximum size of message text + files in KB
122
+					  maximumsize = 1024;
123
+					  maximumsizeinit = 1024;
124
+					  maxsizenonimage = 600;
125
+					  maximumfilenumber = 10;
126
+					  chosenProvFullName = "Telnyx";
127
+					  infonotecontent = "To send an MMS, you can upload media files or pick them from Nextcloud. You can add up to 10 files. For Telnyx, if you send only jpeg/jpg, png \
128
+						             or gif files, the size of all the files plus the size of the text should be \
129
+						             <a href='https://support.telnyx.com/en/articles/4450150-faqs-about-mms-at-telnyx' style='color:#1b60ba' target='_blank' \
130
+						             rel='noreferrer noopener'>1024 KB</a> or less. If you send files of other formats, the total size of the files plus the size of the text should \
131
+						             be 600 KB or less. Allowed formats are jpeg/jpg, png, gif, mp3, ogg, amr, mp4, 3gpp, pdf, vcf, vcard and txt. By default, Telnyx accounts are \
132
+						             limited to <a href='https://support.telnyx.com/en/articles/3102823-mms-sending-and-receiving' style='color:#1b60ba' target='_blank' \
133
+						             rel='noreferrer noopener'>1 MMS message per second</a>. Deliverability of MMS messages depends on the carrier and device of the receiver. \
134
+						             Carriers can reject MMS messages with files exceeding a certain size. The best deliverability is achieved when sending jpeg/jpg, png or \
135
+						             gif files, with a total message size of 600 KB or less. Telnyx allows sending MMS messages only from US or Canadian phone numbers to other US \
136
+						             or Canadian phone numbers. Although all the specified file types can be added to the MMS, only the most common media file types (jpeg/jpg, png, \
137
+						             gif, mp4, ogg, etc.) can be previewed in the adjoining pane.";
138
+					  $("#tooltiptextfourth").html(infonotecontent);
139
+
140
+                                          // Append 'Telnyx' to the 'see balance' drop-down list
141
+                                          $("#smsprovider").append("<option value='Telnyx' class='selectsmsprov'>Telnyx</option>");
142
+
143
+                                } else if (unqprovider == 'Pl') {
144
+
145
+					  validExtensions = ["jpg", "jpeg", "png", "gif", "bmp", "wav", "wave", "mp4", "amr", "mpg", "mpeg", "3gpp", "3gpp2", "vcf", "vcard", "x-vcard", "ics", "ical", "ifb", 
146
+						             "icalendar", "csv", "txt", "pdf", "xls"];
147
+					  // Maximum size of message text + files in KB
148
+					  maximumsize = 5120;
149
+					  maximumsizeinit = 5120;
150
+					  maxsizenonimage = 600;
151
+					  maximumfilenumber = 10;
152
+					  chosenProvFullName = "Plivo";
153
+					  infonotecontent = "To send an MMS, you can upload media files or pick them from Nextcloud. You can add up to 10 files. For Plivo, if you send only jpeg/jpg, png \
154
+						             or gif files, the size of all the files plus the size of the text should be \
155
+						             <a href='https://support.plivo.com/hc/en-us/articles/360042280091-What-are-the-MMS-upload-size-limits-and-file-restrictions-' \
156
+						             style='color:#1b60ba' target='_blank' rel='noreferrer noopener'>5120 KB</a> or less. If you send files of other formats, the total size \
157
+						             of the files plus the size of the text should be 600 KB or less. <a href='https://support.plivo.com/hc/en-us/articles/360042273051' \
158
+						             style='color:#1b60ba' target='_blank' rel='noreferrer noopener'>Allowed formats</a> are jpeg/jpg, png, gif, bmp, wav/wave, mp4, amr, mpg, mpeg, 3gpp, \
159
+						             3gpp2, vcf, vcard, x-vcard, ics, ical, ifb, icalendar, csv, txt, pdf and xls. Deliverability of MMS messages depends on the carrier and \
160
+						             device of the receiver. Carriers can reject MMS messages with files exceeding a certain size. The best deliverability is \
161
+						             achieved when sending jpeg/jpg, png or gif files, with a total message size of 600 KB or less. Plivo allows sending MMS messages \
162
+						             only from US or Canadian phone numbers to other US or Canadian phone numbers. Although all the specified file types can be added to the MMS, \
163
+						             only the most common media file types (jpeg/jpg, png, gif, wav/wave, mp4, etc.) can be previewed in the adjoining pane.";
164
+					  $("#tooltiptextfourth").html(infonotecontent);
165
+
166
+                                          // Append 'Plivo' to the 'see balance' drop-down list
167
+                                          $("#smsprovider").append("<option value='Plivo' class='selectsmsprov'>Plivo</option>");
168
+
169
+                                } else if (unqprovider == 'Tw') {
170
+
171
+					  validExtensions = ["jpg", "jpeg", "png", "gif", "bmp", "tiff", "tif", "au", "snd", "l16", "wav", "wave", "aiff", "pcm", "mp4", "ogg", "ra", "ram", "3gpp", 
172
+						             "3gpp2", "ac3", "webm", "amr", "mpg", "mpeg", "mov", "qt", "h261", "h263", "h264", "vcf", "vcard", "x-vcard", "csv", "rtf", "ics", "ical", "ifb", 
173
+						             "icalendar", "directory", "pdf", "pkpass"];
174
+					  // Maximum size of message text + files in KB
175
+					  maximumsize = 5120;
176
+					  maximumsizeinit = 5120;
177
+					  maxsizenonimage = 600;
178
+					  maximumfilenumber = 10;
179
+					  chosenProvFullName = "Twilio";
180
+					  infonotecontent = "To send an MMS, you can upload media files or pick them from Nextcloud. You can add up to 10 files. For Twilio, if you send only jpeg/jpg, png \
181
+						             or gif files, the size of all the files plus the size of the text should be \
182
+						             <a href='https://support.twilio.com/hc/en-us/articles/360018832773-Twilio-Programmable-SMS-Supported-File-Types-and-Size-Limits-for-MMS-Media-Messages' \
183
+						             style='color:#1b60ba' target='_blank' rel='noreferrer noopener'>5120 KB</a> or less. If you send files of other formats, the total size \
184
+						             of the files plus the size of the text should be 600 KB or less. <a href='https://www.twilio.com/docs/sms/accepted-mime-types' \
185
+						             style='color:#1b60ba' target='_blank' rel='noreferrer noopener'>Allowed formats</a> are jpeg/jpg, png, gif, bmp, tiff/tif, au, snd, l16, \
186
+						             wav/wave, aiff, pcm, mp4, ogg, ra, ram, 3gpp, 3gpp2, ac3, webm, amr, mpg, mpeg, mov, qt, h261, h263, h264, vcf, vcard, x-vcard, csv, rtf, ics, \
187
+						             ical, ifb, icalendar, directory, pdf and pkpass. Deliverability of MMS messages depends on the carrier and device of the receiver. Carriers \
188
+						             can reject MMS messages with files exceeding a certain size. The best deliverability is achieved when sending jpeg/jpg, png or gif files, \
189
+						             with a total message size of 600 KB or less. Twilio allows sending MMS messages from US or Canadian phone numbers to other US or Canadian phone \
190
+						             numbers. However, MMS messages sent internationally will be converted to SMS messages with URL links to the included files. Although all the \
191
+						             specified file types can be added to the MMS, only the most common media file types (jpeg/jpg, png, gif, wav/wave, mp4, ogg, etc.) can be \
192
+						             previewed in the adjoining pane."
193
+					  $("#tooltiptextfourth").html(infonotecontent);
194
+
195
+                                          // Append 'Twilio' to the 'see balance' drop-down list
196
+                                          $("#smsprovider").append("<option value='Twilio' class='selectsmsprov'>Twilio</option>");
197
+
198
+                                } else if (unqprovider == 'Fl') {
199
+
200
+					  validExtensions = ["jpg", "jpeg", "png", "gif", "bmp", "3gp", "mp4", "avi", "amr", "midi", "wav", "wave", "ac3", "mp3"];
201
+					  // Maximum size of message text + files in KB
202
+					  maximumsize = 750;
203
+					  maximumsizeinit = 750;
204
+					  maxsizenonimage = 600;
205
+					  maximumfilenumber = 10;
206
+					  chosenProvFullName = "Flowroute";
207
+					  infonotecontent = "To send an MMS, you can upload media files or pick them from Nextcloud. You can add up to 10 files. For Flowroute, if you send only jpeg/jpg, \
208
+							     png or gif files, the size of all the files plus the size of the text should be \
209
+							     <a href='https://developer.flowroute.com/api/messages/v2.1/send-an-mms/' style='color:#1b60ba' target='_blank' \
210
+							     rel='noreferrer noopener'>750 KB</a> or less. If you send files of other formats, the total \
211
+							     size of the files plus the size of the text should be 600 KB or less. \
212
+							     <a href='https://support.flowroute.com/937402-What-file-types-does-Flowroute-MMS-support' style='color:#1b60ba' target='_blank' \
213
+							     rel='noreferrer noopener'>Allowed formats</a> are jpeg/jpg, png, gif, bmp, 3gp, mp4, avi, amr, midi, wav/wave, ac3 and mp3. Flowroute accounts are \
214
+							     limited to <a href='https://developer.flowroute.com/docs/sms-mms-best-practices/#sending-and-receiving-limitations' style='color:#1b60ba' \
215
+							     target='_blank' rel='noreferrer noopener'>1 MMS message per second</a>. Deliverability of MMS messages depends on the carrier and device \
216
+							     of the receiver. Carriers can reject MMS messages with files exceeding a certain size. The best deliverability is achieved when sending \
217
+							     jpeg/jpg, png or gif files, with a total message size of 600 KB or less. Flowroute allows sending MMS messages only from US or Canadian phone \
218
+							     numbers to other US or Canadian phone numbers. Although all the specified file types can be added to the MMS, only the most common media file \
219
+							     types (jpeg/jpg, png, gif, wav/wave, mp4, etc.) can be previewed in the adjoining pane."
220
+					  $("#tooltiptextfourth").html(infonotecontent);
221
+
222
+                                          // Append 'Flowroute' to the 'see balance' drop-down list
223
+                                          $("#smsprovider").append("<option value='Flowroute' class='selectsmsprov'>Flowroute</option>");
224
+                                }
225
+                     } else {
226
+                                $('#currentsmsnmbrs').append("<option value='' class='optselectsmsnb' selected disabled>No IDs</option>");
227
+                     }
228
+
229
+                     $("#smsnumbersdiv").removeClass('icon-loading');
230
+          }
231
+  });
232
+
233
+  // Clean the SMS_Relentless/temp_files directory
234
+  function cleanTempDirectory() {
235
+
236
+     var cleanflUrl = OC.generateUrl("/apps/sms_relentless/user/cleantempdir");
237
+
238
+     $.ajax({
239
+          url: cleanflUrl + '/' + userid,
240
+          type: "POST",
241
+          data: { userid: userid },
242
+          cache: false,
243
+          processData: false,
244
+          contentType: false
245
+     });
246
+  }
247
+  cleanTempDirectory();
248
+
249
+  // Clean the SMS_Relentless/multiple_recipients directory
250
+  function cleanMultRecDirectory() {
251
+
252
+     var cleanflUrl = OC.generateUrl("/apps/sms_relentless/user/cleanmultrecdir");
253
+
254
+     $.ajax({
255
+          url: cleanflUrl + '/' + userid,
256
+          type: "POST",
257
+          data: { userid: userid },
258
+          cache: false,
259
+          processData: false,
260
+          contentType: false
261
+     });
262
+  }
263
+  cleanMultRecDirectory();
264
+
265
+  // Check the available balance
266
+  $("#smsprovider").on("change", function () {
267
+
268
+     var provider = $('#smsprovider :selected').val();
269
+
270
+     if (provider == "Telnyx") {
271
+
272
+        var gettelbalance = function() {
273
+
274
+          $('#currentbalance').addClass('icon-loading');
275
+
276
+          var gettelbalanceUrl = OC.generateUrl("/apps/sms_relentless/user/getbalancetel");
277
+
278
+          $.ajax({
279
+              url: gettelbalanceUrl + '/' + userid,
280
+              type: "POST",
281
+              data: { userid: userid },
282
+              cache: false,
283
+              processData: false,
284
+              contentType: false,
285
+              success: function(currentbalancetel) {
286
+
287
+                     $('#currentbalance').empty();
288
+                     $('#currentbalance').text(currentbalancetel);
289
+                     $('#currentbalance').removeClass('icon-loading');
290
+              }
291
+          });
292
+        }
293
+
294
+        gettelbalance();
295
+
296
+     } else if (provider == "Plivo") {
297
+
298
+          var getnexbalance = function() {
299
+
300
+            $('#currentbalance').addClass('icon-loading');
301
+
302
+            var getnexbalanceUrl = OC.generateUrl("/apps/sms_relentless/user/getbalancenex");
303
+
304
+            $.ajax({
305
+                url: getnexbalanceUrl + '/' + userid,
306
+                type: "POST",
307
+                data: { userid: userid },
308
+                cache: false,
309
+                processData: false,
310
+                contentType: false,
311
+                success: function(currentbalancenex) {
312
+
313
+                     $('#currentbalance').empty();
314
+                     $('#currentbalance').text(currentbalancenex);
315
+                     $('#currentbalance').removeClass('icon-loading');
316
+                }
317
+            });
318
+          }
319
+
320
+          getnexbalance();
321
+
322
+     } else if (provider == "Twilio") {
323
+
324
+          var gettwilbalance = function() {
325
+
326
+            $('#currentbalance').addClass('icon-loading');
327
+
328
+            var gettwilbalanceUrl = OC.generateUrl("/apps/sms_relentless/user/getbalancetwil");
329
+
330
+            $.ajax({
331
+                url: gettwilbalanceUrl + '/' + userid,
332
+                type: "POST",
333
+                data: { userid: userid },
334
+                cache: false,
335
+                processData: false,
336
+                contentType: false,
337
+                success: function(currentbalancetwil) {
338
+
339
+                     $('#currentbalance').empty();
340
+                     $('#currentbalance').text(currentbalancetwil);
341
+                     $('#currentbalance').removeClass('icon-loading');
342
+                }
343
+            });
344
+          }
345
+
346
+          gettwilbalance();
347
+
348
+     } else if (provider == "Flowroute") {
349
+
350
+          var getflowbalance = function() {
351
+
352
+            $('#currentbalance').addClass('icon-loading');
353
+
354
+            var getflowbalanceUrl = OC.generateUrl("/apps/sms_relentless/user/getbalanceflow");
355
+
356
+            $.ajax({
357
+                url: getflowbalanceUrl + '/' + userid,
358
+                type: "POST",
359
+                data: { userid: userid },
360
+                cache: false,
361
+                processData: false,
362
+                contentType: false,
363
+                success: function(currentbalanceflow) {
364
+
365
+                     $('#currentbalance').empty();
366
+                     $('#currentbalance').text(currentbalanceflow);
367
+                     $('#currentbalance').removeClass('icon-loading');
368
+                }
369
+            });
370
+          }
371
+
372
+          getflowbalance();
373
+
374
+       } else if (provider == "") {
375
+                $('#currentbalance').text("");
376
+                $('#currentbalance').removeClass('icon-loading');
377
+       }
378
+  });
379
+
380
+
381
+  // If a Sender ID is selected
382
+  $("#currentsmsnmbrs").on("change", function () {
383
+
384
+          if ($("#currentsmsnmbrs option[value='']").length > 0) {
385
+
386
+              selectedid = $('#currentsmsnmbrs :selected').val();
387
+              var setIdsplit = selectedid.split(":");
388
+	      chosenProvider = setIdsplit[0];
389
+
390
+              // Set the valid MMS file extensions, maximum MMS message size, maximum message size when non-jpeg/png/gif files are included, maximum number of files and the info note content, for the chosen provider
391
+	      if (chosenProvider == "Tx") {
392
+		  validExtensions = ["jpg", "jpeg", "png", "gif", "mp3", "ogg", "amr", "mp4", "3gpp", "pdf", "vcf", "vcard", "txt"];
393
+		  // Maximum size of message text + files in KB
394
+		  maximumsize = 1024;
395
+                  maximumsizeinit = 1024;
396
+		  maxsizenonimage = 600;
397
+		  maximumfilenumber = 10;
398
+                  chosenProvFullName = "Telnyx";
399
+                  infonotecontent = "To send an MMS, you can upload media files or pick them from Nextcloud. You can add up to 10 files. For Telnyx, if you send only jpeg/jpg, png \
400
+                                     or gif files, the size of all the files plus the size of the text should be \
401
+                                     <a href='https://support.telnyx.com/en/articles/4450150-faqs-about-mms-at-telnyx' style='color:#1b60ba' target='_blank' \
402
+                                     rel='noreferrer noopener'>1024 KB</a> or less. If you send files of other formats, the total size of the files plus the size of the text should \
403
+                                     be 600 KB or less. Allowed formats are jpeg/jpg, png, gif, mp3, ogg, amr, mp4, 3gpp, pdf, vcf, vcard and txt. By default, Telnyx accounts are \
404
+                                     limited to <a href='https://support.telnyx.com/en/articles/3102823-mms-sending-and-receiving' style='color:#1b60ba' target='_blank' \
405
+                                     rel='noreferrer noopener'>1 MMS message per second</a>. Deliverability of MMS messages depends on the carrier and device of the receiver. \
406
+                                     Carriers can reject MMS messages with files exceeding a certain size. The best deliverability is achieved when sending jpeg/jpg, png or \
407
+                                     gif files, with a total message size of 600 KB or less. Telnyx allows sending MMS messages only from US or Canadian phone numbers to other US \
408
+                                     or Canadian phone numbers. Although all the specified file types can be added to the MMS, only the most common media file types (jpeg/jpg, png, \
409
+                                     gif, mp4, ogg, etc.) can be previewed in the adjoining pane.";
410
+                  $("#tooltiptextfourth").html(infonotecontent);
411
+	      } else if (chosenProvider == "Pl") {
412
+		  validExtensions = ["jpg", "jpeg", "png", "gif", "bmp", "wav", "wave", "mp4", "amr", "mpg", "mpeg", "3gpp", "3gpp2", "vcf", "vcard", "x-vcard", "ics", "ical", "ifb", 
413
+                                     "icalendar", "csv", "txt", "pdf", "xls"];
414
+		  // Maximum size of message text + files in KB
415
+		  maximumsize = 5120;
416
+                  maximumsizeinit = 5120;
417
+		  maxsizenonimage = 600;
418
+		  maximumfilenumber = 10;
419
+                  chosenProvFullName = "Plivo";
420
+                  infonotecontent = "To send an MMS, you can upload media files or pick them from Nextcloud. You can add up to 10 files. For Plivo, if you send only jpeg/jpg, png \
421
+                                     or gif files, the size of all the files plus the size of the text should be \
422
+                                     <a href='https://support.plivo.com/hc/en-us/articles/360042280091-What-are-the-MMS-upload-size-limits-and-file-restrictions-' \
423
+                                     style='color:#1b60ba' target='_blank' rel='noreferrer noopener'>5120 KB</a> or less. If you send files of other formats, the total size \
424
+                                     of the files plus the size of the text should be 600 KB or less. <a href='https://support.plivo.com/hc/en-us/articles/360042273051' \
425
+                                     style='color:#1b60ba' target='_blank' rel='noreferrer noopener'>Allowed formats</a> are jpeg/jpg, png, gif, bmp, wav/wave, mp4, amr, mpg, mpeg, 3gpp, \
426
+                                     3gpp2, vcf, vcard, x-vcard, ics, ical, ifb, icalendar, csv, txt, pdf and xls. Deliverability of MMS messages depends on the carrier and \
427
+                                     device of the receiver. Carriers can reject MMS messages with files exceeding a certain size. The best deliverability is \
428
+                                     achieved when sending jpeg/jpg, png or gif files, with a total message size of 600 KB or less. Plivo allows sending MMS messages \
429
+                                     only from US or Canadian phone numbers to other US or Canadian phone numbers. Although all the specified file types can be added to the MMS, \
430
+                                     only the most common media file types (jpeg/jpg, png, gif, wav/wave, mp4, etc.) can be previewed in the adjoining pane.";
431
+                  $("#tooltiptextfourth").html(infonotecontent);
432
+	      } else if (chosenProvider == "Tw") {
433
+		  validExtensions = ["jpg", "jpeg", "png", "gif", "bmp", "tiff", "tif", "au", "snd", "l16", "wav", "wave", "aiff", "pcm", "mp4", "ogg", "ra", "ram", "3gpp", 
434
+                                     "3gpp2", "ac3", "webm", "amr", "mpg", "mpeg", "mov", "qt", "h261", "h263", "h264", "vcf", "vcard", "x-vcard", "csv", "rtf", "ics", "ical", "ifb", 
435
+                                     "icalendar", "directory", "pdf", "pkpass"];
436
+		  // Maximum size of message text + files in KB
437
+		  maximumsize = 5120;
438
+                  maximumsizeinit = 5120;
439
+		  maxsizenonimage = 600;
440
+		  maximumfilenumber = 10;
441
+                  chosenProvFullName = "Twilio";
442
+                  infonotecontent = "To send an MMS, you can upload media files or pick them from Nextcloud. You can add up to 10 files. For Twilio, if you send only jpeg/jpg, png \
443
+                                     or gif files, the size of all the files plus the size of the text should be \
444
+                                     <a href='https://support.twilio.com/hc/en-us/articles/360018832773-Twilio-Programmable-SMS-Supported-File-Types-and-Size-Limits-for-MMS-Media-Messages' \
445
+                                     style='color:#1b60ba' target='_blank' rel='noreferrer noopener'>5120 KB</a> or less. If you send files of other formats, the total size \
446
+                                     of the files plus the size of the text should be 600 KB or less. <a href='https://www.twilio.com/docs/sms/accepted-mime-types' \
447
+                                     style='color:#1b60ba' target='_blank' rel='noreferrer noopener'>Allowed formats</a> are jpeg/jpg, png, gif, bmp, tiff/tif, au, snd, l16, \
448
+                                     wav/wave, aiff, pcm, mp4, ogg, ra, ram, 3gpp, 3gpp2, ac3, webm, amr, mpg, mpeg, mov, qt, h261, h263, h264, vcf, vcard, x-vcard, csv, rtf, ics, \
449
+                                     ical, ifb, icalendar, directory, pdf and pkpass. Deliverability of MMS messages depends on the carrier and device of the receiver. Carriers \
450
+                                     can reject MMS messages with files exceeding a certain size. The best deliverability is achieved when sending jpeg/jpg, png or gif files, \
451
+                                     with a total message size of 600 KB or less. Twilio allows sending MMS messages from US or Canadian phone numbers to other US or Canadian phone \
452
+                                     numbers. However, MMS messages sent internationally will be converted to SMS messages with URL links to the included files. Although all the \
453
+                                     specified file types can be added to the MMS, only the most common media file types (jpeg/jpg, png, gif, wav/wave, mp4, ogg, etc.) can be \
454
+                                     previewed in the adjoining pane."
455
+                  $("#tooltiptextfourth").html(infonotecontent);
456
+	      } else if (chosenProvider == "Fl") {
457
+		  validExtensions = ["jpg", "jpeg", "png", "gif", "bmp", "3gp", "mp4", "avi", "amr", "midi", "wav", "wave", "ac3", "mp3"];
458
+		  // Maximum size of message text + files in KB
459
+		  maximumsize = 750;
460
+                  maximumsizeinit = 750;
461
+		  maxsizenonimage = 600;
462
+		  maximumfilenumber = 10;
463
+                  chosenProvFullName = "Flowroute";
464
+                  infonotecontent = "To send an MMS, you can upload media files or pick them from Nextcloud. You can add up to 10 files. For Flowroute, if you send only jpeg/jpg, \
465
+                                     png or gif files, the size of all the files plus the size of the text should be \
466
+                                     <a href='https://developer.flowroute.com/api/messages/v2.1/send-an-mms/' style='color:#1b60ba' target='_blank' \
467
+                                     rel='noreferrer noopener'>750 KB</a> or less. If you send files of other formats, the total \
468
+                                     size of the files plus the size of the text should be 600 KB or less. \
469
+                                     <a href='https://support.flowroute.com/937402-What-file-types-does-Flowroute-MMS-support' style='color:#1b60ba' target='_blank' \
470
+                                     rel='noreferrer noopener'>Allowed formats</a> are jpeg/jpg, png, gif, bmp, 3gp, mp4, avi, amr, midi, wav/wave, ac3 and mp3. Flowroute accounts are \
471
+                                     limited to <a href='https://developer.flowroute.com/docs/sms-mms-best-practices/#sending-and-receiving-limitations' style='color:#1b60ba' \
472
+                                     target='_blank' rel='noreferrer noopener'>1 MMS message per second</a>. Deliverability of MMS messages depends on the carrier and device \
473
+                                     of the receiver. Carriers can reject MMS messages with files exceeding a certain size. The best deliverability is achieved when sending \
474
+                                     jpeg/jpg, png or gif files, with a total message size of 600 KB or less. Flowroute allows sending MMS messages only from US or Canadian phone \
475
+                                     numbers to other US or Canadian phone numbers. Although all the specified file types can be added to the MMS, only the most common media file \
476
+                                     types (jpeg/jpg, png, gif, wav/wave, mp4, etc.) can be previewed in the adjoining pane."
477
+                  $("#tooltiptextfourth").html(infonotecontent);
478
+	      }
479
+
480
+          } else { selectedid = ''; }
481
+  });
482
+
483
+  // Check the checkbox to send SMS message to multiple recipients
484
+  $('#tomultchckbx').change(function() {
485
+      if ($(this).is(':checked')) {
486
+          $("#multiplerecivers").css("display", "block");
487
+          $("#smstodiv").css("visibility", "hidden");
488
+          $("#smsto").val("");
489
+
490
+          receiversNumbers.length = 0;
491
+
492
+      } else {
493
+          $("#multiplerecivers").css("display", "none");
494
+          $("#smstodiv").css("visibility", "visible");
495
+
496
+          // Remove the uploaded files' names if any
497
+          $("#induploadfile").remove();
498
+
499
+          // Remove all the files from the SMS_Relentless/multiple_recipients directory
500
+          cleanMultRecDirectory();
501
+
502
+          $("#smstables").empty();
503
+          $("#stopAutoRefreshRec,#stopAutoRefreshSent").css("display", "none");
504
+
505
+          receiversNumbers.length = 0;
506
+      }
507
+  });
508
+
509
+  // Upload the file with the recipients' phone numbers
510
+  $("#uploadfileforsms").change(function(e) {
511
+
512
+     $("#fileuploadednm").empty();
513
+
514
+     receiversNumbers.length = 0;
515
+
516
+     OC.msg.startAction("#sms_upload_msg", t("sms_relentless", "Uploading ..."));
517
+
518
+     var baseUrl = OC.generateUrl("/apps/sms_relentless/user/upload_numbers_file");
519
+
520
+     var formData = new FormData();
521
+     formData.append('uploadfileforsms', $('#uploadfileforsms')[0].files[0]);
522
+
523
+     var fileup = $('#uploadfileforsms').val();
524
+     var fileuptrim = fileup.split('\\').pop();
525
+
526
+     $('#fileuploadednm').append("<div id='induploadfile' class='indgenflcls'><div id='indfilediv' class='indivflcls'>" + fileuptrim + "</div><div id='indivflremove' class='indupfldl'>X</div></div><br>");
527
+
528
+     var extension = fileup.replace(/^.*\./, '');
529
+
530
+     if (extension == fileup) {
531
+         extension = "";
532
+     } else {
533
+         extension = extension.toLowerCase();
534
+     }
535
+
536
+     var validExtensionsmrec = ["txt", "csv"];
537
+
538
+     if (jQuery.inArray(extension, validExtensionsmrec) != -1) {
539
+
540
+       if (selectedid != '') {
541
+
542
+               $.ajax({
543
+                 url: baseUrl + '/' + userid,
544
+                 type: "POST",
545
+                 data: formData,
546
+                 cache: false,
547
+                 processData: false,
548
+                 contentType: false,
549
+                 success: function(numberarray) {
550
+
551
+		    if (numberarray.length > 0) {
552
+
553
+		        // Get the array of the receivers' phone numbers
554
+		        if (chosenProvider == "Tx") {
555
+
556
+		             for(key in numberarray) {
557
+		                 receiversNumbers.push("+"+numberarray[key]);
558
+		             }
559
+
560
+		        } else if (chosenProvider == "Pl") {
561
+
562
+		             for(key in numberarray) {
563
+		                 receiversNumbers.push(numberarray[key]);
564
+		             }
565
+
566
+		          } else if (chosenProvider == "Tw") {
567
+
568
+		             for(key in numberarray) {
569
+		                 receiversNumbers.push(numberarray[key]);
570
+		             }
571
+		          } else if (chosenProvider == "Fl") {
572
+
573
+		             for(key in numberarray) {
574
+		                 receiversNumbers.push(numberarray[key]);
575
+		             }
576
+		          }
577
+
578
+		    } else {
579
+                          showAlert("The uploaded file doesn't seem to contain any valid phone numbers. Please upload a txt or csv file that contains phone numbers separated by commas, semicolons, vertical bars or new lines.");
580
+		    }
581
+                            
582
+                    // Preview the uploaded file
583
+                    var smsfilename = e.target.files[0].name;
584
+                    var baseUrl = OC.generateUrl("/remote.php/webdav/SMS_Relentless/temp_files/"+smsfilename);
585
+
586
+                    var reader = new FileReader();
587
+                    reader.readAsText(e.target.files[0]);
588
+                    reader.onload = function(e) {
589
+                          $("#smstables").empty();
590
+                          $("#stopAutoRefreshRec,#stopAutoRefreshSent").css("display", "none");
591
+                          $("#smstables").append(e.target.result.replace(/(?:\r\n|\r|\n)/g, '<br>'));
592
+                    };
593
+
594
+                    $("#smstables").show();
595
+
596
+                    $('#sms_upload_msg').hide();
597
+                    $('#smstables').removeClass('icon-loading');
598
+
599
+                  },
600
+                  error: function() {
601
+                             showAlert("Error while uploading the file.");
602
+                  }
603
+               });
604
+
605
+        } else {
606
+               showAlert("Please choose a Sender ID from the Set ID drop-down list!");
607
+               $("#induploadfile").remove();
608
+               $('#sms_upload_msg').hide();
609
+               $('#smstables').removeClass('icon-loading');
610
+        }
611
+
612
+     } else {
613
+          showAlert("The file type is not supported ! Supported formats are txt and csv.");
614
+          $('#pf_upload_msg').hide();
615
+          $('#smstables').removeClass('icon-loading');
616
+
617
+          $("#induploadfile").remove();
618
+          $("#sms_upload_msg").hide();
619
+     }
620
+
621
+     // Preview uploaded file when clicked
622
+     $("#indfilediv").on("click", function() {
623
+
624
+          var smsfilename = e.target.files[0].name;
625
+          var baseUrl = OC.generateUrl("/remote.php/webdav/SMS_Relentless/temp_files/"+smsfilename);
626
+
627
+          var reader = new FileReader();
628
+          reader.readAsText(e.target.files[0]);
629
+          reader.onload = function(e) {
630
+                  $("#smstables").empty();
631
+                  $("#stopAutoRefreshRec,#stopAutoRefreshSent").css("display", "none");
632
+                  $("#smstables").append(e.target.result.replace(/(?:\r\n|\r|\n)/g, '<br>'));
633
+          };
634
+
635
+          $("#smstables").show();
636
+          $('#sms_upload_msg').hide();
637
+          $('#smstables').removeClass('icon-loading');
638
+     });
639
+
640
+     // Remove selected file
641
+     $("#indivflremove").on("click", function() {
642
+
643
+          $("#induploadfile").remove();
644
+          $("#sms_upload_msg").hide();
645
+
646
+          receiversNumbers.length = 0;
647
+
648
+          cleanMultRecDirectory();
649
+     });
650
+
651
+  });
652
+
653
+  // Show the number of characters entered in the SMS textarea and the text size in KB
654
+  $("#smstext").on('input', function() {
655
+
656
+     $("#char_count").css("display", "inline");
657
+
658
+     $("#mtextSize").css("display", "inline");
659
+
660
+     $(".maxmessagelength").css("display", "inline-block");
661
+
662
+     $("#countchnb").text($(this).val().length);
663
+
664
+     var textsize = encodeURIComponent($(this).val()).replace(/%[A-F\d]{2}/g, 'U').length;
665
+     textsizekb = parseFloat(textsize/1024).toFixed(4);
666
+     $("#textsizeinkb").text(textsizekb);
667
+
668
+     if ($(this).val().length > charcolorthr) {
669
+         $("#char_count").css("color", "#BB2E4B");
670
+     } else {
671
+         $("#char_count").css("color", "#4cbc86;");
672
+     }
673
+
674
+  });
675
+
676
+
677
+  // Check the checkbox to send file(s) as MMS
678
+  $('#mediafilechckbx').change(function() {
679
+
680
+      if ($(this).is(':checked')) {
681
+
682
+          isMMS = 1;
683
+          if (selectedid == '') {
684
+              showAlert("Please, first choose a Sender ID from the Set ID drop-down list !");
685
+              $(this).prop("checked", false);
686
+              isMMS = 0;
687
+              return;
688
+          }
689
+          $("#upmediafiles").css("display", "block");
690
+          $("#submitsms").prop("value", "Send MMS");
691
+          $("#smstext").prop("placeholder", "Enter a message here, then press 'Send MMS'.");
692
+
693
+      } else {
694
+
695
+          isMMS = 0;
696
+          $("#upmediafiles").css("display", "none");
697
+          $("#submitsms").prop("value", "Send SMS");
698
+          $("#smstext").prop("placeholder", "Enter a message here, then press 'Send SMS'.");
699
+
700
+          // Remove the uploaded files' names if any
701
+          $(".indgenflclsmms").each(function() { $(this).remove(); });
702
+          $(".indgenpckfls").each(function() { $(this).remove(); });
703
+
704
+          // Remove all the files from the SMS_Relentless/temp_files directory
705
+          cleanTempDirectory();
706
+
707
+          $("#smstables").empty();
708
+          $("#stopAutoRefreshRec,#stopAutoRefreshSent").css("display", "none");
709
+
710
+          uploadedtomms = [];
711
+          n = 1;
712
+
713
+          msgtotalflsize = 0;
714
+
715
+          $("#filestotsize").hide();
716
+      }
717
+  });
718
+
719
+
720
+  // Check if the uploaded files' format is jpeg, png or gif and adjust the maximum cumulative size of files, if necessary
721
+  function adjustMaximumSize(uploadedtomms) {
722
+				      
723
+      var nonimgcheck = 0;
724
+      for (var u = 0; u < uploadedtomms.length; u++) {
725
+	   var crupfl = uploadedtomms[u];
726
+	   var extensionup = crupfl.replace(/^.*\./, '');
727
+	   if ($.inArray(extensionup, ["jpg", "jpeg", "png", "gif"]) === -1) {
728
+	       nonimgcheck = 1;
729
+	   }
730
+      }
731
+
732
+      if (nonimgcheck == 0) { maximumsize = maximumsizeinit; }
733
+  }
734
+
735
+  // Upload files to be sent as MMS
736
+  $("#uploadfileformms").change(function(e) {
737
+
738
+     OC.msg.startAction("#pf_upload_msg", t("sms_relentless", "Uploading ..."));
739
+     $('#smstables').addClass('icon-loading');
740
+     $('#filestotsize').show();
741
+
742
+     var userid = "<?php p($userId); ?>";
743
+     var baseUrl = OC.generateUrl("/apps/sms_relentless/user/uploadfile");
744
+
745
+     var formData = new FormData();
746
+     formData.append('uploadfileformms', $('#uploadfileformms')[0].files[0]);
747
+
748
+     var currentflsize = $('#uploadfileformms')[0].files[0].size;
749
+
750
+     // Add the size of the current file to the total size of all the files
751
+     msgtotalflsize += Math.floor((currentflsize/1024) * 100)/100;
752
+
753
+     var fileup = $('#uploadfileformms').val();
754
+     var fileuptrim = fileup.split('\\').pop();
755
+
756
+     if ($.inArray(fileuptrim, uploadedtomms) != -1) {
757
+         var duplicatescheck = 1;
758
+     } else { 
759
+         var duplicatescheck = 0;
760
+     }
761
+
762
+     var extension = fileup.replace(/^.*\./, '');
763
+
764
+     if (extension == fileup) {
765
+         extension = "";
766
+     } else {
767
+         extension = extension.toLowerCase();
768
+     }
769
+
770
+     // If the uploaded file's format is different from jpeg, png or gif, the maximum allowed size of the message will be lower
771
+     if (($.inArray(extension, ["jpg", "jpeg", "png", "gif"]) === -1) && (msgtotalflsize <= Number(maximumsize) - Number(textsizekb))) {
772
+         maximumsize = maxsizenonimage;
773
+     }
774
+
775
+     if ($.inArray(extension, validExtensions) != -1) {
776
+
777
+       if (duplicatescheck == 0) {
778
+
779
+         if (msgtotalflsize <= Number(maximumsize) - Number(textsizekb)) {
780
+
781
+            if (n <= maximumfilenumber) {
782
+
783
+               $.ajax({
784
+                 url: baseUrl + '/' + userid,
785
+                 type: "POST",
786
+                 data: formData,
787
+                 cache: false,
788
+                 processData: false,
789
+                 contentType: false,
790
+                 success: function(totalflsize) {
791
+
792
+                   uploadedtomms.push(fileuptrim);
793
+
794
+                   $('#filessizetext').text(totalflsize);
795
+
796
+                   var rectotfilesz = parseFloat(totalflsize);
797
+
798
+                   if (rectotfilesz <= maximumsize) {
799
+                       $('#submitsms').attr("disabled", false);
800
+                       $('#filestotsize').css('color', '#189558');
801
+                   } else {
802
+                       $('#filestotsize').css('color', '#ba3555');
803
+                       showAlert("Error ! For "+ chosenProvFullName +", for the chosen files format, the size of all the included files plus the size of the text cannot exceed "+ maximumsize +" KB !");
804
+                       $('#submitsms').attr("disabled", true);
805
+                       $('#smstables').removeClass('icon-loading');
806
+                       $('#pf_upload_msg').hide();
807
+                   }
808
+
809
+                   $('#mmsfileuploadednm').append("<div class='indgenflclsmms'><div id='"+n+"indfilediv' class='indivflcls'>" + n + ") " + fileuptrim + "</div><div class='indupfldl'>X</div></div>");
810
+                   n++;
811
+
812
+                   // Preview the file when you click on its name
813
+                   $("div:visible[id*='indfilediv']").each(function() {
814
+
815
+                        $(this).on("click", function(eventclck) {
816
+
817
+                           $("#mmsfoldersview").css("display", "inline-block");
818
+                           var mmsfilenameinit = $(this).text();
819
+                           var mmsfilenamesec = mmsfilenameinit.substring(mmsfilenameinit.indexOf(" ") + 1);
820
+                           var mmsfilename = mmsfilenamesec.replace("X","");
821
+                           var baseUrl = firstPathEl+"/remote.php/webdav/SMS_Relentless/temp_files/"+mmsfilename;
822
+                           var extenlst = mmsfilename.replace(/^.*\./, '');
823
+
824
+                           if (extenlst == mmsfilename) {
825
+                               extenlst = "";
826
+                           } else {
827
+                               extenlst = extenlst.toLowerCase();
828
+                           }
829
+
830
+                           $("#smstables").empty();
831
+                           $("#stopAutoRefreshRec,#stopAutoRefreshSent").css("display", "none");
832
+
833
+                           if (extenlst == 'jpg' || extenlst == 'jpeg') {
834
+                                  $("#smstables").append('<img style="width:auto;height:auto" id="uploadedjpg" src="#" />');
835
+                                  $("#uploadedjpg").attr('src', readjpg[mmsfilename]);
836
+                           } else if (extenlst == 'png') {
837
+                                  $("#smstables").append('<img style="width:auto;height:auto" id="uploadedpng" src="#" />');
838
+                                  $("#uploadedpng").attr('src', readpng[mmsfilename]);
839
+                           } else if (extenlst == 'gif') {
840
+                                  $("#smstables").append('<img style="width:auto;height:auto" id="uploadedgif" src="#" />');
841
+                                  $("#uploadedgif").attr('src', readgif[mmsfilename]);
842
+                           } else if (extenlst == 'bmp') {
843
+                                  $("#smstables").append('<img style="width:auto;height:auto" id="uploadedbmp" src="#" />');
844
+                                  $("#uploadedbmp").attr('src', readbmp[mmsfilename]);
845
+                           } else if (extenlst == 'tif' || extenlst == 'tiff') {
846
+                                  var tiffile = '/remote.php/webdav/SMS_Relentless/temp_files/'+mmsfilename;
847
+                                  var xhr = new XMLHttpRequest();
848
+                                  xhr.responseType = 'arraybuffer';
849
+                                  xhr.open('GET', tiffile);
850
+                                  xhr.onload = function (evnt) {
851
+                                      var tiff = new Tiff({buffer: xhr.response});
852
+                                      var tifcanvas = tiff.toCanvas();
853
+                                      $("#smstables").append(tifcanvas);
854
+                                  };
855
+                                  xhr.send();
856
+                           } else if (extenlst == 'pdf') {
857
+                                  var viewerclick = OC.generateUrl('/apps/files_pdfviewer/?file={file}', {file: baseUrl});
858
+                                  var $iframe = $('<iframe id="docclickview" style="width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:1041;" src="' + viewerclick + '" sandbox="allow-scripts allow-same-origin allow-popups allow-modals"></iframe>');
859
+                                  $("#smstables").append($iframe);
860
+                           } else if (extenlst == 'txt') {
861
+                                  $("#smstables").append(readtxtfile[mmsfilename]);
862
+                           } else if (extension == 'mp4') {
863
+                                  $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedmp4" src="'+ baseUrl +'"></video>');
864
+		           } else if (extension == 'ogg') {
865
+		                  $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedogg" src="'+ baseUrl +'"></video>');
866
+		           } else if (extension == 'avi') {
867
+		                  $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedavi" src="'+ baseUrl +'" type="video/avi"></video>');
868
+		           } else if (extension == 'mpg' || extension == 'mpeg') {
869
+		                  $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedmpg" src="'+ baseUrl +'"></video>');
870
+		           } else if (extension == 'wav' || extension == 'wave') {
871
+		                  $("#smstables").append('<audio width="100%" height="auto" controls><source id="uploadedwav" src="'+ baseUrl +'"></audio>');
872
+		           } else if (extension == 'mp3') {
873
+		                  $("#smstables").append('<audio width="100%" height="auto" controls><source id="uploadedmp3" src="'+ baseUrl +'" type="audio/mp3"></audio>');
874
+		           } else if (extension == 'midi') {
875
+		                  $("#smstables").append('<audio width="100%" height="auto" controls><source id="uploadedmidi" src="'+ baseUrl +'" type="audio/midi"></audio>');
876
+		           }
877
+
878
+                           $("#smstables").show();
879
+                           $("#mmsfoldersview").hide();
880
+                        });
881
+                   });
882
+
883
+                   // Remove uploaded files
884
+                   $('[class*="indupfldl"]').last().click(function() {
885
+
886
+                           var userid = "<?php p($userId); ?>";
887
+                           var baseUrl = OC.generateUrl("/apps/sms_relentless/user/removeupfile");
888
+
889
+                           var removedfilenameinit = $(this).closest('[class*="indgenflclsmms"]').find('[class*="indivflcls"]').text();
890
+
891
+                           var removedfilesplit = removedfilenameinit.split(") ");
892
+                           var removedflnb = parseInt(removedfilesplit[0]);
893
+
894
+                           $(this).closest('[class*="indgenflclsmms"]').find('[class*="indivflcls"]').hide();
895
+                           $(this).hide();
896
+
897
+                           var removedfilename = removedfilenameinit.substring(removedfilenameinit.indexOf(" ") + 1);
898
+
899
+                           uploadedtomms = $.grep(uploadedtomms, function(value) {
900
+                                           return value != removedfilename;
901
+                           });
902
+
903
+                           $.ajax({
904
+                                   url: baseUrl + '/' + userid,
905
+                                   type: "POST",
906
+                                   data: {removedfilename: removedfilename},
907
+                                   success: function(totalflsize) {
908
+
909
+                                      msgtotalflsize = totalflsize;
910
+                                      $('#filessizetext').text(totalflsize);
911
+
912
+                                      adjustMaximumSize(uploadedtomms);
913
+
914
+                                      // Check message size
915
+                                      var rectotfilesz = parseFloat(totalflsize);
916
+
917
+                                      if (rectotfilesz <= Number(maximumsize) - Number(textsizekb)) {
918
+                                          $('#submitsms').attr("disabled", false);
919
+                                          $('#filestotsize').css('color', '#189558');
920
+                                      } else {
921
+                                          $('#filestotsize').css('color', '#ba3555');
922
+                                          showAlert("Error ! For "+ chosenProvFullName +", for the chosen files format, the total size of the included files plus the size of the text cannot exceed "+ maximumsize +" KB !");
923
+                                          $('#submitsms').attr("disabled", true);
924
+                                      }
925
+
926
+                                      // Rewrite order numbers for files that follow
927
+                                      --n;
928
+                                      $("div:visible[id*='indfilediv']").each(function() {
929
+
930
+                                          var getdivtext =  $(this).text();
931
+                                          var splitdivtext = getdivtext.split(") ");
932
+                                          var currentnbvalue = parseInt(splitdivtext[0]);
933
+                                          var newnbvalue = currentnbvalue - 1;
934
+
935
+                                          if (currentnbvalue > removedflnb) {
936
+                                              var replacedstr = newnbvalue + ") " + splitdivtext[1];
937
+                                              $(this).text(replacedstr);
938
+                                          }
939
+                                      });
940
+
941
+                                      $("div:visible[id*='indflpicked']").each(function() {
942
+
943
+                                          var getdivtext =  $(this).text();
944
+                                          var splitdivtext = getdivtext.split(") ");
945
+                                          var currentnbvalue = parseInt(splitdivtext[0]);
946
+                                          var newnbvalue = currentnbvalue - 1;
947
+
948
+                                          if (currentnbvalue > removedflnb) {
949
+                                              var replacedstr = newnbvalue + ") " + splitdivtext[1];
950
+                                              $(this).text(replacedstr);
951
+                                          }
952
+                                      });
953
+
954
+                                   },
955
+                                   error: function() {
956
+                                              showAlert("Error while removing the file(s).");
957
+                                   }
958
+                           });
959
+
960
+                           $('#smstables').removeClass('icon-loading');
961
+                           $("#smstables").empty();
962
+                   });
963
+
964
+                   // Preview the uploaded file
965
+                   $("#mmsfoldersview").css("display", "inline-block");
966
+                   var mmsfilename = e.target.files[0].name;
967
+                   var baseUrl = firstPathEl+"/remote.php/webdav/SMS_Relentless/temp_files/"+mmsfilename;
968
+
969
+                   $("#smstables").empty();
970
+                   $("#stopAutoRefreshRec,#stopAutoRefreshSent").css("display", "none");
971
+
972
+                   if (extension == 'jpg' || extension == 'jpeg') {
973
+                              $("#smstables").append('<img style="width:auto;height:auto" id="uploadedjpg" src="#" />');
974
+
975
+                              var reader = new FileReader();
976
+                              reader.onload = function (e) {
977
+                                  readjpg[mmsfilename] = e.target.result;
978
+                                  $("#uploadedjpg").attr('src', readjpg[mmsfilename]);
979
+                              }
980
+                              reader.readAsDataURL(e.target.files[0]);
981
+                   } else if (extension == 'png') {
982
+                              $("#smstables").append('<img style="width:auto;height:auto" id="uploadedpng" src="#" />');
983
+
984
+                              var reader = new FileReader();
985
+                              reader.onload = function (e) {
986
+                                  readpng[mmsfilename] = e.target.result;
987
+                                  $("#uploadedpng").attr('src', readpng[mmsfilename]);
988
+                              }
989
+                              reader.readAsDataURL(e.target.files[0]);
990
+
991
+                   } else if (extension == 'gif') {
992
+                              $("#smstables").append('<img style="width:auto;height:auto" id="uploadedgif" src="#" />');
993
+
994
+                              var reader = new FileReader();
995
+                              reader.onload = function (e) {
996
+                                  readgif[mmsfilename] = e.target.result;
997
+                                  $("#uploadedgif").attr('src', readgif[mmsfilename]);
998
+                              }
999
+                              reader.readAsDataURL(e.target.files[0]);
1000
+
1001
+                   } else if (extension == 'bmp') {
1002
+                              $("#smstables").append('<img style="width:auto;height:auto" id="uploadedbmp" src="#" />');
1003
+
1004
+                              var reader = new FileReader();
1005
+                              reader.onload = function (e) {
1006
+                                  readbmp[mmsfilename] = e.target.result;
1007
+                                  $("#uploadedbmp").attr('src', readbmp[mmsfilename]);
1008
+                              }
1009
+                              reader.readAsDataURL(e.target.files[0]);
1010
+
1011
+                   } else if (extension == 'tif' || extension == 'tiff') {
1012
+                              var tiffile = '/remote.php/webdav/SMS_Relentless/temp_files/'+mmsfilename;
1013
+                              var xhr = new XMLHttpRequest();
1014
+                              xhr.responseType = 'arraybuffer';
1015
+                              xhr.open('GET', tiffile);
1016
+                              xhr.onload = function (e) {
1017
+                                  var tiff = new Tiff({buffer: xhr.response});
1018
+                                  var tifcanvas = tiff.toCanvas();
1019
+                                  $("#smstables").append(tifcanvas);
1020
+                              };
1021
+                              xhr.send();
1022
+
1023
+                   } else if (extension == 'pdf') {
1024
+                              var viewer = OC.generateUrl('/apps/files_pdfviewer/?file={file}', {file: baseUrl});
1025
+                              var $iframe = $('<iframe id="docviewer" style="width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:1041;" src="' + viewer + '" sandbox="allow-scripts allow-same-origin allow-popups allow-modals"></iframe>');
1026
+                              $("#smstables").append($iframe);
1027
+
1028
+                   } else if (extension == 'txt') {
1029
+                              var reader = new FileReader();
1030
+                              reader.readAsText(e.target.files[0]);
1031
+                              reader.onload = function(e) {
1032
+                                  readtxtfile[mmsfilename] = e.target.result.replace(/(?:\r\n|\r|\n)/g, '<br>');
1033
+                                  $("#smstables").append(readtxtfile[mmsfilename]);
1034
+                              };
1035
+                   } else if (extension == 'mp4') {
1036
+                              $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedmp4" src="'+ baseUrl +'"></video>');
1037
+                   } else if (extension == 'ogg') {
1038
+                              $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedogg" src="'+ baseUrl +'"></video>');
1039
+                   } else if (extension == 'avi') {
1040
+                              $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedavi" src="'+ baseUrl +'" type="video/avi"></video>');
1041
+                   } else if (extension == 'mpg' || extension == 'mpeg') {
1042
+                              $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedmpg" src="'+ baseUrl +'"></video>');
1043
+                   } else if (extension == 'wav' || extension == 'wave') {
1044
+                              $("#smstables").append('<audio width="100%" height="auto" controls><source id="uploadedwav" src="'+ baseUrl +'"></audio>');
1045
+                   } else if (extension == 'mp3') {
1046
+                              $("#smstables").append('<audio width="100%" height="auto" controls><source id="uploadedmp3" src="'+ baseUrl +'" type="audio/mp3"></audio>');
1047
+                   } else if (extension == 'midi') {
1048
+                              $("#smstables").append('<audio width="100%" height="auto" controls><source id="uploadedmidi" src="'+ baseUrl +'" type="audio/midi"></audio>');
1049
+                   }
1050
+
1051
+                   $("#smstables").show();
1052
+                   $('#pf_upload_msg').hide();
1053
+                   $('#smstables').removeClass('icon-loading');
1054
+                   $("#mmsfoldersview").hide();
1055
+                 },
1056
+                 error: function() {
1057
+                              showAlert("Error while uploading the file.");
1058
+                 }
1059
+               });
1060
+
1061
+            } else {
1062
+                  msgtotalflsize -= Math.floor((currentflsize/1024) * 100)/100;
1063
+                  adjustMaximumSize(uploadedtomms);
1064
+
1065
+                  showAlert("Error! You cannot send more than 10 files in one MMS !");
1066
+                  $('#pf_upload_msg').hide();
1067
+                  $('#smstables').removeClass('icon-loading');
1068
+            }
1069
+         } else {
1070
+              msgtotalflsize -= Math.floor((currentflsize/1024) * 100)/100;
1071
+              adjustMaximumSize(uploadedtomms);
1072
+
1073
+              showAlert("Error ! For "+ chosenProvFullName +", for the chosen files format, the size of all the included files plus the size of the text cannot be greater than "+ maxsizenonimage +" KB !");
1074
+              $('#pf_upload_msg').hide();
1075
+              $('#smstables').removeClass('icon-loading');
1076
+         }
1077
+       } else {
1078
+            msgtotalflsize -= Math.floor((currentflsize/1024) * 100)/100;
1079
+            adjustMaximumSize(uploadedtomms);
1080
+
1081
+            showAlert("Error ! There is already a file named '"+ fileuptrim +"' in the 'SMS_Relentless/temp_files' folder !");
1082
+            $('#pf_upload_msg').hide();
1083
+            $('#smstables').removeClass('icon-loading');
1084
+       }
1085
+
1086
+     } else {
1087
+          msgtotalflsize -= Math.floor((currentflsize/1024) * 100)/100;
1088
+          adjustMaximumSize(uploadedtomms);
1089
+
1090
+          showAlert("The file type is not supported! Supported extensions for "+ chosenProvFullName +" are: "+ validExtensions.join(", ") +".");
1091
+          $('#pf_upload_msg').hide();
1092
+          $('#smstables').removeClass('icon-loading');
1093
+     }
1094
+  });
1095
+
1096
+
1097
+  // Pick file(s) from Nextcloud, to send as MMS
1098
+  var mmsfilename = null;
1099
+
1100
+  $("#choosefilen").on("click", function(evn) {
1101
+
1102
+                OC.dialogs.filepicker(
1103
+                        t('settings', "Select a file to send as MMS."),
1104
+                        function (path) {
1105
+
1106
+                              OC.msg.startAction("#pf_choose_msg", t("sms_relentless", "Please wait ..."));
1107
+                              $('#smstables').addClass('icon-loading');
1108
+                              $('#filestotsize').show();
1109
+
1110
+                              var userid = "<?php p($userId); ?>";
1111
+                              var baseUrl = OC.generateUrl("/apps/sms_relentless/user/pickfile");
1112
+
1113
+                              mmsfilename = path.split('/').pop();
1114
+
1115
+                              if ($.inArray(mmsfilename, uploadedtomms) != -1) {
1116
+                                  var duplicatescheck = 1;
1117
+                              } else var duplicatescheck = 0;
1118
+
1119
+                              var extension = mmsfilename.replace(/^.*\./, '');
1120
+
1121
+                              if (extension == mmsfilename) {
1122
+                                  extension = "";
1123
+                              } else {
1124
+                                  extension = extension.toLowerCase();
1125
+                              }
1126
+
1127
+			      // If the picked file's format is different from jpeg, png or gif, the maximum allowed size of the message will be lower
1128
+			      if ($.inArray(extension, ["jpg", "jpeg", "png", "gif"]) === -1) {
1129
+				   maximumsize = maxsizenonimage;
1130
+			      }
1131
+
1132
+                              if ($.inArray(extension, validExtensions) != -1) {
1133
+
1134
+                                 if (duplicatescheck == 0) {
1135
+
1136
+                                    if (n <= maximumfilenumber) {
1137
+
1138
+                                       $.ajax({
1139
+                                          url: baseUrl + '/' + userid,
1140
+                                          type: "POST",
1141
+                                          data: { path: path },
1142
+                                          success: function(pickresult) {
1143
+
1144
+                                                uploadedtomms.push(mmsfilename);
1145
+
1146
+                                                var totalflsize = pickresult[0];
1147
+                                                var pickedflsize = pickresult[1];
1148
+
1149
+                                                // Check message size
1150
+                                                var rectotfilesz = parseFloat(totalflsize);
1151
+                                                var filesplustextsize = Number(rectotfilesz) + Number(textsizekb);
1152
+
1153
+                                                if (filesplustextsize <= maximumsize) {
1154
+
1155
+                                                    $("#mmsfoldersview").css("display", "inline-block");
1156
+
1157
+                                                    $('#filespickednc').append("<div class='indgenpckfls'><div id='"+n+"indflpicked' class='indivflpckd'>" + n + ") " + mmsfilename + "</div><div class='indpckfldl'>X</div></div>");
1158
+                                                    n++;
1159
+
1160
+                                                    msgtotalflsize = totalflsize;
1161
+                                                    $('#filessizetext').text(totalflsize);
1162
+                                                    $('#filestotsize').css('color', '#189558');
1163
+
1164
+                                                } else {
1165
+
1166
+                                                    uploadedtomms = uploadedtomms.filter(function(e) { return e !== mmsfilename });
1167
+                                                    $('#filestotsize').css('color', '#ba3555');
1168
+                                                    msgtotalflsize -= pickedflsize;
1169
+                                                    var baseUrlindrm = OC.generateUrl("/apps/sms_relentless/user/removeupfile");
1170
+
1171
+                                                    $.ajax({
1172
+                                                        url: baseUrlindrm + '/' + userid,
1173
+                                                        type: "POST",
1174
+                                                        data: {removedfilename: mmsfilename},
1175
+                                                        success: function(totalflsize) {
1176
+
1177
+                                                                          $('#filessizetext').text(totalflsize);
1178
+                                                                          $('#filestotsize').css('color', '#189558');
1179
+                                                                          adjustMaximumSize(uploadedtomms);
1180
+
1181
+                                                        },
1182
+                                                        error: function(totalflsize) {
1183
+                                                                          $('#filessizetext').text(totalflsize);
1184
+                                                                          if (parseFloat(totalflsize) > maximumsize) {
1185
+                                                                              $('#filestotsize').css('color', '#ba3555');
1186
+                                                                          } else { $('#filestotsize').css('color', '#189558'); }
1187
+                                                                          showAlert("Error while trying to remove the last picked file from the 'SMS_Relentless/temp_files' directory!");
1188
+                                                        }
1189
+                                                    });
1190
+
1191
+                                                    showAlert("Error ! For "+ chosenProvFullName +", for the chosen files format, the size of all the included files plus the size of the text cannot exceed "+ maximumsize +" KB !");
1192
+                                                }
1193
+
1194
+
1195
+                                                // Preview each file when you click on its name
1196
+                                                $("div:visible[id*='indflpicked']").each(function() {
1197
+                                                   $(this).on("click", function(event) {
1198
+
1199
+                                                      var mmsfilenameinit = $(this).text();
1200
+                                                      var mmsfilenamesec = mmsfilenameinit.substring(mmsfilenameinit.indexOf(" ") + 1);
1201
+                                                      var mmsfilenamesp = mmsfilenamesec.replace("X","");
1202
+                                                      var baseUrl = firstPathEl+"/remote.php/webdav/SMS_Relentless/temp_files/"+mmsfilenamesp;
1203
+                                                      var extenlst = mmsfilenamesp.replace(/^.*\./, '');
1204
+
1205
+                                                      if (extenlst == mmsfilenamesp) {
1206
+                                                           extenlst = "";
1207
+                                                      } else {
1208
+                                                           extenlst = extenlst.toLowerCase();
1209
+                                                      }
1210
+
1211
+                                                      $("#smstables").empty();
1212
+                                                      $("#stopAutoRefreshRec,#stopAutoRefreshSent").css("display", "none");
1213
+
1214
+                                                      if (extenlst == 'jpg' || extenlst == 'jpeg') {
1215
+                                                              $("#smstables").append('<img style="width:auto;height:auto" id="uploadedjpg" src="'+ baseUrl +'" />');
1216
+                                                      } else if (extenlst == 'png') {
1217
+                                                              $("#smstables").append('<img style="width:auto;height:auto" id="uploadedpng" src="'+ baseUrl +'" />');
1218
+                                                      } else if (extenlst == 'gif') {
1219
+                                                              $("#smstables").append('<img style="width:auto;height:auto" id="uploadedgif" src="'+ baseUrl +'" />');
1220
+                                                      } else if (extenlst == 'bmp') {
1221
+                                                              $("#smstables").append('<img style="width:auto;height:auto" id="uploadedbmp" src="'+ baseUrl +'" />');
1222
+                                                      } else if (extenlst == 'tif' || extenlst == 'tiff') {
1223
+                                                              var tiffile = '/remote.php/webdav/SMS_Relentless/temp_files/'+mmsfilenamesp;
1224
+                                                              var xhr = new XMLHttpRequest();
1225
+                                                              xhr.responseType = 'arraybuffer';
1226
+                                                              xhr.open('GET', tiffile);
1227
+                                                              xhr.onload = function (evnt) {
1228
+                                                                  var tiff = new Tiff({buffer: xhr.response});
1229
+                                                                  var tifcanvas = tiff.toCanvas();
1230
+                                                                  $("#smstables").append(tifcanvas);
1231
+                                                              };
1232
+                                                              xhr.send();
1233
+                                                      } else if (extenlst == 'pdf') {
1234
+                                                              var viewerclick = OC.generateUrl('/apps/files_pdfviewer/?file={file}', {file: baseUrl});
1235
+                                                              var $iframe = $('<iframe id="docclickview" style="width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:1041;" src="' + viewerclick + '" sandbox="allow-scripts allow-same-origin allow-popups allow-modals"></iframe>');
1236
+                                                              $("#smstables").append($iframe);
1237
+                                                      } else if (extenlst == 'txt') {
1238
+                                                              $("#smstables").append(readtxtfile[mmsfilenamesp]);
1239
+                                                      } else if (extension == 'mp4') {
1240
+							      $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedmp4" src="'+ baseUrl +'"></video>');
1241
+						      } else if (extension == 'ogg') {
1242
+							      $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedogg" src="'+ baseUrl +'"></video>');
1243
+						      } else if (extension == 'avi') {
1244
+							      $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedavi" src="'+ baseUrl +'" type="video/avi"></video>');
1245
+						      } else if (extension == 'mpg' || extension == 'mpeg') {
1246
+							      $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedmpg" src="'+ baseUrl +'"></video>');
1247
+						      } else if (extension == 'wav' || extension == 'wave') {
1248
+							      $("#smstables").append('<audio width="100%" height="auto" controls><source id="uploadedwav" src="'+ baseUrl +'"></audio>');
1249
+						      } else if (extension == 'mp3') {
1250
+							      $("#smstables").append('<audio width="100%" height="auto" controls><source id="uploadedmp3" src="'+ baseUrl +'" type="audio/mp3"></audio>');
1251
+						      } else if (extension == 'midi') {
1252
+							      $("#smstables").append('<audio width="100%" height="auto" controls><source id="uploadedmidi" src="'+ baseUrl +'" type="audio/midi"></audio>');
1253
+						      }
1254
+
1255
+                                                      $("#smstables").show();
1256
+                                                      $("#mmsfoldersview").hide();
1257
+                                                   });
1258
+                                                });
1259
+
1260
+
1261
+                                                // Remove picked files
1262
+                                                $('[class*="indpckfldl"]').last().click(function() {
1263
+                                                    var userid = "<?php p($userId); ?>";
1264
+                                                    var baseUrl = OC.generateUrl("/apps/sms_relentless/user/removeupfile");
1265
+
1266
+                                                    var removedfilenameinit = $(this).closest('[class*="indgenpckfls"]').find('[class*="indivflpckd"]').text();
1267
+
1268
+                                                    var removedfilesplit = removedfilenameinit.split(") ");
1269
+                                                    var removedflnb = parseInt(removedfilesplit[0]);
1270
+
1271
+                                                    $(this).closest('[class*="indgenpckfls"]').find('[class*="indivflpckd"]').hide();
1272
+                                                    $(this).hide();
1273
+                                                    var removedfilename = removedfilenameinit.substring(removedfilenameinit.indexOf(" ") + 1);
1274
+
1275
+                                                    uploadedtomms = $.grep(uploadedtomms, function(value) {
1276
+                                                             return value != removedfilename;
1277
+                                                    });
1278
+
1279
+                                                    $.ajax({
1280
+                                                        url: baseUrl + '/' + userid,
1281
+                                                        type: "POST",
1282
+                                                        data: {removedfilename: removedfilename},
1283
+                                                        success: function(totalflsize) {
1284
+
1285
+                                                             msgtotalflsize = totalflsize;
1286
+                                                             $('#filessizetext').text(totalflsize);
1287
+                                                             adjustMaximumSize(uploadedtomms);
1288
+
1289
+                                                             // Check message size
1290
+                                                             var rectotfilesz = parseFloat(totalflsize);
1291
+
1292
+                                                             if (rectotfilesz > maximumsize) {
1293
+                                                                 $('#filestotsize').css('color', '#ba3555');
1294
+                                                                 showAlert("Error ! For "+ chosenProvFullName +", for the chosen files format, the size of all the included files plus the size of the text cannot exceed "+ maximumsize +" KB !");
1295
+                                                                 $('#submitsms').attr("disabled", true);
1296
+                                                             } else {
1297
+                                                                 $('#submitsms').attr("disabled", false);
1298
+                                                                 $('#filestotsize').css('color', '#189558');
1299
+                                                               }
1300
+
1301
+                                                             // Rewrite order numbers for files that follow
1302
+                                                             --n;
1303
+                                                             $("div:visible[id*='indflpicked']").each(function() {
1304
+
1305
+                                                                  var getdivtext =  $(this).text();
1306
+                                                                  var splitdivtext = getdivtext.split(") ");
1307
+                                                                  var currentnbvalue = parseInt(splitdivtext[0]);
1308
+                                                                  var newnbvalue = currentnbvalue - 1;
1309
+
1310
+                                                                  if (currentnbvalue > removedflnb) {
1311
+                                                                      var replacedstr = newnbvalue + ") " + splitdivtext[1];
1312
+                                                                      $(this).text(replacedstr);
1313
+                                                                  }
1314
+                                                             });
1315
+                                                        },
1316
+                                                        error: function() {
1317
+                                                                  showAlert("Error while removing the file.");
1318
+                                                        }
1319
+                                                    });
1320
+
1321
+                                                    $('#smstables').removeClass('icon-loading');
1322
+                                                    $("#smstables").empty();
1323
+                                                });
1324
+
1325
+
1326
+		                                // Preview the picked file
1327
+		                                $("#mmsfoldersview").css("display", "inline-block");
1328
+		                                var flUrl = firstPathEl+"/remote.php/webdav/SMS_Relentless/temp_files/"+mmsfilename;
1329
+		                                var pickUrl = OC.generateUrl("/apps/sms_relentless/user/getpickedfile");
1330
+
1331
+                                                $("#smstables").empty();
1332
+                                                $("#stopAutoRefreshRec,#stopAutoRefreshSent").css("display", "none");
1333
+
1334
+						if (extension == 'jpg' || extension == 'jpeg') {
1335
+
1336
+		                                            $("#smstables").append('<img style="width:auto;height:auto" id="uploadedjpg" src="'+ flUrl +'" />');
1337
+
1338
+		                                } else if (extension == 'png') {
1339
+
1340
+		                                            $("#smstables").append('<img style="width:auto;height:auto" id="uploadedpng" src="'+ flUrl +'" />');
1341
+
1342
+		                                } else if (extension == 'gif') {
1343
+
1344
+		                                            $("#smstables").append('<img style="width:auto;height:auto" id="uploadedgif" src="'+ flUrl +'" />');
1345
+
1346
+		                                } else if (extension == 'bmp') {
1347
+
1348
+		                                            $("#smstables").append('<img style="width:auto;height:auto" id="uploadedbmp" src="'+ flUrl +'" />');
1349
+
1350
+		                                } else if (extension == 'tif' || extension == 'tiff') {
1351
+
1352
+		                                       var tiffile = '/remote.php/webdav/SMS_Relentless/temp_files/'+mmsfilename;
1353
+		                                       var xhr = new XMLHttpRequest();
1354
+		                                       xhr.responseType = 'arraybuffer';
1355
+		                                       xhr.open('GET', tiffile);
1356
+		                                       xhr.onload = function (event) {
1357
+		                                           var tiff = new Tiff({buffer: xhr.response});
1358
+		                                           var tifcanvas = tiff.toCanvas();
1359
+		                                           $("#smstables").append(tifcanvas);
1360
+		                                       };
1361
+		                                       xhr.send();
1362
+
1363
+		                                } else if (extension == 'pdf') {
1364
+
1365
+		                                       var viewer = OC.generateUrl('/apps/files_pdfviewer/?file={file}', {file: flUrl});
1366
+		                                       var $iframe = $('<iframe id="docviewer" style="width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:1041;" src="' + viewer + '" sandbox="allow-scripts allow-same-origin allow-popups allow-modals"></iframe>');
1367
+		                                       $("#smstables").append($iframe);
1368
+
1369
+		                                } else if (extension == 'txt') {
1370
+
1371
+							     $.get(flUrl, function(textdata) {
1372
+		                                               readtxtfile[mmsfilename] = textdata.replace(/(?:\r\n|\r|\n)/g, '<br>');
1373
+							       $("#smstables").append(readtxtfile[mmsfilename]);
1374
+							     });
1375
+
1376
+		                                } else if (extension == 'mp4') {
1377
+						       $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedmp4" src="'+ baseUrl +'"></video>');
1378
+						} else if (extension == 'ogg') {
1379
+						       $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedogg" src="'+ baseUrl +'"></video>');
1380
+						} else if (extension == 'avi') {
1381
+						       $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedavi" src="'+ baseUrl +'" type="video/avi"></video>');
1382
+						} else if (extension == 'mpg' || extension == 'mpeg') {
1383
+						       $("#smstables").append('<video width="100%" height="auto" controls><source id="uploadedmpg" src="'+ baseUrl +'"></video>');
1384
+						} else if (extension == 'wav' || extension == 'wave') {
1385
+						       $("#smstables").append('<audio width="100%" height="auto" controls><source id="uploadedwav" src="'+ baseUrl +'"></audio>');
1386
+						} else if (extension == 'mp3') {
1387
+						       $("#smstables").append('<audio width="100%" height="auto" controls><source id="uploadedmp3" src="'+ baseUrl +'" type="audio/mp3"></audio>');
1388
+						} else if (extension == 'midi') {
1389
+						       $("#smstables").append('<audio width="100%" height="auto" controls><source id="uploadedmidi" src="'+ baseUrl +'" type="audio/midi"></audio>');
1390
+						}
1391
+
1392
+
1393
+		                                $("#smstables").show();
1394
+
1395
+		                                $('#pf_choose_msg').hide();
1396
+		                                $('#smstables').removeClass('icon-loading');
1397
+		                                $("#mmsfoldersview").hide();
1398
+
1399
+                                          },
1400
+
1401
+                                          error: function(data){
1402
+                                                      showAlert("Error while getting the file.");
1403
+                                          }
1404
+
1405
+                                       });
1406
+
1407
+                                    } else {
1408
+                                        showAlert("Error ! You cannot send more than "+ maximumfilenumber +" files in one MMS message !");
1409
+                                        $('#pf_choose_msg').hide();
1410
+                                        $('#smstables').removeClass('icon-loading');
1411
+                                      }
1412
+                                 } else {
1413
+                                      showAlert("Error ! There is already a file named '"+ mmsfilename +"' in the 'SMS_Relentless/temp_files' folder !");
1414
+                                      $('#pf_choose_msg').hide();
1415
+                                      $('#smstables').removeClass('icon-loading');
1416
+                                   }
1417
+
1418
+                              } else {
1419
+                                   showAlert("The file type is not supported! Supported extensions for "+ chosenProvFullName +" are: "+ validExtensions.join(", ") +".");
1420
+                                   $('#pf_choose_msg').hide();
1421
+                                   $('#smstables').removeClass('icon-loading');
1422
+                                }
1423
+
1424
+                        }
1425
+                );
1426
+  });
1427
+
1428
+
1429
+
1430
+  // Send the SMS/MMS message
1431
+  $("#submitsms").on("click", function(event) {
1432
+
1433
+     if (isMMS == 0) { var sendingtype = 'SMS'; } else { var sendingtype = 'MMS'; }
1434
+     OC.msg.startAction("#sms_submit_msg", t("sms_relentless", "Sending "+ sendingtype +" ... Please wait !"));
1435
+     $("#sms_submit_msg").css("display", "inline-block");
1436
+     $('#smstables,#recSmsTable,#sentSmsTable').addClass('icon-loading');
1437
+
1438
+     if (selectedid != '') { 
1439
+
1440
+         var sendersplit = selectedid.split(":");
1441
+         var providercap = sendersplit[0];
1442
+         var provsec = sendersplit[1];
1443
+
1444
+         if (/[a-zA-Z]/.test(provsec)) {
1445
+             var alphanumcheck = true;
1446
+         } else { var alphanumcheck = false; }
1447
+
1448
+         if (providercap == 'Tx' && alphanumcheck == false) {  
1449
+             var senderproc = selectedid.replace(/[^0-9]/g, "");
1450
+             var selectedsender = "+" + senderproc;
1451
+             var providerUsed = "telnyx";
1452
+             var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstel");
1453
+         } else if (providercap == 'Pl' && alphanumcheck == false) {
1454
+             var selectedsender = selectedid.replace(/[^0-9]/g, "");
1455
+             var providerUsed = "plivo";
1456
+             var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsnex");
1457
+         } else if (providercap == 'Tw' && alphanumcheck == false) {  
1458
+             var senderproc = selectedid.replace(/[^0-9]/g, "");
1459
+             var selectedsender = "+" + senderproc;
1460
+             var providerUsed = "twilio";
1461
+             var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstwil");
1462
+         } else if (providercap == 'Fl' && alphanumcheck == false) {  
1463
+             var senderproc = selectedid.replace(/[^0-9]/g, "");
1464
+             var selectedsender = "+" + senderproc;
1465
+             var providerUsed = "flowroute";
1466
+             var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsflow");
1467
+         } else if (providercap == 'Tx' && alphanumcheck == true) {
1468
+             var selectedsender = provsec;
1469
+             var providerUsed = "telnyx";
1470
+             var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstel");
1471
+         } else if (providercap == 'Pl' && alphanumcheck == true) {
1472
+             var selectedsender = provsec;
1473
+             var providerUsed = "plivo";
1474
+             var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsnex");
1475
+         } else if (providercap == 'Tw' && alphanumcheck == true) {
1476
+             var selectedsender = provsec;
1477
+             var providerUsed = "twilio";
1478
+             var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstwil");
1479
+         } else if (providercap == 'Fl' && alphanumcheck == true) {
1480
+             var selectedsender = provsec;
1481
+             var providerUsed = "flowroute";
1482
+             var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsflow");
1483
+         }
1484
+
1485
+         // Get the interval between message consecutive sending requests, if it's the case
1486
+         if ($('#tomultchckbx').is(':checked')) {
1487
+
1488
+             var numbersfile = 1;
1489
+             var initinterval = $("#multsmsinterval").val();
1490
+             var secinterval = initinterval.replace(/[^0-9]/g, "");
1491
+
1492
+             if (secinterval != '') {
1493
+                 var tertinterval = parseInt(secinterval);
1494
+                     waittime = tertinterval;
1495
+             }
1496
+
1497
+         } else {
1498
+
1499
+             var numbersfile = 0;
1500
+             var toNumberinit = $('#smsto').val();
1501
+             var toNumber = toNumberinit.replace(/[^0-9,]/g, "");
1502
+             var toNumbersec = toNumber.split(",");
1503
+
1504
+                 for (var i = 0; i < toNumbersec.length; i++) {
1505
+                      toNumbersec[i] = "+" + toNumbersec[i];
1506
+                 }
1507
+
1508
+                 receiversNumbers = toNumbersec.filter(function(v){return v!==""});
1509
+         }
1510
+
1511
+         if (numbersfile == 0 && $('#smsto').val().trim() == '') { receiversNumbers.length = 0; }
1512
+
1513
+         var smstext = $("#smstext").val();
1514
+
1515
+         if (receiversNumbers.length != 0) {
1516
+
1517
+              if (smstext != '') {
1518
+                  $.ajax({
1519
+                     url: relbaseUrl + '/' + userid,
1520
+                     type: "POST",
1521
+                     data: {
1522
+                           receiversPhoneNbs: receiversNumbers,
1523
+                           fromsender: selectedsender,
1524
+                           waitinterval: waittime,
1525
+                           sentsmstext: smstext,
1526
+                           ismms: isMMS,
1527
+                           mmsfiles: uploadedtomms
1528
+                         },
1529
+                     success: function() {
1530
+
1531
+                           if (receiversNumbers.length == 1) {
1532
+                                   showAlert("The message has been sent ! You can press the 'Sent Messages' button to check the current status and the delivery receipt for this message. If they don't appear immediately, wait about 10 seconds and press the button again.");
1533
+                           } else {
1534
+                                   showAlert("The messages have been sent ! You can press the 'Sent Messages' button to check the current status and the delivery receipt for each message. If they don't appear immediately, wait about 10 seconds and press the button again.");
1535
+                           }
1536
+
1537
+                           $('#sms_submit_msg').hide();
1538
+                           $('#smstables,#recSmsTable,#sentSmsTable').removeClass('icon-loading');
1539
+                     },
1540
+                     error: function() {
1541
+                           showAlert("Error! Please check the recipient's phone number and your settings!");
1542
+                           $('#sms_submit_msg').hide();
1543
+                           $('#smstables,#recSmsTable,#sentSmsTable').removeClass('icon-loading');
1544
+                     }
1545
+                  });
1546
+              } else {
1547
+                     showAlert("Please enter a message in the text box !");
1548
+
1549
+                     $('#sms_submit_msg').hide();
1550
+                     $('#smstables,#recSmsTable,#sentSmsTable').removeClass('icon-loading');
1551
+              }
1552
+         } else if (receiversNumbers.length == 0 && !($('#tomultchckbx').is(':checked'))) {
1553
+                 showAlert("Please enter the recipient's phone number !");
1554
+                 $('#sms_submit_msg').hide();
1555
+                 $('#smstables,#recSmsTable,#sentSmsTable').removeClass('icon-loading');
1556
+         } else if (receiversNumbers.length == 0 && $('#tomultchckbx').is(':checked')) {
1557
+                 showAlert("Please upload a txt or csv file that contains phone numbers separated by commas, semicolons, vertical bars or new lines !");
1558
+                 $('#sms_submit_msg').hide();
1559
+                 $('#smstables,#recSmsTable,#sentSmsTable').removeClass('icon-loading');
1560
+         }
1561
+     } else {
1562
+           showAlert("Please choose a Sender ID from the Set ID drop-down list !");
1563
+           $("#induploadfile").remove();
1564
+           $('#smstables,#recSmsTable,#sentSmsTable').removeClass('icon-loading');
1565
+           $('#sms_submit_msg').hide();
1566
+     }
1567
+
1568
+  });
1569
+
1570
+  // Check the checkbox to delete old messages from the database
1571
+  $('#deleteoldchckbox').change(function() {
1572
+     if ($(this).is(':checked')) {
1573
+         $("#deleteoldsms").css("display", "block");
1574
+     } else {
1575
+         $("#deleteoldsms").css("display", "none");
1576
+     }
1577
+  });
1578
+
1579
+  // Set the height of info notes
1580
+  $('#setcalleridtp').css('height', $(window).height() - 160);
1581
+  $('#tonmbrformat').css('height', $(window).height() - 260);
1582
+  $('#uploadfileinfo').css('height', $(window).height() - 390);
1583
+
1584
+  $(window).resize(function() { 
1585
+     $('#setcalleridtp').css('height', $(window).height() - 160);
1586
+     $('#tonmbrformat').css('height', $(window).height() - 260);
1587
+     $('#uploadfileinfo').css('height', $(window).height() - 390);
1588
+  });
1589
+
1590
+
1591
+  function showAlert(alertText) {
1592
+
1593
+     $("#alertMsgOverlay").remove();
1594
+     $("#alertMessage").remove();
1595
+
1596
+     let alertwnd = "<div id='alertMessage'>";
1597
+     alertwnd += "<a id='closeAlertWnd' title='Close this window'></a>";
1598
+     alertwnd += "<div id='alertTextWrap'>"+ alertText +"</div>";
1599
+     alertwnd += "<input type='submit' id='alertOk' value='OK'>";
1600
+     alertwnd += "</div>";
1601
+
1602
+     $("#content").append("<div id='alertMsgOverlay'></div>");
1603
+     $("#content").append(alertwnd);
1604
+
1605
+     let topDist = parseInt((window.innerHeight / 2).toFixed(2) - 152) +"px";
1606
+     let leftDist = parseInt((window.innerWidth / 2).toFixed(2) - 150) +"px";
1607
+     $("#alertMessage").css({ "top" : topDist, "left" : leftDist });
1608
+
1609
+     $("#closeAlertWnd").click(function() { $("#alertMsgOverlay").remove(); $("#alertMessage").remove(); });
1610
+     $("#alertMsgOverlay").click(function() { $("#alertMsgOverlay").remove(); $("#alertMessage").remove(); });
1611
+     $("#alertOk").click(function() { $("#alertMsgOverlay").remove(); $("#alertMessage").remove(); });
1612
+  }
0 1613
new file mode 100644
... ...
@@ -0,0 +1,866 @@
1
+/**
2
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
3
+ *
4
+ * @author Double Bastion LLC
5
+ *
6
+ * @license GNU AGPL version 3 or any later version
7
+ *
8
+ * This program is free software; you can redistribute it and/or
9
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
10
+ * License as published by the Free Software Foundation; either
11
+ * version 3 of the License, or any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public
19
+ * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+$(document).ready(function() {
24
+
25
+  var userid = "<?php p($userId); ?>";
26
+  var isadm = '';
27
+
28
+  // Get personal settings
29
+  var baseUrlget = OC.generateUrl('/apps/sms_relentless/user/getsettings');
30
+
31
+  $.ajax({
32
+     method: 'GET',
33
+     url: baseUrlget + '/' + userid,
34
+     contentType: 'application/json',
35
+     success: function(settingsfromdb) {
36
+
37
+         // Add the webhook URLs section, if the user is not an admin
38
+         if (settingsfromdb.adminornot == 'reguser') {
39
+
40
+             isadm = 'reguser';
41
+
42
+             $("#appTitlePrg").append('<p id="settings-dscr"><h3>Enter your options in the fields from below. As a non-admin user, you can use any of the SMS service providers from \
43
+                  below (Telnyx/Plivo/Twilio/Flowroute), on the condition that an admin has shared with you his API keys for that provider. If an admin has shared with you his API \
44
+                  keys for a provider, to be able to use them properly, you will have to generate the two webhook URLs for that provider by clicking the corresponding \
45
+                  "Generate new webhook URL ..." buttons from below, then click "Save" at the bottom of this page:</h3></p><br>');
46
+
47
+             $("#nadmProvSection").append('<div class="providerSettings"><p><label for="telapi_url_rec" class="setlabeltext"><b>Telnyx webhook URL for incoming SMS/MMS</b> (Generate \
48
+                  the URL by pressing the button from below. Don\'t forget to also click the \'Save\' button at the bottom of this page after entering all the options, to save \
49
+                  all the settings to the database.)</label></p> \
50
+                  <input type="button" id="generate_tel_rcpt" class="generateUrl" value="Generate new webhook URL for incoming SMS/MMS" /> \
51
+                  <input type="text" class="smsr_textboxspec" id="telapi_url_rec" name="telapi_url_rec" autocomplete="false" /> \
52
+                  <span id="copyToClipboardtel" class="icon icon-clippy" title="Copy to clipboard"></span><br><br> \
53
+                  \
54
+                  <p><label for="telapi_url" class="setlabeltext"><b>Telnyx webhook URL for delivery receipts</b> (This URL will be included by SMS Relentless in message sending \
55
+                  requests, so that Telnyx will know where to send the delivery receipts. Just generate it by pressing the button from below. Don\'t forget to click the \'Save\' \
56
+                  button at the bottom of this page after entering all the options, to save all the settings to the database.)</label></p> \
57
+                  <input type="button" id="generate_tel_delrcpt" class="generateUrl" value="Generate new webhook URL for delivery receipts" /> \
58
+                  <input type="text" id="telapi_url" name="telapi_url" autocomplete="false" /></div><br><br> \
59
+                  \
60
+                  <div class="providerSettings"><p><label for="nexapi_url_rec" class="setlabeltext"><b>Plivo webhook URL for incoming SMS/MMS</b> (Generate the URL by pressing \
61
+                  the button from below. Don\'t forget to also click the \'Save\' button at the bottom of this page after entering all the options, to save all the settings \
62
+                  to the database.)</label></p> \
63
+                  <input type="button" id="generate_nex_rcpt" class="generateUrl" value="Generate new webhook URL for incoming SMS/MMS" /> \
64
+                  <input type="text" class="smsr_textboxspec" id="nexapi_url_rec" name="nexapi_url_rec" autocomplete="false" /> \
65
+                  <span id="copyToClipboardnex" class="icon icon-clippy" title="Copy to clipboard"></span><br><br> \
66
+                  \
67
+                  <p><label for="nexapi_url" class="setlabeltext"><b>Plivo webhook URL for delivery receipts</b> (This URL will be included by SMS Relentless in message sending \
68
+                  requests, so that Plivo will know where to send the delivery receipts. Just generate it by pressing the button from below. Don\'t forget to click the \'Save\' \
69
+                  button at the bottom of this page after entering all the options, to save all the settings to the database.)</label></p> \
70
+                  <input type="button" id="generate_nex_delrcpt" class="generateUrl" value="Generate new webhook URL for delivery receipts" /> \
71
+                  <input type="text" id="nexapi_url" name="nexapi_url" autocomplete="false" /></div><br><br> \
72
+                  \
73
+                  <div class="providerSettings"><p><label for="twilapi_url_rec" class="setlabeltext"><b>Twilio webhook URL for incoming SMS/MMS</b> (Generate the URL by pressing \
74
+                  the button from below. Don\'t forget to also click the \'Save\' button at the bottom of this page after entering all the options, to save all the settings to \
75
+                  the database.)</label></p> \
76
+                  <input type="button" id="generate_twil_rcpt" class="generateUrl" value="Generate new webhook URL for incoming SMS/MMS" /> \
77
+                  <input type="text" class="smsr_textboxspec" id="twilapi_url_rec" name="twilapi_url_rec" autocomplete="false" /> \
78
+                  <span id="copyToClipboardtwil" class="icon icon-clippy" title="Copy to clipboard"></span><br><br> \
79
+                  \
80
+                  <p><label for="twilapi_url" class="setlabeltext"><b>Twilio webhook URL for delivery receipts</b> (This URL will be included by SMS Relentless in message sending \
81
+                  requests, so that Twilio will know where to send the delivery receipts. Just generate it by pressing the button from below. Don\'t forget to click the \'Save\' \
82
+                  button at the bottom of this page after entering all the options, to save all the settings to the database.)</label></p> \
83
+                  <input type="button" id="generate_twil_delrcpt" class="generateUrl" value="Generate new webhook URL for delivery receipts" /> \
84
+                  <input type="text" id="twilapi_url" name="twilapi_url" autocomplete="false" /></div><br><br> \
85
+                  \
86
+                  <div class="providerSettings"><p><label for="flowapi_url_rec" class="setlabeltext"><b>Flowroute webhook URL for incoming SMS/MMS</b> (Generate the URL by pressing \
87
+                  the button from below. Don\'t forget to also click the \'Save\' button at the bottom of this page after entering all the options, to save all the settings to \
88
+                  the database.)</label></p> \
89
+                  <input type="button" id="generate_flow_rcpt" class="generateUrl" value="Generate new webhook URL for incoming SMS/MMS" /> \
90
+                  <input type="text" class="smsr_textboxspec" id="flowapi_url_rec" name="flowapi_url_rec" autocomplete="false" /> \
91
+                  <span id="copyToClipboardflow" class="icon icon-clippy" title="Copy to clipboard"></span><br><br> \
92
+                  \
93
+                  <p><label for="flowapi_url" class="setlabeltext"><b>Flowroute webhook URL for delivery receipts</b> (This URL will be included by SMS Relentless in message sending \
94
+                  requests, so that Flowroute will know where to send the delivery receipts. Just generate it by pressing the button from below. Don\'t forget to click the \'Save\' \
95
+                  button at the bottom of this page after entering all the options, to save all the settings to the database.)</label></p> \
96
+                  <input type="button" id="generate_flow_delrcpt" class="generateUrl" value="Generate new webhook URL for delivery receipts" /> \
97
+                  <input type="text" id="flowapi_url" name="flowapi_url" autocomplete="false" /><br><br> \
98
+                  Flowroute only supports sending/receiving SMS/MMS messages within USA and Canada and it doesn\'t support Alphanumeric Sender IDs.</div><br>');
99
+
100
+
101
+		  $("#telapi_url_rec").val(settingsfromdb.telapi_url_rec);
102
+		  $("#telapi_url").val(settingsfromdb.telapi_url);
103
+		  $("#nexapi_url_rec").val(settingsfromdb.nexapi_url_rec);
104
+		  $("#nexapi_url").val(settingsfromdb.nexapi_url);
105
+		  $("#twilapi_url_rec").val(settingsfromdb.twilapi_url_rec);
106
+		  $("#twilapi_url").val(settingsfromdb.twilapi_url);
107
+		  $("#flowapi_url_rec").val(settingsfromdb.flowapi_url_rec);
108
+		  $("#flowapi_url").val(settingsfromdb.flowapi_url);
109
+		  $("#messagesperpage").val(settingsfromdb.messagesperpage);
110
+
111
+		  if (settingsfromdb.get_notify == 1) {
112
+		      $("#get_notify").attr('checked', true);
113
+		  } else {
114
+		      $("#get_notify").attr('checked', false);
115
+		  }
116
+
117
+		  $("#notification_email").val(settingsfromdb.notification_email);
118
+
119
+		  if (settingsfromdb.getsmsinemail == 1) {
120
+		      $("#includesmsinemail").attr('checked', true);
121
+		  } else {
122
+		      $("#includesmsinemail").attr('checked', false);
123
+		  }
124
+
125
+		  if (settingsfromdb.show_display_names == 1) {
126
+		      $("#showdisplaynames").attr('checked', true);
127
+		  } else {
128
+		      $("#showdisplaynames").attr('checked', false);
129
+		  }
130
+
131
+		  if (settingsfromdb.add_display_names == 1) {
132
+		      $("#adddisplaynames").attr('checked', true);
133
+		  } else {
134
+		      $("#adddisplaynames").attr('checked', false);
135
+		  }
136
+
137
+		  function randomStr(strlength) {
138
+			var fintext = "";
139
+			var keyspace = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
140
+			for (var i = 0; i < strlength; i++) {
141
+			     fintext += keyspace.charAt(Math.floor(Math.random() * keyspace.length));
142
+			}
143
+			return fintext;
144
+		  }
145
+
146
+		  $("#generate_tel_rcpt").on("click", function(event) {
147
+
148
+		     var teltokenrec = randomStr(70);
149
+		     var telnyxwhurlrec = window.location.origin + OC.generateUrl('/apps/sms_relentless/api/recsmstel?telrecparam=') + teltokenrec;
150
+
151
+		     $("#telapi_url_rec").val(telnyxwhurlrec);
152
+		  });
153
+
154
+		  $("#copyToClipboardtel").on("click", function(event) {
155
+		     var $tempEl = $("<input>");
156
+		     $("body").append($tempEl);
157
+		     $tempEl.val($("#telapi_url_rec").val()).select();
158
+		     document.execCommand("Copy");
159
+		     $tempEl.remove();
160
+		     showAlert("The link has been copied to your clipboard!");
161
+		  });
162
+
163
+		  $("#generate_tel_delrcpt").on("click", function(event) {
164
+
165
+		     var teltoken = randomStr(70);
166
+		     var telnyxwhurl = window.location.origin + OC.generateUrl('/apps/sms_relentless/api/recdeliverytel?teldrparam=') + teltoken;
167
+
168
+		     $("#telapi_url").val(telnyxwhurl);
169
+		  });
170
+
171
+
172
+		  $("#generate_nex_rcpt").on("click", function(event) {
173
+
174
+		     var plivotokenrec = randomStr(70);
175
+		     var plivowhurlrec = window.location.origin + OC.generateUrl('/apps/sms_relentless/api/recsmsnex?plivorecparam=') + plivotokenrec;
176
+
177
+		     $("#nexapi_url_rec").val(plivowhurlrec);
178
+		  });
179
+
180
+		  $("#copyToClipboardnex").on("click", function(event) {
181
+		     var $tempElpl = $("<input>");
182
+		     $("body").append($tempElpl);
183
+		     $tempElpl.val($("#nexapi_url_rec").val()).select();
184
+		     document.execCommand("Copy");
185
+		     $tempElpl.remove();
186
+		     showAlert("The link has been copied to your clipboard!");
187
+		  });
188
+
189
+		  $("#generate_nex_delrcpt").on("click", function(event) {
190
+
191
+		     var plivotoken = randomStr(70);
192
+		     var plivodrwhurl = window.location.origin + OC.generateUrl('/apps/sms_relentless/api/recdeliverynex?plivodrparam=') + plivotoken;
193
+
194
+		     $("#nexapi_url").val(plivodrwhurl);
195
+		  });
196
+
197
+
198
+		  $("#generate_twil_rcpt").on("click", function(event) {
199
+
200
+		     var twiltokenrec = randomStr(35);
201
+		     var twilwhurlrec = window.location.origin + OC.generateUrl('/apps/sms_relentless/api/recsmstwil?twilrecparam=') + twiltokenrec;
202
+
203
+		     $("#twilapi_url_rec").val(twilwhurlrec);
204
+		  });
205
+
206
+		  $("#copyToClipboardtwil").on("click", function(event) {
207
+		     var $tempElpl = $("<input>");
208
+		     $("body").append($tempElpl);
209
+		     $tempElpl.val($("#twilapi_url_rec").val()).select();
210
+		     document.execCommand("Copy");
211
+		     $tempElpl.remove();
212
+		     showAlert("The link has been copied to your clipboard!");
213
+		  });
214
+
215
+		  $("#generate_twil_delrcpt").on("click", function(event) {
216
+
217
+		     var twiltoken = randomStr(35);
218
+		     var twildrwhurl = window.location.origin + OC.generateUrl('/apps/sms_relentless/api/recdeliverytwil?twildrparam=') + twiltoken;
219
+
220
+		     $("#twilapi_url").val(twildrwhurl);
221
+		  });
222
+
223
+
224
+		  $("#generate_flow_rcpt").on("click", function(event) {
225
+
226
+		     var flowtokenrec = randomStr(70);
227
+		     var flowwhurlrec = window.location.origin + OC.generateUrl('/apps/sms_relentless/api/recsmsflow?flowrecparam=') + flowtokenrec;
228
+
229
+		     $("#flowapi_url_rec").val(flowwhurlrec);
230
+		  });
231
+
232
+		  $("#copyToClipboardflow").on("click", function(event) {
233
+		     var $tempElpl = $("<input>");
234
+		     $("body").append($tempElpl);
235
+		     $tempElpl.val($("#flowapi_url_rec").val()).select();
236
+		     document.execCommand("Copy");
237
+		     $tempElpl.remove();
238
+		     showAlert("The link has been copied to your clipboard!");
239
+		  });
240
+
241
+		  $("#generate_flow_delrcpt").on("click", function(event) {
242
+
243
+		     var flowtoken = randomStr(70);
244
+		     var flowdrwhurl = window.location.origin + OC.generateUrl('/apps/sms_relentless/api/recdeliveryflow?flowdrparam=') + flowtoken;
245
+
246
+		     $("#flowapi_url").val(flowdrwhurl);
247
+		  });
248
+
249
+
250
+         } else if (settingsfromdb.adminornot == 'admin') {
251
+
252
+                  $("#appTitlePrg").append('<p id="settings-dscr"><h3>First enter your credentials on the admin settings page of the app (on the left panel, under Administration, \
253
+                                            click on SMS Relentless), then enter your options in the fields from below:</h3></p><br>');
254
+                  isadm = 'admin';
255
+
256
+		  $("#messagesperpage").val(settingsfromdb.messagesperpage);
257
+
258
+		  if (settingsfromdb.get_notify == 1) {
259
+		      $("#get_notify").attr('checked', true);
260
+		  } else {
261
+		      $("#get_notify").attr('checked', false);
262
+		  }
263
+
264
+		  $("#notification_email").val(settingsfromdb.notification_email);
265
+
266
+		  if (settingsfromdb.getsmsinemail == 1) {
267
+		      $("#includesmsinemail").attr('checked', true);
268
+		  } else {
269
+		      $("#includesmsinemail").attr('checked', false);
270
+		  }
271
+
272
+		  if (settingsfromdb.show_display_names == 1) {
273
+		      $("#showdisplaynames").attr('checked', true);
274
+		  } else {
275
+		      $("#showdisplaynames").attr('checked', false);
276
+		  }
277
+
278
+		  if (settingsfromdb.add_display_names == 1) {
279
+		      $("#adddisplaynames").attr('checked', true);
280
+		  } else {
281
+		      $("#adddisplaynames").attr('checked', false);
282
+		  }
283
+         }
284
+
285
+
286
+         // Auto-reply settings
287
+
288
+         // Get the available phone numbers from all providers associated with the access keys entered on the Settings page (restrictions are applied to numbers for non-admins)
289
+         $("#autoRplPhoneNb").addClass('icon-loading');
290
+         var getnumbersUrl = OC.generateUrl("/apps/sms_relentless/user/getautoreplyconf");
291
+
292
+	 $.ajax({
293
+		  url: getnumbersUrl + '/' + userid,
294
+		  type: "GET",
295
+                  contentType: 'application/json',
296
+		  success: function(autoreplydata) {
297
+
298
+                                    $("#autoRplPhoneNb").removeClass('icon-loading');
299
+                                    var cusrDisplayName = autoreplydata.userdisplayname;
300
+                                    var availPhoneNmbrs = autoreplydata.phonenumbers;
301
+                                    var autorpldata = autoreplydata.autoreplies;
302
+
303
+				    if (autorpldata.length > 0) { 
304
+				        var arplNmb = autorpldata.length;
305
+				    } else { 
306
+				        var arplNmb = 0; 
307
+				    }
308
+
309
+				    // List the auto-replies for the phone numbers available for the current user
310
+				    if (arplNmb == 0) {
311
+
312
+				        $("#autoReplyTbl").append("<tr><td><input type='text' class='arplAuthor' value='"+ cusrDisplayName +"' disabled></td><td><select id='arpphn-"+ arplNmb +"' class='arplPhoneNmbr'></select></td><td><div id='arplmode-"+ arplNmb +"' class='arplMode'><select id='modeselect-"+ arplNmb +"' class='selectArplMode'><option value='' selected>Select mode</option><option value='daily'>Daily mode</option><option value='vacation'>Vacation mode</option></select><div id='modecont-"+ arplNmb +"' class='modeContent'></div></div></td><td><textarea id='arpltxt-"+ arplNmb +"' class='arplText' rows='20' cols='40' placeholder='Enter the auto-reply message here.'></textarea></td><td><img id='rmRow-"+ arplNmb +"' class='removeRow' src='/apps/sms_relentless/img/closewnd.svg' title='Remove this row from the database' style='cursor:pointer;margin:9px 8px 0px 18px;'></td><td><input type='submit' id='arplsave-"+ arplNmb +"' class='saveAutoReply' value='Save' title='Save Row' /></td></tr>");
313
+				        $("#autoReplyTbl").append("<div><img id='addArplRow' src='/apps/sms_relentless/img/add.svg' title='Add Row'></div>");
314
+
315
+				    } else {
316
+
317
+				        for (k = 0; k < arplNmb; k++) {
318
+
319
+                                             if (autorpldata[k].days_of_week != '') {
320
+
321
+                                                 var slctdMode = "<option value=''>Select mode</option><option value='daily' selected>Daily mode</option><option value='vacation'>Vacation mode</option>";
322
+                                                 var dailyStartArr = autorpldata[k].daily_start.split(":");
323
+                                                 var dailyEndArr = autorpldata[k].daily_end.split(":");
324
+
325
+		                                 var dlHrStartOptions = "";
326
+			                         for (var hr = 0; hr < 24; hr++) {
327
+		                                      if (dailyStartArr[0] != hr.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false})) {
328
+			                                  dlHrStartOptions += "<option value='"+ hr.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"'>"+ hr.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"</option>";
329
+		                                      } else {
330
+			                                  dlHrStartOptions += "<option value='"+ hr.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"' selected>"+ hr.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"</option>";
331
+		                                      }
332
+			                         }
333
+
334
+		                                 var dlMnStartOptions = "";
335
+			                         for (var mn = 0; mn < 60; mn++) {
336
+		                                      if (dailyStartArr[1] != mn.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false})) {
337
+			                                  dlMnStartOptions += "<option value='"+ mn.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"'>"+ mn.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"</option>";
338
+		                                      } else {
339
+			                                  dlMnStartOptions += "<option value='"+ mn.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"' selected>"+ mn.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"</option>";
340
+		                                      }
341
+			                         }
342
+
343
+		                                 var dlHrEndOptions = "";
344
+			                         for (var hr = 0; hr < 24; hr++) {
345
+		                                      if (dailyEndArr[0] != hr.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false})) {
346
+			                                  dlHrEndOptions += "<option value='"+ hr.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"'>"+ hr.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"</option>";
347
+		                                      } else {
348
+			                                  dlHrEndOptions += "<option value='"+ hr.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"' selected>"+ hr.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"</option>";
349
+		                                      }
350
+			                         }
351
+
352
+		                                 var dlMnEndOptions = "";
353
+			                         for (var mn = 0; mn < 60; mn++) {
354
+		                                      if (dailyEndArr[1] != mn.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false})) {
355
+			                                  dlMnEndOptions += "<option value='"+ mn.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"'>"+ mn.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"</option>";
356
+		                                      } else {
357
+			                                  dlMnEndOptions += "<option value='"+ mn.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"' selected>"+ mn.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"</option>";
358
+		                                      }
359
+			                         }
360
+
361
+                                                 var modeContent = "<div class='daysOfWeek'>Days of the week:<div class='tooltipautoreply'><div id='infoautoreply'>i</div><div class='autorpltooltip'>Enter the order number of the days of the week in which the auto-reply will be sent. For example, to send the auto-reply every day from Monday to Friday outside the time interval specified below, enter 1,2,3,4,5 To send the auto-reply only Monday, Thursday and Friday enter 1,4,5 To send the auto-reply every day of the week enter 1,2,3,4,5,6,7 As an exception, if you want the auto-reply to be sent during an entire day, irrespective of the specified interval, add (full) after the number of that day. For example, if you want the auto-reply to be sent from Monday to Friday outside the interval specified below, and also during the entire days of Saturday and Sunday, enter 1,2,3,4,5,6(full),7(full)</div></div></div><input type='text' id='weekdays-"+ k +"' class='daysInWeek' value='"+ autorpldata[k].days_of_week +"'><div class='chooseTInterval'>Send auto-reply <span style='color:#ad0202'>outside</span> this interval:<div class='tooltipautoreplyst'><div id='infoautoreplyst'>i</div><div class='autorpltooltipst'>These fields specify the time of the server. If the server is located in a time zone that is different from that of the owner/company, the time interval entered here should be adjusted accordingly.</div></div></div><div class='selectArplHours'><select id='dmstarthr-"+ k +"' class='selectHrMin'>"+ dlHrStartOptions +"</select><select id='dmstartmn-"+ k +"' class='selectHrMin'>"+ dlMnStartOptions +"</select><span style='font-weight: 600'> — </span><select id='dmendhr-"+ k +"' class='selectHrMin'>"+ dlHrEndOptions +"</select><select id='dmendmn-"+ k +"' class='selectHrMin'>"+ dlMnEndOptions +"</select></div>";
362
+
363
+                                             } else {
364
+
365
+                                                 var vctnStart = autorpldata[k].vacation_start.split(" ")[0];
366
+                                                 var vctnEnd = autorpldata[k].vacation_end.split(" ")[0];
367
+
368
+                                                 var slctdMode = "<option value=''>Select mode</option><option value='daily'>Daily mode</option><option value='vacation' selected>Vacation mode</option>";
369
+                                                 var modeContent = "<div class='chooseDateIntvl'>Send auto-reply <span style='color:#ad0202'>inside</span> this interval:</div><div class='arplstrtendDates'><div class='stdtTitle'>Start Date</div><input type='text' id='startDT-"+ k +"' class='startDate' placeholder='Pick a date' value='"+ vctnStart +"'><div class='enddtTitle'>End Date</div><input type='text' id='endDT-"+ k +"' class='endDate' placeholder='Pick a date' value='"+ vctnEnd +"'></div>"
370
+                                             }
371
+
372
+				             $("#autoReplyTbl").append("<tr><td><input type='text' class='arplAuthor' value='"+ autorpldata[k].saved_by_dsplname +"' disabled></td><td><select id='arpphn-"+ k +"' class='arplPhoneNmbr' style='pointer-events:none'><option selected>"+ autorpldata[k].phone_number +"</option></select></td><td><div id='arplmode-"+ k +"' class='arplMode'><select id='modeselect-"+ k +"' class='selectArplMode'>"+ slctdMode +"</select><div id='modecont-"+ k +"' class='modeContent'>"+ modeContent +"</div></div></td><td><textarea id='arpltxt-"+ k +"' class='arplText' rows='20' cols='40' placeholder='Enter the auto-reply message here.'>"+ autorpldata[k].message_text +"</textarea></td><td><img id='rmRow-"+ k +"' class='removeRow' src='/apps/sms_relentless/img/closewnd.svg' title='Remove this row from the database' style='cursor:pointer;margin:9px 8px 0px 18px;'></td><td><input type='submit' id='arplsave-"+ k +"' class='saveAutoReply' value='Edit' title='Edit Row' /></td></tr>");
373
+				        }
374
+				        $("#autoReplyTbl").append("<div><img id='addArplRow' src='/apps/sms_relentless/img/add.svg' title='Add Row'></div>");
375
+				    }
376
+
377
+
378
+				    // Create a list with all the available phone numbers
379
+                                    var numbersListItems = "<option value='' selected>Select phone number</option>";
380
+
381
+				    $.each(availPhoneNmbrs, function(key, indsmsnmb) {
382
+				           numbersListItems += "<option value='"+ indsmsnmb +"'>"+ indsmsnmb +"</option>";
383
+				    });
384
+
385
+                                    if (arplNmb == 0) {
386
+				        $("#arpphn-"+ arplNmb).append(numbersListItems);
387
+                                    }
388
+
389
+                                    // Initialize the date picker
390
+			            $('[id^="endDT-"]').datepicker({ dateFormat: "yy-mm-dd" });
391
+			            $('[id^="startDT-"]').datepicker({ dateFormat: "yy-mm-dd" });
392
+
393
+
394
+                                    // Select the auto-reply mode
395
+                                    function selectMode() {
396
+
397
+		                            $('[id^="modeselect-"]').change(function() {
398
+
399
+		                               var crtnmbr = $(this).attr("id").replace("modeselect-", "");
400
+
401
+		                               var dailyHrStart = "";
402
+		                               for (var h = 0; h < 24; h++) {
403
+		                                    dailyHrStart += "<option value='"+ h.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"'>"+ h.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"</option>";
404
+		                               }
405
+
406
+		                               var dailyMnStart = "";
407
+		                               for (var m = 0; m < 60; m++) {
408
+		                                    dailyMnStart += "<option value='"+ m.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"'>"+ m.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false}) +"</option>";
409
+		                               }
410
+
411
+		                               var dailyHrEnd = dailyHrStart;
412
+		                               var dailyMnEnd = dailyMnStart;
413
+
414
+		                               if ($(this).val() == 'daily') {
415
+		                                   $("#modecont-"+ crtnmbr).empty();
416
+		                                   $("#modecont-"+ crtnmbr).append("<div class='daysOfWeek'>Days of the week:<div class='tooltipautoreply'><div id='infoautoreply'>i</div><div class='autorpltooltip'>Enter the order number of the days of the week in which the auto-reply will be sent. For example, to send the auto-reply every day from Monday to Friday outside the time interval specified below, enter 1,2,3,4,5 To send the auto-reply only Monday, Thursday and Friday enter 1,4,5 To send the auto-reply every day of the week enter 1,2,3,4,5,6,7 As an exception, if you want the auto-reply to be sent during an entire day, irrespective of the specified interval, add (full) after the number of that day. For example, if you want the auto-reply to be sent from Monday to Friday outside the interval specified below, and also during the entire days of Saturday and Sunday, enter 1,2,3,4,5,6(full),7(full)</div></div></div><input type='text' id='weekdays-"+ crtnmbr +"' class='daysInWeek'><div class='chooseTInterval'>Send auto-reply <span style='color:#ad0202'>outside</span> this interval:<div class='tooltipautoreplyst'><div id='infoautoreplyst'>i</div><div class='autorpltooltipst'>These fields specify the time of the server. If the server is located in a time zone that is different from that of the owner/company, the time interval entered here should be adjusted accordingly.</div></div></div><div class='selectArplHours'><select id='dmstarthr-"+ crtnmbr +"' class='selectHrMin'>"+ dailyHrStart +"</select><select id='dmstartmn-"+ crtnmbr +"' class='selectHrMin'>"+ dailyMnStart +"</select><span style='font-weight: 600'> — </span><select id='dmendhr-"+ crtnmbr +"' class='selectHrMin'>"+ dailyHrEnd +"</select><select id='dmendmn-"+ crtnmbr +"' class='selectHrMin'>"+ dailyMnEnd +"</select></div>");
417
+		                               } else if ($(this).val() == 'vacation') {
418
+		                                   $("#modecont-"+ crtnmbr).empty();
419
+		                                   $("#modecont-"+ crtnmbr).append("<div class='chooseDateIntvl'>Send auto-reply <span style='color:#ad0202'>inside</span> this interval:</div><div class='arplstrtendDates'><div class='stdtTitle'>Start Date</div><input type='text' id='startDT-"+ crtnmbr +"' class='startDate' placeholder='Pick a date'><div class='enddtTitle'>End Date</div><input type='text' id='endDT-"+ crtnmbr +"' class='endDate' placeholder='Pick a date' /></div>");
420
+		                               }
421
+
422
+					       $("#endDT-"+ crtnmbr +"").datepicker({ dateFormat: "yy-mm-dd" });
423
+					       $("#startDT-"+ crtnmbr +"").datepicker({ dateFormat: "yy-mm-dd" });
424
+		                          });
425
+                                  }
426
+                                  selectMode();
427
+
428
+				  // Save the data
429
+				  function saveArplRow() {
430
+
431
+				     $('[id^="arplsave-"]').unbind("click");
432
+				     $('[id^="arplsave-"]').click(function(event) {
433
+
434
+				        event.preventDefault();
435
+				        var crntrwnmbr = $(this).attr("id").replace("arplsave-", "");
436
+
437
+				        if ($(this).attr("value") == "Save") {
438
+
439
+				            var phoneNmbr = $("#arpphn-"+ crntrwnmbr).val();
440
+				            var arplText = $("#arpltxt-"+ crntrwnmbr).val();
441
+				            var slctdMode = $("#modeselect-"+ crntrwnmbr).val();
442
+
443
+				            var slctddmDays = "";
444
+				            var slctdHrStart = "";
445
+				            var slctdMnStart = "";
446
+				            var slctdHrEnd = "";
447
+				            var slctdMnEnd = "";
448
+
449
+				            var vcStartDate = null;
450
+				            var vcEndDate = null;
451
+
452
+				            if (slctdMode == 'daily') {
453
+
454
+				                slctddmDays = $("#weekdays-"+ crntrwnmbr).val().trim();
455
+				                slctdHrStart = $("#dmstarthr-"+ crntrwnmbr).val().trim();
456
+				                slctdMnStart = $("#dmstartmn-"+ crntrwnmbr).val().trim();
457
+				                slctdHrEnd = $("#dmendhr-"+ crntrwnmbr).val().trim();
458
+				                slctdMnEnd = $("#dmendmn-"+ crntrwnmbr).val().trim();
459
+
460
+                                                if (slctdHrStart != '' && slctdMnStart != '') {
461
+                                                    var hrmnStartComp = slctdHrStart +":"+ slctdMnStart;
462
+                                                } else { var hrmnStartComp = ""; }
463
+
464
+                                                if (slctdHrEnd != '' && slctdMnEnd != '') {
465
+                                                    var hrmnEndComp = slctdHrEnd +":"+ slctdMnEnd;
466
+                                                } else { var hrmnEndComp = ""; }
467
+
468
+                                                if (!(/^[1-7ful\,\(\)]+$/.test(slctddmDays))) {
469
+				                    showAlert("The 'Days of the week' field can contain only digits from 1 to 7, the lowercase letters f, u and l, round brackets ()() and commas (,).");
470
+				                    return;
471
+                                                }
472
+
473
+                                                if (!(/^[0-9]+$/.test(slctdHrStart + slctdMnStart + slctdHrEnd + slctdMnEnd))) {
474
+				                    showAlert("The starting and ending values of the time interval for the 'Daily mode' can contain only digits from 0 to 9.");
475
+				                    return;
476
+                                                }
477
+
478
+                                                if (slctddmDays.trim() == '' || (slctdHrStart == slctdHrEnd && slctdMnStart == slctdMnEnd)) {
479
+				                    showAlert("For the 'Daily mode', you have to enter the order number of the days of the week for which you want the auto-reply to be sent, and you have to set a starting time that is different from the ending time!");
480
+				                    return;
481
+                                                }
482
+
483
+				            } else if (slctdMode == 'vacation') {
484
+		
485
+                                                if ($("#startDT-"+ crntrwnmbr).val().trim() == '' || $("#endDT-"+ crntrwnmbr).val().trim() == '') {
486
+
487
+				                    showAlert("For the 'Vacation mode', you have to enter both a start date and an end date.");
488
+				                    return;
489
+
490
+                                                } else {
491
+
492
+                                                    if (!(/^[0-9\-]+$/.test($("#startDT-"+ crntrwnmbr).val().trim() + $("#endDT-"+ crntrwnmbr).val().trim()))) {
493
+				                        showAlert("The start date and end date values for the 'Vacation mode' can contain only digits from 0 to 9 and hyphens (-).");
494
+				                        return;
495
+                                                    }
496
+
497
+		                                    vcStartDate = $("#startDT-"+ crntrwnmbr).val().trim() +" 00:00:00";
498
+				                    vcEndDate = $("#endDT-"+ crntrwnmbr).val().trim() +" 23:59:59";
499
+				                    var strtDateCmp = new Date(vcStartDate).toJSON().slice(0, 10) +" 00:00:00";
500
+				                    var endDateCmp = new Date(vcEndDate).toJSON().slice(0, 10) +" 23:59:59";
501
+				                    var crntDate = new Date().toJSON().slice(0, 10) +" 23:59:59";
502
+
503
+                                                    if (vcStartDate.trim() == "" || vcEndDate.trim() == "" || (strtDateCmp >= endDateCmp || ((strtDateCmp < crntDate) && (endDateCmp < crntDate)))) {
504
+				                        showAlert("For 'Vacation mode', you have to enter both a start date and an end date, the start date must be before the end date and at least the ending of the time interval must be in the future.");
505
+				                        return;
506
+                                                    }
507
+                                                }
508
+				            }
509
+
510
+
511
+				            if (phoneNmbr != '') {
512
+
513
+				              if (arplText.trim() != '') {
514
+
515
+				                if (slctdMode != '') {
516
+
517
+				                    var saveArplUrl = OC.generateUrl('/apps/sms_relentless/user/updateautoreplies');
518
+				                    var arpldata = {
519
+				                         userId: userid,
520
+				                         savedByDsplname: cusrDisplayName,
521
+				                         phoneNumber: phoneNmbr,
522
+				                         daysOfWeek: slctddmDays,
523
+				                         dailyStart: hrmnStartComp,
524
+				                         dailyEnd: hrmnEndComp,
525
+				                         vacationStart: vcStartDate,
526
+				                         vacationEnd: vcEndDate,
527
+				                         messageText: arplText
528
+				                    };
529
+
530
+					            $.ajax({
531
+					              method: 'PUT',
532
+					              url: saveArplUrl + '/' + userid,
533
+					              contentType: 'application/json',
534
+					              data: JSON.stringify(arpldata),
535
+				                      success: function(messagereceived) {
536
+
537
+				                                   if (messagereceived == 'success') {
538
+				                                       showAlert('The auto-reply has been successfully saved to the database!');
539
+				                                   } else if (messagereceived == 'failure') {
540
+				                                       showAlert('Error while trying to save the auto-reply!');
541
+				                                   } else if (messagereceived == 'not allowed') {
542
+                                                                       showAlert('You cannot change an auto-reply that was saved by a different user.');
543
+                                                                   }
544
+				                      },
545
+					              error: function() {
546
+						                   showAlert('Error while attempting to save the auto-reply! You can check the Nextcloud log to find more details about this issue.');
547
+					              }
548
+					            });
549
+
550
+
551
+                                                } else { showAlert("Please select the auto-reply mode."); return; }
552
+
553
+                                              } else { showAlert("Please enter the text of the auto-reply."); return; }
554
+
555
+                                            } else { showAlert("Please select a phone number if at least one number is available in the 'Phone Number' drop-down list. Otherwise, you should contact the administrator."); return; }
556
+
557
+                                            $(this).attr("value", "Edit");
558
+
559
+                                        } else {
560
+                                            $("#arplsave-"+ crntrwnmbr).attr("value", "Save");
561
+                                        }
562
+
563
+                                     });
564
+
565
+				  }
566
+                                  saveArplRow();
567
+
568
+
569
+				  // Remove a row
570
+				  function removeArplRow() {
571
+				       $('[id^="rmRow-"]').click(function() {
572
+
573
+					  var slctRowRm = $(this).attr("id").replace("rmRow-", "");
574
+					  var crntPhnNmbr = $("#arpphn-"+ slctRowRm).val();
575
+
576
+				          confirmAlert("Do you really want to remove this row from the database ?");
577
+
578
+				          $("#confirmCancel").click(function() { $("#alertMsgOverlay").remove(); $("#alertConfMessage").remove(); });
579
+
580
+				          $("#confirmOk").click(function() {
581
+
582
+				              $("#alertMsgOverlay").remove();
583
+				              $("#alertConfMessage").remove();
584
+
585
+					      var rmvArplUrl = OC.generateUrl('/apps/sms_relentless/user/removeautoreplies');
586
+					      $.ajax({
587
+						   url: rmvArplUrl + '/' + userid,
588
+						   method: "POST",
589
+						   dataType: "text",
590
+						   data: { phoneNumber: crntPhnNmbr },
591
+						   success: function(delresult) {
592
+
593
+						                     if (delresult.indexOf("success") > -1) {
594
+						                         showAlert("The auto-reply has been removed successfully!");
595
+						                         $("#arpphn-"+ slctRowRm).closest("tr").remove();
596
+						                     } else if (delresult.indexOf("failure") > -1) {
597
+						                         showAlert("Error while trying to remove auto-reply data!");
598
+						                     } else if (delresult.indexOf("not allowed") > -1) {
599
+                                                                         showAlert("You cannot remove the auto-reply saved by another user.");
600
+                                                                     }
601
+						   },
602
+						   error: function() { showAlert("Error while attempting to remove auto-reply data! You can check the Nextcloud log to find more details about this issue."); }
603
+					       });
604
+					  });
605
+				       });
606
+				  }
607
+				  removeArplRow();
608
+
609
+                                  // Add a new row
610
+                                  $("#addArplRow").click(function() {
611
+
612
+                                     if ($("#autoReplyTbl").find("tr:last-child").find(".arplPhoneNmbr").length > 0) {
613
+                                         var lastarpl = $("#autoReplyTbl").find("tr:last-child").find(".arplPhoneNmbr").attr("id").replace("arpphn-", "");
614
+                                         var indArplAdd = parseInt(lastarpl + 1);
615
+                                     } else { var indArplAdd = 0; }
616
+			             $("#autoReplyTbl").append("<tr><td><input type='text' class='arplAuthor' value='"+ cusrDisplayName +"' disabled></td><td><select id='arpphn-"+ indArplAdd +"' class='arplPhoneNmbr'>"+ numbersListItems +"</select></td><td><div id='arplmode-"+ indArplAdd +"' class='arplMode'><select id='modeselect-"+ indArplAdd +"' class='selectArplMode'><option value='' selected>Select mode</option><option value='daily'>Daily mode</option><option value='vacation'>Vacation mode</option></select><div id='modecont-"+ indArplAdd +"' class='modeContent'></div></div></td><td><textarea id='arpltxt-"+ indArplAdd +"' class='arplText' rows='20' cols='40' placeholder='Enter the auto-reply message here.'></textarea></td><td><img id='rmRow-"+ indArplAdd +"' class='removeRow' src='/apps/sms_relentless/img/closewnd.svg' title='Remove this row from the database' style='cursor:pointer;margin:9px 8px 0px 18px;'></td><td><input type='submit' id='arplsave-"+ indArplAdd +"' class='saveAutoReply' value='Save' title='Save Row' /></td></tr>");
617
+
618
+                                     selectMode();
619
+                                     saveArplRow();
620
+                                     removeArplRow();
621
+
622
+			             // Check if there is an auto-reply set for the same phone number
623
+				     $("#arpphn-"+ indArplAdd).change(function() {
624
+					 var selectedPhNb = $("#arpphn-"+ indArplAdd).val();
625
+					 var allArplPhNmbrs = $("#autoReplyTbl").find("tr").find(".arplPhoneNmbr");
626
+					 var phNbChck = 0;
627
+					 allArplPhNmbrs.each(function() {
628
+					    var slctphnb = ($(this).val())? $(this).val() : $(this).text();
629
+					    if (selectedPhNb == slctphnb) { phNbChck++; }
630
+					 });
631
+
632
+					 if (phNbChck == 2) {
633
+					     showAlert("There is already an auto-reply set up for this phone number. Please edit its own row, or choose a different phone number.");
634
+					     $(this).val('');
635
+					     return;
636
+					 }
637
+				     });
638
+                                  });
639
+
640
+		  },
641
+		  error: function() {
642
+                                    $("#autoRplPhoneNb").removeClass('icon-loading'); 
643
+                                    showAlert("Error while attempting to get the auto-reply settings! You can check the Nextcloud log to find more details about this issue.");
644
+                  }
645
+         });
646
+
647
+     },
648
+     error: function() {
649
+                  showAlert('Error while getting the settings! You can check the Nextcloud log to find more details about this issue.');
650
+     }
651
+  });
652
+
653
+
654
+
655
+  // Save personal settings for non-admin users
656
+  $("#save_sms_settings").on("click", function(event) {
657
+
658
+     if (isadm == 'reguser') {
659
+
660
+	    event.preventDefault();
661
+	    var baseUrlsave = OC.generateUrl('/apps/sms_relentless/user/updatesettings');
662
+
663
+	    var messagesperpageinit = $("#messagesperpage").val();
664
+	    var messagesperpagesec = messagesperpageinit.replace(/[^0-9]/g, '');
665
+
666
+	    if (messagesperpagesec != '') {
667
+		var messagesperpageproc = messagesperpagesec;
668
+	    } else {
669
+		var messagesperpageproc = 100;
670
+	    }
671
+
672
+	    var getnotify = 0;
673
+
674
+	    if ($("#get_notify").is(':checked')) {
675
+		getnotify = 1;
676
+	    }
677
+
678
+	    var emailaddressinit = $("#notification_email").val();
679
+
680
+	    function validate_email($email) {
681
+		var email_reg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
682
+		return email_reg.test($email);
683
+	    }
684
+
685
+	    if (validate_email(emailaddressinit)) {
686
+		 var notifyemail = emailaddressinit;
687
+	    } else {
688
+		 var notifyemail = '';
689
+	    }
690
+
691
+	    var includesmsinemail = 0;
692
+	    if ($("#includesmsinemail").is(':checked')) {
693
+		includesmsinemail = 1;
694
+                if ($("#notification_email").val().trim() == '') {
695
+                    showAlert("Please enter an email address in the field: 'I want to receive a notification to the email address from below ...', or uncheck the checkbox: 'Include the SMS/MMS message in the email notification itself'.");
696
+                    return;
697
+                }
698
+	    }
699
+
700
+	    var showdisplaynm = 0;
701
+	    if ($("#showdisplaynames").is(':checked')) {
702
+		showdisplaynm = 1;
703
+	    }
704
+
705
+	    var adddisplaynm = 0;
706
+	    if ($("#adddisplaynames").is(':checked')) {
707
+		adddisplaynm = 1;
708
+	    }
709
+
710
+	    var datatosave = {
711
+			      userId: userid,
712
+		              telapiUrlRec: $("#telapi_url_rec").val(),
713
+		              telapiUrl: $("#telapi_url").val(),
714
+		              nexapiUrlRec: $("#nexapi_url_rec").val(),
715
+		              nexapiUrl: $("#nexapi_url").val(),
716
+		              twilapiUrlRec: $("#twilapi_url_rec").val(),
717
+		              twilapiUrl: $("#twilapi_url").val(),
718
+		              flowapiUrlRec: $("#flowapi_url_rec").val(),
719
+		              flowapiUrl: $("#flowapi_url").val(),
720
+			      messagesperpage: messagesperpageproc,
721
+			      getNotify: getnotify,
722
+			      notificationEmail: notifyemail,
723
+			      getsmsinemail: includesmsinemail,
724
+			      showDisplayNames: showdisplaynm,
725
+                              addDisplayNames: adddisplaynm
726
+	    };
727
+
728
+
729
+	    $.ajax({
730
+	       method: 'PUT',
731
+	       url: baseUrlsave + '/' + userid,
732
+	       contentType: 'application/json',
733
+	       data: JSON.stringify(datatosave),
734
+	       success: function() {
735
+                               OC.msg.startAction('#smsr_save_msg', t('sms_relentless', 'Saved'));
736
+	       },
737
+	       error: function() {
738
+		    showAlert('Error while attempting to save the settings! You can check the Nextcloud log to find more details about this issue.');
739
+	       }
740
+	    });
741
+
742
+
743
+     } else if (isadm == 'admin') {
744
+
745
+	    // Save personal settings for admins
746
+	    event.preventDefault();
747
+	    var baseUrlsaveadm = OC.generateUrl('/apps/sms_relentless/user/updatepersadmnsettings');
748
+
749
+	    var messagesperpageinit = $("#messagesperpage").val();
750
+	    var messagesperpagesec = messagesperpageinit.replace(/[^0-9]/g, '');
751
+
752
+	    if (messagesperpagesec != '') {
753
+		var messagesperpageproc = messagesperpagesec;
754
+	    } else {
755
+		var messagesperpageproc = 100;
756
+	    }
757
+
758
+	    var getnotify = 0;
759
+
760
+	    if ($("#get_notify").is(':checked')) {
761
+		getnotify = 1;
762
+	    }
763
+
764
+	    var emailaddressinit = $("#notification_email").val();
765
+
766
+	    function validate_email($email) {
767
+		var email_reg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
768
+		return email_reg.test($email);
769
+	    }
770
+
771
+	    if (validate_email(emailaddressinit)) {
772
+		 var notifyemail = emailaddressinit;
773
+	    } else {
774
+		 var notifyemail = '';
775
+	    }
776
+
777
+	    var includesmsinemail = 0;
778
+	    if ($("#includesmsinemail").is(':checked')) {
779
+		includesmsinemail = 1;
780
+                if ($("#notification_email").val().trim() == '') {
781
+                    showAlert("Please enter an email address in the field: 'I want to receive a notification to the email address from below ...', or uncheck the checkbox: 'Include the SMS/MMS message in the email notification itself'.");
782
+                    return;
783
+                }
784
+	    }
785
+
786
+	    var showdisplaynm = 0;
787
+	    if ($("#showdisplaynames").is(':checked')) {
788
+		showdisplaynm = 1;
789
+	    }
790
+
791
+	    var adddisplaynm = 0;
792
+	    if ($("#adddisplaynames").is(':checked')) {
793
+		adddisplaynm = 1;
794
+	    }
795
+
796
+	    var datatosave = {
797
+			      userId: userid,
798
+			      messagesperpage: messagesperpageproc,
799
+			      getNotify: getnotify,
800
+			      notificationEmail: notifyemail,
801
+			      getsmsinemail: includesmsinemail,
802
+			      showDisplayNames: showdisplaynm,
803
+                              addDisplayNames: adddisplaynm
804
+	    };
805
+
806
+
807
+	    $.ajax({
808
+	       method: 'PUT',
809
+	       url: baseUrlsaveadm + '/' + userid,
810
+	       contentType: 'application/json',
811
+	       data: JSON.stringify(datatosave),
812
+	       success: function() {
813
+                               OC.msg.startAction('#smsr_save_msg', t('sms_relentless', 'Saved'));
814
+	       },
815
+	       error: function() {
816
+		    showAlert('Error while attempting to save the settings! You can check the Nextcloud log to find more details about this issue.');
817
+	       }
818
+	    });
819
+
820
+     }
821
+  });
822
+
823
+  function showAlert(alertText) {
824
+
825
+     let alertwnd = "<div id='alertMessage'>";
826
+     alertwnd += "<a id='closeAlertWnd' title='Close this window'></a>";
827
+     alertwnd += "<div id='alertTextWrap'>"+ alertText +"</div>";
828
+     alertwnd += "<input type='submit' id='alertOk' value='OK'>";
829
+     alertwnd += "</div>";
830
+
831
+     $("#content").append("<div id='alertMsgOverlay'></div>");
832
+     $("#content").append(alertwnd);
833
+
834
+     let topDist = parseInt((window.innerHeight / 2).toFixed(2) - 152) +"px";
835
+     let leftDist = parseInt((window.innerWidth / 2).toFixed(2) - 150) +"px";
836
+     $("#alertMessage").css({ "top" : topDist, "left" : leftDist });
837
+
838
+     $("#closeAlertWnd").click(function() { $("#alertMsgOverlay").remove(); $("#alertMessage").remove(); });
839
+     $("#alertMsgOverlay").click(function() { $("#alertMsgOverlay").remove(); $("#alertMessage").remove(); });
840
+     $("#alertOk").click(function() { $("#alertMsgOverlay").remove(); $("#alertMessage").remove(); });
841
+  }
842
+
843
+  function confirmAlert(alertText) {
844
+
845
+     $("#alertMsgOverlay").remove();
846
+     $("#alertConfMessage").remove();
847
+
848
+     let alertwndcf = "<div id='alertConfMessage'>";
849
+     alertwndcf += "<a id='closeAlertWndcf' title='Close this window'></a>";
850
+     alertwndcf += "<div id='alertTextWrap'>"+ alertText +"</div>";
851
+     alertwndcf += "<div id='cancelOkWrap'><input type='submit' id='confirmCancel' value='Cancel'>";
852
+     alertwndcf += "<input type='submit' id='confirmOk' value='OK'></div>";
853
+     alertwndcf += "</div>";
854
+
855
+     $("#content").append("<div id='alertMsgOverlay'></div>");
856
+     $("#content").append(alertwndcf);
857
+
858
+     let topDist = parseInt((window.innerHeight / 2).toFixed(2) - 152) +"px";
859
+     let leftDist = parseInt((window.innerWidth / 2).toFixed(2) - 150) +"px";
860
+     $("#alertConfMessage").css({ "top" : topDist, "left" : leftDist });
861
+
862
+     $("#closeAlertWndcf").click(function() { $("#alertMsgOverlay").remove(); $("#alertConfMessage").remove(); });
863
+     $("#alertMsgOverlay").click(function() { $("#alertMsgOverlay").remove(); $("#alertConfMessage").remove(); });
864
+  }
865
+
866
+});
0 867
new file mode 100644
... ...
@@ -0,0 +1,5020 @@
1
+/**
2
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
3
+ *
4
+ * @author Double Bastion LLC
5
+ *
6
+ * @license GNU AGPL version 3 or any later version
7
+ *
8
+ * This program is free software; you can redistribute it and/or
9
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
10
+ * License as published by the Free Software Foundation; either
11
+ * version 3 of the License, or any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public
19
+ * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+$(document).ready(function() {
24
+
25
+  var userid = "<?php p($userId); ?>";
26
+  var parseddata = null;
27
+  var sentparseddata = null;
28
+  var groupedparsed = null;
29
+  // Set the default number of messages per page
30
+  var messagesperpage = 100;
31
+  var intervalRfrRec = 0;
32
+  var intervalRfrSent = 0;
33
+
34
+  // Get the number of messages per page from the database
35
+  var getNoPerPageUrl = OC.generateUrl("/apps/sms_relentless/user/getmessagesperpage");
36
+
37
+  $.ajax({
38
+        url: getNoPerPageUrl + '/' + userid,
39
+        method: 'GET',
40
+        success: function(mesperpagedb) {
41
+                 messagesperpage = parseInt(mesperpagedb);
42
+
43
+        },
44
+        error: function(mesperpagedb) {
45
+                 showAlert("Error while getting the number of messages per page. You can check the Nextcloud log to find more details about this issue!");
46
+        }
47
+  });
48
+
49
+
50
+  // List received messages
51
+  $("#receivedsmstableshow").on("click", function(event) {
52
+
53
+     $('#smstables').empty();
54
+     var getReceivedUrl = OC.generateUrl("/apps/sms_relentless/user/getreceivedtable");
55
+
56
+     $('#smstables').addClass('icon-loading');
57
+
58
+     $.ajax({
59
+          url: getReceivedUrl + '/' + userid,
60
+          method: 'GET',
61
+          contentType: 'application/json',
62
+          success: function(datafdb) {
63
+
64
+                var parseddata = datafdb.datarows;
65
+
66
+                $('#smstables').append("<div id='toptablerec'><div class='topbuttonandpage'><span id='recarrow' title='Show/Hide filters and Delete button'></span></div><div id='paginationrec' class='recpages'>Pages </div></div>");
67
+                $('#smstables').append("<table id='recSmsTable'></table>");
68
+
69
+                $('#recSmsTable').append("<tr id='recfiltersrow'><td class='selectalldvfilter'><button id='clearrecfilters' title='Clear all filters.'></button><button id='deleterecrows' title='Permanently delete the selected row(s) from below from the database.'></button></td><td class='selectalldvfilter'><input type='text' id='dbidtextrec' class='indivfilterrec' title='Enter a database ID number to apply the filter.'><input type='submit' id='databaseidfilter' class='filterbuttonsrec' value='' title='Filter rows by the specified database ID.' /></td><td class='selectalldvfilter'><input type='text' id='useridtextrec' class='indivfilterrec' title='Enter a Nextcloud username to apply the filter.' /><input type='submit' id='useridfilter' class='filterbuttonsrec' value='' title='Filter rows by the specified username.' /></td><td class='selectalldvfilter'><input type='text' id='messageidtextrec' class='indivfilterrec' title='Enter a fragment from a message ID to apply the filter.'  /><input type='submit' id='messageidfilter' class='filterbuttonsrec' value='' title='Filter rows by the specified string.' /></td><td class='selectalldvfilter'><input type='text' id='datetextrec' class='indivfilterrec' title='Enter a fragment of a date to apply the filter.'/><input type='submit' id='datefilter' class='filterbuttonsrec' value='' title='Filter rows by the specified string.' /></td><td class='selectalldvfilter'><input type='text' id='fromtextrec' class='indivfilterrec' title='Enter a fragment of a sender&#146s phone number or alphanumeric sender ID, to apply the filter.' /><input type='submit' id='fromfilter' class='filterbuttonsrec' value='' title='Filter rows by the specified string.' /></td><td class='selectalldvfilter'><input type='text' id='totextrec' class='indivfilterrec' value='' title='Enter a fragment of a recipient&#146s phone number to apply the filter.'  /><input type='submit' id='tofilter' class='filterbuttonsrec' value='' title='Filter rows by the specified string.' /></td><td class='selectalldvfilter'><input type='text' id='messagetextrec' class='indivfilterrec' title='Enter a fragment of a message to apply the filter.' /><input type='submit' id='messagefilter' class='filterbuttonsrec' value='' title='Filter rows by the specified string.'/></td></tr>");
70
+                $('#recSmsTable').append("<tr class='receivedrows' id='recheaderrow'><th id='selectalldv' class='selectsmsdv'><input type='checkbox' id='selectAllChckbx' class ='indivchckbx' title='Select all rows.' /></th><th title='The database ID of each message.'>ID</th><th>User ID</th><th>Message ID</th><th>Date</th><th>From</th><th>To</th><th>Received Message</th></tr>");
71
+
72
+                $('#recfiltersrow').hide();
73
+
74
+                if (datafdb.showdispnm == 1) {
75
+
76
+                    for (var i = 0; i < parseddata.length; i++) {
77
+
78
+                         if (parseddata[i].author_displayname) {
79
+                             var procrcmessage = "<span class='messageAuthorName'>"+ parseddata[i].author_displayname + ":</span>" + parseddata[i].message +"<div id='showMsgConv-"+ i +"' class='lstMsgConv'><img class='lstMsgConvImg' src='/apps/sms_relentless/img/reply.svg' title='Show all the messages exchanged between the current 2 phone numbers.'></div>";
80
+                         } else {
81
+                             var procrcmessage = parseddata[i].message +"<div id='showMsgConv-"+ i +"' class='lstMsgConv'><img class='lstMsgConvImg' src='/apps/sms_relentless/img/reply.svg' title='Show all the messages exchanged between the current 2 phone numbers.'></div>";
82
+                         }
83
+
84
+                         if (parseddata[i].internal_sender == 0) {
85
+                             var procrecFrom = "<div id='frmNmbr-"+ i +"'><div id='addDispName-"+ i +"' style='display:block;margin-right:5px;'><img class='addNameToPhNb' src='/apps/sms_relentless/img/user-grey.svg' title='Associate a Display Name with this phone number'></div>"+ parseddata[i].from +"<div id='showMsgFrom-"+ i +"' class='listToFromMsgs'><img class='lstMsgToFromImg' src='/apps/sms_relentless/img/list.svg' title='Show all the messages sent/received to/from this phone number, that I am allowed to see.'></div></div>";
86
+                         } else {
87
+                             var procrecFrom = "<div id='frmNmbr-"+ i +"'>"+ parseddata[i].from +"<div id='showMsgFrom-"+ i +"' class='listToFromMsgs'><img class='lstMsgToFromImg' src = '/apps/sms_relentless/img/list.svg' title='Show all the messages sent/received to/from this phone number, that I am allowed to see.'></div></div>";
88
+                         }
89
+
90
+                         var procrecTo = "<div id='toNmbr-"+ i +"'>"+ parseddata[i].to +"<div id='showMsgTo-"+ i +"' class='listToFromMsgs'><img class='lstMsgToFromImg' src = '/apps/sms_relentless/img/list.svg' title='Show all the messages sent/received to/from this phone number, that I am allowed to see.'></div></div>";
91
+
92
+                         $("#recSmsTable").append("<tr id='singlerow_"+ i +"' class='receivedrowsbody'><td class='selectsmsdv'><input type='checkbox' id='selectspec_"+ i +"' class='indivchckbx' /></td><td class='dbidcolumnrec'>"+ parseddata[i].id +"</td><td class='useridcolrec'>"+ parseddata[i].user_id +"</td><td class='messageidcolrec'>"+ parseddata[i].message_id +"</td><td class='datecolrec'>"+ parseddata[i].date +"</td><td class='fromcolumnrec'>"+ procrecFrom +"</td><td class='tocolrec'>"+ procrecTo +"</td><td class='messagecolumnrec'>"+ procrcmessage +"</td></tr>");
93
+                    }
94
+
95
+                } else {
96
+
97
+                    for (var i = 0; i < parseddata.length; i++) {
98
+
99
+                         var procrcmessage = parseddata[i].message +"<div id='showMsgConv-"+ i +"' class='lstMsgConv'><img class='lstMsgConvImg' src='/apps/sms_relentless/img/reply.svg' title='Show all the messages exchanged between the current 2 phone numbers.'></div>";
100
+
101
+                         if (parseddata[i].internal_sender == 0) {
102
+                             var procrecFrom = "<div id='frmNmbr-"+ i +"'><div id='addDispName-"+ i +"' style='display:block;margin-right:5px;'><img class='addNameToPhNb' src='/apps/sms_relentless/img/user-grey.svg' title='Associate a Display Name with this phone number'></div>"+ parseddata[i].from +"<div id='showMsgFrom-"+ i +"' class='listToFromMsgs'><img class='lstMsgToFromImg' src='/apps/sms_relentless/img/list.svg' title='Show all the messages sent/received to/from this phone number, that I am allowed to see.'></div></div>";
103
+                         } else {
104
+                             var procrecFrom = "<div id='frmNmbr-"+ i +"'>"+ parseddata[i].from +"<div id='showMsgFrom-"+ i +"' class='listToFromMsgs'><img class='lstMsgToFromImg' src = '/apps/sms_relentless/img/list.svg' title='Show all the messages sent/received to/from this phone number, that I am allowed to see.'></div></div>";
105
+                         }
106
+
107
+                         var procrecTo = "<div id='toNmbr-"+ i +"'>"+ parseddata[i].to +"<div id='showMsgTo-"+ i +"' class='listToFromMsgs'><img class='lstMsgToFromImg' src = '/apps/sms_relentless/img/list.svg' title='Show all the messages sent/received to/from this phone number, that I am allowed to see.'></div></div>";
108
+
109
+                         $("#recSmsTable").append("<tr id='singlerow_"+ i +"' class='receivedrowsbody'><td class='selectsmsdv'><input type='checkbox' id='selectspec_"+ i +"' class='indivchckbx' /></td><td class='dbidcolumnrec'>"+ parseddata[i].id +"</td><td class='useridcolrec'>"+ parseddata[i].user_id +"</td><td class='messageidcolrec'>"+ parseddata[i].message_id +"</td><td class='datecolrec'>"+ parseddata[i].date +"</td><td class='fromcolumnrec'>"+ procrecFrom +"</td><td class='tocolrec'>"+ procrecTo +"</td><td class='messagecolumnrec'>"+ procrcmessage +"</td></tr>");
110
+                    }
111
+                }
112
+
113
+                $('#smstables').append("<div id='totalrecmessages'>Total displayed messages: " + parseddata.length + "</div>");
114
+
115
+                $('#smstables').removeClass('icon-loading');
116
+                $('#recarrow').removeClass('arrowUpCl');
117
+                $('#recarrow').addClass('arrowDownCl');
118
+
119
+                // Show the pop-up window that lists all the messages exchanged between the current 2 phone numbers
120
+                function showRecMsgPerConv(phNumberFrom, phNumberTo) {
121
+
122
+                   let allfrmtomsg = "<div id='listAllMsgsConv'>";
123
+                   allfrmtomsg += "<div id='draglstMsgmWindow'><img src='/apps/sms_relentless/img/dots.svg'></div>";
124
+                   allfrmtomsg += "<a id='closeFrmMsgWindow' title='Close this window'></a>";
125
+                   allfrmtomsg += "<div class='showByNmbrTitle'>Messages exchanged between <span style='color:#04957b'>"+ phNumberFrom +"</span> and <span style='color:#04957b'>"+ phNumberTo +"</span></div>";
126
+                   allfrmtomsg += "<div id='frmMsgLstWrap'>";
127
+                   allfrmtomsg += "<table id='frmMsgLstTbl'>";
128
+                   allfrmtomsg += "<tr class='groupedrowsbody'><td><div id='grpdbynamelst' class='groupedLstNamespn'></div></td><td><div id='loadMoreMsgs' title='Click to load older messages.'>Load more messages</div><div id='loadMoreMsgsusr' title='Click to load older messages.'>Load more messages</div><div id='msgListRowCell' class='groupedLstMsgspn'></div><div id='refreshMsgsWrap'><div id='stopAutoRefresh'>Stop auto refresh</div><div id='refreshMsgsConv' title='Refresh list'></div></div><div id='arrowupWrap'><div id='upArrowSmall' title='Scroll to the top'></div></div></td></tr>";
129
+                   allfrmtomsg += "</table></div>";
130
+                   allfrmtomsg += "<div id='sendMsgReply'><table id='sendMsgConv'><tr><td><div id='fromPhoneNmbrConv'>From: <select id='selectFromNbConv'></select></div><div id='toPhoneNmbrConv'>To: <span id='toNmbrConv' style='color:#04957b'>"+ phNumberFrom +"</span></div></td></tr>";
131
+                   allfrmtomsg += "<tr><td><textarea id='sendMsgConvText' placeholder='Enter a message here, then press Send SMS'></textarea></td></tr></table>";
132
+                   allfrmtomsg += "<div id='sendMsgConvBtn'>Send SMS</div></div>";
133
+                   allfrmtomsg += "<div style='display:block;width:100%;height:14px;'><img id='expandWindowRpl' src='/apps/sms_relentless/img/arrowDown.svg' title='Expand to send a reply'></div>";
134
+                   allfrmtomsg += "<div id='draglstMsgmWindowsc'><img src='/apps/sms_relentless/img/dots.svg' style='padding:4px;vertical-align:top;'></div>";
135
+                   allfrmtomsg += "</div>";
136
+
137
+                   $("#content").append("<div id='recTblOverlay'></div>");
138
+                   $("#content").append(allfrmtomsg);
139
+
140
+                   let topDist = parseInt((window.innerHeight / 2).toFixed(2) - 340) +"px";
141
+                   let leftDist = parseInt((window.innerWidth / 2).toFixed(2) - 300) +"px";
142
+                   $("#listAllMsgsConv").css({ "top" : topDist, "left" : leftDist });
143
+
144
+                   var intervalRfr = 0;
145
+                   var rplchck = 0;
146
+
147
+                   $("#closeFrmMsgWindow").click(function() { $("#listAllMsgsConv").remove(); $("#recTblOverlay").remove(); clearInterval(intervalRfr); });
148
+                   $("#recTblOverlay").click(function() { $("#listAllMsgsConv").remove(); $("#recTblOverlay").remove(); clearInterval(intervalRfr); });
149
+
150
+
151
+	           // Expand the window when clicking on the arrow, to be able to send a reply message
152
+                   $("#expandWindowRpl").unbind("click");
153
+	           $("#expandWindowRpl").click(function() {
154
+
155
+	              if ($(this).attr('src') == '/apps/sms_relentless/img/arrowDown.svg') {
156
+                          $("#sendMsgReply").css("display", "block");
157
+                          $("#listAllMsgsConv").css("height", "618px");
158
+	                  $(this).attr('src', '/apps/sms_relentless/img/arrowUp.svg');
159
+                          $(this).attr('title', 'Collapse');
160
+                          $("#stopAutoRefresh").css("visibility", "visible");
161
+                          intervalRfr = setInterval(function() { $("#refreshMsgsConv").click(); }, 5000);
162
+
163
+                          $("#stopAutoRefresh").text("Stop auto refresh");
164
+                          $("#stopAutoRefresh").css("color", "#0a559e");
165
+
166
+                          $("#stopAutoRefresh").unbind("click");
167
+                          $("#stopAutoRefresh").click(function() { 
168
+                             if ($("#stopAutoRefresh").text() == "Stop auto refresh") {
169
+                                  clearInterval(intervalRfr);
170
+                                  $("#stopAutoRefresh").text("Start auto refresh");
171
+                                  $("#stopAutoRefresh").css("color", "#04957b");
172
+                             } else {
173
+                                  clearInterval(intervalRfr);
174
+                                  intervalRfr = setInterval(function() { $("#refreshMsgsConv").click(); }, 5000);
175
+                                  $("#stopAutoRefresh").text("Stop auto refresh");
176
+                                  $("#stopAutoRefresh").css("color", "#0a559e");
177
+                             }
178
+                          });
179
+
180
+                          rplchck = 1;
181
+
182
+	              } else {
183
+
184
+                          $("#sendMsgReply").css("display", "none");
185
+                          $("#listAllMsgsConv").css("height", "490px");
186
+                          $(this).attr('src', '/apps/sms_relentless/img/arrowDown.svg');
187
+                          $(this).attr('title', 'Expand to send a reply');
188
+                          $("#stopAutoRefresh").css("visibility", "hidden");
189
+                          $("#stopAutoRefresh").unbind("click");
190
+                          clearInterval(intervalRfr);
191
+                          rplchck = 0;
192
+	              }
193
+	           });
194
+
195
+
196
+                   // Send a message from the 'conversation' window
197
+                   $("#sendMsgConvBtn").click(function() {
198
+
199
+                      $("#sendMsgConv,#sendMsgConvBtn").addClass('icon-loading');
200
+                      var msgToSend = $("#sendMsgConvText").val();
201
+                      var selectedid = $("#selectFromNbConv").val();
202
+                      var toNumber = $("#toNmbrConv").text();
203
+                      var receiversNumbers = [toNumber];
204
+
205
+		      if (selectedid != '') { 
206
+
207
+			  var sendersplit = selectedid.split(":");
208
+			  var providercap = sendersplit[0];
209
+			  var provsec = sendersplit[1];
210
+
211
+			  if (/[a-zA-Z]/.test(provsec)) {
212
+			      var alphanumcheck = true;
213
+			  } else { var alphanumcheck = false; }
214
+
215
+			  if (providercap == 'Tx' && alphanumcheck == false) {  
216
+			      var senderproc = selectedid.replace(/[^0-9]/g, "");
217
+			      var selectedsender = "+" + senderproc;
218
+			      var providerUsed = "telnyx";
219
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstel");
220
+			  } else if (providercap == 'Pl' && alphanumcheck == false) {
221
+			      var selectedsender = selectedid.replace(/[^0-9]/g, "");
222
+			      var providerUsed = "plivo";
223
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsnex");
224
+			  } else if (providercap == 'Tw' && alphanumcheck == false) {  
225
+			      var senderproc = selectedid.replace(/[^0-9]/g, "");
226
+			      var selectedsender = "+" + senderproc;
227
+			      var providerUsed = "twilio";
228
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstwil");
229
+			  } else if (providercap == 'Fl' && alphanumcheck == false) {  
230
+			      var senderproc = selectedid.replace(/[^0-9]/g, "");
231
+			      var selectedsender = "+" + senderproc;
232
+			      var providerUsed = "flowroute";
233
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsflow");
234
+			  } else if (providercap == 'Tx' && alphanumcheck == true) {
235
+			      var selectedsender = provsec;
236
+			      var providerUsed = "telnyx";
237
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstel");
238
+			  } else if (providercap == 'Pl' && alphanumcheck == true) {
239
+			      var selectedsender = provsec;
240
+			      var providerUsed = "plivo";
241
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsnex");
242
+			  } else if (providercap == 'Tw' && alphanumcheck == true) {
243
+			      var selectedsender = provsec;
244
+			      var providerUsed = "twilio";
245
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstwil");
246
+			  } else if (providercap == 'Fl' && alphanumcheck == true) {
247
+			      var selectedsender = provsec;
248
+			      var providerUsed = "flowroute";
249
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsflow");
250
+			  }
251
+
252
+                          var uploadedtomms = [];
253
+
254
+	                  if (msgToSend != '') {
255
+
256
+				  $.ajax({
257
+				     url: relbaseUrl + '/' + userid,
258
+				     type: "POST",
259
+				     data: {
260
+				           receiversPhoneNbs: receiversNumbers,
261
+				           fromsender: selectedsender,
262
+				           waitinterval: 1000,
263
+				           sentsmstext: msgToSend,
264
+				           ismms: 0,
265
+				           mmsfiles: uploadedtomms
266
+				         },
267
+				     success: function(displayname) {
268
+
269
+                                           var tzdate = new Date();
270
+                                           var presDatest = new Date(tzdate.getTime() - (tzdate.getTimezoneOffset() * 60000)).toJSON();
271
+                                           var presDatedb = presDatest.split(".")[0];
272
+                                           var presDatesc = presDatedb.split("T");
273
+                                           var presDate = presDatesc[0] +" "+ presDatesc[1];
274
+                                           var sentMessageStatus = '';
275
+
276
+                                           if (displayname) {
277
+                                               var msgToSendproc = "<span class='msgAuthorNameGrp'>"+ displayname + ":</span>" + msgToSend; 
278
+                                           } else { var msgToSendproc = msgToSend; }
279
+
280
+                                           $("#msgListRowCell").append("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ selectedsender +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ receiversNumbers[0] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ msgToSendproc +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ presDate +"</div><div class='sentMssgStatus'>"+ sentMessageStatus +"</div></div>");
281
+
282
+                                           // Scroll down to the bottom of the window
283
+                                           $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
284
+
285
+                                           $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
286
+				     },
287
+				     error: function() {
288
+                                           showAlert("Error while sending the message. You can check your Nextcloud log to find out more about this issue.");
289
+				           $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
290
+				     }
291
+				  });
292
+			  } else {
293
+                                  showAlert("Please enter a message in the text box!");
294
+				  $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
295
+			  }
296
+		      } else {
297
+                              showAlert("Please choose a Sender ID from the 'From' drop-down list!");
298
+			      $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
299
+		      }
300
+
301
+                   });
302
+
303
+
304
+	           // Make the window draggable
305
+	           function makeMgrWndDraggable(e) {
306
+
307
+			   window.pmdragging = {};
308
+			   pmdragging.pageX0 = e.pageX;
309
+			   pmdragging.pageY0 = e.pageY;
310
+			   pmdragging.elem = $("#listAllMsgsConv");
311
+			   pmdragging.offset0 = $("#listAllMsgsConv").offset();
312
+
313
+			   function handle_dragging(e) {
314
+			       let left = pmdragging.offset0.left + (e.pageX - pmdragging.pageX0);
315
+			       let top = pmdragging.offset0.top + (e.pageY - pmdragging.pageY0);
316
+			       $(pmdragging.elem).offset({top: top, left: left});
317
+			   }
318
+
319
+			   function handle_mouseup(e) {
320
+			       $('body').off('mousemove', handle_dragging).off('mouseup', handle_mouseup);
321
+			   }
322
+
323
+			   $('body').on('mouseup', handle_mouseup).on('mousemove', handle_dragging);
324
+	           }
325
+	           $("#draglstMsgmWindow").mousedown(makeMgrWndDraggable);
326
+	           $("#draglstMsgmWindowsc").mousedown(makeMgrWndDraggable);
327
+
328
+
329
+                   // Append the available phone numbers to the From drop-down list
330
+                   var availPhoneNmbrs = [];
331
+                   $("#currentsmsnmbrs .optselectsmsnb").each(function() {
332
+                      var crtphnmbr = $(this).attr("value");
333
+                      if (crtphnmbr != "") { availPhoneNmbrs.push(crtphnmbr); }
334
+                   });
335
+
336
+                   if (availPhoneNmbrs.length > 0) {
337
+                       var avphopt = "";
338
+                       for (let d = 0; d < availPhoneNmbrs.length; d++) {
339
+                            if (availPhoneNmbrs[d].indexOf(phNumberTo) === -1) {
340
+                                avphopt += "<option value='"+ availPhoneNmbrs[d] +"'>"+ availPhoneNmbrs[d] +"</option>";
341
+                            } else {
342
+                                avphopt += "<option value='"+ availPhoneNmbrs[d] +"' selected>"+ availPhoneNmbrs[d] +"</option>";
343
+                            }
344
+                       }
345
+                       $("#selectFromNbConv").append(avphopt);
346
+
347
+                   } else { $("#selectFromNbConv").append("<option value='' selected>No IDs</option>"); }
348
+
349
+
350
+                   // Get the sent/received messages for the current phone numbers, from the database
351
+                   function getMsgsForNumbers(phNumberFrom, phNumberTo) {
352
+
353
+			   let getGrpConvUrl = OC.generateUrl("/apps/sms_relentless/user/getgroupedforreply");
354
+
355
+			   $('#listAllMsgsConv').addClass('icon-loading');
356
+
357
+			   let totalPhNmbrs = 0;
358
+
359
+			   $.ajax({
360
+				  method: 'POST',
361
+				  url: getGrpConvUrl + '/' + userid,
362
+				  contentType: 'application/json',
363
+		                  data: JSON.stringify({ phoneNmbrFrom: phNumberFrom, phoneNmbrTo: phNumberTo }),
364
+				  success: function(groupedperconv) {
365
+
366
+					     $('#listAllMsgsConv').removeClass('icon-loading');
367
+
368
+					     let fromtoNmbrsData = [];
369
+
370
+					     for (let i = 0; i < groupedperconv.length; i++) {
371
+
372
+						     if (groupedperconv[i].author_displayname) {
373
+							 var authordnm = groupedperconv[i].author_displayname;
374
+						     } else { 
375
+							 var authordnm = '';
376
+						     }
377
+
378
+						     var sentfromnmbrarr = groupedperconv[i].from.split("+");
379
+						     if (sentfromnmbrarr[1]) {
380
+							 var groupednbfrom = "+"+ sentfromnmbrarr[1];
381
+						     } else {
382
+							 var groupednbfrom = sentfromnmbrarr[0];
383
+						     }
384
+
385
+						     var modmessagerec = '';
386
+						     if (groupedperconv[i].author_displayname) {
387
+							 modmessagerec = "<span class='msgAuthorNameGrp'>"+ groupedperconv[i].author_displayname + ":</span>" + groupedperconv[i].message;
388
+						     } else {
389
+					                 modmessagerec = groupedperconv[i].message;
390
+		                                     }
391
+
392
+						     if (groupedperconv[i].to.indexOf(": ") > -1) {
393
+						         var groupednmbrtopre = groupedperconv[i].to.split(": ");
394
+						         var groupednmbrto = groupednmbrtopre[1];
395
+						     } else { 
396
+						         var groupednmbrto = groupedperconv[i].to;
397
+						     }
398
+
399
+						     fromtoNmbrsData.push({
400
+						               'author_displayname': authordnm,
401
+						               'from': groupednbfrom,
402
+						               'to': groupednmbrto,
403
+						               'message': modmessagerec,
404
+						               'date': groupedperconv[i].date,
405
+						               'status': groupedperconv[i].deliveryreceipt,
406
+						               'table': groupedperconv[i].table
407
+						     });
408
+					     }
409
+
410
+
411
+					     // Remove the duplicates
412
+					     let noDupMsgData = [];
413
+					     $.each(fromtoNmbrsData, function(i, e) {
414
+						    let matchingData = $.grep(noDupMsgData, function(item) {
415
+						            return item.from == e.from && item.to == e.to && item.message == e.message && item.table == 'received' && e.table == 'sent';
416
+						    });
417
+						    if (matchingData.length === 0) {
418
+							noDupMsgData.push(e);
419
+						    }
420
+					     });
421
+
422
+					     let messagesPerNmbr = {};
423
+					     let msgsNamesPerNmbr = {};
424
+					     let msgsNmbrsNames = {};
425
+
426
+					     let displayNamesarr = [];
427
+					     let convData = [];
428
+
429
+					     for (let n = 0; n < noDupMsgData.length; n++) {
430
+
431
+					          if (noDupMsgData[n]['from'] == phNumberFrom && noDupMsgData[n]['table'] == 'sent') {
432
+
433
+					              convData.push({
434
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
435
+					                             'message': noDupMsgData[n]['message'],
436
+					                             'from': noDupMsgData[n]['from'],
437
+					                             'to': noDupMsgData[n]['to'],
438
+					                             'date': noDupMsgData[n]['date'],
439
+					                             'direction': 'sent_from',
440
+					                             'status': noDupMsgData[n]['status'],
441
+					                             'table': noDupMsgData[n]['table']
442
+					              });
443
+
444
+					          } else if (noDupMsgData[n]['to'] == phNumberFrom && noDupMsgData[n]['table'] == 'sent') {
445
+
446
+					              convData.push({
447
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
448
+					                             'message': noDupMsgData[n]['message'],
449
+					                             'from': noDupMsgData[n]['from'],
450
+					                             'to': noDupMsgData[n]['to'],
451
+					                             'date': noDupMsgData[n]['date'],
452
+					                             'direction': 'sent_to',
453
+					                             'status': noDupMsgData[n]['status'],
454
+					                             'table': noDupMsgData[n]['table']
455
+					              });
456
+
457
+
458
+					          } else if (noDupMsgData[n]['from'] == phNumberFrom && noDupMsgData[n]['table'] == 'received') {
459
+
460
+					              convData.push({
461
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
462
+					                             'message': noDupMsgData[n]['message'],
463
+					                             'from': noDupMsgData[n]['from'],
464
+					                             'to': noDupMsgData[n]['to'],
465
+					                             'date': noDupMsgData[n]['date'],
466
+					                             'direction': 'received_from',
467
+					                             'status': noDupMsgData[n]['status'],
468
+					                             'table': noDupMsgData[n]['table']
469
+					              });
470
+
471
+					          } else if (noDupMsgData[n]['to'] == phNumberFrom && noDupMsgData[n]['table'] == 'received') {
472
+
473
+					              convData.push({
474
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
475
+					                             'message': noDupMsgData[n]['message'],
476
+					                             'from': noDupMsgData[n]['from'],
477
+					                             'to': noDupMsgData[n]['to'],
478
+					                             'date': noDupMsgData[n]['date'],
479
+					                             'direction': 'received_on',
480
+					                             'status': noDupMsgData[n]['status'],
481
+					                             'table': noDupMsgData[n]['table']
482
+					              });
483
+					          }
484
+					     }
485
+
486
+					     // Sort messages by date
487
+					     convData.sort(function(a, b) {
488
+						let c = new Date(a.date);
489
+						let d = new Date(b.date);
490
+						return c-d;
491
+					     });
492
+		                             convData.reverse();
493
+
494
+					     // Collect the display names of the users that sent messages from the current number
495
+					     let selectedNames = [];
496
+					     let displayNames = '';
497
+					     for (let v = 0; v < convData.length; v++) {
498
+					          if (selectedNames.indexOf(convData[v]['author_displayname']) == -1) { 
499
+					              selectedNames.push(convData[v]['author_displayname']);
500
+					              displayNames += "<div id='diplNm_"+ phNumberFrom +"_"+ v +"' class='dispNameList' name='"+ convData[v]['author_displayname'] +"'>"+ convData[v]['author_displayname'] +"</div>";
501
+					          }
502
+					     }
503
+					     displayNames += "<div id='diplNmAllMsg' class='dispNameListAll' title='Show all the messages for this number.'>"+ phNumberFrom +"</div>";
504
+
505
+					     // Store the display names for the current number, to be able to see them later
506
+					     let ctPhNumber = phNumberFrom;
507
+					     msgsNamesPerNmbr[ctPhNumber] = displayNames;
508
+
509
+					     // Store the messages sent by each user, to be able to see them later when clicking on the user's name
510
+					     for (let h = 0; h < selectedNames.length; h++) {
511
+
512
+					          let rowMessageArrpn = [];
513
+					          for (let b = 0; b < convData.length; b++) {
514
+
515
+					               if (selectedNames[h] == convData[b]['author_displayname']) {
516
+
517
+							   if (convData[b]['direction'] == 'sent_from') {
518
+							       if (convData[b]['status'].indexOf("delivered") > -1 || convData[b]['status'].indexOf("delivery success") > -1 || convData[b]['status'].indexOf("Retrieved") > -1) {
519
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
520
+							       } else {
521
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
522
+							       }
523
+							       rowMessageArrpn.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
524
+							   } else if (convData[b]['direction'] == 'sent_to') {
525
+							       if (convData[b]['status'].indexOf("delivered") > -1 || convData[b]['status'].indexOf("delivery success") > -1 || convData[b]['status'].indexOf("Retrieved") > -1) {
526
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
527
+							       } else {
528
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
529
+							       }
530
+							       rowMessageArrpn.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
531
+							   } else if (convData[b]['direction'] == 'received_from') {
532
+							       rowMessageArrpn.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div></div>");
533
+							   } else if (convData[b]['direction'] == 'received_on') {
534
+							       rowMessageArrpn.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div></div>");
535
+					                   }
536
+					               }
537
+					          }
538
+					          let crtNmber = phNumberFrom;
539
+					          let crtName = selectedNames[h];
540
+					          msgsNmbrsNames[crtNmber] = msgsNmbrsNames[crtNmber] || {};
541
+		                                  msgsNmbrsNames[crtNmber][crtName] = rowMessageArrpn;
542
+					     }
543
+
544
+		                             // The number of messages to be loaded by default
545
+		                             let nmbTblDefault = 50;
546
+
547
+		                             // If the total number of messages is greater than the default number of messages to display, show the 'Load more messages' button
548
+		                             if (convData.length > nmbTblDefault) {
549
+		                                 $("#loadMoreMsgs").css("display", "block");
550
+		                                 var nmbToBeLoaded = nmbTblDefault;
551
+		                             } else { var nmbToBeLoaded = convData.length; }
552
+
553
+					     let rowMessageArr = [];
554
+					     for (var m = nmbToBeLoaded - 1; m >= 0; m--) {
555
+
556
+					          if (convData[m]['direction'] == 'sent_from') {
557
+
558
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
559
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
560
+					              } else {
561
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
562
+					              }
563
+					              rowMessageArr.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
564
+
565
+					          } else if (convData[m]['direction'] == 'sent_to') {
566
+
567
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
568
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
569
+					              } else {
570
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
571
+					              }
572
+					              rowMessageArr.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
573
+
574
+					          } else if (convData[m]['direction'] == 'received_from') {
575
+
576
+						      rowMessageArr.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
577
+
578
+					          } else if (convData[m]['direction'] == 'received_on') {
579
+
580
+						      rowMessageArr.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
581
+					          }
582
+					     }
583
+
584
+					     let convDataPerNmbr = rowMessageArr.join("");
585
+		                             $("#grpdbynamelst").empty();
586
+		                             $("#grpdbynamelst").append(displayNames);
587
+		                             $("#msgListRowCell").empty();
588
+		                             $("#msgListRowCell").append(convDataPerNmbr);
589
+
590
+					     // Store the messages for the current number, to be able to see them later, when clicking on the number
591
+					     let rowMessageArrcpt = [];
592
+					     for (let m = 0; m < convData.length; m++) {
593
+
594
+					          if (convData[m]['direction'] == 'sent_from') {
595
+
596
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
597
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
598
+					              } else {
599
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
600
+					              }
601
+					              rowMessageArrcpt.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
602
+
603
+					          } else if (convData[m]['direction'] == 'sent_to') {
604
+
605
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
606
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
607
+					              } else {
608
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
609
+					              }
610
+					              rowMessageArrcpt.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
611
+
612
+					          } else if (convData[m]['direction'] == 'received_from') {
613
+
614
+						      rowMessageArrcpt.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
615
+
616
+					          } else if (convData[m]['direction'] == 'received_on') {
617
+
618
+						      rowMessageArrcpt.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
619
+					          }
620
+					     }
621
+
622
+					     messagesPerNmbr[phNumberFrom] = rowMessageArrcpt;
623
+
624
+		                             // Scroll down to the bottom of the window
625
+                                             if (rplchck == 0) {
626
+		                                 $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
627
+                                             }
628
+
629
+		                             // Load more messages
630
+		                             let clickNmb = 0;
631
+		                             $("#loadMoreMsgs").click(function() {
632
+
633
+		                                 clickNmb++;
634
+
635
+		                                 var crefnb = (clickNmb + 1) * nmbToBeLoaded;
636
+
637
+		                                 if (crefnb > convData.length) {
638
+		                                     var nmbmsg = convData.length - 1;
639
+		                                     $("#loadMoreMsgs").css("display", "none");
640
+		                                 } else { 
641
+		                                     var nmbmsg = crefnb - 1;
642
+		                                 }
643
+
644
+		                                 var rowMessageArrAdd = [];
645
+
646
+		                                 for (let m = nmbmsg; m >= clickNmb * nmbToBeLoaded; m--) {
647
+
648
+					              if (convData[m]['direction'] == 'sent_from') {
649
+
650
+					                  if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
651
+					                      let sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
652
+					                  } else {
653
+					                      let sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
654
+					                  }
655
+					                  rowMessageArrAdd.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
656
+
657
+					              } else if (convData[m]['direction'] == 'sent_to') {
658
+
659
+					                  if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
660
+					                      let sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
661
+					                  } else {
662
+					                      let sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
663
+					                  }
664
+					                  rowMessageArrAdd.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
665
+
666
+					              } else if (convData[m]['direction'] == 'received_from') {
667
+
668
+							  rowMessageArrAdd.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
669
+
670
+					              } else if (convData[m]['direction'] == 'received_on') {
671
+
672
+							  rowMessageArrAdd.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
673
+					              }
674
+		                                 }
675
+
676
+					         let convDataPerNmbrad = rowMessageArrAdd.join("");
677
+
678
+		                                 let scrlheight = $("#msgListRowCell").height();
679
+		                                 $("#msgListRowCell").prepend(convDataPerNmbrad);
680
+
681
+		                                 $("#frmMsgLstWrap").scrollTop($("#msgListRowCell").height() - scrlheight);
682
+		                             });
683
+
684
+
685
+					     // Show the messages sent by each user whose name is clicked
686
+					     $('[id*="diplNm_"]').click(function() {
687
+
688
+					         let crntNmbr = $(this).attr("id").split("_")[1];
689
+					         let crntDisName = $(this).attr("name");                               
690
+		                                 $("#loadMoreMsgs").css("display", "none");
691
+
692
+		                                 let convDataprn = [];
693
+		                                 $.each(msgsNmbrsNames[crntNmbr][crntDisName], function(index, item) {
694
+		                                        convDataprn.push(item);
695
+		                                 });
696
+
697
+		                                 // If the total number of messages is greater than the default number of messages to display, show the 'Load more messages' button
698
+		                                 if (convDataprn.length > nmbTblDefault) {
699
+		                                     $("#loadMoreMsgsusr").css("display", "block");
700
+		                                     let nmbToBeLoaded = nmbTblDefault;
701
+		                                 } else {
702
+		                                     $("#loadMoreMsgsusr").css("display", "none");
703
+		                                     let nmbToBeLoaded = convDataprn.length;
704
+		                                 }
705
+
706
+					         let rowMessageArrprnst = [];
707
+
708
+					         for (let n = nmbToBeLoaded - 1; n >= 0; n--) {
709
+		                                      rowMessageArrprnst.push(convDataprn[n]);
710
+					         }
711
+
712
+					         let convDataPerNmbrprnst = rowMessageArrprnst.join("");
713
+
714
+		                                 $("#msgListRowCell").empty();
715
+		                                 $("#msgListRowCell").append(convDataPerNmbrprnst);
716
+
717
+		                                 // Scroll down to the bottom of the window
718
+		                                 $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
719
+
720
+		                                 // Load more messages
721
+		                                 let clckNb = 0;
722
+		                                 $("#loadMoreMsgsusr").unbind("click");
723
+		                                 $("#loadMoreMsgsusr").click(function() {
724
+
725
+		                                     clckNb++;
726
+		                                     var crefnb = (clckNb + 1) * nmbToBeLoaded;
727
+
728
+		                                     $("#loadMoreMsgs").css("display", "none");
729
+
730
+		                                     if (crefnb > convDataprn.length) {
731
+		                                         var nmbmsg = convDataprn.length - 1;
732
+		                                         $("#loadMoreMsgsusr").css("display", "none");
733
+		                                     } else { 
734
+		                                         var nmbmsg = crefnb - 1;
735
+		                                         $("#loadMoreMsgsusr").css("display", "block");
736
+		                                     }
737
+
738
+		                                     var rowMessageArrAddst = [];
739
+
740
+		                                     for (var q = nmbmsg; q >= clckNb * nmbToBeLoaded; q--) {
741
+
742
+		                                          rowMessageArrAddst.push(convDataprn[q]);
743
+		                                     }
744
+
745
+					             var convDataPerNmbradst = rowMessageArrAddst.join("");
746
+
747
+		                                     var scrlheight = $("#msgListRowCell").height();
748
+		                                     $("#msgListRowCell").prepend(convDataPerNmbradst);
749
+
750
+		                                     $("#frmMsgLstWrap").scrollTop($("#msgListRowCell").height() - scrlheight);
751
+		                                 });
752
+
753
+
754
+					         $(".dispNameList").each(function() { $(this).css("color", "#0a559e"); });
755
+					         $("#diplNmAllMsg").css("color", "#04957b");
756
+					         $(this).css("color", "#1b8efe");
757
+					     });
758
+
759
+
760
+					     // Show again all the messages sent/received to/from the clicked number
761
+					     $("#diplNmAllMsg").click(function() {
762
+
763
+		                                 $("#loadMoreMsgsusr").css("display", "none");
764
+
765
+		                                 let convDataprn = [];
766
+		                                 $.each(messagesPerNmbr[phNumberFrom], function(index, item) {
767
+		                                        convDataprn.push(item);
768
+		                                 });
769
+
770
+		                                 // If the total number of messages is greater than the default number of messages to display, show the 'Load more messages' button
771
+		                                 if (convDataprn.length > nmbTblDefault) {
772
+		                                     $("#loadMoreMsgs").css("display", "block");
773
+		                                     let nmbToBeLoaded = nmbTblDefault;
774
+		                                 } else {
775
+		                                     $("#loadMoreMsgs").css("display", "none");
776
+		                                     let nmbToBeLoaded = convDataprn.length;
777
+		                                 }
778
+
779
+
780
+					         let rowMessageArrprnst = [];
781
+
782
+					         for (let n = nmbToBeLoaded - 1; n >= 0; n--) {
783
+		                                      rowMessageArrprnst.push(convDataprn[n]);
784
+					         }
785
+
786
+					         let convDataPerNmbrprnst = rowMessageArrprnst.join("");
787
+
788
+		                                 $("#msgListRowCell").empty();
789
+		                                 $("#msgListRowCell").append(convDataPerNmbrprnst);
790
+
791
+		                                 // Scroll down to the bottom of the window
792
+		                                 $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
793
+
794
+
795
+		                                 // Load more messages
796
+		                                 let clckNb = 0;
797
+		                                 $("#loadMoreMsgs").unbind("click");
798
+		                                 $("#loadMoreMsgs").click(function() {
799
+
800
+		                                     clckNb++;
801
+		                                     var crefnb = (clckNb + 1) * nmbToBeLoaded;
802
+
803
+		                                     $("#loadMoreMsgsusr").css("display", "none");
804
+
805
+		                                     if (crefnb > convDataprn.length) {
806
+		                                         var nmbmsg = convDataprn.length - 1;
807
+		                                         $("#loadMoreMsgs").css("display", "none");
808
+		                                     } else {
809
+		                                         var nmbmsg = crefnb - 1;
810
+		                                         $("#loadMoreMsgs").css("display", "block");
811
+		                                     }
812
+
813
+		                                     var rowMessageArrAddst = [];
814
+
815
+		                                     for (var q = nmbmsg; q >= clckNb * nmbToBeLoaded; q--) {
816
+
817
+		                                          rowMessageArrAddst.push(convDataprn[q]);
818
+		                                     }
819
+
820
+					             var convDataPerNmbradst = rowMessageArrAddst.join("");
821
+
822
+		                                     var scrlheight = $("#msgListRowCell").height();
823
+		                                     $("#msgListRowCell").prepend(convDataPerNmbradst);
824
+
825
+		                                     $("#frmMsgLstWrap").scrollTop($("#msgListRowCell").height() - scrlheight);
826
+		                                 });
827
+
828
+					         $(".dispNameList").each(function() { $(this).css("color", "#0a559e"); });
829
+					         $("#diplNmAllMsg").css("color", "#04957b");
830
+					         $(this).css("color", "#04c6a4");
831
+
832
+					     });
833
+
834
+
835
+					     // Show the scroll-up arrow
836
+					     $("#frmMsgLstWrap").scroll(function() {
837
+						if ($(this).scrollTop() > 900) {
838
+						      $('#upArrowSmall').fadeIn();
839
+						} else {
840
+						      $('#upArrowSmall').fadeOut();
841
+						}
842
+					     });
843
+
844
+					     $("#upArrowSmall").click(function() {
845
+						$("#frmMsgLstWrap").animate({scrollTop : 0},400);
846
+					     });
847
+
848
+
849
+					     // Download MMS files when clicking on their URLs
850
+					     $('[id^="mmsTblUrl-"]').on('click', function(evt) {
851
+
852
+					        var clckedUrl = $(this).text();
853
+					        var flNamearr = clckedUrl.split("/");
854
+					        var flName = flNamearr.reverse()[0];
855
+
856
+					        confirmAlert("Download this file only if you trust the sender and the domain of the URL.");
857
+
858
+					        $("#confirmOk").click(function() {
859
+
860
+					           $("#alertMsgOverlay").remove();
861
+					           $("#alertConfMessage").remove();
862
+
863
+					           var mmsLink = document.createElement("a");
864
+					           mmsLink.setAttribute('href', clckedUrl);
865
+					           mmsLink.setAttribute('download', flName);
866
+                                                   mmsLink.setAttribute('target', '_blank');
867
+					           document.body.appendChild(mmsLink);
868
+					           mmsLink.click();
869
+					           mmsLink.remove();
870
+					        });
871
+
872
+					        $("#confirmCancel").click(function() { $("#alertMsgOverlay").remove(); $("#alertConfMessage").remove(); });
873
+					     });
874
+
875
+				  },
876
+				  error: function() {
877
+		                             showAlert("Error while attempting to get message data from the database!");
878
+					     $('#listAllMsgsConv').removeClass('icon-loading');
879
+				  }
880
+			   });
881
+                   }
882
+
883
+                   getMsgsForNumbers(phNumberFrom, phNumberTo);
884
+
885
+                   $("#refreshMsgsConv").click(function() { getMsgsForNumbers(phNumberFrom, phNumberTo); });
886
+
887
+                }
888
+
889
+                $('[id^="showMsgConv-"]').click(function() {
890
+
891
+                   let ctrwnmbr = $(this).attr("id").replace("showMsgConv-", "");
892
+                   let phNumberFrom = $("#frmNmbr-"+ ctrwnmbr).text();
893
+                   let phNumberTo = $("#toNmbr-"+ ctrwnmbr).text().split(": ")[1];
894
+
895
+                   showRecMsgPerConv(phNumberFrom, phNumberTo);
896
+                });
897
+
898
+
899
+                // Show the pop-up window that lists all the messages sent/received to/from a phone number
900
+                function showMsgPerNmbr(clckPhNumber) {
901
+
902
+                   var allfrmtomsg = "<div id='listAllMsgsFromTo'>";
903
+                   allfrmtomsg += "<div id='draglstMsgmWindow'><img src='/apps/sms_relentless/img/dots.svg'></div>";
904
+                   allfrmtomsg += "<a id='closeFrmMsgWindow' title='Close this window'></a>";
905
+                   allfrmtomsg += "<div class='showByNmbrTitle'>Messages sent/received to/from  <span style='color:#04957b'>"+ clckPhNumber +"</span></div>";
906
+                   allfrmtomsg += "<div id='frmMsgLstWrap'>";
907
+                   allfrmtomsg += "<table id='frmMsgLstTbl'>";
908
+                   allfrmtomsg += "<tr class='groupedrowsbody'><td><div id='grpdbynamelst' class='groupedLstNamespn'></div></td><td><div id='loadMoreMsgs' title='Click to load older messages.'>Load more messages</div><div id='loadMoreMsgsusr' title='Click to load older messages.'>Load more messages</div><div id='msgListRowCell' class='groupedLstMsgspn'></div><div id='refreshMsgsWraptf'><div id='stopAutoRefreshtf'>Stop auto refresh</div><div id='refreshMsgsConvtf' title='Refresh list'></div></div><div id='arrowupWrap'><div id='upArrowSmall' title='Scroll to the top'></div></div></td></tr>";
909
+                   allfrmtomsg += "</table></div>";
910
+                   allfrmtomsg += "<div id='sendMsgReply'><table id='sendMsgConv'><tr><td><div id='fromPhoneNmbrConv'>From: <select id='selectFromNbConv'></select></div><div id='toPhoneNmbrConv'>To: <span id='toNmbrConv' style='color:#04957b'>"+ clckPhNumber +"</span></div></td></tr>";
911
+                   allfrmtomsg += "<tr><td><textarea id='sendMsgConvText' placeholder='Enter a message here, then press Send SMS'></textarea></td></tr></table>";
912
+                   allfrmtomsg += "<div id='sendMsgConvBtn'>Send SMS</div></div>";
913
+                   allfrmtomsg += "<div style='display:block;width:100%;height:14px;'><img id='expandWindowRpl' src='/apps/sms_relentless/img/arrowDown.svg' title='Expand to send a message'></div>";
914
+                   allfrmtomsg += "<div id='draglstMsgmWindowsc'><img src='/apps/sms_relentless/img/dots.svg' style='padding:4px;vertical-align:top;'></div>";
915
+                   allfrmtomsg += "</div>";
916
+
917
+                   $("#content").append("<div id='recTblOverlay'></div>");
918
+                   $("#content").append(allfrmtomsg);
919
+
920
+                   var topDist = parseInt((window.innerHeight / 2).toFixed(2) - 340) +"px";
921
+                   var leftDist = parseInt((window.innerWidth / 2).toFixed(2) - 300) +"px";
922
+                   $("#listAllMsgsFromTo").css({ "top" : topDist, "left" : leftDist });
923
+
924
+                   var intervalRfr = 0;
925
+                   var rplchck = 0;
926
+
927
+                   $("#closeFrmMsgWindow").click(function() { $("#listAllMsgsFromTo").remove(); $("#recTblOverlay").remove(); clearInterval(intervalRfr); });
928
+                   $("#recTblOverlay").click(function() { $("#listAllMsgsFromTo").remove(); $("#recTblOverlay").remove(); clearInterval(intervalRfr); });
929
+
930
+	           // Expand the window when clicking on the arrow, to be able to send a reply message
931
+                   $("#expandWindowRpl").unbind("click");
932
+	           $("#expandWindowRpl").click(function() {
933
+
934
+	              if ($(this).attr('src') == '/apps/sms_relentless/img/arrowDown.svg') {
935
+                          $("#sendMsgReply").css("display", "block");
936
+                          $("#listAllMsgsFromTo").css("height", "618px");
937
+	                  $(this).attr('src', '/apps/sms_relentless/img/arrowUp.svg');
938
+                          $(this).attr('title', 'Collapse');
939
+                          $("#stopAutoRefreshtf").css("visibility", "visible");
940
+                          intervalRfr = setInterval(function() { $("#refreshMsgsConvtf").click(); }, 5000);
941
+
942
+                          $("#stopAutoRefreshtf").text("Stop auto refresh");
943
+                          $("#stopAutoRefreshtf").css("color", "#0a559e");
944
+
945
+                          $("#stopAutoRefreshtf").unbind("click");
946
+                          $("#stopAutoRefreshtf").click(function() { 
947
+                             if ($("#stopAutoRefreshtf").text() == "Stop auto refresh") {
948
+                                  clearInterval(intervalRfr);
949
+                                  $("#stopAutoRefreshtf").text("Start auto refresh");
950
+                                  $("#stopAutoRefreshtf").css("color", "#04957b");
951
+                             } else {
952
+                                  clearInterval(intervalRfr);
953
+                                  intervalRfr = setInterval(function() { $("#refreshMsgsConvtf").click(); }, 5000);
954
+                                  $("#stopAutoRefreshtf").text("Stop auto refresh");
955
+                                  $("#stopAutoRefreshtf").css("color", "#0a559e");
956
+                             }
957
+                          });
958
+
959
+                          rplchck = 1;
960
+
961
+	              } else {
962
+
963
+                          $("#sendMsgReply").css("display", "none");
964
+                          $("#listAllMsgsFromTo").css("height", "490px");
965
+                          $(this).attr('src', '/apps/sms_relentless/img/arrowDown.svg');
966
+                          $(this).attr('title', 'Expand to send a reply');
967
+                          $("#stopAutoRefreshtf").css("visibility", "hidden");
968
+                          $("#stopAutoRefreshtf").unbind("click");
969
+                          clearInterval(intervalRfr);
970
+                          rplchck = 0;
971
+	              }
972
+	           });
973
+
974
+
975
+                   // Send a message from the 'conversation' window
976
+                   $("#sendMsgConvBtn").click(function() {
977
+
978
+                      $("#sendMsgConv,#sendMsgConvBtn").addClass('icon-loading');
979
+                      var msgToSend = $("#sendMsgConvText").val();
980
+                      var selectedid = $("#selectFromNbConv").val();
981
+                      var toNumber = $("#toNmbrConv").text();
982
+                      var receiversNumbers = [toNumber];
983
+
984
+		      if (selectedid != '') { 
985
+
986
+			  var sendersplit = selectedid.split(":");
987
+			  var providercap = sendersplit[0];
988
+			  var provsec = sendersplit[1];
989
+
990
+			  if (/[a-zA-Z]/.test(provsec)) {
991
+			      var alphanumcheck = true;
992
+			  } else { var alphanumcheck = false; }
993
+
994
+			  if (providercap == 'Tx' && alphanumcheck == false) {  
995
+			      var senderproc = selectedid.replace(/[^0-9]/g, "");
996
+			      var selectedsender = "+" + senderproc;
997
+			      var providerUsed = "telnyx";
998
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstel");
999
+			  } else if (providercap == 'Pl' && alphanumcheck == false) {
1000
+			      var selectedsender = selectedid.replace(/[^0-9]/g, "");
1001
+			      var providerUsed = "plivo";
1002
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsnex");
1003
+			  } else if (providercap == 'Tw' && alphanumcheck == false) {  
1004
+			      var senderproc = selectedid.replace(/[^0-9]/g, "");
1005
+			      var selectedsender = "+" + senderproc;
1006
+			      var providerUsed = "twilio";
1007
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstwil");
1008
+			  } else if (providercap == 'Fl' && alphanumcheck == false) {  
1009
+			      var senderproc = selectedid.replace(/[^0-9]/g, "");
1010
+			      var selectedsender = "+" + senderproc;
1011
+			      var providerUsed = "flowroute";
1012
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsflow");
1013
+			  } else if (providercap == 'Tx' && alphanumcheck == true) {
1014
+			      var selectedsender = provsec;
1015
+			      var providerUsed = "telnyx";
1016
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstel");
1017
+			  } else if (providercap == 'Pl' && alphanumcheck == true) {
1018
+			      var selectedsender = provsec;
1019
+			      var providerUsed = "plivo";
1020
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsnex");
1021
+			  } else if (providercap == 'Tw' && alphanumcheck == true) {
1022
+			      var selectedsender = provsec;
1023
+			      var providerUsed = "twilio";
1024
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstwil");
1025
+			  } else if (providercap == 'Fl' && alphanumcheck == true) {
1026
+			      var selectedsender = provsec;
1027
+			      var providerUsed = "flowroute";
1028
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsflow");
1029
+			  }
1030
+
1031
+                          var uploadedtomms = [];
1032
+
1033
+	                  if (msgToSend != '') {
1034
+
1035
+				  $.ajax({
1036
+				     url: relbaseUrl + '/' + userid,
1037
+				     type: "POST",
1038
+				     data: {
1039
+				           receiversPhoneNbs: receiversNumbers,
1040
+				           fromsender: selectedsender,
1041
+				           waitinterval: 1000,
1042
+				           sentsmstext: msgToSend,
1043
+				           ismms: 0,
1044
+				           mmsfiles: uploadedtomms
1045
+				         },
1046
+				     success: function(displayname) {
1047
+
1048
+                                           var tzdate = new Date();
1049
+                                           var presDatest = new Date(tzdate.getTime() - (tzdate.getTimezoneOffset() * 60000)).toJSON();
1050
+                                           var presDatedb = presDatest.split(".")[0];
1051
+                                           var presDatesc = presDatedb.split("T");
1052
+                                           var presDate = presDatesc[0] +" "+ presDatesc[1];
1053
+                                           var sentMessageStatus = '';
1054
+
1055
+                                           if (displayname) {
1056
+                                               var msgToSendproc = "<span class='msgAuthorNameGrp'>"+ displayname + ":</span>" + msgToSend; 
1057
+                                           } else { var msgToSendproc = msgToSend; }
1058
+
1059
+                                           $("#msgListRowCell").append("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ selectedsender +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ receiversNumbers[0] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ msgToSendproc +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ presDate +"</div><div class='sentMssgStatus'>"+ sentMessageStatus +"</div></div>");
1060
+
1061
+                                           // Scroll down to the bottom of the window
1062
+                                           $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
1063
+
1064
+                                           $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
1065
+				     },
1066
+				     error: function() {
1067
+                                           showAlert("Error while sending the message. You can check your Nextcloud log to find out more about this issue.");
1068
+				           $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
1069
+				     }
1070
+				  });
1071
+			  } else {
1072
+                                  showAlert("Please enter a message in the text box!");
1073
+				  $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
1074
+			  }
1075
+		      } else {
1076
+                              showAlert("Please choose a Sender ID from the 'From' drop-down list!");
1077
+			      $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
1078
+		      }
1079
+
1080
+                   });
1081
+
1082
+
1083
+
1084
+	           // Make the window draggable
1085
+	           function makeMgrWndDraggable(e) {
1086
+
1087
+			   window.pmdragging = {};
1088
+			   pmdragging.pageX0 = e.pageX;
1089
+			   pmdragging.pageY0 = e.pageY;
1090
+			   pmdragging.elem = $("#listAllMsgsFromTo");
1091
+			   pmdragging.offset0 = $("#listAllMsgsFromTo").offset();
1092
+
1093
+			   function handle_dragging(e) {
1094
+			       var left = pmdragging.offset0.left + (e.pageX - pmdragging.pageX0);
1095
+			       var top = pmdragging.offset0.top + (e.pageY - pmdragging.pageY0);
1096
+			       $(pmdragging.elem).offset({top: top, left: left});
1097
+			   }
1098
+
1099
+			   function handle_mouseup(e) {
1100
+			       $('body').off('mousemove', handle_dragging).off('mouseup', handle_mouseup);
1101
+			   }
1102
+
1103
+			   $('body').on('mouseup', handle_mouseup).on('mousemove', handle_dragging);
1104
+	           }
1105
+	           $("#draglstMsgmWindow").mousedown(makeMgrWndDraggable);
1106
+	           $("#draglstMsgmWindowsc").mousedown(makeMgrWndDraggable);
1107
+
1108
+
1109
+                   // Append the available phone numbers to the From drop-down list
1110
+                   var availPhoneNmbrs = [];
1111
+                   $("#currentsmsnmbrs .optselectsmsnb").each(function() {
1112
+                      var crtphnmbr = $(this).attr("value");
1113
+                      if (crtphnmbr != "") { availPhoneNmbrs.push(crtphnmbr); }
1114
+                   });
1115
+
1116
+                   if (availPhoneNmbrs.length > 0) {
1117
+                       var avphopt = "";
1118
+                       for (let d = 0; d < availPhoneNmbrs.length; d++) {
1119
+                            avphopt += "<option value='"+ availPhoneNmbrs[d] +"'>"+ availPhoneNmbrs[d] +"</option>";
1120
+                       }
1121
+                       $("#selectFromNbConv").append(avphopt);
1122
+
1123
+                   } else { $("#selectFromNbConv").append("<option value='' selected>No IDs</option>"); }
1124
+
1125
+
1126
+                   // Get the sent/received messages for the current phone number, from the database
1127
+                   function getMsgsPerNmbr(clckPhNumber) {
1128
+
1129
+			   var getGroupedPnUrl = OC.generateUrl("/apps/sms_relentless/user/getgroupedpernumber");
1130
+
1131
+			   $('#listAllMsgsFromTo').addClass('icon-loading');
1132
+			   var totalPhNmbrs = 0;
1133
+
1134
+			   $.ajax({
1135
+				  method: 'POST',
1136
+				  url: getGroupedPnUrl + '/' + userid,
1137
+				  contentType: 'application/json',
1138
+		                  data: JSON.stringify({ phoneNumber: clckPhNumber }),
1139
+				  success: function(groupedpernb) {
1140
+
1141
+					     $('#listAllMsgsFromTo').removeClass('icon-loading');
1142
+
1143
+					     var fromtoNmbrsData = [];
1144
+
1145
+					     for (var i = 0; i < groupedpernb.length; i++) {
1146
+
1147
+						     if (groupedpernb[i].author_displayname) {
1148
+							 var authordnm = groupedpernb[i].author_displayname;
1149
+						     } else { 
1150
+							 var authordnm = '';
1151
+						     }
1152
+
1153
+						     var sentfromnmbrarr = groupedpernb[i].from.split("+");
1154
+						     if (sentfromnmbrarr[1]) {
1155
+							 var groupednbfrom = "+"+ sentfromnmbrarr[1];
1156
+						     } else {
1157
+							 var groupednbfrom = sentfromnmbrarr[0];
1158
+						     }
1159
+
1160
+						     var modmessagerec = '';
1161
+						     if (groupedpernb[i].author_displayname) {
1162
+							 modmessagerec = "<span class='msgAuthorNameGrp'>"+ groupedpernb[i].author_displayname + ":</span>" + groupedpernb[i].message;
1163
+						     } else {
1164
+					                 modmessagerec = groupedpernb[i].message;
1165
+		                                     }
1166
+
1167
+						     if (groupedpernb[i].to.indexOf(": ") > -1) {
1168
+						         var groupednmbrtopre = groupedpernb[i].to.split(": ");
1169
+						         var groupednmbrto = groupednmbrtopre[1];
1170
+						     } else { 
1171
+						         var groupednmbrto = groupedpernb[i].to;
1172
+						     }
1173
+
1174
+						     fromtoNmbrsData.push({
1175
+						               'author_displayname': authordnm,
1176
+						               'from': groupednbfrom,
1177
+						               'to': groupednmbrto,
1178
+						               'message': modmessagerec,
1179
+						               'date': groupedpernb[i].date,
1180
+						               'status': groupedpernb[i].deliveryreceipt,
1181
+						               'table': groupedpernb[i].table
1182
+						     });
1183
+					     }
1184
+
1185
+
1186
+					     // Remove the duplicates
1187
+					     var noDupMsgData = [];
1188
+					     $.each(fromtoNmbrsData, function(i, e) {
1189
+						    var matchingData = $.grep(noDupMsgData, function(item) {
1190
+						            return item.from == e.from && item.to == e.to && item.message == e.message && item.table == 'received' && e.table == 'sent';
1191
+						    });
1192
+						    if (matchingData.length === 0) {
1193
+							noDupMsgData.push(e);
1194
+						    }
1195
+					     });
1196
+
1197
+					     var messagesPerNmbr = {};
1198
+					     var msgsNamesPerNmbr = {};
1199
+					     var msgsNmbrsNames = {};
1200
+
1201
+					     var displayNamesarr = [];
1202
+					     var convData = [];
1203
+
1204
+					     for (var n = 0; n < noDupMsgData.length; n++) {
1205
+
1206
+					          if (noDupMsgData[n]['from'] == clckPhNumber && noDupMsgData[n]['table'] == 'sent') {
1207
+
1208
+					              convData.push({
1209
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
1210
+					                             'message': noDupMsgData[n]['message'],
1211
+					                             'from': noDupMsgData[n]['from'],
1212
+					                             'to': noDupMsgData[n]['to'],
1213
+					                             'date': noDupMsgData[n]['date'],
1214
+					                             'direction': 'sent_from',
1215
+					                             'status': (noDupMsgData[n]['status'] == null)? "" : noDupMsgData[n]['status'],
1216
+					                             'table': noDupMsgData[n]['table']
1217
+					              });
1218
+
1219
+					          } else if (noDupMsgData[n]['to'] == clckPhNumber && noDupMsgData[n]['table'] == 'sent') {
1220
+
1221
+					              convData.push({
1222
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
1223
+					                             'message': noDupMsgData[n]['message'],
1224
+					                             'from': noDupMsgData[n]['from'],
1225
+					                             'to': noDupMsgData[n]['to'],
1226
+					                             'date': noDupMsgData[n]['date'],
1227
+					                             'direction': 'sent_to',
1228
+					                             'status': (noDupMsgData[n]['status'] == null)? "" : noDupMsgData[n]['status'],
1229
+					                             'table': noDupMsgData[n]['table']
1230
+					              });
1231
+
1232
+
1233
+					          } else if (noDupMsgData[n]['from'] == clckPhNumber && noDupMsgData[n]['table'] == 'received') {
1234
+
1235
+					              convData.push({
1236
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
1237
+					                             'message': noDupMsgData[n]['message'],
1238
+					                             'from': noDupMsgData[n]['from'],
1239
+					                             'to': noDupMsgData[n]['to'],
1240
+					                             'date': noDupMsgData[n]['date'],
1241
+					                             'direction': 'received_from',
1242
+					                             'status': (noDupMsgData[n]['status'] == null)? "" : noDupMsgData[n]['status'],
1243
+					                             'table': noDupMsgData[n]['table']
1244
+					              });
1245
+
1246
+					          } else if (noDupMsgData[n]['to'] == clckPhNumber && noDupMsgData[n]['table'] == 'received') {
1247
+
1248
+					              convData.push({
1249
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
1250
+					                             'message': noDupMsgData[n]['message'],
1251
+					                             'from': noDupMsgData[n]['from'],
1252
+					                             'to': noDupMsgData[n]['to'],
1253
+					                             'date': noDupMsgData[n]['date'],
1254
+					                             'direction': 'received_on',
1255
+					                             'status': (noDupMsgData[n]['status'] == null)? "" : noDupMsgData[n]['status'],
1256
+					                             'table': noDupMsgData[n]['table']
1257
+					              });
1258
+					          }
1259
+					     }
1260
+
1261
+					     // Sort messages by date
1262
+					     convData.sort(function(a, b) {
1263
+						var c = new Date(a.date);
1264
+						var d = new Date(b.date);
1265
+						return c-d;
1266
+					     });
1267
+		                             convData.reverse();
1268
+
1269
+					     // Collect the display names of the users that sent messages from the current number
1270
+					     var selectedNames = [];
1271
+					     var displayNames = '';
1272
+					     for (var v = 0; v < convData.length; v++) {
1273
+					          if (selectedNames.indexOf(convData[v]['author_displayname']) == -1) { 
1274
+					              selectedNames.push(convData[v]['author_displayname']);
1275
+					              displayNames += "<div id='diplNm_"+ clckPhNumber +"_"+ v +"' class='dispNameList' name='"+ convData[v]['author_displayname'] +"'>"+ convData[v]['author_displayname'] +"</div>";
1276
+					          }
1277
+					     }
1278
+					     displayNames += "<div id='diplNmAllMsg' class='dispNameListAll' title='Show all the messages for this number.'>"+ clckPhNumber +"</div>";
1279
+
1280
+					     // Store the display names for the current number, to be able to see them later
1281
+					     var ctPhNumber = clckPhNumber;
1282
+					     msgsNamesPerNmbr[ctPhNumber] = displayNames;
1283
+
1284
+					     // Store the messages sent by each user, to be able to see them later when clicking on the user's name
1285
+					     for (var h = 0; h < selectedNames.length; h++) {
1286
+
1287
+					          var rowMessageArrpn = [];
1288
+					          for (var b = 0; b < convData.length; b++) {
1289
+
1290
+					               if (selectedNames[h] == convData[b]['author_displayname']) {
1291
+
1292
+							   if (convData[b]['direction'] == 'sent_from') {
1293
+							       if (convData[b]['status'].indexOf("delivered") > -1 || convData[b]['status'].indexOf("delivery success") > -1 || convData[b]['status'].indexOf("Retrieved") > -1) {
1294
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
1295
+							       } else {
1296
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
1297
+							       }
1298
+							       rowMessageArrpn.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
1299
+							   } else if (convData[b]['direction'] == 'sent_to') {
1300
+							       if (convData[b]['status'].indexOf("delivered") > -1 || convData[b]['status'].indexOf("delivery success") > -1 || convData[b]['status'].indexOf("Retrieved") > -1) {
1301
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
1302
+							       } else {
1303
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
1304
+							       }
1305
+							       rowMessageArrpn.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
1306
+							   } else if (convData[b]['direction'] == 'received_from') {
1307
+							       rowMessageArrpn.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div></div>");
1308
+							   } else if (convData[b]['direction'] == 'received_on') {
1309
+							       rowMessageArrpn.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div></div>");
1310
+					                   }
1311
+					               }
1312
+					          }
1313
+					          var crtNmber = clckPhNumber;
1314
+					          var crtName = selectedNames[h];
1315
+					          msgsNmbrsNames[crtNmber] = msgsNmbrsNames[crtNmber] || {};
1316
+		                                  msgsNmbrsNames[crtNmber][crtName] = rowMessageArrpn;
1317
+					     }
1318
+
1319
+		                             // The number of messages to be loaded by default
1320
+		                             var nmbTblDefault = 50;
1321
+
1322
+		                             // If the total number of messages is greater than the default number of messages to display, show the 'Load more messages' button
1323
+		                             if (convData.length > nmbTblDefault) {
1324
+		                                 $("#loadMoreMsgs").css("display", "block");
1325
+		                                 var nmbToBeLoaded = nmbTblDefault;
1326
+		                             } else { var nmbToBeLoaded = convData.length; }
1327
+
1328
+					     var rowMessageArr = [];
1329
+					     for (var m = nmbToBeLoaded - 1; m >= 0; m--) {
1330
+
1331
+					          if (convData[m]['direction'] == 'sent_from') {
1332
+
1333
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
1334
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
1335
+					              } else {
1336
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
1337
+					              }
1338
+					              rowMessageArr.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
1339
+
1340
+					          } else if (convData[m]['direction'] == 'sent_to') {
1341
+
1342
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
1343
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
1344
+					              } else {
1345
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
1346
+					              }
1347
+					              rowMessageArr.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
1348
+
1349
+					          } else if (convData[m]['direction'] == 'received_from') {
1350
+
1351
+						      rowMessageArr.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
1352
+
1353
+					          } else if (convData[m]['direction'] == 'received_on') {
1354
+
1355
+						      rowMessageArr.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
1356
+					          }
1357
+					     }
1358
+
1359
+					     var convDataPerNmbr = rowMessageArr.join("");
1360
+
1361
+		                             $("#grpdbynamelst").empty();
1362
+		                             $("#grpdbynamelst").append(displayNames);
1363
+		                             $("#msgListRowCell").empty();
1364
+		                             $("#msgListRowCell").append(convDataPerNmbr);
1365
+
1366
+					     // Store the messages for the current number, to be able to see them later, when clicking on the number
1367
+					     var rowMessageArrcpt = [];
1368
+					     for (var m = 0; m < convData.length; m++) {
1369
+
1370
+					          if (convData[m]['direction'] == 'sent_from') {
1371
+
1372
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
1373
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
1374
+					              } else {
1375
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
1376
+					              }
1377
+					              rowMessageArrcpt.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
1378
+
1379
+					          } else if (convData[m]['direction'] == 'sent_to') {
1380
+
1381
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
1382
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
1383
+					              } else {
1384
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
1385
+					              }
1386
+					              rowMessageArrcpt.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
1387
+
1388
+					          } else if (convData[m]['direction'] == 'received_from') {
1389
+
1390
+						      rowMessageArrcpt.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
1391
+
1392
+					          } else if (convData[m]['direction'] == 'received_on') {
1393
+
1394
+						      rowMessageArrcpt.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
1395
+					          }
1396
+					     }
1397
+
1398
+					     messagesPerNmbr[clckPhNumber] = rowMessageArrcpt;
1399
+
1400
+		                             // Scroll down to the bottom of the window
1401
+		                             if (rplchck == 0) {
1402
+		                                 $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
1403
+		                             }
1404
+
1405
+		                             // Load more messages
1406
+		                             var clickNmb = 0;
1407
+		                             $("#loadMoreMsgs").click(function() {
1408
+
1409
+		                                 clickNmb++;
1410
+
1411
+		                                 var crefnb = (clickNmb + 1) * nmbToBeLoaded;
1412
+
1413
+		                                 if (crefnb > convData.length) {
1414
+		                                     var nmbmsg = convData.length - 1;
1415
+		                                     $("#loadMoreMsgs").css("display", "none");
1416
+		                                 } else { 
1417
+		                                     var nmbmsg = crefnb - 1;
1418
+		                                 }
1419
+
1420
+		                                 var rowMessageArrAdd = [];
1421
+
1422
+		                                 for (var m = nmbmsg; m >= clickNmb * nmbToBeLoaded; m--) {
1423
+
1424
+					              if (convData[m]['direction'] == 'sent_from') {
1425
+
1426
+					                  if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
1427
+					                      var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
1428
+					                  } else {
1429
+					                      var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
1430
+					                  }
1431
+					                  rowMessageArrAdd.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
1432
+
1433
+					              } else if (convData[m]['direction'] == 'sent_to') {
1434
+
1435
+					                  if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
1436
+					                      var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
1437
+					                  } else {
1438
+					                      var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
1439
+					                  }
1440
+					                  rowMessageArrAdd.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
1441
+
1442
+					              } else if (convData[m]['direction'] == 'received_from') {
1443
+
1444
+							  rowMessageArrAdd.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
1445
+
1446
+					              } else if (convData[m]['direction'] == 'received_on') {
1447
+
1448
+							  rowMessageArrAdd.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
1449
+					              }
1450
+		                                 }
1451
+
1452
+					         var convDataPerNmbrad = rowMessageArrAdd.join("");
1453
+
1454
+		                                 var scrlheight = $("#msgListRowCell").height();
1455
+		                                 $("#msgListRowCell").prepend(convDataPerNmbrad);
1456
+
1457
+		                                 $("#frmMsgLstWrap").scrollTop($("#msgListRowCell").height() - scrlheight);
1458
+		                             });
1459
+
1460
+
1461
+					     // Show the messages sent by each user whose name is clicked
1462
+					     $('[id*="diplNm_"]').click(function() {
1463
+
1464
+					         var crntNmbr = $(this).attr("id").split("_")[1];
1465
+					         var crntDisName = $(this).attr("name");
1466
+		                                 $("#loadMoreMsgs").css("display", "none");
1467
+
1468
+		                                 var convDataprn = [];
1469
+		                                 $.each(msgsNmbrsNames[crntNmbr][crntDisName], function(index, item) {
1470
+		                                        convDataprn.push(item);
1471
+		                                 });
1472
+
1473
+		                                 // If the total number of messages is greater than the default number of messages to display, show the 'Load more messages' button
1474
+		                                 if (convDataprn.length > nmbTblDefault) {
1475
+		                                     $("#loadMoreMsgsusr").css("display", "block");
1476
+		                                     var nmbToBeLoaded = nmbTblDefault;
1477
+		                                 } else {
1478
+		                                     $("#loadMoreMsgsusr").css("display", "none");
1479
+		                                     var nmbToBeLoaded = convDataprn.length;
1480
+		                                 }
1481
+
1482
+					         var rowMessageArrprnst = [];
1483
+
1484
+					         for (var n = nmbToBeLoaded - 1; n >= 0; n--) {
1485
+		                                      rowMessageArrprnst.push(convDataprn[n]);
1486
+					         }
1487
+
1488
+					         var convDataPerNmbrprnst = rowMessageArrprnst.join("");
1489
+
1490
+		                                 $("#msgListRowCell").empty();
1491
+		                                 $("#msgListRowCell").append(convDataPerNmbrprnst);
1492
+
1493
+		                                 // Scroll down to the bottom of the window
1494
+		                                 $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
1495
+
1496
+		                                 // Load more messages
1497
+		                                 var clckNb = 0;
1498
+		                                 $("#loadMoreMsgsusr").unbind("click");
1499
+		                                 $("#loadMoreMsgsusr").click(function() {
1500
+
1501
+		                                     clckNb++;
1502
+		                                     var crefnb = (clckNb + 1) * nmbToBeLoaded;
1503
+
1504
+		                                     $("#loadMoreMsgs").css("display", "none");
1505
+
1506
+		                                     if (crefnb > convDataprn.length) {
1507
+		                                         var nmbmsg = convDataprn.length - 1;
1508
+		                                         $("#loadMoreMsgsusr").css("display", "none");
1509
+		                                     } else { 
1510
+		                                         var nmbmsg = crefnb - 1;
1511
+		                                         $("#loadMoreMsgsusr").css("display", "block");
1512
+		                                     }
1513
+
1514
+		                                     var rowMessageArrAddst = [];
1515
+
1516
+		                                     for (var q = nmbmsg; q >= clckNb * nmbToBeLoaded; q--) {
1517
+
1518
+		                                          rowMessageArrAddst.push(convDataprn[q]);
1519
+		                                     }
1520
+
1521
+					             var convDataPerNmbradst = rowMessageArrAddst.join("");
1522
+
1523
+		                                     var scrlheight = $("#msgListRowCell").height();
1524
+		                                     $("#msgListRowCell").prepend(convDataPerNmbradst);
1525
+
1526
+		                                     $("#frmMsgLstWrap").scrollTop($("#msgListRowCell").height() - scrlheight);
1527
+		                                 });
1528
+
1529
+
1530
+					         $(".dispNameList").each(function() { $(this).css("color", "#0a559e"); });
1531
+					         $("#diplNmAllMsg").css("color", "#04957b");
1532
+					         $(this).css("color", "#1b8efe");
1533
+					     });
1534
+
1535
+
1536
+					     // Show again all the messages sent/received to/from the clicked number
1537
+					     $("#diplNmAllMsg").click(function() {
1538
+
1539
+		                                 $("#loadMoreMsgsusr").css("display", "none");
1540
+
1541
+		                                 var convDataprn = [];
1542
+		                                 $.each(messagesPerNmbr[clckPhNumber], function(index, item) {
1543
+		                                        convDataprn.push(item);
1544
+		                                 });
1545
+
1546
+		                                 // If the total number of messages is greater than the default number of messages to display, show the 'Load more messages' button
1547
+		                                 if (convDataprn.length > nmbTblDefault) {
1548
+		                                     $("#loadMoreMsgs").css("display", "block");
1549
+		                                     var nmbToBeLoaded = nmbTblDefault;
1550
+		                                 } else {
1551
+		                                     $("#loadMoreMsgs").css("display", "none");
1552
+		                                     var nmbToBeLoaded = convDataprn.length;
1553
+		                                 }
1554
+
1555
+
1556
+					         var rowMessageArrprnst = [];
1557
+
1558
+					         for (var n = nmbToBeLoaded - 1; n >= 0; n--) {
1559
+		                                      rowMessageArrprnst.push(convDataprn[n]);
1560
+					         }
1561
+
1562
+					         var convDataPerNmbrprnst = rowMessageArrprnst.join("");
1563
+
1564
+		                                 $("#msgListRowCell").empty();
1565
+		                                 $("#msgListRowCell").append(convDataPerNmbrprnst);
1566
+
1567
+		                                 // Scroll down to the bottom of the window
1568
+		                                 $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
1569
+
1570
+
1571
+		                                 // Load more messages
1572
+		                                 var clckNb = 0;
1573
+		                                 $("#loadMoreMsgs").unbind("click");
1574
+		                                 $("#loadMoreMsgs").click(function() {
1575
+
1576
+		                                     clckNb++;
1577
+		                                     var crefnb = (clckNb + 1) * nmbToBeLoaded;
1578
+
1579
+		                                     $("#loadMoreMsgsusr").css("display", "none");
1580
+
1581
+		                                     if (crefnb > convDataprn.length) {
1582
+		                                         var nmbmsg = convDataprn.length - 1;
1583
+		                                         $("#loadMoreMsgs").css("display", "none");
1584
+		                                     } else { 
1585
+		                                         var nmbmsg = crefnb - 1;
1586
+		                                         $("#loadMoreMsgs").css("display", "block");
1587
+		                                     }
1588
+
1589
+		                                     var rowMessageArrAddst = [];
1590
+
1591
+		                                     for (var q = nmbmsg; q >= clckNb * nmbToBeLoaded; q--) {
1592
+
1593
+		                                          rowMessageArrAddst.push(convDataprn[q]);
1594
+		                                     }
1595
+
1596
+					             var convDataPerNmbradst = rowMessageArrAddst.join("");
1597
+
1598
+		                                     var scrlheight = $("#msgListRowCell").height();
1599
+		                                     $("#msgListRowCell").prepend(convDataPerNmbradst);
1600
+
1601
+		                                     $("#frmMsgLstWrap").scrollTop($("#msgListRowCell").height() - scrlheight);
1602
+		                                 });
1603
+
1604
+
1605
+					         $(".dispNameList").each(function() { $(this).css("color", "#0a559e"); });
1606
+					         $("#diplNmAllMsg").css("color", "#04957b");
1607
+					         $(this).css("color", "#04c6a4");
1608
+
1609
+					     });
1610
+
1611
+
1612
+					     // Show the scroll-up arrow
1613
+					     $("#frmMsgLstWrap").scroll(function() {
1614
+						if ($(this).scrollTop() > 900) {
1615
+						      $('#upArrowSmall').fadeIn();
1616
+						} else {
1617
+						      $('#upArrowSmall').fadeOut();
1618
+						}
1619
+					     });
1620
+
1621
+					     $("#upArrowSmall").click(function() {
1622
+						$("#frmMsgLstWrap").animate({scrollTop : 0},400);
1623
+					     });
1624
+
1625
+
1626
+					     // Download MMS files when clicking on their URLs
1627
+					     $('[id^="mmsTblUrl-"]').on('click', function(evt) {
1628
+
1629
+					        var clckedUrl = $(this).text();
1630
+					        var flNamearr = clckedUrl.split("/");
1631
+					        var flName = flNamearr.reverse()[0];
1632
+
1633
+					        confirmAlert("Download this file only if you trust the sender and the domain of the URL.");
1634
+
1635
+					        $("#confirmOk").click(function() {
1636
+
1637
+					           $("#alertMsgOverlay").remove();
1638
+					           $("#alertConfMessage").remove();
1639
+
1640
+					           var mmsLink = document.createElement("a");
1641
+					           mmsLink.setAttribute('href', clckedUrl);
1642
+					           mmsLink.setAttribute('download', flName);
1643
+                                                   mmsLink.setAttribute('target', '_blank');
1644
+					           document.body.appendChild(mmsLink);
1645
+					           mmsLink.click();
1646
+					           mmsLink.remove();
1647
+					        });
1648
+
1649
+					        $("#confirmCancel").click(function() { $("#alertMsgOverlay").remove(); $("#alertConfMessage").remove(); });
1650
+					     });
1651
+
1652
+				  },
1653
+				  error: function() {
1654
+		                             showAlert("Error while attempting to get message data from the database!");
1655
+					     $('#listAllMsgsFromTo').removeClass('icon-loading');
1656
+				  }
1657
+			   });
1658
+                   }
1659
+
1660
+                   getMsgsPerNmbr(clckPhNumber);
1661
+
1662
+                   $("#refreshMsgsConvtf").click(function() { getMsgsPerNmbr(clckPhNumber); });
1663
+                }
1664
+
1665
+                $('[id^="showMsgFrom-"]').click(function() {
1666
+
1667
+                   var ctrwnb = $(this).attr("id").replace("showMsgFrom-", "");
1668
+                   var clckPhNumber = $("#frmNmbr-"+ ctrwnb).text();
1669
+
1670
+                   showMsgPerNmbr(clckPhNumber);
1671
+                })
1672
+
1673
+                $('[id^="showMsgTo-"]').click(function() {
1674
+                   var ctrwnbTo = $(this).attr("id").replace("showMsgTo-", "");
1675
+                   if ($("#toNmbr-"+ ctrwnbTo).text().indexOf(":") > -1) {
1676
+                       var clckPhNbTo = $("#toNmbr-"+ ctrwnbTo).text().split(": ")[1];
1677
+                   } else { var clckPhNbTo = $("#toNmbr-"+ ctrwnbTo).text(); };
1678
+
1679
+                   showMsgPerNmbr(clckPhNbTo);
1680
+                })
1681
+
1682
+                // Show the pop-up window for adding a Display Name to the 'From' numbers of unknown senders
1683
+                $('[id^="addDispName-"]').click(function() {
1684
+
1685
+                   var crrownb = $(this).attr("id").replace("addDispName-", "");
1686
+                   var slctPhoneNb = $("#frmNmbr-"+ crrownb).text();
1687
+
1688
+                   var addDNameWindow = "<div id='disNameWindow'>";
1689
+                   addDNameWindow += "<div id='dragDispNmWindow'><img src='/apps/sms_relentless/img/dots.svg'></div>";
1690
+                   addDNameWindow += "<a id='closeDisNmWindow' title='Close this window'></a>";
1691
+                   addDNameWindow += "<div style='display:block;text-align:left;margin:14px 22px 0px 22px;color:#353535;font-family:Inter;font-size:15px;font-weight:400;'>If this is an external phone number (the number of a person that doesn't have a Nextcloud account), you can save a Display Name for this number, so that all the messages coming from it will be preceded by the specified Display Name:</div>";
1692
+                   addDNameWindow += "<div style='display:block;text-align:center;color:#49B382;font-family:Inter;font-size:15px;font-weight:600;margin:6px 0px 10px 0px;'>"+ slctPhoneNb +"</div>";
1693
+                   addDNameWindow += "<input type='text' id='saveDispNmText' placeholder='Eg: John Smith' style='display:block;width:80%;height:30px;margin:10px auto;padding:0px 12px;border-radius: 20px;'>";
1694
+                   addDNameWindow += "<input type='submit' id='saveDispName' value='Save'>";
1695
+                   addDNameWindow += "</div>";
1696
+
1697
+                   $("#content").append("<div id='recTblOverlay'></div>");
1698
+                   $("#content").append(addDNameWindow);
1699
+
1700
+                   var topNmDist = parseInt((window.innerHeight / 2).toFixed(2) - 180) +"px";
1701
+                   var leftNmDist = parseInt((window.innerWidth / 2).toFixed(2) - 150) +"px";
1702
+                   $("#disNameWindow").css({ "top" : topNmDist, "left" : leftNmDist });
1703
+
1704
+                   $("#closeDisNmWindow").click(function() { $("#disNameWindow").remove(); $("#recTblOverlay").remove(); });
1705
+                   $("#recTblOverlay").click(function() { $("#disNameWindow").remove(); $("#recTblOverlay").remove(); });
1706
+
1707
+
1708
+	           // Make the window draggable
1709
+	           function makeMgrWndDraggable(e) {
1710
+
1711
+			   window.pmdragging = {};
1712
+			   pmdragging.pageX0 = e.pageX;
1713
+			   pmdragging.pageY0 = e.pageY;
1714
+			   pmdragging.elem = $("#disNameWindow");
1715
+			   pmdragging.offset0 = $("#disNameWindow").offset();
1716
+
1717
+			   function handle_dragging(e) {
1718
+			       var left = pmdragging.offset0.left + (e.pageX - pmdragging.pageX0);
1719
+			       var top = pmdragging.offset0.top + (e.pageY - pmdragging.pageY0);
1720
+			       $(pmdragging.elem).offset({top: top, left: left});
1721
+			   }
1722
+
1723
+			   function handle_mouseup(e) {
1724
+			       $('body').off('mousemove', handle_dragging).off('mouseup', handle_mouseup);
1725
+			   }
1726
+
1727
+			   $('body').on('mouseup', handle_mouseup).on('mousemove', handle_dragging);
1728
+	           }
1729
+	           $("#dragDispNmWindow").mousedown(makeMgrWndDraggable);
1730
+
1731
+                   // Save the Display Name
1732
+                   $("#saveDispName").click(function() {
1733
+
1734
+                      var dispNmText = $("#saveDispNmText").val();
1735
+
1736
+                      if (/^[a-zA-Z0-9\s\-\/\.\)\(\']+$/.test(dispNmText) && dispNmText.length < 256) {
1737
+
1738
+                             var saveDispNameUrl = OC.generateUrl("/apps/sms_relentless/user/savedisplayname");
1739
+
1740
+			     $.ajax({
1741
+				  url: saveDispNameUrl + '/' + userid,
1742
+				  method: 'POST',
1743
+				  dataType:'text',
1744
+                                  data: { 
1745
+                                          authorDisplayname: dispNmText,
1746
+                                          from: slctPhoneNb
1747
+                                         },
1748
+				  success: function(respupdname) {
1749
+                                               showAlert(respupdname);
1750
+                                               $("#disNameWindow").remove();
1751
+                                               $("#recTblOverlay").remove();
1752
+                                  },
1753
+				  error: function() {
1754
+                                               showAlert("Error while attempting to save the new Display Name to the database.");
1755
+                                               $("#disNameWindow").remove();
1756
+                                               $("#recTblOverlay").remove();
1757
+                                  }
1758
+			     });
1759
+
1760
+                      } else {
1761
+                              showAlert("The Display Name should contain only letters, numbers, spaces, hyphens (-), slashes (/), periods (.), round brackets ()() and single quotation marks ('), it should not be empty and should have less than 256 characters.");
1762
+                      }
1763
+                   });
1764
+
1765
+                });
1766
+
1767
+
1768
+                // Add pagination
1769
+                var rowsShown = messagesperpage;
1770
+                var rowsTotal = $("#recSmsTable tr").length;
1771
+
1772
+                var numPages = (rowsTotal - 2) / rowsShown;
1773
+
1774
+                for (i = 0; i < numPages; i++) {
1775
+                     var pageNum = i + 1;
1776
+                     $('#paginationrec').append('<a href="#" rel="' + i + '" class="pagenumbersrec">' + pageNum + '</a> ');
1777
+                }
1778
+
1779
+                $('#paginationrec').children(":first").addClass('active');
1780
+
1781
+                $('#paginationrec a:first').addClass('active');
1782
+
1783
+                // Show table page when clicking a page number
1784
+                $('.recpages a').bind('click', function() {
1785
+
1786
+                   $('#paginationrec').children().removeClass('active');
1787
+
1788
+                   $(this).addClass('active');
1789
+
1790
+                   var currentPageNo = $(this).text();
1791
+
1792
+                   $('#paginationrec a').each(function() {
1793
+                       if ($(this).text() == currentPageNo) {
1794
+                           $(this).addClass('active');
1795
+                       }
1796
+                   });
1797
+
1798
+                   // Sort table rows
1799
+		   var rows = $('#recSmsTable tr').get();
1800
+
1801
+		   rows.sort(function(a, b) {
1802
+
1803
+		        var A = parseInt($('td.dbidcolumnrec', a).text());
1804
+		        var B = parseInt($('td.dbidcolumnrec', b).text());
1805
+
1806
+		        if (A < B) {
1807
+		            return -1;
1808
+		        }
1809
+
1810
+		        if (A > B) {
1811
+		            return 1;
1812
+		        }
1813
+
1814
+		        return 0;
1815
+		   });
1816
+
1817
+		   $.each(rows, function(index, row) {
1818
+		      $('#recSmsTable').append(row);
1819
+		   });
1820
+
1821
+                   var currPage = $(this).attr('rel');
1822
+                   var startItem = currPage * rowsShown;
1823
+                   var endItem = startItem + rowsShown;
1824
+
1825
+                   $(".receivedrowsbody").hide().slice(startItem, endItem).css('display', 'table-row');
1826
+
1827
+                   $('#totalrecmessages').remove();
1828
+                   $('#smstables').append("<div id='totalrecmessages'>Total displayed messages: " + parseddata.length + "</div>");
1829
+                });
1830
+
1831
+                $('#paginationrec').children(":last").trigger('click');
1832
+
1833
+                // Select all records
1834
+                $('#selectAllChckbx').change(function() {
1835
+                  if ($(this).is(':checked')) {
1836
+                       $(".indivchckbx").prop("checked", true);
1837
+                  } else {
1838
+                       $(".indivchckbx").prop("checked", false);
1839
+                  }
1840
+                });
1841
+
1842
+                function reorderRecRows() {
1843
+                   var currenttext = $(".filterbuttonsrec").closest('[class="filterbuttonsrec"]').find('[class="indivfilterrec"]').text();
1844
+                   if (currenttext == '') {
1845
+                       $('tr').sort(function (a, b) {
1846
+                          return parseInt($('td.dbidcolumnrec', b).text()) < parseInt($('td.dbidcolumnrec', a).text());
1847
+                       }).appendTo("#recSmsTable");
1848
+                   }
1849
+                }
1850
+
1851
+                // Filter rows
1852
+                $("#databaseidfilter").on("click", function(event) {
1853
+
1854
+                      var databaseId = $("#dbidtextrec").val();
1855
+                      var msgrowsNo = 0;
1856
+
1857
+                      $(".receivedrowsbody").each(function() {
1858
+
1859
+                          var checkrecEmpty1 = 0;
1860
+                          $(".indivfilterrec").not("#dbidtextrec").each(function() {
1861
+                              if ($(this).val() != '') {
1862
+                                  checkrecEmpty1 = 1;
1863
+                              }
1864
+                          });
1865
+
1866
+                          if (checkrecEmpty1 == 0) {
1867
+                              $(this).show();
1868
+                          }
1869
+
1870
+                          if (databaseId != '') {
1871
+                             if ($(this).find('[class="dbidcolumnrec"]').text() == databaseId) {
1872
+                                $("#recSmsTable").append(this);
1873
+                                if ($(this).is(":visible")) { msgrowsNo++; }
1874
+                             } else {
1875
+                                $(this).hide();
1876
+                             }
1877
+                          } else {
1878
+                                $(this).show();
1879
+                                msgrowsNo++;
1880
+                          }
1881
+                      });
1882
+
1883
+                      reorderRecRows();
1884
+                      $('#totalrecmessages').remove();
1885
+                      $('#smstables').append("<div id='totalrecmessages'>Total filtered messages: " + msgrowsNo + "</div>");
1886
+                });
1887
+
1888
+
1889
+                $("#useridfilter").on("click", function(event) {
1890
+
1891
+                      var useridtxt = $("#useridtextrec").val().toLowerCase();
1892
+                      var msgrowsNo = 0;
1893
+
1894
+                      $(".receivedrowsbody").each(function() {
1895
+
1896
+                          var checkrecEmpty2 = 0;
1897
+                          $(".indivfilterrec").not("#useridtextrec").each(function() {
1898
+                              if ($(this).val() != '') {
1899
+                                  checkrecEmpty2 = 1;
1900
+                              }
1901
+                          });
1902
+
1903
+                          if (checkrecEmpty2 == 0) {
1904
+                              $(this).show();
1905
+                          }
1906
+
1907
+                          if (useridtxt != '') {
1908
+                             var useridfound = $(this).find('[class="useridcolrec"]').text().toLowerCase();
1909
+                             if(useridfound.indexOf(useridtxt) != -1) {
1910
+                                $("#recSmsTable").append(this);
1911
+                                if ($(this).is(":visible")) { msgrowsNo++; }
1912
+                             } else {
1913
+                                $(this).hide();
1914
+                             }
1915
+                          } else {
1916
+                                $(this).show();
1917
+                                msgrowsNo++;
1918
+                          }
1919
+                      });
1920
+
1921
+                      reorderRecRows();
1922
+                      $('#totalrecmessages').remove();
1923
+                      $('#smstables').append("<div id='totalrecmessages'>Total filtered messages: " + msgrowsNo + "</div>");
1924
+
1925
+                });
1926
+
1927
+                $("#messageidfilter").on("click", function(event) {
1928
+
1929
+                      var messageidtxt = $("#messageidtextrec").val().toLowerCase();
1930
+                      var msgrowsNo = 0;
1931
+
1932
+                      $(".receivedrowsbody").each(function() {
1933
+
1934
+                          var checkrecEmpty3 = 0;
1935
+                          $(".indivfilterrec").not("#messageidtextrec").each(function() {
1936
+                              if ($(this).val() != '') {
1937
+                                  checkrecEmpty3 = 1;
1938
+                              }
1939
+                          });
1940
+
1941
+                          if (checkrecEmpty3 == 0) {
1942
+                              $(this).show();
1943
+                          }
1944
+
1945
+                          if (messageidtxt != '') {
1946
+                             var foundtdmssgid = $(this).find('[class="messageidcolrec"]').text().toLowerCase();
1947
+                             if (foundtdmssgid.indexOf(messageidtxt) != -1) {
1948
+                                $("#recSmsTable").append(this);
1949
+                                if ($(this).is(":visible")) { msgrowsNo++; }
1950
+                             } else {
1951
+                                $(this).hide();
1952
+                             }
1953
+                          } else {
1954
+                                $(this).show();
1955
+                                msgrowsNo++;
1956
+                          }
1957
+                      });
1958
+
1959
+                      reorderRecRows();
1960
+                      $('#totalrecmessages').remove();
1961
+                      $('#smstables').append("<div id='totalrecmessages'>Total filtered messages: " + msgrowsNo + "</div>");
1962
+                });
1963
+
1964
+                $("#datefilter").on("click", function(event) {
1965
+
1966
+                      var datetxtvr = $("#datetextrec").val().toLowerCase();
1967
+                      var msgrowsNo = 0;
1968
+
1969
+                      $(".receivedrowsbody").each(function() {
1970
+
1971
+                          var checkrecEmpty4 = 0;
1972
+                          $(".indivfilterrec").not("#datetextrec").each(function() {
1973
+                              if ($(this).val() != '') {
1974
+                                  checkrecEmpty4 = 1;
1975
+                              }
1976
+                          });
1977
+
1978
+                          if (checkrecEmpty4 == 0) {
1979
+                              $(this).show();
1980
+                          }
1981
+
1982
+                          if (datetxtvr != '') {
1983
+                              var founddate = $(this).find('[class="datecolrec"]').text().toLowerCase();
1984
+                              if (founddate.indexOf(datetxtvr) != -1) {
1985
+                                  $("#recSmsTable").append(this);
1986
+                                  if ($(this).is(":visible")) { msgrowsNo++; }
1987
+                              } else {
1988
+                                  $(this).hide();
1989
+                              }
1990
+                          } else {
1991
+                                  $(this).show();
1992
+                                  msgrowsNo++;
1993
+                          }
1994
+                      });
1995
+
1996
+                      reorderRecRows();
1997
+                      $('#totalrecmessages').remove();
1998
+                      $('#smstables').append("<div id='totalrecmessages'>Total filtered messages: " + msgrowsNo + "</div>");
1999
+                });
2000
+
2001
+                $("#fromfilter").on("click", function(event) {
2002
+
2003
+                      var fromtxtvr = $("#fromtextrec").val().toLowerCase();
2004
+                      var msgrowsNo = 0;
2005
+
2006
+                      $(".receivedrowsbody").each(function() {
2007
+
2008
+                          var checkrecEmpty5 = 0;
2009
+                          $(".indivfilterrec").not("#fromtextrec").each(function() {
2010
+                              if ($(this).val() != '') {
2011
+                                  checkrecEmpty5 = 1;
2012
+                              }
2013
+                          });
2014
+
2015
+                          if (checkrecEmpty5 == 0) {
2016
+                              $(this).show();
2017
+                          }
2018
+
2019
+                          if (fromtxtvr != '') {
2020
+                             var foundfrom = $(this).find('[class="fromcolumnrec"]').text().toLowerCase();
2021
+                             if (foundfrom.indexOf(fromtxtvr) != -1) {
2022
+                                 $("#recSmsTable").append(this);
2023
+                                 if ($(this).is(":visible")) { msgrowsNo++; }
2024
+                             } else {
2025
+                                 $(this).hide();
2026
+                             }
2027
+                          } else {
2028
+                                 $(this).show();
2029
+                                 msgrowsNo++;
2030
+                          }
2031
+                      });
2032
+
2033
+                      reorderRecRows();
2034
+                      $('#totalrecmessages').remove();
2035
+                      $('#smstables').append("<div id='totalrecmessages'>Total filtered messages: " + msgrowsNo + "</div>");
2036
+                });
2037
+
2038
+                $("#tofilter").on("click", function(event) {
2039
+
2040
+                      var totxtvr = $("#totextrec").val().toLowerCase();
2041
+                      var msgrowsNo = 0;
2042
+
2043
+                      $(".receivedrowsbody").each(function() {
2044
+
2045
+                          var checkrecEmpty6 = 0;
2046
+                          $(".indivfilterrec").not("#totextrec").each(function() {
2047
+                              if ($(this).val() != '') {
2048
+                                  checkrecEmpty6 = 1;
2049
+                              }
2050
+                          });
2051
+
2052
+                          if (checkrecEmpty6 == 0) {
2053
+                              $(this).show();
2054
+                          }
2055
+
2056
+                          if (totxtvr != '') {
2057
+                             var foundto = $(this).find('[class="tocolrec"]').text().toLowerCase();
2058
+                             if (foundto.indexOf(totxtvr) != -1) {
2059
+                                 $("#recSmsTable").append(this);
2060
+                                 if ($(this).is(":visible")) { msgrowsNo++; }
2061
+                             } else {
2062
+                                 $(this).hide();
2063
+                             }
2064
+                          } else {
2065
+                                 $(this).show();
2066
+                                 msgrowsNo++;
2067
+                          }
2068
+                      });
2069
+
2070
+                      reorderRecRows();
2071
+                      $('#totalrecmessages').remove();
2072
+                      $('#smstables').append("<div id='totalrecmessages'>Total filtered messages: " + msgrowsNo + "</div>");
2073
+                });
2074
+
2075
+                $("#messagefilter").on("click", function(event) {
2076
+
2077
+                      var messagetxtvr = $("#messagetextrec").val().toLowerCase();
2078
+                      var msgrowsNo = 0;
2079
+
2080
+                      $(".receivedrowsbody").each(function() {
2081
+
2082
+                          var checkrecEmpty7 = 0;
2083
+                          $(".indivfilterrec").not("#messagetextrec").each(function() {
2084
+                              if ($(this).val() != '') {
2085
+                                  checkrecEmpty7 = 1;
2086
+                              }
2087
+                          });
2088
+
2089
+                          if (checkrecEmpty7 == 0) {
2090
+                              $(this).show();
2091
+                          }
2092
+
2093
+                          if (messagetxtvr != '') {
2094
+                             var foundmessage = $(this).find('[class="messagecolumnrec"]').text().toLowerCase();
2095
+                             if (foundmessage.indexOf(messagetxtvr) != -1) {
2096
+                                $("#recSmsTable").append(this);
2097
+                                if ($(this).is(":visible")) { msgrowsNo++; }
2098
+                             } else {
2099
+                                $(this).hide();
2100
+                             }
2101
+                          } else {
2102
+                                $(this).show();
2103
+                                msgrowsNo++;
2104
+                          }
2105
+                      });
2106
+
2107
+                      reorderRecRows();
2108
+                      $('#totalrecmessages').remove();
2109
+                      $('#smstables').append("<div id='totalrecmessages'>Total filtered messages: " + msgrowsNo + "</div>");
2110
+               });
2111
+
2112
+               // Clear all filters
2113
+               $("#clearrecfilters").on("click", function(event) {
2114
+                      $(".receivedrowsbody").each(function() {
2115
+                          $(this).show();
2116
+                      });
2117
+                      $(".indivfilterrec").val("");
2118
+                      $('#totalrecmessages').remove();
2119
+                      $('#smstables').append("<div id='totalrecmessages'>Total displayed messages: " + parseddata.length + "</div>");
2120
+               });
2121
+
2122
+               // Delete selected rows from the database
2123
+               $("#deleterecrows").on("click", function() {
2124
+                  var checkcheckbx = jQuery("#recSmsTable input[type=checkbox]:checked").length;
2125
+                  if (checkcheckbx == 0) {
2126
+                      showAlert("Please select the row(s) to permanently delete from the database !");
2127
+                  } else {
2128
+                          var checkboxIds = [];
2129
+                          $(".receivedrowsbody").each(function() {
2130
+                             var rowcheckbx = $(this).find('input[type="checkbox"]');
2131
+                             if (rowcheckbx.is(":checked")) {
2132
+                                 var dbrowid = $(this).find('[class="dbidcolumnrec"]').text();
2133
+                                 checkboxIds.push(dbrowid);
2134
+                             }
2135
+                          });
2136
+
2137
+		          confirmAlert("Please note that the row(s) you selected will be permanently deleted from the database, without being saved before removal. This action cannot be undone ! If you really want to permanently delete the selected row(s) press 'OK'.");
2138
+
2139
+		          $("#confirmCancel").click(function() { $("#alertMsgOverlay").remove(); $("#alertConfMessage").remove(); });
2140
+
2141
+		          $("#confirmOk").click(function() {
2142
+
2143
+		              $("#alertMsgOverlay").remove();
2144
+		              $("#alertConfMessage").remove();
2145
+
2146
+                              var deleterecRowsUrl = OC.generateUrl("/apps/sms_relentless/user/removerecrows");
2147
+                              $('#smstables').addClass('icon-loading');
2148
+
2149
+                              $.ajax({
2150
+                                   url: deleterecRowsUrl + '/' + userid,
2151
+                                   method: "POST",
2152
+                                   dataType:'text',
2153
+                                   data: {recmessagedbIDs: checkboxIds},
2154
+                                   success: function() {
2155
+                                              showAlert("The row(s) have been deleted successfully !");
2156
+                                              $('#smstables').removeClass('icon-loading');
2157
+                                              $('#receivedsmstableshow').click();
2158
+                                   },
2159
+                                   error: function() {
2160
+                                              showAlert("There was an error while deleting the selected row(s) !");
2161
+                                              $('#smstables').removeClass('icon-loading');
2162
+                                   }
2163
+                              });
2164
+                          });
2165
+
2166
+                  }
2167
+               });
2168
+
2169
+
2170
+               // Show/Hide filter row
2171
+	       $('#recarrow').on('click', function() {
2172
+	          if ($('#recfiltersrow').is(':visible')) {
2173
+		      $('#recfiltersrow').hide();
2174
+                      $('#recheaderrow').css('top', '0px');
2175
+                      $(this).removeClass('arrowUpCl');
2176
+                      $(this).addClass('arrowDownCl');
2177
+		  } else {
2178
+		      $('#recfiltersrow').show();
2179
+                      $('#recheaderrow').css('top', '158px');
2180
+                      $(this).removeClass('arrowDownCl');
2181
+                      $(this).addClass('arrowUpCl');
2182
+                  }
2183
+               });
2184
+
2185
+               $("#app-content").animate({scrollTop:$("#recSmsTable").prop("scrollHeight")},200);
2186
+
2187
+
2188
+               // Download MMS files when clicking on their URLs
2189
+               $('[id^="mmsTblUrl-"]').on('click', function(evt) {
2190
+
2191
+                  var clckedUrl = $(this).text();
2192
+                  var flNamearr = clckedUrl.split("/");
2193
+                  var flName = flNamearr.reverse()[0];
2194
+
2195
+                  confirmAlert("Download this file only if you trust the sender and the domain of the URL.");
2196
+
2197
+		  $("#confirmOk").click(function() {
2198
+
2199
+                     $("#alertMsgOverlay").remove();
2200
+		     $("#alertConfMessage").remove();
2201
+
2202
+		     var mmsLink = document.createElement("a");
2203
+		     mmsLink.setAttribute('href', clckedUrl);
2204
+		     mmsLink.setAttribute('download', flName);
2205
+		     mmsLink.setAttribute('target', '_blank');
2206
+		     document.body.appendChild(mmsLink);
2207
+		     mmsLink.click();
2208
+		     mmsLink.remove();
2209
+                  });
2210
+
2211
+		  $("#confirmCancel").click(function() { $("#alertMsgOverlay").remove(); $("#alertConfMessage").remove(); });
2212
+               });
2213
+
2214
+          },
2215
+          error: function(recdatafromdb) {
2216
+                      showAlert("Error. You can check the Nextcloud log to find more details about this issue.");
2217
+                      $('#smstables').removeClass('icon-loading');
2218
+          }
2219
+     });
2220
+
2221
+     // Show the auto-refresh button
2222
+     if ($("#stopAutoRefreshSentBtn").text() == "Stop auto refresh") {
2223
+         $("#stopAutoRefreshSentBtn").click();
2224
+     }
2225
+     $("#stopAutoRefreshRec").css("display", "inline-block");
2226
+     $("#stopAutoRefreshSent").css("display", "none");
2227
+
2228
+  });
2229
+
2230
+
2231
+  // List sent messages
2232
+  $("#sentsmstableshow").on("click", function(event) {
2233
+
2234
+     $('#smstables').empty();
2235
+
2236
+     var getSentUrl = OC.generateUrl("/apps/sms_relentless/user/getsenttable");
2237
+     $('#smstables').addClass('icon-loading');
2238
+
2239
+     $.ajax({
2240
+          url: getSentUrl + '/' + userid,
2241
+          method: "GET",
2242
+          contentType: 'application/json',
2243
+          success: function(sentdatafdb) {
2244
+
2245
+                var sentparseddata = sentdatafdb.datarows;
2246
+
2247
+                $('#smstables').append("<div id='toptablesent'><div class='topbuttonandpage'><span id='sentarrow' title='Show/Hide filters and Delete button'></span></div><div id='paginationsent' class='pages'>Pages </div></div>");
2248
+                $('#smstables').append("<table id='sentSmsTable'></table>");
2249
+                $('#sentSmsTable').append("<tr id='sentfiltersrow'><td class='selectalldvfilter'><button id='clearsentfilters' title='Clear all filters.'></button><button id='deletesentrows' title='Permanently delete the selected row(s) from below from the database.'></button></td><td class='selectalldvfilter'><input type='text' id='dbidtextsent' class='indivfiltersent' title='Enter a database ID number to apply the filter.'><input type='submit' id='databaseidfilter' class='filterbuttonsent' value='' title='Filter rows by the specified database ID.' /></td><td class='selectalldvfilter'><input type='text' id='useridtext' class='indivfiltersent' title='Enter a Nextcloud username to apply the filter.' /><input type='submit' id='useridfilter' class='filterbuttonsent' value='' title='Filter rows by the specified username.' /></td><td class='selectalldvfilter'><input type='text' id='messageidtext' class='indivfiltersent' title='Enter a fragment from a message ID to apply the filter.'  /><input type='submit' id='messageidfilter' class='filterbuttonsent' value='' title='Filter rows by the specified string.' /></td><td class='selectalldvfilter'><input type='text' id='datetext' class='indivfiltersent' title='Enter a fragment of a date to apply the filter.'/><input type='submit' id='datefilter' class='filterbuttonsent' value='' title='Filter rows by the specified string.' /></td><td class='selectalldvfilter'><input type='text' id='fromtext' class='indivfiltersent' title='Enter a fragment of a sender&#146s phone number or alphanumeric Sender ID, to apply the filter.' /><input type='submit' id='fromfilter' class='filterbuttonsent' value='' title='Filter rows by the specified string.' /></td><td class='selectalldvfilter'><input type='text' id='totext' class='indivfiltersent' value='' title='Enter a fragment of a recipient&#146s phone number to apply the filter.'  /><input type='submit' id='tofilter' class='filterbuttonsent' value='' title='Filter rows by the specified string.' /></td><td class='selectalldvfilter'><input type='text' id='networktext' class='indivfiltersent' title='Enter a fragment of a network number to apply the filter.' /><input type='submit' id='networkfilter' class='filterbuttonsent' value='' title='Filter rows by the specified string.'/></td><td class='selectalldvfilter'><input type='text' id='pricetext' class='indivfiltersent' title='Enter a fragment of a price string to apply the filter.' /><input type='submit' id='pricefilter' class='filterbuttonsent' value='' title='Filter rows by the specified string.'/></td><td class='selectalldvfilter'><input type='text' id='statustext' class='indivfiltersent' title='Enter a fragment of a status to apply the filter.' /><input type='submit' id='statusfilter' class='filterbuttonsent' value='' title='Filter rows by the specified string.'/></td><td class='selectalldvfilter'><input type='text' id='deliveryrcpttext' class='indivfiltersent' title='Enter a fragment of a delivery receit to apply the filter.' /><input type='submit' id='deliveryrecfilter' class='filterbuttonsent' value='' title='Filter rows by the specified string.'/></td><td class='selectalldvfilter'><input type='text' id='messagetext' class='indivfiltersent' title='Enter a fragment of a message to apply the filter.' /><input type='submit' id='messagefilter' class='filterbuttonsent' value='' title='Filter rows by the specified string.'/></td></tr>");
2250
+                $('#sentSmsTable').append("<tr class='sentrows' id='sentheaderrow'><th id='selectalldv' class='selectsmsdv'><input type='checkbox' id='selectAllChckbx' class ='indivchckbx' title='Select all rows.' /></th><th title='The database ID of each message.'>ID</th><th>User ID</th><th>Message ID</th><th>Date</th><th>From</th><th>To</th><th title='When a 5 or 6 digits code appears in this column, the first 3 digits specify the mobile country code and the last 2 or 3 digits specify the mobile network code of the receiver. You can look up the mobile country code and then the mobile network code on https://en.wikipedia.org/wiki/Mobile_country_code#National_operators'>Network</th><th title=\"The currency is the currency configured in the client account, on the SMS provider's website.\">Price</th><th id='sentstatuscolumn' title=\"This column generally shows the status received from the recipient's carrier, or any errors generated when attempting to send the message.\">Status</th><th title='Not all delivery receipts guarantee that the target received the message. Some delivery receipts represent successful completion of just one step in the delivery process, such as transmitting the message to another telephony operator.'>Delivery<br>Receit</th><th>Sent Message</th></tr>");
2251
+
2252
+                $('#sentfiltersrow').hide();
2253
+
2254
+                if (sentdatafdb.showdispnm == 1) {
2255
+
2256
+                    for (var i = 0; i < sentparseddata.length; i++) {
2257
+
2258
+                         if (sentparseddata[i].author_displayname) {
2259
+                             var procmessage = "<span class='messageAuthorName'>"+ sentparseddata[i].author_displayname + ":</span>" + sentparseddata[i].message +"<div id='showMsgConv-"+ i +"' class='lstMsgConv'><img class='lstMsgConvImg' src='/apps/sms_relentless/img/reply.svg' title='Show all the messages exchanged between the current 2 phone numbers.'></div>";
2260
+                         } else {
2261
+                             var procmessage = sentparseddata[i].message +"<div id='showMsgConv-"+ i +"' class='lstMsgConv'><img class='lstMsgConvImg' src='/apps/sms_relentless/img/reply.svg' title='Show all the messages exchanged between the current 2 phone numbers.'></div>";
2262
+                         }
2263
+
2264
+                         var procsentFrom = "<div id='frmNmbr-"+ i +"'>"+ sentparseddata[i].from +"<div id='showMsgFrom-"+ i +"' class='listToFromMsgs'><img class='lstMsgToFromImg' src='/apps/sms_relentless/img/list.svg' title='Show all the messages sent/received to/from this phone number, that I am allowed to see.'></div></div>";
2265
+
2266
+                         var procsentTo = "<div id='toNmbr-"+ i +"'>"+ sentparseddata[i].to +"<div id='showMsgTo-"+ i +"' class='listToFromMsgs'><img class='lstMsgToFromImg' src='/apps/sms_relentless/img/list.svg' title='Show all the messages sent/received to/from this phone number, that I am allowed to see.'></div></div>";
2267
+
2268
+                         $('#sentSmsTable').append("<tr id='singlerow_"+ i +"' class='sentrowsbody'><td class='selectsmsdv'><input type='checkbox' id='selectspec_"+ i +"' class='indivchckbx' /></td><td class='sentdbidcolumn'>"+ sentparseddata[i].id +"</td><td class='useridcolsent'>"+ sentparseddata[i].user_id +"</td><td class='messageidcolsent'>"+ sentparseddata[i].message_id +"</td><td class='datecolsent'>"+ sentparseddata[i].date +"</td><td class='fromcolumnsent'>"+ procsentFrom +"</td><td class='tocolumnsent'>"+ procsentTo +"</td><td class='networkcolumnsent'>"+ sentparseddata[i].network +"</td><td class='pricecolumnsent'>"+ sentparseddata[i].price +"</td><td class='statuscolumnsent'>"+ sentparseddata[i].status +"</td><td class='deliveryrcptcolsent'>"+ sentparseddata[i].deliveryreceipt +"</td><td class='messagecolumnsent'>"+ procmessage +"</td></tr>");
2269
+                    }
2270
+
2271
+                } else {
2272
+
2273
+                    for (var i = 0; i < sentparseddata.length; i++) {
2274
+
2275
+                         var procmessage = sentparseddata[i].message +"<div id='showMsgConv-"+ i +"' class='lstMsgConv'><img class='lstMsgConvImg' src='/apps/sms_relentless/img/reply.svg' title='Show all the messages exchanged between the current 2 phone numbers.'></div>";
2276
+
2277
+                         var procsentFrom = "<div id='frmNmbr-"+ i +"'>"+ sentparseddata[i].from +"<div id='showMsgFrom-"+ i +"' class='listToFromMsgs'><img class='lstMsgToFromImg' src='/apps/sms_relentless/img/list.svg' title='Show all the messages sent/received to/from this phone number, that I am allowed to see.'></div></div>";
2278
+
2279
+                         var procsentTo = "<div id='toNmbr-"+ i +"'>"+ sentparseddata[i].to +"<div id='showMsgTo-"+ i +"' class='listToFromMsgs'><img class='lstMsgToFromImg' src='/apps/sms_relentless/img/list.svg' title='Show all the messages sent/received to/from this phone number, that I am allowed to see.'></div></div>";
2280
+
2281
+                         $('#sentSmsTable').append("<tr id='singlerow_"+ i +"' class='sentrowsbody'><td class='selectsmsdv'><input type='checkbox' id='selectspec_"+ i +"' class='indivchckbx' /></td><td class='sentdbidcolumn'>"+ sentparseddata[i].id +"</td><td class='useridcolsent'>"+ sentparseddata[i].user_id +"</td><td class='messageidcolsent'>"+ sentparseddata[i].message_id +"</td><td class='datecolsent'>"+ sentparseddata[i].date +"</td><td class='fromcolumnsent'>"+ procsentFrom +"</td><td class='tocolumnsent'>"+ procsentTo +"</td><td class='networkcolumnsent'>"+ sentparseddata[i].network +"</td><td class='pricecolumnsent'>"+ sentparseddata[i].price +"</td><td class='statuscolumnsent'>"+ sentparseddata[i].status +"</td><td class='deliveryrcptcolsent'>"+ sentparseddata[i].deliveryreceipt +"</td><td class='messagecolumnsent'>"+ procmessage +"</td></tr>");
2282
+                    }
2283
+                }
2284
+
2285
+                $('#smstables').append("<div id='totalsentmessages'><span>Total displayed messages: " + sentparseddata.length + "</span></div>");
2286
+
2287
+                $('#smstables').removeClass('icon-loading');
2288
+
2289
+                $('#sentarrow').removeClass('arrowUpCl');
2290
+                $('#sentarrow').addClass('arrowDownCl');
2291
+
2292
+
2293
+                // Show the pop-up window that lists all the messages exchanged between the current 2 phone numbers
2294
+                function showSentMsgPerConv(phNumberFrom, phNumberTo) {
2295
+
2296
+                   let allfrmtomsg = "<div id='listAllMsgsConv'>";
2297
+                   allfrmtomsg += "<div id='draglstMsgmWindow'><img src='/apps/sms_relentless/img/dots.svg'></div>";
2298
+                   allfrmtomsg += "<a id='closeFrmMsgWindow' title='Close this window'></a>";
2299
+                   allfrmtomsg += "<div class='showByNmbrTitle'>Messages exchanged between <span style='color:#04957b'>"+ phNumberFrom +"</span> and <span style='color:#04957b'>"+ phNumberTo +"</span></div>";
2300
+                   allfrmtomsg += "<div id='frmMsgLstWrap'>";
2301
+                   allfrmtomsg += "<table id='frmMsgLstTbl'>";
2302
+                   allfrmtomsg += "<tr class='groupedrowsbody'><td><div id='grpdbynamelst' class='groupedLstNamespn'></div></td><td><div id='loadMoreMsgs' title='Click to load older messages.'>Load more messages</div><div id='loadMoreMsgsusr' title='Click to load older messages.'>Load more messages</div><div id='msgListRowCell' class='groupedLstMsgspn'></div><div id='refreshMsgsWrap'><div id='stopAutoRefresh'>Stop auto refresh</div><div id='refreshMsgsConv' title='Refresh list'></div></div><div id='arrowupWrap'><div id='upArrowSmall' title='Scroll to the top'></div></div></td></tr>";
2303
+                   allfrmtomsg += "</table></div>";
2304
+                   allfrmtomsg += "<div id='sendMsgReply'><table id='sendMsgConv'><tr><td><div id='fromPhoneNmbrConv'>From: <select id='selectFromNbConv'></select></div><div id='toPhoneNmbrConv'>To: <span id='toNmbrConv' style='color:#04957b'>"+ phNumberTo +"</span></div></td></tr>";
2305
+                   allfrmtomsg += "<tr><td><textarea id='sendMsgConvText' placeholder='Enter a message here, then press Send SMS'></textarea></td></tr></table>";
2306
+                   allfrmtomsg += "<div id='sendMsgConvBtn'>Send SMS</div></div>";
2307
+                   allfrmtomsg += "<div style='display:block;width:100%;height:14px;'><img id='expandWindowRpl' src='/apps/sms_relentless/img/arrowDown.svg' title='Expand to send a reply'></div>";
2308
+                   allfrmtomsg += "<div id='draglstMsgmWindowsc'><img src='/apps/sms_relentless/img/dots.svg' style='padding:4px;vertical-align:top;'></div>";
2309
+                   allfrmtomsg += "</div>";
2310
+
2311
+                   $("#content").append("<div id='recTblOverlay'></div>");
2312
+                   $("#content").append(allfrmtomsg);
2313
+
2314
+                   let topDist = parseInt((window.innerHeight / 2).toFixed(2) - 340) +"px";
2315
+                   let leftDist = parseInt((window.innerWidth / 2).toFixed(2) - 300) +"px";
2316
+                   $("#listAllMsgsConv").css({ "top" : topDist, "left" : leftDist });
2317
+
2318
+                   var intervalRfr = 0;
2319
+                   var rplchck = 0;
2320
+
2321
+                   $("#closeFrmMsgWindow").click(function() { $("#listAllMsgsConv").remove(); $("#recTblOverlay").remove(); clearInterval(intervalRfr); });
2322
+                   $("#recTblOverlay").click(function() { $("#listAllMsgsConv").remove(); $("#recTblOverlay").remove(); clearInterval(intervalRfr); });
2323
+
2324
+	           // Expand the window when clicking on the arrow, to be able to send a reply message
2325
+                   $("#expandWindowRpl").unbind("click");
2326
+	           $("#expandWindowRpl").click(function() {
2327
+
2328
+	              if ($(this).attr('src') == '/apps/sms_relentless/img/arrowDown.svg') {
2329
+                          $("#sendMsgReply").css("display", "block");
2330
+                          $("#listAllMsgsConv").css("height", "618px");
2331
+	                  $(this).attr('src', '/apps/sms_relentless/img/arrowUp.svg');
2332
+                          $(this).attr('title', 'Collapse');
2333
+                          $("#stopAutoRefresh").css("visibility", "visible");
2334
+                          intervalRfr = setInterval(function() { $("#refreshMsgsConv").click(); }, 5000);
2335
+
2336
+                          $("#stopAutoRefresh").text("Stop auto refresh");
2337
+                          $("#stopAutoRefresh").css("color", "#0a559e");
2338
+
2339
+                          $("#stopAutoRefresh").unbind("click");
2340
+                          $("#stopAutoRefresh").click(function() { 
2341
+                             if ($("#stopAutoRefresh").text() == "Stop auto refresh") {
2342
+                                  clearInterval(intervalRfr);
2343
+                                  $("#stopAutoRefresh").text("Start auto refresh");
2344
+                                  $("#stopAutoRefresh").css("color", "#04957b");
2345
+                             } else {
2346
+                                  clearInterval(intervalRfr);
2347
+                                  intervalRfr = setInterval(function() { $("#refreshMsgsConv").click(); }, 5000);
2348
+                                  $("#stopAutoRefresh").text("Stop auto refresh");
2349
+                                  $("#stopAutoRefresh").css("color", "#0a559e");
2350
+                             }
2351
+                          });
2352
+
2353
+                          rplchck = 1;
2354
+
2355
+	              } else {
2356
+
2357
+                          $("#sendMsgReply").css("display", "none");
2358
+                          $("#listAllMsgsConv").css("height", "490px");
2359
+                          $(this).attr('src', '/apps/sms_relentless/img/arrowDown.svg');
2360
+                          $(this).attr('title', 'Expand to send a reply');
2361
+                          $("#stopAutoRefresh").css("visibility", "hidden");
2362
+                          $("#stopAutoRefresh").unbind("click");
2363
+                          clearInterval(intervalRfr);
2364
+                          rplchck = 0;
2365
+	              }
2366
+	           });
2367
+
2368
+
2369
+                   // Send a message from the 'conversation' window
2370
+                   $("#sendMsgConvBtn").click(function() {
2371
+
2372
+                      $("#sendMsgConv,#sendMsgConvBtn").addClass('icon-loading');
2373
+                      var msgToSend = $("#sendMsgConvText").val();
2374
+                      var selectedid = $("#selectFromNbConv").val();
2375
+                      var toNumber = $("#toNmbrConv").text();
2376
+                      var receiversNumbers = [toNumber];
2377
+
2378
+		      if (selectedid != '') { 
2379
+
2380
+			  var sendersplit = selectedid.split(":");
2381
+			  var providercap = sendersplit[0];
2382
+			  var provsec = sendersplit[1];
2383
+
2384
+			  if (/[a-zA-Z]/.test(provsec)) {
2385
+			      var alphanumcheck = true;
2386
+			  } else { var alphanumcheck = false; }
2387
+
2388
+			  if (providercap == 'Tx' && alphanumcheck == false) {  
2389
+			      var senderproc = selectedid.replace(/[^0-9]/g, "");
2390
+			      var selectedsender = "+" + senderproc;
2391
+			      var providerUsed = "telnyx";
2392
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstel");
2393
+			  } else if (providercap == 'Pl' && alphanumcheck == false) {
2394
+			      var selectedsender = selectedid.replace(/[^0-9]/g, "");
2395
+			      var providerUsed = "plivo";
2396
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsnex");
2397
+			  } else if (providercap == 'Tw' && alphanumcheck == false) {  
2398
+			      var senderproc = selectedid.replace(/[^0-9]/g, "");
2399
+			      var selectedsender = "+" + senderproc;
2400
+			      var providerUsed = "twilio";
2401
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstwil");
2402
+			  } else if (providercap == 'Fl' && alphanumcheck == false) {  
2403
+			      var senderproc = selectedid.replace(/[^0-9]/g, "");
2404
+			      var selectedsender = "+" + senderproc;
2405
+			      var providerUsed = "flowroute";
2406
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsflow");
2407
+			  } else if (providercap == 'Tx' && alphanumcheck == true) {
2408
+			      var selectedsender = provsec;
2409
+			      var providerUsed = "telnyx";
2410
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstel");
2411
+			  } else if (providercap == 'Pl' && alphanumcheck == true) {
2412
+			      var selectedsender = provsec;
2413
+			      var providerUsed = "plivo";
2414
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsnex");
2415
+			  } else if (providercap == 'Tw' && alphanumcheck == true) {
2416
+			      var selectedsender = provsec;
2417
+			      var providerUsed = "twilio";
2418
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstwil");
2419
+			  } else if (providercap == 'Fl' && alphanumcheck == true) {
2420
+			      var selectedsender = provsec;
2421
+			      var providerUsed = "flowroute";
2422
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsflow");
2423
+			  }
2424
+
2425
+                          var uploadedtomms = [];
2426
+
2427
+	                  if (msgToSend != '') {
2428
+
2429
+				  $.ajax({
2430
+				     url: relbaseUrl + '/' + userid,
2431
+				     type: "POST",
2432
+				     data: {
2433
+				           receiversPhoneNbs: receiversNumbers,
2434
+				           fromsender: selectedsender,
2435
+				           waitinterval: 1000,
2436
+				           sentsmstext: msgToSend,
2437
+				           ismms: 0,
2438
+				           mmsfiles: uploadedtomms
2439
+				         },
2440
+				     success: function(displayname) {
2441
+
2442
+                                           var tzdate = new Date();
2443
+                                           var presDatest = new Date(tzdate.getTime() - (tzdate.getTimezoneOffset() * 60000)).toJSON();
2444
+                                           var presDatedb = presDatest.split(".")[0];
2445
+                                           var presDatesc = presDatedb.split("T");
2446
+                                           var presDate = presDatesc[0] +" "+ presDatesc[1];
2447
+                                           var sentMessageStatus = '';
2448
+
2449
+                                           if (displayname) {
2450
+                                               var msgToSendproc = "<span class='msgAuthorNameGrp'>"+ displayname + ":</span>" + msgToSend; 
2451
+                                           } else { var msgToSendproc = msgToSend; }
2452
+
2453
+                                           $("#msgListRowCell").append("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ selectedsender +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ receiversNumbers[0] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ msgToSendproc +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ presDate +"</div><div class='sentMssgStatus'>"+ sentMessageStatus +"</div></div>");
2454
+
2455
+                                           // Scroll down to the bottom of the window
2456
+                                           $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
2457
+
2458
+                                           $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
2459
+				     },
2460
+				     error: function() {
2461
+				           showAlert("Error while sending the message. You can check your Nextcloud log to find out more about this issue.");
2462
+				           $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
2463
+				     }
2464
+				  });
2465
+			  } else {
2466
+				  showAlert("Please enter a message in the text box!");
2467
+				  $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
2468
+			  }
2469
+		      } else {
2470
+			      showAlert("Please choose a Sender ID from the 'From' drop-down list!");
2471
+			      $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
2472
+		      }
2473
+
2474
+                   });
2475
+
2476
+
2477
+	           // Make the window draggable
2478
+	           function makeMgrWndDraggable(e) {
2479
+
2480
+			   window.pmdragging = {};
2481
+			   pmdragging.pageX0 = e.pageX;
2482
+			   pmdragging.pageY0 = e.pageY;
2483
+			   pmdragging.elem = $("#listAllMsgsConv");
2484
+			   pmdragging.offset0 = $("#listAllMsgsConv").offset();
2485
+
2486
+			   function handle_dragging(e) {
2487
+			       let left = pmdragging.offset0.left + (e.pageX - pmdragging.pageX0);
2488
+			       let top = pmdragging.offset0.top + (e.pageY - pmdragging.pageY0);
2489
+			       $(pmdragging.elem).offset({top: top, left: left});
2490
+			   }
2491
+
2492
+			   function handle_mouseup(e) {
2493
+			       $('body').off('mousemove', handle_dragging).off('mouseup', handle_mouseup);
2494
+			   }
2495
+
2496
+			   $('body').on('mouseup', handle_mouseup).on('mousemove', handle_dragging);
2497
+	           }
2498
+	           $("#draglstMsgmWindow").mousedown(makeMgrWndDraggable);
2499
+	           $("#draglstMsgmWindowsc").mousedown(makeMgrWndDraggable);
2500
+
2501
+
2502
+                   // Append the available phone numbers to the From drop-down list
2503
+                   var availPhoneNmbrs = [];
2504
+                   $("#currentsmsnmbrs .optselectsmsnb").each(function() {
2505
+                      var crtphnmbr = $(this).attr("value");
2506
+                      if (crtphnmbr != "") { availPhoneNmbrs.push(crtphnmbr); }
2507
+                   });
2508
+
2509
+                   if (availPhoneNmbrs.length > 0) {
2510
+                       var avphopt = "";
2511
+                       for (let d = 0; d < availPhoneNmbrs.length; d++) {
2512
+                            if (availPhoneNmbrs[d].indexOf(phNumberFrom) === -1) {
2513
+                                avphopt += "<option value='"+ availPhoneNmbrs[d] +"'>"+ availPhoneNmbrs[d] +"</option>";
2514
+                            } else {
2515
+                                avphopt += "<option value='"+ availPhoneNmbrs[d] +"' selected>"+ availPhoneNmbrs[d] +"</option>";
2516
+                            }
2517
+                       }
2518
+                       $("#selectFromNbConv").append(avphopt);
2519
+
2520
+                   } else { $("#selectFromNbConv").append("<option value='' selected>No IDs</option>"); }
2521
+
2522
+
2523
+                   // Get the sent/received messages for the current phone numbers, from the database
2524
+                   function getMsgsForNumbersSec(phNumberFrom, phNumberTo) {
2525
+
2526
+			   let getGrpConvUrl = OC.generateUrl("/apps/sms_relentless/user/getgroupedforreply");
2527
+
2528
+			   $('#listAllMsgsConv').addClass('icon-loading');
2529
+			   let totalPhNmbrs = 0;
2530
+
2531
+			   $.ajax({
2532
+				  method: 'POST',
2533
+				  url: getGrpConvUrl + '/' + userid,
2534
+				  contentType: 'application/json',
2535
+		                  data: JSON.stringify({ phoneNmbrFrom: phNumberFrom, phoneNmbrTo: phNumberTo }),
2536
+				  success: function(groupedperconv) {
2537
+
2538
+					     $('#listAllMsgsConv').removeClass('icon-loading');
2539
+
2540
+					     let fromtoNmbrsData = [];
2541
+
2542
+					     for (let i = 0; i < groupedperconv.length; i++) {
2543
+
2544
+						     if (groupedperconv[i].author_displayname) {
2545
+							 var authordnm = groupedperconv[i].author_displayname;
2546
+						     } else { 
2547
+							 var authordnm = '';
2548
+						     }
2549
+
2550
+						     var sentfromnmbrarr = groupedperconv[i].from.split("+");
2551
+						     if (sentfromnmbrarr[1]) {
2552
+							 var groupednbfrom = "+"+ sentfromnmbrarr[1];
2553
+						     } else {
2554
+							 var groupednbfrom = sentfromnmbrarr[0];
2555
+						     }
2556
+
2557
+						     var modmessagerec = '';
2558
+						     if (groupedperconv[i].author_displayname) {
2559
+							 modmessagerec = "<span class='msgAuthorNameGrp'>"+ groupedperconv[i].author_displayname + ":</span>" + groupedperconv[i].message;
2560
+						     } else {
2561
+					                 modmessagerec = groupedperconv[i].message;
2562
+		                                     }
2563
+
2564
+						     if (groupedperconv[i].to.indexOf(": ") > -1) {
2565
+						         var groupednmbrtopre = groupedperconv[i].to.split(": ");
2566
+						         var groupednmbrto = groupednmbrtopre[1];
2567
+						     } else { 
2568
+						         var groupednmbrto = groupedperconv[i].to;
2569
+						     }
2570
+
2571
+						     fromtoNmbrsData.push({
2572
+						               'author_displayname': authordnm,
2573
+						               'from': groupednbfrom,
2574
+						               'to': groupednmbrto,
2575
+						               'message': modmessagerec,
2576
+						               'date': groupedperconv[i].date,
2577
+						               'status': groupedperconv[i].deliveryreceipt,
2578
+						               'table': groupedperconv[i].table
2579
+						     });
2580
+					     }
2581
+
2582
+
2583
+					     // Remove the duplicates
2584
+					     let noDupMsgData = [];
2585
+					     $.each(fromtoNmbrsData, function(i, e) {
2586
+						    let matchingData = $.grep(noDupMsgData, function(item) {
2587
+						            return item.from == e.from && item.to == e.to && item.message == e.message && item.table == 'received' && e.table == 'sent';
2588
+						    });
2589
+						    if (matchingData.length === 0) {
2590
+							noDupMsgData.push(e);
2591
+						    }
2592
+					     });
2593
+
2594
+					     let messagesPerNmbr = {};
2595
+					     let msgsNamesPerNmbr = {};
2596
+					     let msgsNmbrsNames = {};
2597
+
2598
+					     let displayNamesarr = [];
2599
+					     let convData = [];
2600
+
2601
+					     for (let n = 0; n < noDupMsgData.length; n++) {
2602
+
2603
+					          if (noDupMsgData[n]['from'] == phNumberTo && noDupMsgData[n]['table'] == 'sent') {
2604
+
2605
+					              convData.push({
2606
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
2607
+					                             'message': noDupMsgData[n]['message'],
2608
+					                             'from': noDupMsgData[n]['from'],
2609
+					                             'to': noDupMsgData[n]['to'],
2610
+					                             'date': noDupMsgData[n]['date'],
2611
+					                             'direction': 'sent_from',
2612
+					                             'status': noDupMsgData[n]['status'],
2613
+					                             'table': noDupMsgData[n]['table']
2614
+					              });
2615
+
2616
+					          } else if (noDupMsgData[n]['to'] == phNumberTo && noDupMsgData[n]['table'] == 'sent') {
2617
+
2618
+					              convData.push({
2619
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
2620
+					                             'message': noDupMsgData[n]['message'],
2621
+					                             'from': noDupMsgData[n]['from'],
2622
+					                             'to': noDupMsgData[n]['to'],
2623
+					                             'date': noDupMsgData[n]['date'],
2624
+					                             'direction': 'sent_to',
2625
+					                             'status': noDupMsgData[n]['status'],
2626
+					                             'table': noDupMsgData[n]['table']
2627
+					              });
2628
+
2629
+
2630
+					          } else if (noDupMsgData[n]['from'] == phNumberTo && noDupMsgData[n]['table'] == 'received') {
2631
+
2632
+					              convData.push({
2633
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
2634
+					                             'message': noDupMsgData[n]['message'],
2635
+					                             'from': noDupMsgData[n]['from'],
2636
+					                             'to': noDupMsgData[n]['to'],
2637
+					                             'date': noDupMsgData[n]['date'],
2638
+					                             'direction': 'received_from',
2639
+					                             'status': noDupMsgData[n]['status'],
2640
+					                             'table': noDupMsgData[n]['table']
2641
+					              });
2642
+
2643
+					          } else if (noDupMsgData[n]['to'] == phNumberTo && noDupMsgData[n]['table'] == 'received') {
2644
+
2645
+					              convData.push({
2646
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
2647
+					                             'message': noDupMsgData[n]['message'],
2648
+					                             'from': noDupMsgData[n]['from'],
2649
+					                             'to': noDupMsgData[n]['to'],
2650
+					                             'date': noDupMsgData[n]['date'],
2651
+					                             'direction': 'received_on',
2652
+					                             'status': noDupMsgData[n]['status'],
2653
+					                             'table': noDupMsgData[n]['table']
2654
+					              });
2655
+					          }
2656
+					     }
2657
+
2658
+					     // Sort messages by date
2659
+					     convData.sort(function(a, b) {
2660
+						let c = new Date(a.date);
2661
+						let d = new Date(b.date);
2662
+						return c-d;
2663
+					     });
2664
+		                             convData.reverse();
2665
+
2666
+					     // Collect the display names of the users that sent messages from the current number
2667
+					     let selectedNames = [];
2668
+					     let displayNames = '';
2669
+					     for (let v = 0; v < convData.length; v++) {
2670
+					          if (selectedNames.indexOf(convData[v]['author_displayname']) == -1) {
2671
+					              selectedNames.push(convData[v]['author_displayname']);
2672
+					              displayNames += "<div id='diplNm_"+ phNumberTo +"_"+ v +"' class='dispNameList' name='"+ convData[v]['author_displayname'] +"'>"+ convData[v]['author_displayname'] +"</div>";
2673
+					          }
2674
+					     }
2675
+					     displayNames += "<div id='diplNmAllMsg' class='dispNameListAll' title='Show all the messages for this number.'>"+ phNumberTo +"</div>";
2676
+
2677
+					     // Store the display names for the current number, to be able to see them later
2678
+					     let ctPhNumber = phNumberTo;
2679
+					     msgsNamesPerNmbr[ctPhNumber] = displayNames;
2680
+
2681
+					     // Store the messages sent by each user, to be able to see them later when clicking on the user's name
2682
+					     for (let h = 0; h < selectedNames.length; h++) {
2683
+
2684
+					          let rowMessageArrpn = [];
2685
+					          for (let b = 0; b < convData.length; b++) {
2686
+
2687
+					               if (selectedNames[h] == convData[b]['author_displayname']) {
2688
+
2689
+							   if (convData[b]['direction'] == 'sent_from') {
2690
+							       if (convData[b]['status'].indexOf("delivered") > -1 || convData[b]['status'].indexOf("delivery success") > -1 || convData[b]['status'].indexOf("Retrieved") > -1) {
2691
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
2692
+							       } else {
2693
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
2694
+							       }
2695
+							       rowMessageArrpn.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
2696
+							   } else if (convData[b]['direction'] == 'sent_to') {
2697
+							       if (convData[b]['status'].indexOf("delivered") > -1 || convData[b]['status'].indexOf("delivery success") > -1 || convData[b]['status'].indexOf("Retrieved") > -1) {
2698
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
2699
+							       } else {
2700
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
2701
+							       }
2702
+							       rowMessageArrpn.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
2703
+							   } else if (convData[b]['direction'] == 'received_from') {
2704
+							       rowMessageArrpn.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div></div>");
2705
+							   } else if (convData[b]['direction'] == 'received_on') {
2706
+							       rowMessageArrpn.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div></div>");
2707
+					                   }
2708
+					               }
2709
+					          }
2710
+					          let crtNmber = phNumberTo;
2711
+					          let crtName = selectedNames[h];
2712
+					          msgsNmbrsNames[crtNmber] = msgsNmbrsNames[crtNmber] || {};
2713
+		                                  msgsNmbrsNames[crtNmber][crtName] = rowMessageArrpn;
2714
+					     }
2715
+
2716
+		                             // The number of messages to be loaded by default
2717
+		                             let nmbTblDefault = 50;
2718
+
2719
+		                             // If the total number of messages is greater than the default number of messages to display, show the 'Load more messages' button
2720
+		                             if (convData.length > nmbTblDefault) {
2721
+		                                 $("#loadMoreMsgs").css("display", "block");
2722
+		                                 var nmbToBeLoaded = nmbTblDefault;
2723
+		                             } else { var nmbToBeLoaded = convData.length; }
2724
+
2725
+					     let rowMessageArr = [];
2726
+					     for (var m = nmbToBeLoaded - 1; m >= 0; m--) {
2727
+
2728
+					          if (convData[m]['direction'] == 'sent_from') {
2729
+
2730
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
2731
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
2732
+					              } else {
2733
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
2734
+					              }
2735
+					              rowMessageArr.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
2736
+
2737
+					          } else if (convData[m]['direction'] == 'sent_to') {
2738
+
2739
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
2740
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
2741
+					              } else {
2742
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
2743
+					              }
2744
+					              rowMessageArr.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
2745
+
2746
+					          } else if (convData[m]['direction'] == 'received_from') {
2747
+
2748
+						      rowMessageArr.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
2749
+
2750
+					          } else if (convData[m]['direction'] == 'received_on') {
2751
+
2752
+						      rowMessageArr.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
2753
+					          }
2754
+					     }
2755
+
2756
+					     let convDataPerNmbr = rowMessageArr.join("");
2757
+
2758
+		                             $("#grpdbynamelst").empty();
2759
+		                             $("#grpdbynamelst").append(displayNames);
2760
+		                             $("#msgListRowCell").empty();
2761
+		                             $("#msgListRowCell").append(convDataPerNmbr);
2762
+
2763
+					     // Store the messages for the current number, to be able to see them later, when clicking on the number
2764
+					     let rowMessageArrcpt = [];
2765
+					     for (let m = 0; m < convData.length; m++) {
2766
+
2767
+					          if (convData[m]['direction'] == 'sent_from') {
2768
+
2769
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
2770
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
2771
+					              } else {
2772
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
2773
+					              }
2774
+					              rowMessageArrcpt.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
2775
+
2776
+					          } else if (convData[m]['direction'] == 'sent_to') {
2777
+
2778
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
2779
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
2780
+					              } else {
2781
+					                  let sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
2782
+					              }
2783
+					              rowMessageArrcpt.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
2784
+
2785
+					          } else if (convData[m]['direction'] == 'received_from') {
2786
+
2787
+						      rowMessageArrcpt.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
2788
+
2789
+					          } else if (convData[m]['direction'] == 'received_on') {
2790
+
2791
+						      rowMessageArrcpt.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
2792
+					          }
2793
+					     }
2794
+
2795
+					     messagesPerNmbr[phNumberTo] = rowMessageArrcpt;
2796
+
2797
+		                             // Scroll down to the bottom of the window
2798
+		                             if (rplchck == 0) {
2799
+		                                 $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
2800
+		                             }
2801
+
2802
+		                             // Load more messages
2803
+		                             let clickNmb = 0;
2804
+		                             $("#loadMoreMsgs").click(function() {
2805
+
2806
+		                                 clickNmb++;
2807
+
2808
+		                                 var crefnb = (clickNmb + 1) * nmbToBeLoaded;
2809
+
2810
+		                                 if (crefnb > convData.length) {
2811
+		                                     var nmbmsg = convData.length - 1;
2812
+		                                     $("#loadMoreMsgs").css("display", "none");
2813
+		                                 } else { 
2814
+		                                     var nmbmsg = crefnb - 1;
2815
+		                                 }
2816
+
2817
+		                                 var rowMessageArrAdd = [];
2818
+
2819
+		                                 for (let m = nmbmsg; m >= clickNmb * nmbToBeLoaded; m--) {
2820
+
2821
+					              if (convData[m]['direction'] == 'sent_from') {
2822
+
2823
+					                  if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
2824
+					                      let sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
2825
+					                  } else {
2826
+					                      let sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
2827
+					                  }
2828
+					                  rowMessageArrAdd.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
2829
+
2830
+					              } else if (convData[m]['direction'] == 'sent_to') {
2831
+
2832
+					                  if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
2833
+					                      let sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
2834
+					                  } else {
2835
+					                      let sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
2836
+					                  }
2837
+					                  rowMessageArrAdd.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
2838
+
2839
+					              } else if (convData[m]['direction'] == 'received_from') {
2840
+
2841
+							  rowMessageArrAdd.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
2842
+
2843
+					              } else if (convData[m]['direction'] == 'received_on') {
2844
+
2845
+							  rowMessageArrAdd.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
2846
+					              }
2847
+		                                 }
2848
+
2849
+					         let convDataPerNmbrad = rowMessageArrAdd.join("");
2850
+
2851
+		                                 let scrlheight = $("#msgListRowCell").height();
2852
+		                                 $("#msgListRowCell").prepend(convDataPerNmbrad);
2853
+
2854
+		                                 $("#frmMsgLstWrap").scrollTop($("#msgListRowCell").height() - scrlheight);
2855
+		                             });
2856
+
2857
+
2858
+					     // Show the messages sent by each user whose name is clicked
2859
+					     $('[id*="diplNm_"]').click(function() {
2860
+
2861
+					         let crntNmbr = $(this).attr("id").split("_")[1];
2862
+					         let crntDisName = $(this).attr("name");                               
2863
+		                                 $("#loadMoreMsgs").css("display", "none");
2864
+
2865
+		                                 let convDataprn = [];
2866
+		                                 $.each(msgsNmbrsNames[crntNmbr][crntDisName], function(index, item) {
2867
+		                                        convDataprn.push(item);
2868
+		                                 });
2869
+
2870
+		                                 // If the total number of messages is greater than the default number of messages to display, show the 'Load more messages' button
2871
+		                                 if (convDataprn.length > nmbTblDefault) {
2872
+		                                     $("#loadMoreMsgsusr").css("display", "block");
2873
+		                                     let nmbToBeLoaded = nmbTblDefault;
2874
+		                                 } else {
2875
+		                                     $("#loadMoreMsgsusr").css("display", "none");
2876
+		                                     let nmbToBeLoaded = convDataprn.length;
2877
+		                                 }
2878
+
2879
+					         let rowMessageArrprnst = [];
2880
+
2881
+					         for (let n = nmbToBeLoaded - 1; n >= 0; n--) {
2882
+		                                      rowMessageArrprnst.push(convDataprn[n]);
2883
+					         }
2884
+
2885
+					         let convDataPerNmbrprnst = rowMessageArrprnst.join("");
2886
+
2887
+		                                 $("#msgListRowCell").empty();
2888
+		                                 $("#msgListRowCell").append(convDataPerNmbrprnst);
2889
+
2890
+		                                 // Scroll down to the bottom of the window
2891
+		                                 $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
2892
+
2893
+		                                 // Load more messages
2894
+		                                 let clckNb = 0;
2895
+		                                 $("#loadMoreMsgsusr").unbind("click");
2896
+		                                 $("#loadMoreMsgsusr").click(function() {
2897
+
2898
+		                                     clckNb++;
2899
+		                                     var crefnb = (clckNb + 1) * nmbToBeLoaded;
2900
+
2901
+		                                     $("#loadMoreMsgs").css("display", "none");
2902
+
2903
+		                                     if (crefnb > convDataprn.length) {
2904
+		                                         var nmbmsg = convDataprn.length - 1;
2905
+		                                         $("#loadMoreMsgsusr").css("display", "none");
2906
+		                                     } else { 
2907
+		                                         var nmbmsg = crefnb - 1;
2908
+		                                         $("#loadMoreMsgsusr").css("display", "block");
2909
+		                                     }
2910
+
2911
+		                                     var rowMessageArrAddst = [];
2912
+
2913
+		                                     for (var q = nmbmsg; q >= clckNb * nmbToBeLoaded; q--) {
2914
+
2915
+		                                          rowMessageArrAddst.push(convDataprn[q]);
2916
+		                                     }
2917
+
2918
+					             var convDataPerNmbradst = rowMessageArrAddst.join("");
2919
+
2920
+		                                     var scrlheight = $("#msgListRowCell").height();
2921
+		                                     $("#msgListRowCell").prepend(convDataPerNmbradst);
2922
+
2923
+		                                     $("#frmMsgLstWrap").scrollTop($("#msgListRowCell").height() - scrlheight);
2924
+		                                 });
2925
+
2926
+
2927
+					         $(".dispNameList").each(function() { $(this).css("color", "#0a559e"); });
2928
+					         $("#diplNmAllMsg").css("color", "#04957b");
2929
+					         $(this).css("color", "#1b8efe");
2930
+					     });
2931
+
2932
+
2933
+					     // Show again all the messages sent/received to/from the clicked number
2934
+					     $("#diplNmAllMsg").click(function() {
2935
+
2936
+		                                 $("#loadMoreMsgsusr").css("display", "none");
2937
+
2938
+		                                 let convDataprn = [];
2939
+		                                 $.each(messagesPerNmbr[phNumberTo], function(index, item) {
2940
+		                                        convDataprn.push(item);
2941
+		                                 });
2942
+
2943
+		                                 // If the total number of messages is greater than the default number of messages to display, show the 'Load more messages' button
2944
+		                                 if (convDataprn.length > nmbTblDefault) {
2945
+		                                     $("#loadMoreMsgs").css("display", "block");
2946
+		                                     let nmbToBeLoaded = nmbTblDefault;
2947
+		                                 } else {
2948
+		                                     $("#loadMoreMsgs").css("display", "none");
2949
+		                                     let nmbToBeLoaded = convDataprn.length;
2950
+		                                 }
2951
+
2952
+
2953
+					         let rowMessageArrprnst = [];
2954
+
2955
+					         for (let n = nmbToBeLoaded - 1; n >= 0; n--) {
2956
+		                                      rowMessageArrprnst.push(convDataprn[n]);
2957
+					         }
2958
+
2959
+					         let convDataPerNmbrprnst = rowMessageArrprnst.join("");
2960
+
2961
+		                                 $("#msgListRowCell").empty();
2962
+		                                 $("#msgListRowCell").append(convDataPerNmbrprnst);
2963
+
2964
+		                                 // Scroll down to the bottom of the window
2965
+		                                 $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
2966
+
2967
+
2968
+		                                 // Load more messages
2969
+		                                 let clckNb = 0;
2970
+		                                 $("#loadMoreMsgs").unbind("click");
2971
+		                                 $("#loadMoreMsgs").click(function() {
2972
+
2973
+		                                     clckNb++;
2974
+		                                     var crefnb = (clckNb + 1) * nmbToBeLoaded;
2975
+
2976
+		                                     $("#loadMoreMsgsusr").css("display", "none");
2977
+
2978
+		                                     if (crefnb > convDataprn.length) {
2979
+		                                         var nmbmsg = convDataprn.length - 1;
2980
+		                                         $("#loadMoreMsgs").css("display", "none");
2981
+		                                     } else { 
2982
+		                                         var nmbmsg = crefnb - 1;
2983
+		                                         $("#loadMoreMsgs").css("display", "block");
2984
+		                                     }
2985
+
2986
+		                                     var rowMessageArrAddst = [];
2987
+
2988
+		                                     for (var q = nmbmsg; q >= clckNb * nmbToBeLoaded; q--) {
2989
+
2990
+		                                          rowMessageArrAddst.push(convDataprn[q]);
2991
+		                                     }
2992
+
2993
+					             var convDataPerNmbradst = rowMessageArrAddst.join("");
2994
+
2995
+		                                     var scrlheight = $("#msgListRowCell").height();
2996
+		                                     $("#msgListRowCell").prepend(convDataPerNmbradst);
2997
+
2998
+		                                     $("#frmMsgLstWrap").scrollTop($("#msgListRowCell").height() - scrlheight);
2999
+		                                 });
3000
+
3001
+
3002
+					         $(".dispNameList").each(function() { $(this).css("color", "#0a559e"); });
3003
+					         $("#diplNmAllMsg").css("color", "#04957b");
3004
+					         $(this).css("color", "#04c6a4");
3005
+					     });
3006
+
3007
+
3008
+					     // Show the scroll-up arrow
3009
+					     $("#frmMsgLstWrap").scroll(function() {
3010
+						if ($(this).scrollTop() > 900) {
3011
+						      $('#upArrowSmall').fadeIn();
3012
+						} else {
3013
+						      $('#upArrowSmall').fadeOut();
3014
+						}
3015
+					     });
3016
+
3017
+					     $("#upArrowSmall").click(function() {
3018
+						$("#frmMsgLstWrap").animate({scrollTop : 0},400);
3019
+					     });
3020
+
3021
+
3022
+					     // Download MMS files when clicking on their URLs
3023
+					     $('[id^="mmsTblUrl-"]').on('click', function(evt) {
3024
+
3025
+					        var clckedUrl = $(this).text();
3026
+					        var flNamearr = clckedUrl.split("/");
3027
+					        var flName = flNamearr.reverse()[0];
3028
+
3029
+					        confirmAlert("Download this file only if you trust the sender and the domain of the URL.");
3030
+
3031
+					        $("#confirmOk").click(function() {
3032
+
3033
+					           $("#alertMsgOverlay").remove();
3034
+					           $("#alertConfMessage").remove();
3035
+
3036
+					           var mmsLink = document.createElement("a");
3037
+					           mmsLink.setAttribute('href', clckedUrl);
3038
+					           mmsLink.setAttribute('download', flName);
3039
+                                                   mmsLink.setAttribute('target', '_blank');
3040
+					           document.body.appendChild(mmsLink);
3041
+					           mmsLink.click();
3042
+					           mmsLink.remove();
3043
+					        });
3044
+
3045
+					        $("#confirmCancel").click(function() { $("#alertMsgOverlay").remove(); $("#alertConfMessage").remove(); });
3046
+					     });
3047
+
3048
+				  },
3049
+				  error: function() {
3050
+					     showAlert("Error while attempting to get message data from the database!");
3051
+					     $('#listAllMsgsConv').removeClass('icon-loading');
3052
+				  }
3053
+			   });
3054
+                   }
3055
+
3056
+                   getMsgsForNumbersSec(phNumberFrom, phNumberTo);
3057
+
3058
+                   $("#refreshMsgsConv").click(function() { getMsgsForNumbersSec(phNumberFrom, phNumberTo); });
3059
+
3060
+                }
3061
+
3062
+                $('[id^="showMsgConv-"]').click(function() {
3063
+
3064
+                   let ctrwnmbr = $(this).attr("id").replace("showMsgConv-", "");
3065
+                   let phNumberFrom = $("#frmNmbr-"+ ctrwnmbr).text().split(": ")[1];
3066
+                   let phNumberTo = $("#toNmbr-"+ ctrwnmbr).text();
3067
+
3068
+                   showSentMsgPerConv(phNumberFrom, phNumberTo);
3069
+                });
3070
+
3071
+
3072
+                // Show the pop-up window that lists all the messages sent/received to/from a phone number
3073
+                function showMsgPerNmbr(clckPhNumber) {
3074
+
3075
+                   var allfrmtomsg = "<div id='listAllMsgsFromTo'>";
3076
+                   allfrmtomsg += "<div id='draglstMsgmWindow'><img src='/apps/sms_relentless/img/dots.svg'></div>";
3077
+                   allfrmtomsg += "<a id='closeFrmMsgWindow' title='Close this window'></a>";
3078
+                   allfrmtomsg += "<div class='showByNmbrTitle'>Messages sent/received to/from  <span style='color:#04957b'>"+ clckPhNumber +"</span></div>";
3079
+                   allfrmtomsg += "<div id='frmMsgLstWrap'>";
3080
+                   allfrmtomsg += "<table id='frmMsgLstTbl'>";
3081
+                   allfrmtomsg += "<tr class='groupedrowsbody'><td><div id='grpdbynamelst' class='groupedLstNamespn'></div></td><td><div id='loadMoreMsgs' title='Click to load older messages.'>Load more messages</div><div id='loadMoreMsgsusr' title='Click to load older messages.'>Load more messages</div><div id='msgListRowCell' class='groupedLstMsgspn'></div><div id='refreshMsgsWraptf'><div id='stopAutoRefreshtf'>Stop auto refresh</div><div id='refreshMsgsConvtf' title='Refresh list'></div></div><div id='arrowupWrap'><div id='upArrowSmall' title='Scroll to the top'></div></div></td></tr>";
3082
+                   allfrmtomsg += "</table></div>";
3083
+                   allfrmtomsg += "<div id='sendMsgReply'><table id='sendMsgConv'><tr><td><div id='fromPhoneNmbrConv'>From: <select id='selectFromNbConv'></select></div><div id='toPhoneNmbrConv'>To: <span id='toNmbrConv' style='color:#04957b'>"+ clckPhNumber +"</span></div></td></tr>";
3084
+                   allfrmtomsg += "<tr><td><textarea id='sendMsgConvText' placeholder='Enter a message here, then press Send SMS'></textarea></td></tr></table>";
3085
+                   allfrmtomsg += "<div id='sendMsgConvBtn'>Send SMS</div></div>";
3086
+                   allfrmtomsg += "<div style='display:block;width:100%;height:14px;'><img id='expandWindowRpl' src='/apps/sms_relentless/img/arrowDown.svg' title='Expand to send a message'></div>";
3087
+                   allfrmtomsg += "<div id='draglstMsgmWindowsc'><img src='/apps/sms_relentless/img/dots.svg' style='padding:4px;vertical-align:top;'></div>";
3088
+                   allfrmtomsg += "</div>";
3089
+
3090
+                   $("#content").append("<div id='recTblOverlay'></div>");
3091
+                   $("#content").append(allfrmtomsg);
3092
+
3093
+                   var topDist = parseInt((window.innerHeight / 2).toFixed(2) - 340) +"px";
3094
+                   var leftDist = parseInt((window.innerWidth / 2).toFixed(2) - 300) +"px";
3095
+                   $("#listAllMsgsFromTo").css({ "top" : topDist, "left" : leftDist });
3096
+
3097
+                   var intervalRfr = 0;
3098
+                   var rplchck = 0;
3099
+
3100
+                   $("#closeFrmMsgWindow").click(function() { $("#listAllMsgsFromTo").remove(); $("#recTblOverlay").remove(); clearInterval(intervalRfr); });
3101
+                   $("#recTblOverlay").click(function() { $("#listAllMsgsFromTo").remove(); $("#recTblOverlay").remove(); clearInterval(intervalRfr); });
3102
+
3103
+	           // Expand the window when clicking on the arrow, to be able to send a reply message
3104
+                   $("#expandWindowRpl").unbind("click");
3105
+	           $("#expandWindowRpl").click(function() {
3106
+
3107
+	              if ($(this).attr('src') == '/apps/sms_relentless/img/arrowDown.svg') {
3108
+                          $("#sendMsgReply").css("display", "block");
3109
+                          $("#listAllMsgsFromTo").css("height", "618px");
3110
+	                  $(this).attr('src', '/apps/sms_relentless/img/arrowUp.svg');
3111
+                          $(this).attr('title', 'Collapse');
3112
+                          $("#stopAutoRefreshtf").css("visibility", "visible");
3113
+                          intervalRfr = setInterval(function() { $("#refreshMsgsConvtf").click(); }, 5000);
3114
+
3115
+                          $("#stopAutoRefreshtf").text("Stop auto refresh");
3116
+                          $("#stopAutoRefreshtf").css("color", "#0a559e");
3117
+
3118
+                          $("#stopAutoRefreshtf").unbind("click");
3119
+                          $("#stopAutoRefreshtf").click(function() { 
3120
+                             if ($("#stopAutoRefreshtf").text() == "Stop auto refresh") {
3121
+                                  clearInterval(intervalRfr);
3122
+                                  $("#stopAutoRefreshtf").text("Start auto refresh");
3123
+                                  $("#stopAutoRefreshtf").css("color", "#04957b");
3124
+                             } else {
3125
+                                  clearInterval(intervalRfr);
3126
+                                  intervalRfr = setInterval(function() { $("#refreshMsgsConvtf").click(); }, 5000);
3127
+                                  $("#stopAutoRefreshtf").text("Stop auto refresh");
3128
+                                  $("#stopAutoRefreshtf").css("color", "#0a559e");
3129
+                             }
3130
+                          });
3131
+
3132
+                          rplchck = 1;
3133
+
3134
+	              } else {
3135
+
3136
+                          $("#sendMsgReply").css("display", "none");
3137
+                          $("#listAllMsgsFromTo").css("height", "490px");
3138
+                          $(this).attr('src', '/apps/sms_relentless/img/arrowDown.svg');
3139
+                          $(this).attr('title', 'Expand to send a reply');
3140
+                          $("#stopAutoRefreshtf").css("visibility", "hidden");
3141
+                          $("#stopAutoRefreshtf").unbind("click");
3142
+                          clearInterval(intervalRfr);
3143
+                          rplchck = 0;
3144
+	              }
3145
+	           });
3146
+
3147
+
3148
+                   // Send a message from the 'conversation' window
3149
+                   $("#sendMsgConvBtn").click(function() {
3150
+
3151
+                      $("#sendMsgConv,#sendMsgConvBtn").addClass('icon-loading');
3152
+                      var msgToSend = $("#sendMsgConvText").val();
3153
+                      var selectedid = $("#selectFromNbConv").val();
3154
+                      var toNumber = $("#toNmbrConv").text();
3155
+                      var receiversNumbers = [toNumber];
3156
+
3157
+		      if (selectedid != '') {
3158
+
3159
+			  var sendersplit = selectedid.split(":");
3160
+			  var providercap = sendersplit[0];
3161
+			  var provsec = sendersplit[1];
3162
+
3163
+			  if (/[a-zA-Z]/.test(provsec)) {
3164
+			      var alphanumcheck = true;
3165
+			  } else { var alphanumcheck = false; }
3166
+
3167
+			  if (providercap == 'Tx' && alphanumcheck == false) {  
3168
+			      var senderproc = selectedid.replace(/[^0-9]/g, "");
3169
+			      var selectedsender = "+" + senderproc;
3170
+			      var providerUsed = "telnyx";
3171
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstel");
3172
+			  } else if (providercap == 'Pl' && alphanumcheck == false) {
3173
+			      var selectedsender = selectedid.replace(/[^0-9]/g, "");
3174
+			      var providerUsed = "plivo";
3175
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsnex");
3176
+			  } else if (providercap == 'Tw' && alphanumcheck == false) {  
3177
+			      var senderproc = selectedid.replace(/[^0-9]/g, "");
3178
+			      var selectedsender = "+" + senderproc;
3179
+			      var providerUsed = "twilio";
3180
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstwil");
3181
+			  } else if (providercap == 'Fl' && alphanumcheck == false) {  
3182
+			      var senderproc = selectedid.replace(/[^0-9]/g, "");
3183
+			      var selectedsender = "+" + senderproc;
3184
+			      var providerUsed = "flowroute";
3185
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsflow");
3186
+			  } else if (providercap == 'Tx' && alphanumcheck == true) {
3187
+			      var selectedsender = provsec;
3188
+			      var providerUsed = "telnyx";
3189
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstel");
3190
+			  } else if (providercap == 'Pl' && alphanumcheck == true) {
3191
+			      var selectedsender = provsec;
3192
+			      var providerUsed = "plivo";
3193
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsnex");
3194
+			  } else if (providercap == 'Tw' && alphanumcheck == true) {
3195
+			      var selectedsender = provsec;
3196
+			      var providerUsed = "twilio";
3197
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmstwil");
3198
+			  } else if (providercap == 'Fl' && alphanumcheck == true) {
3199
+			      var selectedsender = provsec;
3200
+			      var providerUsed = "flowroute";
3201
+			      var relbaseUrl = OC.generateUrl("/apps/sms_relentless/user/sendsmsflow");
3202
+			  }
3203
+
3204
+                          var uploadedtomms = [];
3205
+
3206
+	                  if (msgToSend != '') {
3207
+
3208
+				  $.ajax({
3209
+				     url: relbaseUrl + '/' + userid,
3210
+				     type: "POST",
3211
+				     data: {
3212
+				           receiversPhoneNbs: receiversNumbers,
3213
+				           fromsender: selectedsender,
3214
+				           waitinterval: 1000,
3215
+				           sentsmstext: msgToSend,
3216
+				           ismms: 0,
3217
+				           mmsfiles: uploadedtomms
3218
+				         },
3219
+				     success: function(displayname) {
3220
+
3221
+                                           var tzdate = new Date();
3222
+                                           var presDatest = new Date(tzdate.getTime() - (tzdate.getTimezoneOffset() * 60000)).toJSON();
3223
+                                           var presDatedb = presDatest.split(".")[0];
3224
+                                           var presDatesc = presDatedb.split("T");
3225
+                                           var presDate = presDatesc[0] +" "+ presDatesc[1];
3226
+                                           var sentMessageStatus = '';
3227
+
3228
+                                           if (displayname) {
3229
+                                               var msgToSendproc = "<span class='msgAuthorNameGrp'>"+ displayname + ":</span>" + msgToSend; 
3230
+                                           } else { var msgToSendproc = msgToSend; }
3231
+
3232
+                                           $("#msgListRowCell").append("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ selectedsender +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ receiversNumbers[0] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ msgToSendproc +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ presDate +"</div><div class='sentMssgStatus'>"+ sentMessageStatus +"</div></div>");
3233
+
3234
+                                           // Scroll down to the bottom of the window
3235
+                                           $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
3236
+
3237
+                                           $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
3238
+				     },
3239
+				     error: function() {
3240
+				           showAlert("Error while sending the message. You can check your Nextcloud log to find out more about this issue.");
3241
+				           $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
3242
+				     }
3243
+				  });
3244
+			  } else {
3245
+				  showAlert("Please enter a message in the text box!");
3246
+				  $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
3247
+			  }
3248
+		      } else {
3249
+			      showAlert("Please choose a Sender ID from the 'From' drop-down list!");
3250
+			      $("#sendMsgConv,#sendMsgConvBtn").removeClass('icon-loading');
3251
+		      }
3252
+
3253
+                   });
3254
+
3255
+
3256
+	           // Make the window draggable
3257
+	           function makeMgrWndDraggable(e) {
3258
+
3259
+			   window.pmdragging = {};
3260
+			   pmdragging.pageX0 = e.pageX;
3261
+			   pmdragging.pageY0 = e.pageY;
3262
+			   pmdragging.elem = $("#listAllMsgsFromTo");
3263
+			   pmdragging.offset0 = $("#listAllMsgsFromTo").offset();
3264
+
3265
+			   function handle_dragging(e) {
3266
+			       var left = pmdragging.offset0.left + (e.pageX - pmdragging.pageX0);
3267
+			       var top = pmdragging.offset0.top + (e.pageY - pmdragging.pageY0);
3268
+			       $(pmdragging.elem).offset({top: top, left: left});
3269
+			   }
3270
+
3271
+			   function handle_mouseup(e) {
3272
+			       $('body').off('mousemove', handle_dragging).off('mouseup', handle_mouseup);
3273
+			   }
3274
+
3275
+			   $('body').on('mouseup', handle_mouseup).on('mousemove', handle_dragging);
3276
+	           }
3277
+	           $("#draglstMsgmWindow").mousedown(makeMgrWndDraggable);
3278
+	           $("#draglstMsgmWindowsc").mousedown(makeMgrWndDraggable);
3279
+
3280
+
3281
+                   // Append the available phone numbers to the From drop-down list
3282
+                   var availPhoneNmbrs = [];
3283
+                   $("#currentsmsnmbrs .optselectsmsnb").each(function() {
3284
+                      var crtphnmbr = $(this).attr("value");
3285
+                      if (crtphnmbr != "") { availPhoneNmbrs.push(crtphnmbr); }
3286
+                   });
3287
+
3288
+                   if (availPhoneNmbrs.length > 0) {
3289
+                       var avphopt = "";
3290
+                       for (let d = 0; d < availPhoneNmbrs.length; d++) {
3291
+                            avphopt += "<option value='"+ availPhoneNmbrs[d] +"'>"+ availPhoneNmbrs[d] +"</option>";
3292
+                       }
3293
+                       $("#selectFromNbConv").append(avphopt);
3294
+
3295
+                   } else { $("#selectFromNbConv").append("<option value='' selected>No IDs</option>"); }
3296
+
3297
+
3298
+                   // Get the sent/received messages for the current phone number, from the database
3299
+                   function getMsgsPerNmbrSec(clckPhNumber) {
3300
+
3301
+			   var getGroupedPnUrl = OC.generateUrl("/apps/sms_relentless/user/getgroupedpernumber");
3302
+
3303
+			   $('#listAllMsgsFromTo').addClass('icon-loading');
3304
+			   var totalPhNmbrs = 0;
3305
+
3306
+			   $.ajax({
3307
+				  method: 'POST',
3308
+				  url: getGroupedPnUrl + '/' + userid,
3309
+				  contentType: 'application/json',
3310
+		                  data: JSON.stringify({ phoneNumber: clckPhNumber }),
3311
+				  success: function(groupedpernb) {
3312
+
3313
+					     $('#listAllMsgsFromTo').removeClass('icon-loading');
3314
+
3315
+					     var fromtoNmbrsData = [];
3316
+
3317
+					     for (var i = 0; i < groupedpernb.length; i++) {
3318
+
3319
+						     if (groupedpernb[i].author_displayname) {
3320
+							 var authordnm = groupedpernb[i].author_displayname;
3321
+						     } else { 
3322
+							 var authordnm = '';
3323
+						     }
3324
+
3325
+						     var sentfromnmbrarr = groupedpernb[i].from.split("+");
3326
+						     if (sentfromnmbrarr[1]) {
3327
+							 var groupednbfrom = "+"+ sentfromnmbrarr[1];
3328
+						     } else {
3329
+							 var groupednbfrom = sentfromnmbrarr[0];
3330
+						     }
3331
+
3332
+						     var modmessagesent = '';
3333
+						     if (groupedpernb[i].author_displayname) {
3334
+							 modmessagesent = "<span class='msgAuthorNameGrp'>"+ groupedpernb[i].author_displayname + ":</span>" + groupedpernb[i].message;
3335
+						     } else {
3336
+					                 modmessagesent = groupedpernb[i].message;
3337
+		                                     }
3338
+
3339
+						     if (groupedpernb[i].to.indexOf(": ") > -1) {
3340
+						         var groupednmbrtopre = groupedpernb[i].to.split(": ");
3341
+						         var groupednmbrto = groupednmbrtopre[1];
3342
+						     } else { 
3343
+						         var groupednmbrto = groupedpernb[i].to;
3344
+						     }
3345
+
3346
+						     fromtoNmbrsData.push({
3347
+						               'author_displayname': authordnm,
3348
+						               'from': groupednbfrom,
3349
+						               'to': groupednmbrto,
3350
+						               'message': modmessagesent,
3351
+						               'date': groupedpernb[i].date,
3352
+						               'status': groupedpernb[i].deliveryreceipt,
3353
+						               'table': groupedpernb[i].table
3354
+						     });
3355
+					     }
3356
+
3357
+
3358
+					     // Remove the duplicates
3359
+					     var noDupMsgData = [];
3360
+					     $.each(fromtoNmbrsData, function(i, e) {
3361
+						    var matchingData = $.grep(noDupMsgData, function(item) {
3362
+						            return item.from == e.from && item.to == e.to && item.message == e.message && item.table == 'received' && e.table == 'sent';
3363
+						    });
3364
+						    if (matchingData.length === 0) {
3365
+							noDupMsgData.push(e);
3366
+						    }
3367
+					     });
3368
+
3369
+					     var messagesPerNmbr = {};
3370
+					     var msgsNamesPerNmbr = {};
3371
+					     var msgsNmbrsNames = {};
3372
+
3373
+					     var displayNamesarr = [];
3374
+					     var convData = [];
3375
+
3376
+					     for (var n = 0; n < noDupMsgData.length; n++) {
3377
+
3378
+					          if (noDupMsgData[n]['from'] == clckPhNumber && noDupMsgData[n]['table'] == 'sent') {
3379
+
3380
+					              convData.push({
3381
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
3382
+					                             'message': noDupMsgData[n]['message'],
3383
+					                             'from': noDupMsgData[n]['from'],
3384
+					                             'to': noDupMsgData[n]['to'],
3385
+					                             'date': noDupMsgData[n]['date'],
3386
+					                             'direction': 'sent_from',
3387
+					                             'status': (noDupMsgData[n]['status'] == null)? "" : noDupMsgData[n]['status'],
3388
+					                             'table': noDupMsgData[n]['table']
3389
+					              });
3390
+
3391
+					          } else if (noDupMsgData[n]['to'] == clckPhNumber && noDupMsgData[n]['table'] == 'sent') {
3392
+
3393
+					              convData.push({
3394
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
3395
+					                             'message': noDupMsgData[n]['message'],
3396
+					                             'from': noDupMsgData[n]['from'],
3397
+					                             'to': noDupMsgData[n]['to'],
3398
+					                             'date': noDupMsgData[n]['date'],
3399
+					                             'direction': 'sent_to',
3400
+					                             'status': (noDupMsgData[n]['status'] == null)? "" : noDupMsgData[n]['status'],
3401
+					                             'table': noDupMsgData[n]['table']
3402
+					              });
3403
+
3404
+
3405
+					          } else if (noDupMsgData[n]['from'] == clckPhNumber && noDupMsgData[n]['table'] == 'received') {
3406
+
3407
+					              convData.push({
3408
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
3409
+					                             'message': noDupMsgData[n]['message'],
3410
+					                             'from': noDupMsgData[n]['from'],
3411
+					                             'to': noDupMsgData[n]['to'],
3412
+					                             'date': noDupMsgData[n]['date'],
3413
+					                             'direction': 'received_from',
3414
+					                             'status': (noDupMsgData[n]['status'] == null)? "" : noDupMsgData[n]['status'],
3415
+					                             'table': noDupMsgData[n]['table']
3416
+					              });
3417
+
3418
+					          } else if (noDupMsgData[n]['to'] == clckPhNumber && noDupMsgData[n]['table'] == 'received') {
3419
+
3420
+					              convData.push({
3421
+					                             'author_displayname': noDupMsgData[n]['author_displayname'],
3422
+					                             'message': noDupMsgData[n]['message'],
3423
+					                             'from': noDupMsgData[n]['from'],
3424
+					                             'to': noDupMsgData[n]['to'],
3425
+					                             'date': noDupMsgData[n]['date'],
3426
+					                             'direction': 'received_on',
3427
+					                             'status': (noDupMsgData[n]['status'] == null)? "" : noDupMsgData[n]['status'],
3428
+					                             'table': noDupMsgData[n]['table']
3429
+					              });
3430
+					          }
3431
+					     }
3432
+
3433
+					     // Sort messages by date
3434
+					     convData.sort(function(a, b) {
3435
+						var c = new Date(a.date);
3436
+						var d = new Date(b.date);
3437
+						return c-d;
3438
+					     });
3439
+		                             convData.reverse();
3440
+
3441
+					     // Collect the display names of the users that sent messages from the current number
3442
+					     var selectedNames = [];
3443
+					     var displayNames = '';
3444
+					     for (var v = 0; v < convData.length; v++) {
3445
+					          if (selectedNames.indexOf(convData[v]['author_displayname']) == -1) { 
3446
+					              selectedNames.push(convData[v]['author_displayname']);
3447
+					              displayNames += "<div id='diplNm_"+ clckPhNumber +"_"+ v +"' class='dispNameList' name='"+ convData[v]['author_displayname'] +"'>"+ convData[v]['author_displayname'] +"</div>";
3448
+					          }
3449
+					     }
3450
+					     displayNames += "<div id='diplNmAllMsg' class='dispNameListAll' title='Show all the messages for this number.'>"+ clckPhNumber +"</div>";
3451
+
3452
+					     // Store the display names for the current number, to be able to see them later
3453
+					     var ctPhNumber = clckPhNumber;
3454
+					     msgsNamesPerNmbr[ctPhNumber] = displayNames;
3455
+
3456
+					     // Store the messages sent by each user, to be able to see them later when clicking on the user's name
3457
+					     for (var h = 0; h < selectedNames.length; h++) {
3458
+
3459
+					          var rowMessageArrpn = [];
3460
+					          for (var b = 0; b < convData.length; b++) {
3461
+
3462
+					               if (selectedNames[h] == convData[b]['author_displayname']) {
3463
+
3464
+							   if (convData[b]['direction'] == 'sent_from') {
3465
+							       if (convData[b]['status'].indexOf("delivered") > -1 || convData[b]['status'].indexOf("delivery success") > -1 || convData[b]['status'].indexOf("Retrieved") > -1) {
3466
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
3467
+							       } else {
3468
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
3469
+							       }
3470
+							       rowMessageArrpn.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
3471
+							   } else if (convData[b]['direction'] == 'sent_to') {
3472
+							       if (convData[b]['status'].indexOf("delivered") > -1 || convData[b]['status'].indexOf("delivery success") > -1 || convData[b]['status'].indexOf("Retrieved") > -1) {
3473
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
3474
+							       } else {
3475
+							           var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
3476
+							       }
3477
+							       rowMessageArrpn.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
3478
+							   } else if (convData[b]['direction'] == 'received_from') {
3479
+							       rowMessageArrpn.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div></div>");
3480
+							   } else if (convData[b]['direction'] == 'received_on') {
3481
+							       rowMessageArrpn.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div></div>");
3482
+					                   }
3483
+					               }
3484
+					          }
3485
+					          var crtNmber = clckPhNumber;
3486
+					          var crtName = selectedNames[h];
3487
+					          msgsNmbrsNames[crtNmber] = msgsNmbrsNames[crtNmber] || {};
3488
+		                                  msgsNmbrsNames[crtNmber][crtName] = rowMessageArrpn;
3489
+					     }
3490
+
3491
+		                             // The number of messages to be loaded by default
3492
+		                             var nmbTblDefault = 50;
3493
+
3494
+		                             // If the total number of messages is greater than the default number of messages to display, show the 'Load more messages' button
3495
+		                             if (convData.length > nmbTblDefault) {
3496
+		                                 $("#loadMoreMsgs").css("display", "block");
3497
+		                                 var nmbToBeLoaded = nmbTblDefault;
3498
+		                             } else { var nmbToBeLoaded = convData.length; }
3499
+
3500
+					     var rowMessageArr = [];
3501
+					     for (var m = nmbToBeLoaded - 1; m >= 0; m--) {
3502
+
3503
+					          if (convData[m]['direction'] == 'sent_from') {
3504
+
3505
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
3506
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
3507
+					              } else {
3508
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
3509
+					              }
3510
+					              rowMessageArr.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
3511
+
3512
+					          } else if (convData[m]['direction'] == 'sent_to') {
3513
+
3514
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
3515
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
3516
+					              } else {
3517
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
3518
+					              }
3519
+					              rowMessageArr.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
3520
+
3521
+					          } else if (convData[m]['direction'] == 'received_from') {
3522
+
3523
+						      rowMessageArr.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
3524
+
3525
+					          } else if (convData[m]['direction'] == 'received_on') {
3526
+
3527
+						      rowMessageArr.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
3528
+					          }
3529
+					     }
3530
+
3531
+					     var convDataPerNmbr = rowMessageArr.join("");
3532
+		                             $("#grpdbynamelst").empty();
3533
+		                             $("#grpdbynamelst").append(displayNames);
3534
+		                             $("#msgListRowCell").empty();
3535
+		                             $("#msgListRowCell").append(convDataPerNmbr);
3536
+
3537
+					     // Store the messages for the current number, to be able to see them later, when clicking on the number
3538
+					     var rowMessageArrcpt = [];
3539
+					     for (var m = 0; m < convData.length; m++) {
3540
+
3541
+					          if (convData[m]['direction'] == 'sent_from') {
3542
+
3543
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
3544
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
3545
+					              } else {
3546
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
3547
+					              }
3548
+					              rowMessageArrcpt.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
3549
+
3550
+					          } else if (convData[m]['direction'] == 'sent_to') {
3551
+
3552
+					              if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
3553
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
3554
+					              } else {
3555
+					                  var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
3556
+					              }
3557
+					              rowMessageArrcpt.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
3558
+
3559
+					          } else if (convData[m]['direction'] == 'received_from') {
3560
+
3561
+						      rowMessageArrcpt.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
3562
+
3563
+					          } else if (convData[m]['direction'] == 'received_on') {
3564
+
3565
+						      rowMessageArrcpt.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
3566
+					          }
3567
+					     }
3568
+
3569
+					     messagesPerNmbr[clckPhNumber] = rowMessageArrcpt;
3570
+
3571
+		                             // Scroll down to the bottom of the window
3572
+		                             if (rplchck == 0) {
3573
+		                                 $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
3574
+		                             }
3575
+
3576
+		                             // Load more messages
3577
+		                             var clickNmb = 0;
3578
+		                             $("#loadMoreMsgs").click(function() {
3579
+
3580
+		                                 clickNmb++;
3581
+
3582
+		                                 var crefnb = (clickNmb + 1) * nmbToBeLoaded;
3583
+
3584
+		                                 if (crefnb > convData.length) {
3585
+		                                     var nmbmsg = convData.length - 1;
3586
+		                                     $("#loadMoreMsgs").css("display", "none");
3587
+		                                 } else { 
3588
+		                                     var nmbmsg = crefnb - 1;
3589
+		                                 }
3590
+
3591
+		                                 var rowMessageArrAdd = [];
3592
+
3593
+		                                 for (var m = nmbmsg; m >= clickNmb * nmbToBeLoaded; m--) {
3594
+
3595
+					              if (convData[m]['direction'] == 'sent_from') {
3596
+
3597
+					                  if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
3598
+					                      var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
3599
+					                  } else {
3600
+					                      var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
3601
+					                  }
3602
+					                  rowMessageArrAdd.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
3603
+
3604
+					              } else if (convData[m]['direction'] == 'sent_to') {
3605
+
3606
+					                  if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
3607
+					                      var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
3608
+					                  } else {
3609
+					                      var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
3610
+					                  }
3611
+					                  rowMessageArrAdd.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
3612
+
3613
+					              } else if (convData[m]['direction'] == 'received_from') {
3614
+
3615
+							  rowMessageArrAdd.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
3616
+
3617
+					              } else if (convData[m]['direction'] == 'received_on') {
3618
+
3619
+							  rowMessageArrAdd.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
3620
+					              }
3621
+		                                 }
3622
+
3623
+					         var convDataPerNmbrad = rowMessageArrAdd.join("");
3624
+
3625
+		                                 var scrlheight = $("#msgListRowCell").height();
3626
+		                                 $("#msgListRowCell").prepend(convDataPerNmbrad);
3627
+
3628
+		                                 $("#frmMsgLstWrap").scrollTop($("#msgListRowCell").height() - scrlheight);
3629
+		                             });
3630
+
3631
+
3632
+					     // Show the messages sent by each user whose name is clicked
3633
+					     $('[id*="diplNm_"]').click(function() {
3634
+
3635
+					         var crntNmbr = $(this).attr("id").split("_")[1];
3636
+					         var crntDisName = $(this).attr("name");                               
3637
+		                                 $("#loadMoreMsgs").css("display", "none");
3638
+
3639
+		                                 var convDataprn = [];
3640
+		                                 $.each(msgsNmbrsNames[crntNmbr][crntDisName], function(index, item) {
3641
+		                                        convDataprn.push(item);
3642
+		                                 });
3643
+
3644
+		                                 // If the total number of messages is greater than the default number of messages to display, show the 'Load more messages' button
3645
+		                                 if (convDataprn.length > nmbTblDefault) {
3646
+		                                     $("#loadMoreMsgsusr").css("display", "block");
3647
+		                                     var nmbToBeLoaded = nmbTblDefault;
3648
+		                                 } else {
3649
+		                                     $("#loadMoreMsgsusr").css("display", "none");
3650
+		                                     var nmbToBeLoaded = convDataprn.length;
3651
+		                                 }
3652
+
3653
+
3654
+					         var rowMessageArrprnst = [];
3655
+
3656
+					         for (var n = nmbToBeLoaded - 1; n >= 0; n--) {
3657
+		                                      rowMessageArrprnst.push(convDataprn[n]);
3658
+					         }
3659
+
3660
+					         var convDataPerNmbrprnst = rowMessageArrprnst.join("");
3661
+
3662
+		                                 $("#msgListRowCell").empty();
3663
+		                                 $("#msgListRowCell").append(convDataPerNmbrprnst);
3664
+
3665
+		                                 // Scroll down to the bottom of the window
3666
+		                                 $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
3667
+
3668
+		                                 // Load more messages
3669
+		                                 var clckNb = 0;
3670
+		                                 $("#loadMoreMsgsusr").unbind("click");
3671
+		                                 $("#loadMoreMsgsusr").click(function() {
3672
+
3673
+		                                     clckNb++;
3674
+		                                     var crefnb = (clckNb + 1) * nmbToBeLoaded;
3675
+
3676
+		                                     $("#loadMoreMsgs").css("display", "none");
3677
+
3678
+		                                     if (crefnb > convDataprn.length) {
3679
+		                                         var nmbmsg = convDataprn.length - 1;
3680
+		                                         $("#loadMoreMsgsusr").css("display", "none");
3681
+		                                     } else { 
3682
+		                                         var nmbmsg = crefnb - 1;
3683
+		                                         $("#loadMoreMsgsusr").css("display", "block");
3684
+		                                     }
3685
+
3686
+		                                     var rowMessageArrAddst = [];
3687
+
3688
+		                                     for (var q = nmbmsg; q >= clckNb * nmbToBeLoaded; q--) {
3689
+
3690
+		                                          rowMessageArrAddst.push(convDataprn[q]);
3691
+		                                     }
3692
+
3693
+					             var convDataPerNmbradst = rowMessageArrAddst.join("");
3694
+
3695
+		                                     var scrlheight = $("#msgListRowCell").height();
3696
+		                                     $("#msgListRowCell").prepend(convDataPerNmbradst);
3697
+
3698
+		                                     $("#frmMsgLstWrap").scrollTop($("#msgListRowCell").height() - scrlheight);
3699
+		                                 });
3700
+
3701
+
3702
+					         $(".dispNameList").each(function() { $(this).css("color", "#0a559e"); });
3703
+					         $("#diplNmAllMsg").css("color", "#04957b");
3704
+					         $(this).css("color", "#1b8efe");
3705
+					     });
3706
+
3707
+
3708
+					     // Show again all the messages sent/received to/from the clicked number
3709
+					     $("#diplNmAllMsg").click(function() {
3710
+
3711
+		                                 $("#loadMoreMsgsusr").css("display", "none");
3712
+
3713
+		                                 var convDataprn = [];
3714
+		                                 $.each(messagesPerNmbr[clckPhNumber], function(index, item) {
3715
+		                                        convDataprn.push(item);
3716
+		                                 });
3717
+
3718
+		                                 // If the total number of messages is greater than the default number of messages to display, show the 'Load more messages' button
3719
+		                                 if (convDataprn.length > nmbTblDefault) {
3720
+		                                     $("#loadMoreMsgs").css("display", "block");
3721
+		                                     var nmbToBeLoaded = nmbTblDefault;
3722
+		                                 } else {
3723
+		                                     $("#loadMoreMsgs").css("display", "none");
3724
+		                                     var nmbToBeLoaded = convDataprn.length;
3725
+		                                 }
3726
+
3727
+
3728
+					         var rowMessageArrprnst = [];
3729
+
3730
+					         for (var n = nmbToBeLoaded - 1; n >= 0; n--) {
3731
+		                                      rowMessageArrprnst.push(convDataprn[n]);
3732
+					         }
3733
+
3734
+					         var convDataPerNmbrprnst = rowMessageArrprnst.join("");
3735
+
3736
+		                                 $("#msgListRowCell").empty();
3737
+		                                 $("#msgListRowCell").append(convDataPerNmbrprnst);
3738
+
3739
+		                                 // Scroll down to the bottom of the window
3740
+		                                 $("#frmMsgLstWrap").animate({scrollTop:$("#frmMsgLstTbl").prop("scrollHeight")},200);
3741
+
3742
+
3743
+		                                 // Load more messages
3744
+		                                 var clckNb = 0;
3745
+		                                 $("#loadMoreMsgs").unbind("click");
3746
+		                                 $("#loadMoreMsgs").click(function() {
3747
+
3748
+		                                     clckNb++;
3749
+		                                     var crefnb = (clckNb + 1) * nmbToBeLoaded;
3750
+
3751
+		                                     $("#loadMoreMsgsusr").css("display", "none");
3752
+
3753
+		                                     if (crefnb > convDataprn.length) {
3754
+		                                         var nmbmsg = convDataprn.length - 1;
3755
+		                                         $("#loadMoreMsgs").css("display", "none");
3756
+		                                     } else {
3757
+		                                         var nmbmsg = crefnb - 1;
3758
+		                                         $("#loadMoreMsgs").css("display", "block");
3759
+		                                     }
3760
+
3761
+		                                     var rowMessageArrAddst = [];
3762
+
3763
+		                                     for (var q = nmbmsg; q >= clckNb * nmbToBeLoaded; q--) {
3764
+
3765
+		                                          rowMessageArrAddst.push(convDataprn[q]);
3766
+		                                     }
3767
+
3768
+					             var convDataPerNmbradst = rowMessageArrAddst.join("");
3769
+
3770
+		                                     var scrlheight = $("#msgListRowCell").height();
3771
+		                                     $("#msgListRowCell").prepend(convDataPerNmbradst);
3772
+
3773
+		                                     $("#frmMsgLstWrap").scrollTop($("#msgListRowCell").height() - scrlheight);
3774
+		                                 });
3775
+
3776
+
3777
+					         $(".dispNameList").each(function() { $(this).css("color", "#0a559e"); });
3778
+					         $("#diplNmAllMsg").css("color", "#04957b");
3779
+					         $(this).css("color", "#04c6a4");
3780
+					     });
3781
+
3782
+
3783
+					     // Show the scroll-up arrow
3784
+					     $("#frmMsgLstWrap").scroll(function() {
3785
+						if ($(this).scrollTop() > 900) {
3786
+						      $('#upArrowSmall').fadeIn();
3787
+						} else {
3788
+						      $('#upArrowSmall').fadeOut();
3789
+						}
3790
+					     });
3791
+
3792
+					     $("#upArrowSmall").click(function() {
3793
+						$("#frmMsgLstWrap").animate({scrollTop : 0},400);
3794
+					     });
3795
+
3796
+
3797
+					     // Download MMS files when clicking on their URLs
3798
+					     $('[id^="mmsTblUrl-"]').on('click', function(evt) {
3799
+
3800
+					        var clckedUrl = $(this).text();
3801
+					        var flNamearr = clckedUrl.split("/");
3802
+					        var flName = flNamearr.reverse()[0];
3803
+
3804
+					        confirmAlert("Download this file only if you trust the sender and the domain of the URL.");
3805
+
3806
+					        $("#confirmOk").click(function() {
3807
+
3808
+					           $("#alertMsgOverlay").remove();
3809
+					           $("#alertConfMessage").remove();
3810
+
3811
+					           var mmsLink = document.createElement("a");
3812
+					           mmsLink.setAttribute('href', clckedUrl);
3813
+					           mmsLink.setAttribute('download', flName);
3814
+                                                   mmsLink.setAttribute('target', '_blank');
3815
+					           document.body.appendChild(mmsLink);
3816
+					           mmsLink.click();
3817
+					           mmsLink.remove();
3818
+					        });
3819
+
3820
+					        $("#confirmCancel").click(function() { $("#alertMsgOverlay").remove(); $("#alertConfMessage").remove(); });
3821
+					     });
3822
+
3823
+				  },
3824
+				  error: function() {
3825
+					     showAlert("Error while attempting to get message data from the database!");
3826
+					     $('#listAllMsgsFromTo').removeClass('icon-loading');
3827
+				  }
3828
+			   });
3829
+                   }
3830
+
3831
+                   getMsgsPerNmbrSec(clckPhNumber);
3832
+
3833
+                   $("#refreshMsgsConvtf").click(function() { getMsgsPerNmbrSec(clckPhNumber); });
3834
+                }
3835
+
3836
+
3837
+                $('[id^="showMsgFrom-"]').click(function() {
3838
+
3839
+                   var ctrwnb = $(this).attr("id").replace("showMsgFrom-", "");
3840
+                   if ($("#frmNmbr-"+ ctrwnb).text().indexOf(":") > -1) {
3841
+                       var clckPhNumber = $("#frmNmbr-"+ ctrwnb).text().split(": ")[1];
3842
+                   } else { var clckPhNumber = $("#frmNmbr-"+ ctrwnb).text(); }
3843
+
3844
+                   showMsgPerNmbr(clckPhNumber);
3845
+                })
3846
+
3847
+                $('[id^="showMsgTo-"]').click(function() {
3848
+                   var ctrwnbTo = $(this).attr("id").replace("showMsgTo-", "");
3849
+                   var clckPhNbTo = $("#toNmbr-"+ ctrwnbTo).text();
3850
+
3851
+                   showMsgPerNmbr(clckPhNbTo);
3852
+                })
3853
+
3854
+
3855
+                // Add pagination
3856
+                var rowsShown = messagesperpage;
3857
+                var rowsTotal = $("#sentSmsTable tr").length;
3858
+                var numPages = (rowsTotal - 2) / rowsShown;
3859
+
3860
+                for (i = 0; i < numPages; i++) {
3861
+                     var pageNum = i + 1;
3862
+                     $('#paginationsent').append('<a href="#" rel="' + i + '" class="pagenumbers">' + pageNum + '</a> ');
3863
+                }
3864
+
3865
+                $('#paginationsent').children(":first").addClass('active');
3866
+
3867
+                $('#paginationsent a:first').addClass('active');
3868
+
3869
+                // Show table page when clicking on page number
3870
+                $('.pages a').bind('click', function () {
3871
+
3872
+                      $('#paginationsent').children().removeClass('active');
3873
+
3874
+                      $(this).addClass('active');
3875
+
3876
+                      var currentsentPgNo = $(this).text();
3877
+
3878
+                      $('#paginationsent a').each(function() {
3879
+                         if ($(this).text() == currentsentPgNo) {
3880
+                             $(this).addClass('active');
3881
+                         }
3882
+                      });
3883
+
3884
+                      // Sort table rows
3885
+		      var rows = $('#sentSmsTable tr').get();
3886
+
3887
+		      rows.sort(function(a, b) {
3888
+
3889
+		           var A = parseInt($('td.sentdbidcolumn', a).text());
3890
+		           var B = parseInt($('td.sentdbidcolumn', b).text());
3891
+
3892
+		           if (A < B) {
3893
+		               return -1;
3894
+		           }
3895
+
3896
+		           if (A > B) {
3897
+		               return 1;
3898
+		           }
3899
+
3900
+		           return 0;
3901
+		      });
3902
+
3903
+		      $.each(rows, function(index, row) {
3904
+		         $('#sentSmsTable').append(row);
3905
+		      });
3906
+
3907
+                      var currPage = $(this).attr('rel');
3908
+                      var startItem = currPage * rowsShown;
3909
+                      var endItem = startItem + rowsShown;
3910
+
3911
+                      $('.sentrowsbody').hide().slice(startItem, endItem).css('display', 'table-row');
3912
+
3913
+                      $('#totalsentmessages').remove();
3914
+                      $('#smstables').append("<div id='totalsentmessages'>Total displayed messages: " + sentparseddata.length + "</div>");
3915
+                });
3916
+
3917
+                $('#paginationsent').children(":last").trigger('click');
3918
+
3919
+                // Select all records
3920
+                $('#selectAllChckbx').change(function() {
3921
+                   if ($(this).is(':checked')) {
3922
+                       $(".indivchckbx").prop("checked", true);
3923
+                   } else {
3924
+                       $(".indivchckbx").prop("checked", false);
3925
+                   }
3926
+                });
3927
+
3928
+                function reorderSentRows() {
3929
+                    var currenttext = $(".filterbuttonsent").closest('[class="filterbuttonsent"]').find('[class="indivfiltersent"]').text();
3930
+                    if (currenttext == '') {
3931
+                        $('tr').sort(function (a, b) {
3932
+                           return parseInt($('td.sentdbidcolumn', b).text()) < parseInt($('td.sentdbidcolumn', a).text());
3933
+                        }).appendTo("#sentSmsTable");
3934
+                    }
3935
+                }
3936
+
3937
+                // Filter rows
3938
+                $("#databaseidfilter").on("click", function(event) {
3939
+
3940
+                       var databaseId = $("#dbidtextsent").val();
3941
+                       var msgrowsNo = 0;
3942
+
3943
+                       $(".sentrowsbody").each(function() {
3944
+
3945
+                          var checkEmpty = 0;
3946
+                          $(".indivfiltersent").not("#dbidtextsent").each(function() {
3947
+                              if ($(this).val() != '') {
3948
+                                  checkEmpty = 1;
3949
+                              }
3950
+                          });
3951
+
3952
+                          if (checkEmpty == 0) {
3953
+                              $(this).show();
3954
+                          }
3955
+
3956
+                          if (databaseId != '') {
3957
+                             if ($(this).find('[class="sentdbidcolumn"]').text() == databaseId) {
3958
+                                 $("#sentSmsTable").append(this);
3959
+                                 if ($(this).is(":visible")) { msgrowsNo++; }
3960
+                             } else {
3961
+                                 $(this).hide();
3962
+                             }
3963
+                          } else {
3964
+                                 $(this).show();
3965
+                                 msgrowsNo++;
3966
+                          }
3967
+                       });
3968
+
3969
+                       reorderSentRows();
3970
+                       $('#totalsentmessages').remove();
3971
+                       $('#smstables').append("<div id='totalsentmessages'>Total filtered messages: " + msgrowsNo + "</div>");
3972
+                });
3973
+
3974
+                $("#useridfilter").on("click", function(event) {
3975
+
3976
+                       var useridtxt = $("#useridtext").val().toLowerCase();
3977
+                       var msgrowsNo = 0;
3978
+
3979
+                       $(".sentrowsbody").each(function() {
3980
+
3981
+                          var checkEmpty1 = 0;
3982
+                          $(".indivfiltersent").not("#useridtext").each(function() {
3983
+                              if ($(this).val() != '') {
3984
+                                  checkEmpty1 = 1;
3985
+                              }
3986
+                          });
3987
+
3988
+                          if (checkEmpty1 == 0) {
3989
+                              $(this).show();
3990
+                          }
3991
+
3992
+                          if (useridtxt != '') {
3993
+                              var founduserid = $(this).find('[class="useridcolsent"]').text().toLowerCase();
3994
+                              if (founduserid.indexOf(useridtxt) != -1) {
3995
+                                  $("#sentSmsTable").append(this);
3996
+                                  if ($(this).is(":visible")) { msgrowsNo++; }
3997
+                             } else {
3998
+                                  $(this).hide();
3999
+                             }
4000
+                          } else {
4001
+                                  $(this).show();
4002
+                                  msgrowsNo++;
4003
+                          }
4004
+                       });
4005
+
4006
+                       reorderSentRows();
4007
+                       $('#totalsentmessages').remove();
4008
+                       $('#smstables').append("<div id='totalsentmessages'>Total filtered messages: " + msgrowsNo + "</div>");
4009
+                });
4010
+
4011
+                $("#messageidfilter").on("click", function(event) {
4012
+
4013
+                       var messageidtxt = $("#messageidtext").val().toLowerCase();
4014
+                       var msgrowsNo = 0;
4015
+
4016
+                       $(".sentrowsbody").each(function() {
4017
+
4018
+                          var checkEmpty2 = 0;
4019
+                          $(".indivfiltersent").not("#messageidtext").each(function() {
4020
+                              if ($(this).val() != '') {
4021
+                                  checkEmpty2 = 1;
4022
+                              }
4023
+                          });
4024
+
4025
+                          if (checkEmpty2 == 0) {
4026
+                              $(this).show();
4027
+                          }
4028
+
4029
+                          if (messageidtxt != '') {
4030
+                              var foundtdmssgid = $(this).find('[class="messageidcolsent"]').text().toLowerCase();
4031
+                              if (foundtdmssgid.indexOf(messageidtxt) != -1) {
4032
+                                  $("#sentSmsTable").append(this);
4033
+                                  if ($(this).is(":visible")) { msgrowsNo++; }
4034
+                              } else {
4035
+                                  $(this).hide();
4036
+                              }
4037
+                          } else {
4038
+                                  $(this).show();
4039
+                                  msgrowsNo++;
4040
+                          }
4041
+                       });
4042
+
4043
+                       reorderSentRows();
4044
+                       $('#totalsentmessages').remove();
4045
+                       $('#smstables').append("<div id='totalsentmessages'>Total filtered messages: " + msgrowsNo + "</div>");
4046
+                });
4047
+
4048
+                $("#datefilter").on("click", function(event) {
4049
+
4050
+                       var datetxtvr = $("#datetext").val().toLowerCase();
4051
+                       var msgrowsNo = 0;
4052
+
4053
+                       $(".sentrowsbody").each(function() {
4054
+
4055
+                          var checkEmpty3 = 0;
4056
+                          $(".indivfiltersent").not("#datetext").each(function() {
4057
+                              if ($(this).val() != '') {
4058
+                                  checkEmpty3 = 1;
4059
+                              }
4060
+                          });
4061
+
4062
+                          if (checkEmpty3 == 0) {
4063
+                              $(this).show();
4064
+                          }
4065
+
4066
+                          if (datetxtvr != '') {
4067
+                             var founddate = $(this).find('[class="datecolsent"]').text().toLowerCase();
4068
+                             if (founddate.indexOf(datetxtvr) != -1) {
4069
+                                 $("#sentSmsTable").append(this);
4070
+                                 if ($(this).is(":visible")) { msgrowsNo++; }
4071
+                             } else {
4072
+                                 $(this).hide();
4073
+                             }
4074
+                          } else {
4075
+                                 $(this).show();
4076
+                                 msgrowsNo++;
4077
+                          }
4078
+                       });
4079
+
4080
+                       reorderSentRows();
4081
+                       $('#totalsentmessages').remove();
4082
+                       $('#smstables').append("<div id='totalsentmessages'>Total filtered messages: " + msgrowsNo + "</div>");
4083
+                });
4084
+
4085
+                $("#fromfilter").on("click", function(event) {
4086
+
4087
+                       var fromtxtvr = $("#fromtext").val().toLowerCase();
4088
+                       var msgrowsNo = 0;
4089
+
4090
+                       $(".sentrowsbody").each(function() {
4091
+
4092
+                          var checkEmpty4 = 0;
4093
+                          $(".indivfiltersent").not("#fromtext").each(function() {
4094
+                              if ($(this).val() != '') {
4095
+                                  checkEmpty4 = 1;
4096
+                              }
4097
+                          });
4098
+
4099
+                          if (checkEmpty4 == 0) {
4100
+                              $(this).show();
4101
+                          }
4102
+
4103
+                          if (fromtxtvr != '') {
4104
+                             var foundfrom = $(this).find('[class="fromcolumnsent"]').text().toLowerCase();
4105
+                             if (foundfrom.indexOf(fromtxtvr) != -1) {
4106
+                                 $("#sentSmsTable").append(this);
4107
+                                 if ($(this).is(":visible")) { msgrowsNo++; }
4108
+                             } else {
4109
+                                 $(this).hide();
4110
+                             }
4111
+                          } else {
4112
+                                 $(this).show();
4113
+                                 msgrowsNo++;
4114
+                          }
4115
+                       });
4116
+
4117
+                       reorderSentRows();
4118
+                       $('#totalsentmessages').remove();
4119
+                       $('#smstables').append("<div id='totalsentmessages'>Total filtered messages: " + msgrowsNo + "</div>");
4120
+                });
4121
+
4122
+                $("#tofilter").on("click", function(event) {
4123
+
4124
+                      var totxtvr = $("#totext").val().toLowerCase();
4125
+                      var msgrowsNo = 0;
4126
+
4127
+                      $(".sentrowsbody").each(function() {
4128
+
4129
+                          var checkEmpty5 = 0;
4130
+                          $(".indivfiltersent").not("#totext").each(function() {
4131
+                              if ($(this).val() != '') {
4132
+                                  checkEmpty5 = 1;
4133
+                              }
4134
+                          });
4135
+
4136
+                          if (checkEmpty5 == 0) {
4137
+                              $(this).show();
4138
+                          }
4139
+
4140
+                          if (totxtvr != '') {
4141
+                             var foundto = $(this).find('[class="tocolumnsent"]').text().toLowerCase();
4142
+                             if (foundto.indexOf(totxtvr) != -1) {
4143
+                                 $("#sentSmsTable").append(this);
4144
+                                 if ($(this).is(":visible")) { msgrowsNo++; }
4145
+                             } else {
4146
+                                 $(this).hide();
4147
+                             }
4148
+                          } else {
4149
+                                 $(this).show();
4150
+                                 msgrowsNo++;
4151
+                          }
4152
+                      });
4153
+
4154
+                      reorderSentRows();
4155
+                      $('#totalsentmessages').remove();
4156
+                      $('#smstables').append("<div id='totalsentmessages'>Total filtered messages: " + msgrowsNo + "</div>");
4157
+                });
4158
+
4159
+                $("#networkfilter").on("click", function(event) {
4160
+
4161
+                      var networktxtvr = $("#networktext").val().toLowerCase();
4162
+                      var msgrowsNo = 0;
4163
+
4164
+                      $(".sentrowsbody").each(function() {
4165
+
4166
+                          var checkEmpty6 = 0;
4167
+                          $(".indivfiltersent").not("#networktext").each(function() {
4168
+                              if ($(this).val() != '') {
4169
+                                  checkEmpty6 = 1;
4170
+                              }
4171
+                          });
4172
+
4173
+                          if (checkEmpty6 == 0) {
4174
+                              $(this).show();
4175
+                          }
4176
+
4177
+                          if (networktxtvr != '') {
4178
+                              var foundnetwork = $(this).find('[class="networkcolumnsent"]').text().toLowerCase();
4179
+                              if (foundnetwork.indexOf(networktxtvr) != -1) {
4180
+                                  $("#sentSmsTable").append(this);
4181
+                                  if ($(this).is(":visible")) { msgrowsNo++; }
4182
+                              } else {
4183
+                                  $(this).hide();
4184
+                              }
4185
+                          } else {
4186
+                                  $(this).show();
4187
+                                  msgrowsNo++;
4188
+                          }
4189
+                      });
4190
+
4191
+                      reorderSentRows();
4192
+                      $('#totalsentmessages').remove();
4193
+                      $('#smstables').append("<div id='totalsentmessages'>Total filtered messages: " + msgrowsNo + "</div>");
4194
+                });
4195
+
4196
+                $("#pricefilter").on("click", function(event) {
4197
+
4198
+                      var pricetxtvr = $("#pricetext").val().toLowerCase();
4199
+                      var msgrowsNo = 0;
4200
+
4201
+                      $(".sentrowsbody").each(function() {
4202
+
4203
+                          var checkEmpty7 = 0;
4204
+                          $(".indivfiltersent").not("#pricetext").each(function() {
4205
+                              if ($(this).val() != '') {
4206
+                                  checkEmpty7 = 1;
4207
+                              }
4208
+                          });
4209
+
4210
+                          if (checkEmpty7 == 0) {
4211
+                              $(this).show();
4212
+                          }
4213
+
4214
+                          if (pricetxtvr != '') {
4215
+                              var foundprice = $(this).find('[class="pricecolumnsent"]').text().toLowerCase();
4216
+                              if (foundprice.indexOf(pricetxtvr) != -1) {
4217
+                                  $("#sentSmsTable").append(this);
4218
+                                  if ($(this).is(":visible")) { msgrowsNo++; }
4219
+                              } else {
4220
+                                  $(this).hide();
4221
+                              }
4222
+                          } else {
4223
+                                  $(this).show();
4224
+                                  msgrowsNo++;
4225
+                          }
4226
+                      });
4227
+
4228
+                      reorderSentRows();
4229
+                      $('#totalsentmessages').remove();
4230
+                      $('#smstables').append("<div id='totalsentmessages'>Total filtered messages: " + msgrowsNo + "</div>");
4231
+                });
4232
+
4233
+                $("#statusfilter").on("click", function(event) {
4234
+
4235
+                      var statustxtvr = $("#statustext").val().toLowerCase();
4236
+                      var msgrowsNo = 0;
4237
+
4238
+                      $(".sentrowsbody").each(function() {
4239
+
4240
+                          var checkEmpty8 = 0;
4241
+                          $(".indivfiltersent").not("#statustext").each(function() {
4242
+                              if ($(this).val() != '') {
4243
+                                  checkEmpty8 = 1;
4244
+                              }
4245
+                          });
4246
+
4247
+                          if (checkEmpty8 == 0) {
4248
+                              $(this).show();
4249
+                          }
4250
+
4251
+                          if (statustxtvr != '') {
4252
+                              var foundstatus = $(this).find('[class="statuscolumnsent"]').text().toLowerCase();
4253
+                              if (foundstatus.indexOf(statustxtvr) != -1) {
4254
+                                  $("#sentSmsTable").append(this);
4255
+                                  if ($(this).is(":visible")) { msgrowsNo++; }
4256
+                              } else {
4257
+                                  $(this).hide();
4258
+                              }
4259
+                          } else {
4260
+                                  $(this).show();
4261
+                                  msgrowsNo++;
4262
+                          }
4263
+                      });
4264
+
4265
+                      reorderSentRows();
4266
+                      $('#totalsentmessages').remove();
4267
+                      $('#smstables').append("<div id='totalsentmessages'>Total filtered messages: " + msgrowsNo + "</div>");
4268
+                });
4269
+
4270
+                $("#deliveryrecfilter").on("click", function(event) {
4271
+
4272
+                      var deliverytxtvr = $("#deliveryrcpttext").val().toLowerCase();
4273
+                      var msgrowsNo = 0;
4274
+
4275
+                      $(".sentrowsbody").each(function() {
4276
+
4277
+                          var checkEmpty9 = 0;
4278
+                          $(".indivfiltersent").not("#deliveryrcpttext").each(function() {
4279
+                              if ($(this).val() != '') {
4280
+                                  checkEmpty9 = 1;
4281
+                              }
4282
+                          });
4283
+
4284
+                          if (checkEmpty9 == 0) {
4285
+                              $(this).show();
4286
+                          }
4287
+
4288
+                          if (deliverytxtvr != '') {
4289
+                              var founddeliveryrcpt = $(this).find('[class="deliveryrcptcolsent"]').text().toLowerCase();
4290
+                              if (founddeliveryrcpt.indexOf(deliverytxtvr) != -1) {
4291
+                                  $("#sentSmsTable").append(this);
4292
+                                  if ($(this).is(":visible")) { msgrowsNo++; }
4293
+                              } else {
4294
+                                  $(this).hide();
4295
+                              }
4296
+                          } else {
4297
+                                  $(this).show();
4298
+                                  msgrowsNo++;
4299
+                          }
4300
+                      });
4301
+
4302
+                      reorderSentRows();
4303
+                      $('#totalsentmessages').remove();
4304
+                      $('#smstables').append("<div id='totalsentmessages'>Total filtered messages: " + msgrowsNo + "</div>");
4305
+                });
4306
+
4307
+                $("#messagefilter").on("click", function(event) {
4308
+
4309
+                      var messagetxtvr = $("#messagetext").val().toLowerCase();
4310
+                      var msgrowsNo = 0;
4311
+
4312
+                      $(".sentrowsbody").each(function() {
4313
+
4314
+                          var checkEmpty10 = 0;
4315
+                          $(".indivfiltersent").not("#messagetext").each(function() {
4316
+                              if ($(this).val() != '') {
4317
+                                  checkEmpty10 = 1;
4318
+                              }
4319
+                          });
4320
+
4321
+                          if (checkEmpty10 == 0) {
4322
+                              $(this).show();
4323
+                          }
4324
+
4325
+                          if (messagetxtvr != '') {
4326
+                              var foundmessage = $(this).find('[class="messagecolumnsent"]').text().toLowerCase();
4327
+                              if (foundmessage.indexOf(messagetxtvr) != -1) {
4328
+                                  $("#sentSmsTable").append(this);
4329
+                                  if ($(this).is(":visible")) { msgrowsNo++; }
4330
+                              } else {
4331
+                                  $(this).hide();
4332
+                              }
4333
+                          } else {
4334
+                                  $(this).show();
4335
+                                  msgrowsNo++;
4336
+                          }
4337
+                      });
4338
+
4339
+                      reorderSentRows();
4340
+                      $('#totalsentmessages').remove();
4341
+                      $('#smstables').append("<div id='totalsentmessages'>Total filtered messages: " + msgrowsNo + "</div>");
4342
+                });
4343
+
4344
+                // Clear all filters
4345
+                $("#clearsentfilters").on("click", function(event) {
4346
+                       $(".sentrowsbody").each(function() {
4347
+                          $(this).show();
4348
+                       });
4349
+                       $(".indivfiltersent").val("");
4350
+                       $('#totalsentmessages').remove();
4351
+                       $('#smstables').append("<div id='totalsentmessages'>Total displayed messages: " + sentparseddata.length + "</div>");
4352
+                });
4353
+
4354
+                // Delete selected rows from the database
4355
+                $("#deletesentrows").on("click", function() {
4356
+
4357
+                   var checkcheckbx = jQuery("#sentSmsTable input[type=checkbox]:checked").length;
4358
+                   if (checkcheckbx == 0) {
4359
+                       showAlert("Please select the row(s) to permanently delete from the database !");
4360
+                   } else {
4361
+                          var sentcheckboxIds = [];
4362
+                          $(".sentrowsbody").each(function() {
4363
+                             var sentrowcheckbx = $(this).find('input[type="checkbox"]');
4364
+                             if (sentrowcheckbx.is(":checked")) {
4365
+                                 var dbrowid = $(this).find('[class="sentdbidcolumn"]').text();
4366
+                                 sentcheckboxIds.push(dbrowid);
4367
+                             }
4368
+                          });
4369
+
4370
+		          confirmAlert("Please note that the row(s) you selected will be permanently deleted from the database, without being saved before removal. This action cannot be undone ! If you really want to permanently delete the selected row(s) press 'OK'.");
4371
+
4372
+		          $("#confirmCancel").click(function() { $("#alertMsgOverlay").remove(); $("#alertConfMessage").remove(); });
4373
+
4374
+		          $("#confirmOk").click(function() {
4375
+
4376
+		              $("#alertMsgOverlay").remove();
4377
+		              $("#alertConfMessage").remove();
4378
+
4379
+                              var deletesentRowsUrl = OC.generateUrl("/apps/sms_relentless/user/removesentrows");
4380
+                              $('#smstables').addClass('icon-loading');
4381
+
4382
+                              $.ajax({
4383
+                                   url: deletesentRowsUrl + '/' + userid,
4384
+                                   method: "POST",
4385
+                                   dataType:'text',
4386
+                                   data: {sentmessagedbIDs: sentcheckboxIds},
4387
+                                   success: function() {
4388
+                                            showAlert("The row(s) have been deleted successfully !");
4389
+                                            $('#smstables').removeClass('icon-loading');
4390
+                                            $('#sentsmstableshow').click();
4391
+                                   },
4392
+                                   error: function() {
4393
+                                            showAlert("There was an error while deleting the selected row(s) !");
4394
+                                            $('#smstables').removeClass('icon-loading');
4395
+                                   }
4396
+                              });
4397
+                          });
4398
+                    }
4399
+                });
4400
+
4401
+                // Show/Hide filter row
4402
+	        $('#sentarrow').on('click', function() {
4403
+	           if ($('#sentfiltersrow').is(':visible')) {
4404
+		       $('#sentfiltersrow').hide();
4405
+                       $('#sentheaderrow').css('top', '0px');
4406
+                       $(this).removeClass('arrowUpCl');
4407
+                       $(this).addClass('arrowDownCl');
4408
+		   } else {
4409
+		       $('#sentfiltersrow').show();
4410
+                       $('#sentheaderrow').css('top', '158px');
4411
+                       $(this).removeClass('arrowDownCl');
4412
+                       $(this).addClass('arrowUpCl');
4413
+                   }
4414
+                });
4415
+
4416
+                $("#app-content").animate({scrollTop:$("#sentSmsTable").prop("scrollHeight")},200);
4417
+
4418
+
4419
+                // Download MMS files when clicking on their URLs
4420
+                $('[id^="mmsTblUrl-"]').on('click', function(evt) {
4421
+
4422
+                   var clckedUrl = $(this).text();
4423
+                   var flNamearr = clckedUrl.split("/");
4424
+                   var flName = flNamearr.reverse()[0];
4425
+
4426
+                   confirmAlert("Download this file only if you trust the sender and the domain of the URL.");
4427
+
4428
+		   $("#confirmOk").click(function() {
4429
+
4430
+                      $("#alertMsgOverlay").remove();
4431
+		      $("#alertConfMessage").remove();
4432
+
4433
+		      var mmsLink = document.createElement("a");
4434
+		      mmsLink.setAttribute('href', clckedUrl);
4435
+		      mmsLink.setAttribute('download', flName);
4436
+                      mmsLink.setAttribute('target', '_blank');
4437
+		      document.body.appendChild(mmsLink);
4438
+		      mmsLink.click();
4439
+		      mmsLink.remove();
4440
+                   });
4441
+
4442
+		   $("#confirmCancel").click(function() { $("#alertMsgOverlay").remove(); $("#alertConfMessage").remove(); });
4443
+                });
4444
+
4445
+          },
4446
+          error: function(sentdatafromdb) {
4447
+                showAlert("Error! You can check the Nextcloud log to find more details about this issue.");
4448
+                $('#smstables').removeClass('icon-loading');
4449
+          }
4450
+     });
4451
+
4452
+     // Show the auto-refresh button
4453
+     if ($("#stopAutoRefreshRecBtn").text() == "Stop auto refresh") {
4454
+         $("#stopAutoRefreshRecBtn").click();
4455
+     }
4456
+     $("#stopAutoRefreshSent").css("display", "inline-block");
4457
+     $("#stopAutoRefreshRec").css("display", "none");
4458
+
4459
+  });
4460
+
4461
+
4462
+  // List grouped messages
4463
+  $("#groupedtableshow").on("click", function(event) {
4464
+
4465
+     $('#smstables').empty();
4466
+     var getGroupedUrl = OC.generateUrl("/apps/sms_relentless/user/getgroupedtable");
4467
+
4468
+     $('#smstables').addClass('icon-loading');
4469
+     var totalPhNmbrs = 0;
4470
+
4471
+     $.ajax({
4472
+          method: 'GET',
4473
+          url: getGroupedUrl + '/' + userid,
4474
+          contentType: 'application/json',
4475
+          success: function(groupedparsed) {
4476
+
4477
+		        $('#smstables').append("<div id='toptablegrp'><div class='topbuttonandpage'><span id='recarrow' title='Show/Hide filters'></span></div><div id='paginationgrp' class='grppages'>Pages </div></div>");
4478
+		        $('#smstables').append("<table id='groupedSmsTable'></table>");
4479
+
4480
+                        $('#groupedSmsTable').append("<tr id='grpfiltersrow'><td colspan='2'><div id='filterByNumber'></div></td><td><button id='cleargrpfilter' title='Clear the filter'></button></td></tr>");
4481
+                        $('#groupedSmsTable').append("<tr class='groupedmsgrows' id='grpheaderrow'><th>Phone Number</th><th>Senders / Receivers</th><th>Messages</th></tr>");
4482
+
4483
+                        $('#grpfiltersrow').hide();
4484
+
4485
+                        var fromtoNmbrsData = [];
4486
+                        var fromtoNumberArr = [];
4487
+
4488
+		        for (var i = 0; i < groupedparsed.length; i++) {
4489
+
4490
+			     if (groupedparsed[i].author_displayname) {
4491
+			         var authordnm = groupedparsed[i].author_displayname;
4492
+			     } else { 
4493
+			         var authordnm = '';
4494
+			     }
4495
+
4496
+			     var sentfromnmbrarr = groupedparsed[i].from.split("+");
4497
+                             if (sentfromnmbrarr[1]) {
4498
+			         var groupednbfrom = "+"+ sentfromnmbrarr[1];
4499
+                             } else {
4500
+			         var groupednbfrom = sentfromnmbrarr[0];
4501
+                             }
4502
+
4503
+                             var modmessage = '';
4504
+                             if (groupedparsed[i].author_displayname) {
4505
+			         modmessage = "<span class='msgAuthorNameGrp'>"+ groupedparsed[i].author_displayname + ":</span>" + groupedparsed[i].message;
4506
+                             } else {
4507
+			         modmessage = groupedparsed[i].message;
4508
+                             }
4509
+
4510
+                             if (groupedparsed[i].to.indexOf(": ") > -1) {
4511
+                                 var groupednmbrtopre = groupedparsed[i].to.split(": ");
4512
+                                 var groupednmbrto = groupednmbrtopre[1];
4513
+                             } else { 
4514
+                                 var groupednmbrto = groupedparsed[i].to;
4515
+                             }
4516
+
4517
+                             fromtoNmbrsData.push({
4518
+                                       'author_displayname': authordnm,
4519
+                                       'from': groupednbfrom,
4520
+                                       'to': groupednmbrto,
4521
+                                       'message': modmessage,
4522
+                                       'date': groupedparsed[i].date,
4523
+                                       'status': groupedparsed[i].deliveryreceipt,
4524
+                                       'table': groupedparsed[i].table
4525
+                             });
4526
+
4527
+                             if (fromtoNumberArr.indexOf(groupednbfrom) == -1) { fromtoNumberArr.push(groupednbfrom); }
4528
+                             if (fromtoNumberArr.indexOf(groupednmbrto) == -1) { fromtoNumberArr.push(groupednmbrto); }
4529
+		        }
4530
+
4531
+                        totalPhNmbrs = fromtoNumberArr.length;
4532
+
4533
+                        // Remove the duplicates
4534
+			var noDupMsgData = [];
4535
+			$.each(fromtoNmbrsData, function(i, e) {
4536
+			    var matchingData = $.grep(noDupMsgData, function(item) {
4537
+                                return item.from == e.from && item.to == e.to && item.message == e.message && item.table == 'received' && e.table == 'sent'
4538
+			    });
4539
+			    if (matchingData.length === 0) {
4540
+				noDupMsgData.push(e);
4541
+			    }
4542
+			});
4543
+
4544
+                        var messagesPerNmbr = {};
4545
+                        var msgsNamesPerNmbr = {};
4546
+                        var msgsNmbrsNames = {};
4547
+
4548
+                        for (var k = 0; k < fromtoNumberArr.length; k++) {
4549
+
4550
+                             var displayNamesarr = [];
4551
+                             var convData = [];
4552
+
4553
+                             for (var n = 0; n < noDupMsgData.length; n++) {
4554
+
4555
+                                  if (noDupMsgData[n]['from'] == fromtoNumberArr[k] && noDupMsgData[n]['table'] == 'sent') {
4556
+
4557
+                                      convData.push({
4558
+                                                     'author_displayname': noDupMsgData[n]['author_displayname'],
4559
+                                                     'message': noDupMsgData[n]['message'],
4560
+                                                     'from': noDupMsgData[n]['from'],
4561
+                                                     'to': noDupMsgData[n]['to'],
4562
+                                                     'date': noDupMsgData[n]['date'],
4563
+                                                     'direction': 'sent_from',
4564
+                                                     'status': (noDupMsgData[n]['status'] == null)? "" : noDupMsgData[n]['status'],
4565
+                                                     'table': noDupMsgData[n]['table']
4566
+                                      });
4567
+
4568
+                                  } else if (noDupMsgData[n]['to'] == fromtoNumberArr[k] && noDupMsgData[n]['table'] == 'sent') {
4569
+
4570
+                                      convData.push({
4571
+                                                     'author_displayname': noDupMsgData[n]['author_displayname'],
4572
+                                                     'message': noDupMsgData[n]['message'],
4573
+                                                     'from': noDupMsgData[n]['from'],
4574
+                                                     'to': noDupMsgData[n]['to'],
4575
+                                                     'date': noDupMsgData[n]['date'],
4576
+                                                     'direction': 'sent_to',
4577
+                                                     'status': (noDupMsgData[n]['status'] == null)? "" : noDupMsgData[n]['status'],
4578
+                                                     'table': noDupMsgData[n]['table']
4579
+                                      });
4580
+
4581
+
4582
+                                  } else if (noDupMsgData[n]['from'] == fromtoNumberArr[k] && noDupMsgData[n]['table'] == 'received') {
4583
+
4584
+                                      convData.push({
4585
+                                                     'author_displayname': noDupMsgData[n]['author_displayname'],
4586
+                                                     'message': noDupMsgData[n]['message'],
4587
+                                                     'from': noDupMsgData[n]['from'],
4588
+                                                     'to': noDupMsgData[n]['to'],
4589
+                                                     'date': noDupMsgData[n]['date'],
4590
+                                                     'direction': 'received_from',
4591
+                                                     'status': (noDupMsgData[n]['status'] == null)? "" : noDupMsgData[n]['status'],
4592
+                                                     'table': noDupMsgData[n]['table']
4593
+                                      });
4594
+
4595
+                                  } else if (noDupMsgData[n]['to'] == fromtoNumberArr[k] && noDupMsgData[n]['table'] == 'received') {
4596
+
4597
+                                      convData.push({
4598
+                                                     'author_displayname': noDupMsgData[n]['author_displayname'],
4599
+                                                     'message': noDupMsgData[n]['message'],
4600
+                                                     'from': noDupMsgData[n]['from'],
4601
+                                                     'to': noDupMsgData[n]['to'],
4602
+                                                     'date': noDupMsgData[n]['date'],
4603
+                                                     'direction': 'received_on',
4604
+                                                     'status': (noDupMsgData[n]['status'] == null)? "" : noDupMsgData[n]['status'],
4605
+                                                     'table': noDupMsgData[n]['table']
4606
+                                      });
4607
+                                  }
4608
+                             }
4609
+
4610
+                             // Sort messages by date
4611
+		             convData.sort(function(a, b) {
4612
+			        var c = new Date(a.date);
4613
+			        var d = new Date(b.date);
4614
+			        return c-d;
4615
+		             });
4616
+
4617
+                             // Collect the display names of the users that sent messages from the current number
4618
+                             var selectedNames = [];
4619
+                             var displayNames = '';
4620
+                             for (var v = 0; v < convData.length; v++) {
4621
+                                  if (selectedNames.indexOf(convData[v]['author_displayname']) == -1) { 
4622
+                                      selectedNames.push(convData[v]['author_displayname']);
4623
+                                      displayNames += "<div id='diplNm_"+ fromtoNumberArr[k] +"_"+ v +"' class='dispNameList' name='"+ convData[v]['author_displayname'] +"'>"+ convData[v]['author_displayname'] +"</div>";
4624
+                                  }
4625
+                             }
4626
+
4627
+                             // Store the display names for the current number, to be able to see them later when selecting the number from the drop-down list
4628
+                             var ctPhNumber = fromtoNumberArr[k];
4629
+                             msgsNamesPerNmbr[ctPhNumber] = displayNames;
4630
+
4631
+                             // Store the messages sent by each user, to be able to see them later when clicking on the user's name
4632
+                             for (var h = 0; h < selectedNames.length; h++) {
4633
+
4634
+                                  var rowMessageArrpn = [];
4635
+                                  for (var b = 0; b < convData.length; b++) {
4636
+
4637
+                                       if (selectedNames[h] == convData[b]['author_displayname']) {
4638
+
4639
+		                           if (convData[b]['direction'] == 'sent_from') {
4640
+		                               if (convData[b]['status'].indexOf("delivered") > -1 || convData[b]['status'].indexOf("delivery success") > -1 || convData[b]['status'].indexOf("Retrieved") > -1) {
4641
+		                                   var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
4642
+		                               } else {
4643
+		                                   var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
4644
+		                               }
4645
+		                               rowMessageArrpn.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
4646
+		                           } else if (convData[b]['direction'] == 'sent_to') {
4647
+		                               if (convData[b]['status'].indexOf("delivered") > -1 || convData[b]['status'].indexOf("delivery success") > -1 || convData[b]['status'].indexOf("Retrieved") > -1) {
4648
+		                                   var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
4649
+		                               } else {
4650
+		                                   var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
4651
+		                               }
4652
+		                               rowMessageArrpn.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
4653
+		                           } else if (convData[b]['direction'] == 'received_from') {
4654
+		                               rowMessageArrpn.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div></div>");
4655
+		                           } else if (convData[b]['direction'] == 'received_on') {
4656
+		                               rowMessageArrpn.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[b]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[b]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[b]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[b]['date'] +"</div></div>");
4657
+                                           }
4658
+                                       }
4659
+                                  }
4660
+                                  var convDataPerNmbrpn = rowMessageArrpn.join("<br>");
4661
+                                  var crtNmber = fromtoNumberArr[k];
4662
+                                  var crtName = selectedNames[h];
4663
+                                  msgsNmbrsNames[crtNmber] = msgsNmbrsNames[crtNmber] || {};
4664
+                                  msgsNmbrsNames[crtNmber][crtName] = convDataPerNmbrpn;
4665
+                             }
4666
+
4667
+                             var rowMessageArr = [];
4668
+                             for (var m = 0; m < convData.length; m++) {
4669
+
4670
+                                  if (convData[m]['direction'] == 'sent_from') {
4671
+
4672
+                                      if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
4673
+                                          var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
4674
+                                      } else {
4675
+                                          var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
4676
+                                      }
4677
+                                      rowMessageArr.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 6px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
4678
+
4679
+                                  } else if (convData[m]['direction'] == 'sent_to') {
4680
+
4681
+                                      if (convData[m]['status'].indexOf("delivered") > -1 || convData[m]['status'].indexOf("delivery success") > -1 || convData[m]['status'].indexOf("Retrieved") > -1) {
4682
+                                          var sentMsgStatus = "<img src='/apps/sms_relentless/img/check.svg' title='`delivery success` received.'>";
4683
+                                      } else {
4684
+                                          var sentMsgStatus = "<img src='/apps/sms_relentless/img/question.svg' title='This message did not receive a `delivery success` receipt. However, it is possible that it reached its destination.'>";
4685
+                                      }
4686
+                                      rowMessageArr.push("<div class='groupedSentMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;color:#06866f;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/outgoing.svg' title='Message sent to current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:inline-block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div><div class='sentMssgStatus'>"+ sentMsgStatus +"</div></div>");
4687
+
4688
+                                  } else if (convData[m]['direction'] == 'received_from') {
4689
+
4690
+		                      rowMessageArr.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received from current number.'></div><div style='display:inline-block;color:#06866f;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#353535;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
4691
+
4692
+                                  } else if (convData[m]['direction'] == 'received_on') {
4693
+
4694
+		                      rowMessageArr.push("<div class='groupedRecMsg'><div style='display:block;margin:0px 0px 6px 0px;'><div style='display:inline-block;margin:0px 12px 0px 3px;'><img src='/apps/sms_relentless/img/incoming.svg' title='Message received on current number.'></div><div style='display:inline-block;color:#353535;'>From: "+ convData[m]['from'] +"</div><div style='display:inline-block;margin:0px 0px 0px 12px;color:#06866f;'>To: "+ convData[m]['to'] +"</div></div><div style='display:block;font-size:15px;color:#353535;font-weight:500;'>"+ convData[m]['message'] +"</div><div style='display:block;margin:6px 0px 0px 4px;font-size:12.5px;color:#353535;'>"+ convData[m]['date'] +"</div></div>");
4695
+                                  }
4696
+                             }
4697
+
4698
+                             var convDataPerNmbr = rowMessageArr.join("");
4699
+
4700
+                             var rowPhoneNumber = "<div id='nmbrow_"+ fromtoNumberArr[k] +"' class='phoneNmbrRow'>"+ fromtoNumberArr[k] +"</div>";
4701
+
4702
+		             $("#groupedSmsTable").append("<tr id='singlerow_"+ k +"' class='groupedrowsbody'><td><div class='groupedLstNmbr fixedRowHeight'>"+ rowPhoneNumber +"</div></td><td><div class='groupedLstNames fixedRowHeight'>"+ displayNames +"</div></td><td style='width:100%'><div class='groupedLstMsgs fixedRowHeight'>"+ convDataPerNmbr +"</div></td></tr>");
4703
+                             $("#groupedSmsTable").append("<tr id='expandRow_"+ k +"' class='groupedrowsexp'><td colspan='3'><div style='display:block;width:100%;height:14px;cursor:pointer;'><img class='expandGrpRow' src='/apps/sms_relentless/img/arrowDown.svg'></div><td></tr>");
4704
+
4705
+                             // Store the messages for the current number, to be able to see them later, when clicking on the number
4706
+                             var ctNmbr = fromtoNumberArr[k];
4707
+                             messagesPerNmbr[ctNmbr] = convDataPerNmbr;
4708
+                        }
4709
+
4710
+
4711
+                        // Add the 'filter by number' drop-down list
4712
+                        var nmbrslst = "<option value='title'>Filter messages by number</option>";
4713
+                        for (var p = 0; p < fromtoNumberArr.length; p++) {
4714
+                             nmbrslst += "<option value='"+ fromtoNumberArr[p] +"'>"+ fromtoNumberArr[p] +"</option>";
4715
+                        }
4716
+                        $("#filterByNumber").append("<select id='selectListedNmbrs'>"+ nmbrslst +"</select>");
4717
+
4718
+
4719
+                        $("#selectListedNmbrs").change(function() {
4720
+
4721
+                          var selectedNmbr = $(this).val();
4722
+
4723
+                          if (selectedNmbr != "title") {
4724
+
4725
+                              $(".groupedrowsbody,.groupedrowsexp").each(function() { $(this).hide(); });
4726
+		              $("#groupedSmsTable").append("<tr id='singlerowfl_"+ fromtoNumberArr.indexOf(selectedNmbr) +"' class='groupedrowsbody'><td><div class='groupedLstNmbr fixedRowHeight'><div id='nmbrow_"+ selectedNmbr +"' style='font-size:15px;font-weight:500;color:#06866f;cursor:pointer;'>"+ selectedNmbr +"</div></div></td><td><div class='groupedLstNames fixedRowHeight'>"+ msgsNamesPerNmbr[selectedNmbr] +"</div></td><td style='width:100%'><div class='groupedLstMsgs fixedRowHeight'>"+ messagesPerNmbr[selectedNmbr] +"</div></td></tr>");
4727
+                              $("#groupedSmsTable").append("<tr id='expandRowfl_"+ fromtoNumberArr.indexOf(selectedNmbr) +"' class='groupedrowsexp'><td colspan='3'><div style='display:block;width:100%;height:14px;cursor:pointer;'><img class='expandGrpRow' src='/apps/sms_relentless/img/arrowDown.svg'></div><td></tr>");
4728
+
4729
+
4730
+                               // Show the messages sent by each user whose name is listed for the phone number of the current row
4731
+                               $('[id*="diplNm_"]').click(function() {
4732
+
4733
+                                  var crntNmbr = $(this).attr("id").split("_")[1];
4734
+                                  var crntDisName = $(this).attr("name");                        
4735
+                                  var clsmsgcell = $(this).closest(".groupedrowsbody").find(".groupedLstMsgs");
4736
+                                  clsmsgcell.empty();
4737
+                                  clsmsgcell.html(msgsNmbrsNames[crntNmbr][crntDisName]);
4738
+
4739
+                                  $(".dispNameList").each(function() { $(this).css("color", "#0a559e"); });
4740
+                                  $(this).css("color", "#1483f0");
4741
+                                  $("#nmbrow_"+ selectedNmbr).css("color", "#06866f");
4742
+                                  $(".groupedLstNmbr").each(function () { $(this).css("color", "#06866f"); });
4743
+                               });
4744
+
4745
+
4746
+		               // Show all the messages sent to/from the clicked number
4747
+		               $('[id*="nmbrow_"]').click(function() {
4748
+		                  var rwNmbr = $(this).attr("id").replace("nmbrow_", "");
4749
+		                  var rowmsgcell = $(this).closest(".groupedrowsbody").find(".groupedLstMsgs");
4750
+		                  rowmsgcell.empty();
4751
+		                  rowmsgcell.html(messagesPerNmbr[rwNmbr]);
4752
+
4753
+		                  $(".phoneNmbrRow").each(function() { $(this).css("color", "#06866f"); });
4754
+		                  $(".dispNameList").each(function() { $(this).css("color", "#0a559e"); });
4755
+		                  $(this).css("color", "#08b899");
4756
+		               });
4757
+
4758
+
4759
+		               // Expand the rows to see all the messages
4760
+		               $('[id^="expandRowfl_"]').click(function() {
4761
+		                   var idnumbrfl = $(this).attr("id").replace("expandRowfl_", "");
4762
+		                   var crntExpandfl = $(this).find(".expandGrpRow");
4763
+
4764
+		                   if (crntExpandfl.attr('src') == '/apps/sms_relentless/img/arrowDown.svg') {
4765
+                                       $("#singlerowfl_"+ idnumbrfl).find(".fixedRowHeight").removeClass("fixedRowHeight");
4766
+		                       crntExpandfl.attr('src', '/apps/sms_relentless/img/arrowUp.svg');
4767
+		                   } else {
4768
+                                       $("#singlerowfl_"+ idnumbrfl).find(".groupedLstNmbr,.groupedLstNames,.groupedLstMsgs").addClass("fixedRowHeight");
4769
+                                       crntExpandfl.attr('src', '/apps/sms_relentless/img/arrowDown.svg'); 
4770
+		                   }
4771
+		               });
4772
+
4773
+		               $('#totalgrpmessages').remove();
4774
+		               $('#smstables').append("<div id='totalgrpmessages'>Total displayed phone numbers: 1</div>");
4775
+                           }
4776
+                        });
4777
+
4778
+                        // Clear the 'filter by number' filter
4779
+                        $("#cleargrpfilter").click(function() {
4780
+                               $('[id^="singlerowfl_"]').remove();
4781
+                               $('[id^="expandRowfl_"]').remove();
4782
+                               $(".groupedrowsbody,.groupedrowsexp").each(function() { $(this).show(); });
4783
+                               $("#selectListedNmbrs").val("title");
4784
+		               $('#totalgrpmessages').remove();
4785
+		               $('#smstables').append("<div id='totalgrpmessages'>Total displayed phone numbers: "+ totalPhNmbrs +"</div>");
4786
+                        });
4787
+
4788
+                        // Show the messages sent by each user whose name is listed for the phone number on the current row
4789
+                        $('[id*="diplNm_"]').click(function() {
4790
+
4791
+                           var crntNmbr = $(this).attr("id").split("_")[1];
4792
+                           var crntDisName = $(this).attr("name");                               
4793
+                           var clsmsgcell = $(this).closest(".groupedrowsbody").find(".groupedLstMsgs");
4794
+                           clsmsgcell.empty();
4795
+                           clsmsgcell.html(msgsNmbrsNames[crntNmbr][crntDisName]);
4796
+
4797
+                           $(".dispNameList").each(function() { $(this).css("color", "#0a559e"); });
4798
+                           $(this).css("color", "#1483f0");
4799
+                        });
4800
+
4801
+                        // Show all the messages sent to/from the clicked number
4802
+                        $('[id*="nmbrow_"]').click(function() {
4803
+                           var rwNmbr = $(this).attr("id").replace("nmbrow_", "");
4804
+                           var rowmsgcell = $(this).closest(".groupedrowsbody").find(".groupedLstMsgs");
4805
+                           rowmsgcell.empty();
4806
+                           rowmsgcell.html(messagesPerNmbr[rwNmbr]);
4807
+
4808
+                           $(".phoneNmbrRow").each(function() { $(this).css("color", "#06866f"); });
4809
+                           $(".dispNameList").each(function() { $(this).css("color", "#0a559e"); });
4810
+                           $(this).css("color", "#08b899");
4811
+                        });
4812
+
4813
+
4814
+		        $('#smstables').removeClass('icon-loading');
4815
+		        $('#recarrow').removeClass('arrowUpCl');
4816
+		        $('#recarrow').addClass('arrowDownCl');
4817
+
4818
+                        // Expand the rows to see all the messages
4819
+                        $('[id^="expandRow_"]').click(function() {
4820
+                            var idnumbr = $(this).attr("id").replace("expandRow_", "");
4821
+                            var crntExpand = $(this).find(".expandGrpRow");
4822
+
4823
+                            if (crntExpand.attr('src') == '/apps/sms_relentless/img/arrowDown.svg') {
4824
+                                $("#singlerow_"+ idnumbr).find(".fixedRowHeight").removeClass("fixedRowHeight");
4825
+                                crntExpand.attr('src', '/apps/sms_relentless/img/arrowUp.svg');
4826
+                            } else {
4827
+                                $("#singlerow_"+ idnumbr).find(".groupedLstNmbr,.groupedLstNames,.groupedLstMsgs").addClass("fixedRowHeight");
4828
+                                crntExpand.attr('src', '/apps/sms_relentless/img/arrowDown.svg'); 
4829
+                            }
4830
+                        });
4831
+
4832
+
4833
+		        // Add pagination
4834
+		        var rowsShowngrp = messagesperpage;
4835
+		        var rowsTotalgrp = $("#groupedSmsTable tr").length;
4836
+
4837
+		        var numPagesgrp = ((rowsTotalgrp - 2) / rowsShowngrp) / 2;
4838
+
4839
+		        for (i = 0; i < numPagesgrp; i++) {
4840
+		             var pageNumgrp = i + 1;
4841
+		             $('#paginationgrp').append('<a href="#" rel="' + i + '" class="pagenumbersgrp">' + pageNumgrp + '</a> ');
4842
+		        }
4843
+
4844
+		        $('#paginationgrp').children(":first").addClass('active');
4845
+
4846
+		        $(".groupedrowsbody,.groupedrowsexp").hide();
4847
+
4848
+		        $('#paginationgrp a:first').addClass('active');
4849
+
4850
+		        // Show table page when clicking a page number
4851
+		        $('.grppages a').bind('click', function() {
4852
+
4853
+		           $('#paginationgrp').children().removeClass('active');
4854
+
4855
+		           $(this).addClass('active');
4856
+
4857
+		           var currentPageNogrp = $(this).text();
4858
+
4859
+		           $('#paginationgrp a').each(function() {
4860
+		               if ($(this).text() == currentPageNogrp) {
4861
+		                   $(this).addClass('active');
4862
+		               }
4863
+		           });
4864
+
4865
+		           var currPagegrp = $(this).attr('rel');
4866
+		           var startItemgrp = currPagegrp * rowsShowngrp;
4867
+		           var endItemgrp = startItemgrp + rowsShowngrp;
4868
+
4869
+		           $(".groupedrowsbody").hide().slice(startItemgrp, endItemgrp).css('display', 'table-row');
4870
+		           $(".groupedrowsexp").hide().slice(startItemgrp, endItemgrp).css('display', 'table-row');
4871
+
4872
+		           $('#totalgrpmessages').remove();
4873
+		           $('#smstables').append("<div id='totalgrpmessages'>Total displayed phone numbers: " + totalPhNmbrs + "</div>");
4874
+		        });
4875
+
4876
+                        $('#paginationgrp').children(":last").trigger('click');
4877
+
4878
+
4879
+		        // Show/Hide filter row
4880
+		        $('#recarrow').on('click', function() {
4881
+			   if ($('#grpfiltersrow').is(':visible')) {
4882
+			       $('#grpfiltersrow').hide();
4883
+		               $('#grpheaderrow').css('top', '0px');
4884
+		               $(this).removeClass('arrowUpCl');
4885
+		               $(this).addClass('arrowDownCl');
4886
+			   } else {
4887
+			       $('#grpfiltersrow').show();
4888
+		               $('#grpheaderrow').css('top', '158px');
4889
+		               $(this).removeClass('arrowDownCl');
4890
+		               $(this).addClass('arrowUpCl');
4891
+		           }
4892
+		        });
4893
+
4894
+
4895
+		        // Download MMS files when clicking on their URLs
4896
+		        $('[id^="mmsTblUrl-"]').on('click', function(evt) {
4897
+
4898
+		           var clckedUrl = $(this).text();
4899
+		           var flNamearr = clckedUrl.split("/");
4900
+		           var flName = flNamearr.reverse()[0];
4901
+
4902
+		           confirmAlert("Download this file only if you trust the sender and the domain of the URL.");
4903
+
4904
+			   $("#confirmOk").click(function() {
4905
+
4906
+		              $("#alertMsgOverlay").remove();
4907
+			      $("#alertConfMessage").remove();
4908
+
4909
+			      var mmsLink = document.createElement("a");
4910
+			      mmsLink.setAttribute('href', clckedUrl);
4911
+			      mmsLink.setAttribute('download', flName);
4912
+                              mmsLink.setAttribute('target', '_blank');
4913
+			      document.body.appendChild(mmsLink);
4914
+			      mmsLink.click();
4915
+			      mmsLink.remove();
4916
+		           });
4917
+
4918
+			   $("#confirmCancel").click(function() { $("#alertMsgOverlay").remove(); $("#alertConfMessage").remove(); });
4919
+		        });
4920
+
4921
+          },
4922
+          error: function() {
4923
+
4924
+                        showAlert("Error while attempting to get the messages from the database.");
4925
+                        $('#smstables').removeClass('icon-loading');
4926
+          }
4927
+     });
4928
+
4929
+     // Stop auto-refreshing the page and hide the auto-refresh button
4930
+     if ($("#stopAutoRefreshRecBtn").text() == "Stop auto refresh") { $("#stopAutoRefreshRecBtn").click(); }
4931
+     if ($("#stopAutoRefreshSentBtn").text() == "Stop auto refresh") { $("#stopAutoRefreshSentBtn").click(); }
4932
+     $("#stopAutoRefreshRec,#stopAutoRefreshSent").css("display", "none");
4933
+  });
4934
+
4935
+
4936
+  function showAlert(alertText) {
4937
+
4938
+     let alertwnd = "<div id='alertMessage'>";
4939
+     alertwnd += "<a id='closeAlertWnd' title='Close this window'></a>";
4940
+     alertwnd += "<div id='alertTextWrap'>"+ alertText +"</div>";
4941
+     alertwnd += "<input type='submit' id='alertOk' value='OK'>";
4942
+     alertwnd += "</div>";
4943
+
4944
+     $("#content").append("<div id='alertMsgOverlay'></div>");
4945
+     $("#content").append(alertwnd);
4946
+
4947
+     let topDist = parseInt((window.innerHeight / 2).toFixed(2) - 152) +"px";
4948
+     let leftDist = parseInt((window.innerWidth / 2).toFixed(2) - 150) +"px";
4949
+     $("#alertMessage").css({ "top" : topDist, "left" : leftDist });
4950
+
4951
+     $("#closeAlertWnd").click(function() { $("#alertMsgOverlay").remove(); $("#alertMessage").remove(); });
4952
+     $("#alertMsgOverlay").click(function() { $("#alertMsgOverlay").remove(); $("#alertMessage").remove(); });
4953
+     $("#alertOk").click(function() { $("#alertMsgOverlay").remove(); $("#alertMessage").remove(); });
4954
+  }
4955
+
4956
+  function confirmAlert(alertText) {
4957
+
4958
+     $("#alertMsgOverlay").remove();
4959
+     $("#alertConfMessage").remove();
4960
+
4961
+     let alertwndcf = "<div id='alertConfMessage'>";
4962
+     alertwndcf += "<a id='closeAlertWndcf' title='Close this window'></a>";
4963
+     alertwndcf += "<div id='alertTextWrap'>"+ alertText +"</div>";
4964
+     alertwndcf += "<div id='cancelOkWrap'><input type='submit' id='confirmCancel' value='Cancel'>";
4965
+     alertwndcf += "<input type='submit' id='confirmOk' value='OK'></div>";
4966
+     alertwndcf += "</div>";
4967
+
4968
+     $("#content").append("<div id='alertMsgOverlay'></div>");
4969
+     $("#content").append(alertwndcf);
4970
+
4971
+     let topDist = parseInt((window.innerHeight / 2).toFixed(2) - 152) +"px";
4972
+     let leftDist = parseInt((window.innerWidth / 2).toFixed(2) - 150) +"px";
4973
+     $("#alertConfMessage").css({ "top" : topDist, "left" : leftDist });
4974
+
4975
+     $("#closeAlertWndcf").click(function() { $("#alertMsgOverlay").remove(); $("#alertConfMessage").remove(); });
4976
+     $("#alertMsgOverlay").click(function() { $("#alertMsgOverlay").remove(); $("#alertConfMessage").remove(); });
4977
+  }
4978
+
4979
+
4980
+  // Append the auto-refresh button that refreshes the 'Received SMS Messages' page
4981
+  $("#app-content").append("<div id='stopAutoRefreshRec'><div id='stopAutoRefreshRecBtn'>Start auto refresh</div><div id='refreshTimerRec' class='arftimer' style='--duration: 15;--size: 24;'><div class='arfmask'></div></div></div>");
4982
+
4983
+  // Append the auto-refresh button that refreshes the 'Sent SMS Messages' page
4984
+  $("#app-content").append("<div id='stopAutoRefreshSent'><div id='stopAutoRefreshSentBtn'>Start auto refresh</div><div id='refreshTimerSent' class='arftimer' style='--duration: 15;--size: 24;'><div class='arfmask'></div></div></div>");
4985
+
4986
+  $("#stopAutoRefreshRecBtn").click(function() { 
4987
+     if ($("#stopAutoRefreshRecBtn").text() == "Stop auto refresh") {
4988
+         clearInterval(intervalRfrRec);
4989
+         clearInterval(intervalRfrSent);
4990
+         $("#stopAutoRefreshRecBtn").text("Start auto refresh");
4991
+         $("#stopAutoRefreshRecBtn").css("color", "#0a559e");
4992
+         $("#refreshTimerRec").css("display", "none");
4993
+     } else {
4994
+         clearInterval(intervalRfrRec);
4995
+         clearInterval(intervalRfrSent);
4996
+         intervalRfrRec = setInterval(function() { $("#receivedsmstableshow").click(); }, 15000);
4997
+         $("#stopAutoRefreshRecBtn").text("Stop auto refresh");
4998
+         $("#stopAutoRefreshRecBtn").css("color", "#04957b");
4999
+         $("#refreshTimerRec").css("display", "inline-block");
5000
+     }
5001
+  });
5002
+
5003
+  $("#stopAutoRefreshSentBtn").click(function() {
5004
+     if ($("#stopAutoRefreshSentBtn").text() == "Stop auto refresh") {
5005
+         clearInterval(intervalRfrSent);
5006
+         clearInterval(intervalRfrRec);
5007
+         $("#stopAutoRefreshSentBtn").text("Start auto refresh");
5008
+         $("#stopAutoRefreshSentBtn").css("color", "#0a559e");
5009
+         $("#refreshTimerSent").css("display", "none");
5010
+     } else {
5011
+         clearInterval(intervalRfrSent);
5012
+         clearInterval(intervalRfrRec);
5013
+         intervalRfrSent = setInterval(function() { $("#sentsmstableshow").click(); }, 15000);
5014
+         $("#stopAutoRefreshSentBtn").text("Stop auto refresh");
5015
+         $("#stopAutoRefreshSentBtn").css("color", "#04957b");
5016
+         $("#refreshTimerSent").css("display", "inline-block");
5017
+     }
5018
+  });
5019
+
5020
+});
0 5021
new file mode 100644
... ...
@@ -0,0 +1,1435 @@
1
+<?php
2
+/**
3
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
4
+ *
5
+ * @author Double Bastion LLC
6
+ *
7
+ * @license GNU AGPL version 3 or any later version
8
+ *
9
+ * This program is free software; you can redistribute it and/or
10
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
11
+ * License as published by the Free Software Foundation; either
12
+ * version 3 of the License, or any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
18
+ *
19
+ * You should have received a copy of the GNU Affero General Public
20
+ * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ */
23
+
24
+declare(strict_types=1);
25
+
26
+namespace OCA\SMSRelentless\Controller;
27
+
28
+use OCP\AppFramework\ApiController;
29
+use OCP\IRequest;
30
+use OCA\SMSRelentless\Service\SmsrelentlessService;
31
+use OCP\AppFramework\Http\DataResponse;
32
+use OCP\AppFramework\OCSController;
33
+use OCP\IUserSession;
34
+use OCP\IConfig;
35
+use \DateTime;
36
+use OCP\AppFramework\Controller;
37
+use OCP\Files\IAppData;
38
+use OCP\AppFramework\App;
39
+use OCP\Files\NotPermittedException;
40
+use \ReflectionClass;
41
+use OCP\Notification\INotification;
42
+use OCP\Notification\IManager;
43
+use OCP\IDBConnection;
44
+use OCP\IUserManager;
45
+use Plivo\RestClient;
46
+use Plivo\Util\signatureValidation;
47
+
48
+
49
+class AuthorApiController extends ApiController {
50
+
51
+    private $service;
52
+    private $userId;
53
+    private $config;
54
+    private $connection;
55
+    private $userManager;
56
+    private $manager;
57
+
58
+    public function __construct($appName, IRequest $request, SmsrelentlessService $service, $userId, IConfig $config, IDBConnection $connection, IUserManager $userManager, IManager $manager) {
59
+        parent::__construct(
60
+            $appName,
61
+            $request,
62
+            'PUT, POST, GET, DELETE, PATCH',
63
+            'Authorization, Content-Type, Accept',
64
+            1728000);
65
+
66
+        $this->service = $service;
67
+        $this->userId = $userId;
68
+        $this->config = $config;
69
+        $this->connection = $connection;
70
+        $this->userManager = $userManager;
71
+	$this->manager = $manager;
72
+    }
73
+
74
+
75
+    /**
76
+     * @NoAdminRequired
77
+     */
78
+    public function object_to_array($obj) {
79
+       if(is_object($obj)) $obj = (array)$this->dismount($obj);
80
+       if(is_array($obj)) {
81
+          $new = array();
82
+          foreach($obj as $key => $val) {
83
+              $new[$key] = $this->object_to_array($val);
84
+          }
85
+       }
86
+       else $new = $obj;
87
+       return $new;
88
+    }
89
+
90
+
91
+    /**
92
+     * @NoAdminRequired
93
+     */
94
+    public function dismount($object) {
95
+       $reflectionClass = new ReflectionClass(get_class($object));
96
+       $array = array();
97
+       foreach ($reflectionClass->getProperties() as $property) {
98
+          $property->setAccessible(true);
99
+          $array[$property->getName()] = $property->getValue($object);
100
+          $property->setAccessible(false);
101
+       }
102
+       return $array;
103
+    }
104
+
105
+
106
+    /**
107
+     * @NoAdminRequired
108
+     */
109
+    public function verifyHeader($receiveddata, $signature_header, $timestamp, $public_key = '', $tolerance = null ) {
110
+        // Typecast timestamp to int for comparisons
111
+        $timestamp = (int)$timestamp;
112
+
113
+        // Check if timestamp is within tolerance
114
+        if (($tolerance > 0) && (\abs(\time() - $timestamp) > $tolerance)) {
115
+             return false;
116
+        } else {
117
+
118
+            // Convert base64 string to bytes for sodium crypto functions
119
+            $public_key_bytes = base64_decode($public_key);
120
+            $signature_header_bytes = base64_decode($signature_header);
121
+
122
+            // Construct a message to test against the signature header using the timestamp and payload
123
+            $constructed_string = $timestamp . '|' . $receiveddata;
124
+
125
+            if (!\sodium_crypto_sign_verify_detached($signature_header_bytes, $constructed_string, $public_key_bytes)) {
126
+                return false;
127
+            } else {
128
+                return true;
129
+            }
130
+        }
131
+    }
132
+
133
+
134
+    /**
135
+     * @NoAdminRequired
136
+     * @NoCSRFRequired
137
+     * @PublicPage
138
+     */
139
+    public function recdeliveryreptel() {
140
+
141
+       $request = file_get_contents("php://input");
142
+       $recdata = json_decode($request, TRUE);
143
+
144
+       $delsmswebhookurl = $recdata["data"]["payload"]["webhook_url"];
145
+       $ncuserfortelnyxdel = $this->service->getuserbyteldelrwhurl($delsmswebhookurl);
146
+
147
+       if ($ncuserfortelnyxdel != '' && $ncuserfortelnyxdel != null && $ncuserfortelnyxdel != 'undefined') {
148
+
149
+	       $messageid = $recdata["data"]["payload"]["id"];
150
+
151
+	       $network = $recdata["data"]["payload"]["to"][0]["carrier"];
152
+	       $messageprice = $recdata["data"]["payload"]["cost"]["amount"];
153
+	       $deliverystatus = $recdata["data"]["payload"]["to"][0]["status"];
154
+
155
+	       $goterrorinit = $recdata["data"]["payload"]["errors"];
156
+
157
+	       if (!empty($goterrorinit)) {
158
+		   $retrievedtitle = $recdata["data"]["payload"]["errors"][0]["title"];
159
+		   $retrievedcode = $recdata["data"]["payload"]["errors"][0]["code"];
160
+		   $messagestatus = "(Error " . $retrievedcode . ") " . $retrievedtitle;
161
+	       } else {
162
+		   $messagestatus = "Success ! The message has been successfully accepted for delivery.";
163
+	       }
164
+
165
+	       return $this->service->updatedeliverystatustel($ncuserfortelnyxdel, $messageid, $network, $messageprice, $messagestatus, $deliverystatus); 
166
+
167
+       } else { return "access denied"; }
168
+
169
+    }
170
+
171
+
172
+    /**
173
+     * @NoAdminRequired
174
+     * @NoCSRFRequired
175
+     * @PublicPage
176
+     */
177
+    public function recdeliveryrepnex() {
178
+
179
+       $plivodrurl = $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
180
+
181
+       $ncuserforplivodel = $this->service->getuserbyplivodelrwhurl($plivodrurl);
182
+
183
+       if ($ncuserforplivodel != '' && $ncuserforplivodel != null && $ncuserforplivodel != 'undefined') {
184
+
185
+	       $networkcode = "";
186
+	       $mStatus = ""; 
187
+
188
+	       if (isset($_REQUEST["MessageUUID"])) { $messageid = $_REQUEST["MessageUUID"]; } else { $messageid = ''; }
189
+	       if (isset($_REQUEST["MCC"]) && isset($_REQUEST["MNC"])) { $networkcode = $_REQUEST["MCC"] . " " . $_REQUEST["MNC"]; } else { $networkcode = ''; }
190
+	       if (isset($_REQUEST["TotalAmount"])) { $messageprice = $_REQUEST["TotalAmount"]; } else { $messageprice = ''; }
191
+	       if (isset($_REQUEST["ErrorCode"]) && $_REQUEST["ErrorCode"] == "") {
192
+                   $mStatus = "Success ! The message has been successfully accepted for delivery.";
193
+               } elseif (isset($_REQUEST["ErrorCode"]) && $_REQUEST["ErrorCode"] != "") {
194
+                   $mStatus = "Error " . $_REQUEST["ErrorCode"]; 
195
+               } else { $mStatus = ''; }
196
+
197
+	       if (isset($_REQUEST["Status"])) { $deliverystatus = $_REQUEST["Status"]; }
198
+
199
+	       return $this->service->updatedeliverystatusnex($ncuserforplivodel, $messageid, $networkcode, $messageprice, $mStatus, $deliverystatus);
200
+
201
+       } else { return "access denied"; }
202
+
203
+    }
204
+
205
+
206
+    /**
207
+     * @NoAdminRequired
208
+     * @NoCSRFRequired
209
+     * @PublicPage
210
+     */
211
+    public function recdeliveryreptwil() {
212
+
213
+       $twildrurl = $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
214
+
215
+       $ncuserfortwildel = $this->service->getuserbytwildelrwhurl($twildrurl);
216
+
217
+       if ($ncuserfortwildel != '' && $ncuserfortwildel != null && $ncuserfortwildel != 'undefined') {
218
+
219
+           $messageid = $_REQUEST["SmsSid"];
220
+
221
+           if ($messageid != null) {
222
+
223
+               $credentialstw = $this->service->getapicredentials($ncuserfortwildel);
224
+               $sidtw = $credentialstw[15];
225
+               $tokentw = $credentialstw[16];
226
+               $msdetails = json_decode(file_get_contents("https://".$sidtw.":".$tokentw."@api.twilio.com/2010-04-01/Accounts/".$sidtw."/Messages/".$messageid.".json"));
227
+               $errorMessage = $msdetails->error_message;
228
+               $errorCode = $msdetails->error_code;
229
+               $deliverystatus = $msdetails->status;
230
+
231
+               if ($errorCode == null) { 
232
+                   $mStatus = 'Success ! The message has been successfully accepted for delivery.'; 
233
+               } else { $mStatus = 'Error ' . $errorCode . '. '. ($errorMessage != '') ? 'Message: '. $errorMessage : ''; }
234
+
235
+               $messagepricepre = $msdetails->price;
236
+
237
+               if ($messagepricepre) {
238
+                   $messageprice = str_replace("-", "", $messagepricepre);
239
+               } else { $messageprice = ""; }
240
+
241
+               $networkcode = '';
242
+
243
+	       return $this->service->updatedeliverystatustwil($ncuserfortwildel, $messageid, $networkcode, $messageprice, $mStatus, $deliverystatus);
244
+
245
+           } else { exit(); }
246
+
247
+       } else { exit(); }
248
+
249
+    }
250
+
251
+
252
+    /**
253
+     * @NoAdminRequired
254
+     * @NoCSRFRequired
255
+     * @PublicPage
256
+     */
257
+    public function recdeliveryrepflow() {
258
+
259
+       $flowdrurl = $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
260
+
261
+       $ncuserforflowdel = $this->service->getuserbyflowdelrwhurl($flowdrurl);
262
+
263
+       if ($ncuserforflowdel != '' && $ncuserforflowdel != null && $ncuserforflowdel != 'undefined') {
264
+
265
+           $receivereq = file_get_contents('php://input');
266
+           $recmdec = json_decode($receivereq, true);
267
+           $recmsid = $recmdec['data']['id'];
268
+
269
+           $smsapicredfl = $this->service->getapicredentials($ncuserforflowdel);
270
+           $flowapikey = $smsapicredfl[20];
271
+           $flowapisecret = $smsapicredfl[21];
272
+
273
+           $getmsdetails = json_decode(file_get_contents("https://".$flowapikey.":".$flowapisecret."@api.flowroute.com/v2.1/messages/".$recmsid.""), true);
274
+           $messagepriceflinit = $getmsdetails['data']['attributes']['amount_display'];
275
+           $messagepricefl = str_replace("$", "", $messagepriceflinit);
276
+
277
+           $mdeliveryflinit = $getmsdetails['data']['attributes']['delivery_receipts'][0]['status'];
278
+
279
+           if ($mdeliveryflinit != 'message buffered') {
280
+               if ($mdeliveryflinit == 'Ok') {
281
+                   $messagedeliveryfl = "Issues";
282
+               } else { $messagedeliveryfl = $mdeliveryflinit; }
283
+           } else { $messagedeliveryfl = 'delivered'; }
284
+
285
+           $messagestatuscode = $getmsdetails['data']['attributes']['delivery_receipts'][0]['status_code'];
286
+           $messagestatusdescr = $getmsdetails['data']['attributes']['delivery_receipts'][0]['status_code_description'];
287
+
288
+           if ($messagestatuscode != '') { 
289
+               $messagestatusfl = (($messagestatusdescr != '') ? $messagestatusdescr . ". " : "") . "Status code: " . $messagestatuscode; 
290
+           } else { $messagestatusfl = "There were issues with message delivery."; }
291
+
292
+           $networkcodefl = '';
293
+
294
+           return $this->service->updatedeliverystatusflow($ncuserforflowdel, $recmsid, $networkcodefl, $messagepricefl,  $messagestatusfl, $messagedeliveryfl);
295
+
296
+       } else { return "access denied"; }
297
+
298
+    }
299
+
300
+
301
+    /**
302
+     * @NoAdminRequired
303
+     * @NoCSRFRequired
304
+     * @PublicPage
305
+     */
306
+    public function receivesmstel() {
307
+
308
+       $signature = $_SERVER['HTTP_TELNYX_SIGNATURE_ED25519'];
309
+       $timestamp = $_SERVER['HTTP_TELNYX_TIMESTAMP'];
310
+
311
+       $receivereq = file_get_contents('php://input');
312
+
313
+       $recmesdata = json_decode($receivereq, TRUE);
314
+
315
+       $recsmswebhookurl = $recmesdata["data"]["payload"]["webhook_url"];
316
+
317
+       $ncuserfortelnyx = $this->service->getuserbytelrecwhurl($recsmswebhookurl);
318
+
319
+       $txcredentials = $this->service->getapicredentials($ncuserfortelnyx);
320
+
321
+       $telpubkey = $txcredentials[1];
322
+       $telnyxkey = $txcredentials[0];
323
+       $teldelrecurl = $txcredentials[3];
324
+       $messagingprofid = $txcredentials[4];
325
+
326
+       // Verify message signature
327
+       $signatureverify = $this->verifyHeader($receivereq, $signature, $timestamp, $telpubkey, $tolerance = 30);
328
+
329
+       if ($signatureverify) {
330
+
331
+          if ($ncuserfortelnyx != '' && $ncuserfortelnyx != null && $ncuserfortelnyx != 'undefined') {
332
+
333
+	       $messageid = $recmesdata["data"]["payload"]["id"];
334
+
335
+	       $messagedate = date("Y-m-d H:i:s");
336
+
337
+	       $messagefrom = $recmesdata["data"]["payload"]["from"]["phone_number"];
338
+
339
+	       $messageto = "Telnyx: " . $recmesdata["data"]["payload"]["to"][0]["phone_number"];
340
+
341
+               $messagetopr = $recmesdata["data"]["payload"]["to"][0]["phone_number"];
342
+
343
+               $messagetoprtx = "Tx: " . $messagetopr;
344
+
345
+               // Check if the message is a MMS
346
+               if ($recmesdata["data"]["payload"]['type'] == 'MMS') {
347
+
348
+                   $includedFilestx = '';
349
+
350
+                   foreach ($recmesdata["data"]["payload"]['media'] as $telkey => $telvalue) {
351
+                        if (is_array($telvalue)) {
352
+                            foreach ($telvalue as $telkeysec => $telvaluesec) {
353
+                                if ($telkeysec == "url") {
354
+                                    $includedFilestx .= "<div id='mmsTblUrl-" . mt_rand(1, 10000) . "' class='mmstblUrls' title='Download this file only if you trust the sender and the domain of the URL.'>" . $telvaluesec . "</div><br><br>";
355
+                                }
356
+                            }
357
+                        }
358
+                   }
359
+
360
+                   $messagetexttel = $recmesdata["data"]["payload"]["text"] . "<br><br><br></b>--- The files included in the MMS follow. Download them only if you trust the sender and the domains of the URLs ---<br><br><br>" . $includedFilestx;
361
+                   $ismmstel = 1;
362
+               } else {
363
+                   $messagetexttel = $recmesdata["data"]["payload"]["text"];
364
+                   $ismmstel = 0;
365
+               }
366
+
367
+	       $recmessagearr = [$messageid, $messagedate, $messagefrom, $messageto, $messagetexttel];
368
+
369
+	       $this->service->insertrecsms($ncuserfortelnyx, $recmessagearr);
370
+
371
+
372
+               // Check if there is any auto-reply configured for the receiving number
373
+	       $telgetarpl = $this->connection->prepare('SELECT `phone_number`, `days_of_week`, `daily_start`, `daily_end`, `vacation_start`, `vacation_end`, `message_text` FROM 
374
+                                                        `*PREFIX*sms_relent_autorply` WHERE `phone_number` = ?');
375
+	       $telgetarplres = $telgetarpl->execute([$messagetoprtx]);
376
+	       $telarpldata = $telgetarplres->fetch();
377
+	       $telgetarplres->closeCursor();
378
+
379
+               if ($telarpldata) {
380
+
381
+                   $autoreplytext = $telarpldata['message_text'];
382
+
383
+                   // Get the Display Name of the current user
384
+                   $crtuser = $this->userManager->get($ncuserfortelnyx);
385
+                   $displaynm = $crtuser->getDisplayName();
386
+
387
+                   // Check if the auto-reply is in 'daily mode'
388
+                   if ($telarpldata['days_of_week']) {
389
+
390
+                       // Check if the auto-reply should be sent 
391
+                       $daysofweekarrinit = explode(",", $telarpldata['days_of_week']);
392
+
393
+                       $daysofweekarr = [];
394
+                       $fulldays = [];
395
+                       foreach ($daysofweekarrinit as $crtday) {
396
+                           if (strpos($crtday, "full") !== false) {
397
+                               $fulldays[] = $crtday;
398
+                           } else {
399
+                               $daysofweekarr[] = $crtday;
400
+                           }
401
+                       }
402
+
403
+                       $dailystart = $telarpldata['daily_start'];
404
+                       $dailyend = $telarpldata['daily_end'];
405
+
406
+                       $crntdate = date("Y-m-d");
407
+                       $crntDayNumber = date('N', strtotime($crntdate));
408
+
409
+                       if (in_array($crntDayNumber, $daysofweekarr)) {
410
+
411
+                           $crntimehrmin = date("H:i");
412
+                           $crntdatefmt = new DateTime($crntimehrmin);
413
+                           $startdatefmt = new DateTime($dailystart);
414
+                           $enddatefmt = new DateTime($dailyend);
415
+
416
+                           if ($crntdatefmt >= $startdatefmt && $enddatefmt > $crntdatefmt) {
417
+                               // OK
418
+                           } else {
419
+
420
+	                       // Send the auto-reply
421
+		               \Telnyx\Telnyx::setApiKey($telnyxkey);
422
+		               $messagedate = date("Y-m-d H:i:s");
423
+		               $message = \Telnyx\Message::Create(["from" => $messagetopr, "to" => $messagefrom, "text" => $autoreplytext, "webhook_url" => $teldelrecurl]);
424
+
425
+		               // Insert the sent SMS in the 'sms_relent_sent' table
426
+		               $messageid = $message['id'];
427
+		               $messagefromtx = "Telnyx: " . $messagetopr;
428
+		               $messagetotx = $messagefrom;
429
+		               $messagenetwork = null;
430
+		               $messageprice = null;
431
+		               $messagestatus = $message['to'][0]['status'];
432
+		               $messagedelivery = null;
433
+
434
+		               $sentmessagearr = [$messageid, $messagedate, $messagefromtx, $messagetotx, $messagenetwork, $messageprice, $messagestatus, $messagedelivery, $autoreplytext];
435
+
436
+		               $this->service->insertsentsms($ncuserfortelnyx, $displaynm, $sentmessagearr);
437
+                           }
438
+                       }
439
+
440
+                       if (in_array($crntDayNumber . "(full)", $fulldays)) {
441
+
442
+	                       // Send the auto-reply
443
+		               \Telnyx\Telnyx::setApiKey($telnyxkey);
444
+		               $messagedate = date("Y-m-d H:i:s");
445
+		               $message = \Telnyx\Message::Create(["from" => $messagetopr, "to" => $messagefrom, "text" => $autoreplytext, "webhook_url" => $teldelrecurl]);
446
+
447
+		               // Insert the sent SMS in the 'sms_relent_sent' table
448
+		               $messageid = $message['id'];
449
+		               $messagefromtx = "Telnyx: " . $messagetopr;
450
+		               $messagetotx = $messagefrom;
451
+		               $messagenetwork = null;
452
+		               $messageprice = null;
453
+		               $messagestatus = $message['to'][0]['status'];
454
+		               $messagedelivery = null;
455
+
456
+		               $sentmessagearr = [$messageid, $messagedate, $messagefromtx, $messagetotx, $messagenetwork, $messageprice, $messagestatus, $messagedelivery, $autoreplytext];
457
+
458
+		               $this->service->insertsentsms($ncuserfortelnyx, $displaynm, $sentmessagearr);
459
+                       }
460
+
461
+                   } elseif ($telarpldata['vacation_start'] && $telarpldata['vacation_end']) {
462
+
463
+                             $vacationstart = $telarpldata['vacation_start'];
464
+                             $vacationend = $telarpldata['vacation_end'];
465
+
466
+                             $crntimeymd = date("Y-m-d H:i:s");
467
+                             $crntdatevcfmt = new DateTime($crntimeymd);
468
+                             $startdatevcfmt = new DateTime($vacationstart);
469
+                             $enddatefvcmt = new DateTime($vacationend);
470
+
471
+                             if ($startdatevcfmt <= $crntdatevcfmt && $crntdatevcfmt <= $enddatefvcmt) {
472
+
473
+			         // Send the auto-reply
474
+			         \Telnyx\Telnyx::setApiKey($telnyxkey);
475
+			         $messagedate = date("Y-m-d H:i:s");
476
+			         $message = \Telnyx\Message::Create(["from" => $messagetopr, "to" => $messagefrom, "text" => $autoreplytext, "webhook_url" => $teldelrecurl]);
477
+
478
+			         // Insert the sent SMS in the 'sms_relent_sent' table
479
+			         $messageid = $message['id'];
480
+			         $messagefromtx = "Telnyx: " . $messagetopr;
481
+			         $messagetotx = $messagefrom;
482
+			         $messagenetwork = null;
483
+			         $messageprice = null;
484
+			         $messagestatus = $message['to'][0]['status'];
485
+			         $messagedelivery = null;
486
+
487
+			         $sentmessagearr = [$messageid, $messagedate, $messagefromtx, $messagetotx, $messagenetwork, $messageprice, $messagestatus, $messagedelivery, $autoreplytext];
488
+
489
+			         $this->service->insertsentsms($ncuserfortelnyx, $displaynm, $sentmessagearr);
490
+                           }
491
+
492
+                   }
493
+               }
494
+
495
+
496
+	       // Send notifications
497
+               $nameofhost = $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['HTTP_HOST'];
498
+
499
+	       $telsmsapicred = $this->service->getapicredentials($ncuserfortelnyx);
500
+	       $telnotify = $telsmsapicred[12];
501
+	       $emailaddress = $telsmsapicred[13];
502
+	       $includemessageinemail = $telsmsapicred[14];
503
+
504
+               if ($ismmstel == 0) { $smsormmstel = "SMS"; } else { $smsormmstel = "MMS"; }
505
+
506
+	       if ($telnotify != 0 ) {
507
+
508
+                   $allalloweduserstx = $this->service->getallowedusers($ncuserfortelnyx);
509
+
510
+                   foreach ($allalloweduserstx as $alusrkeytx => $specusrnametx) {
511
+
512
+		            $notificationtx = $this->manager->createNotification();
513
+		            $notificationtx->setApp('sms_relentless')
514
+			          ->setUser($specusrnametx)
515
+			          ->setDateTime(new \DateTime())
516
+			          ->setObject('sms_relentless', '11')
517
+			          ->setSubject('New SMS Message');
518
+		            $this->manager->notify($notificationtx);
519
+                   }
520
+	       }
521
+
522
+	       if ($emailaddress != '') {
523
+
524
+		   $gmtind = "UTC " . date('P');
525
+		   $smsdateinit = date("Y-m-d  H:i:s");
526
+		   $smsdate = $smsdateinit . " " . $gmtind;
527
+
528
+		   $subject = "New ". $smsormmstel ." message received";
529
+
530
+                   $messagetextnltel = str_replace("\n", "<br>", $messagetexttel);
531
+
532
+		   if ($includemessageinemail == 0) {
533
+		       $message = "Hello, <br><br> You have received a new message on ".$smsdate." .<br> You can check the new message by going to 'SMS Relentless' > 'Received SMS Messages'. <br><br> Yours, <br> SMS Relentless <br> An SMS application for Nextcloud <br> Host: '" . $nameofhost . "' <br>";
534
+		   } else {
535
+		       $message = "Hello, <br><br> You have received a new message on ".$smsdate." :<br><br><br> Message ID: ".$messageid." <br> Message Date: ".$messagedate." <br> From: ".$messagefrom." <br> To: ".$messageto."<br> Message Text: <br><br><b>".$messagetextnltel."</b><br>____________<br><br> Yours, <br> SMS Relentless <br> An SMS application for Nextcloud <br> Host: '".$nameofhost."' <br>";
536
+		   }
537
+
538
+                   $messagefin = chunk_split(base64_encode($message));
539
+
540
+		   $headers = "MIME-Version: 1.0" . "\r\n";
541
+		   $headers .= "Content-type: text/html; charset=UTF-8" . "\r\n";
542
+                   $headers .= "Content-Transfer-Encoding: base64" . "\r\n";
543
+
544
+		   // Set the email sender
545
+		   $headers .= "From: " . $emailaddress . "\r\n";
546
+		   $headers .= "Reply-To: " . $emailaddress . "\r\n";
547
+
548
+		   mail($emailaddress, $subject, $messagefin, $headers);
549
+	       }
550
+
551
+	       return http_response_code(200);
552
+
553
+          } else { return "access denied"; }
554
+
555
+       } else { return "access denied"; }
556
+    }
557
+
558
+
559
+    /**
560
+     * @NoAdminRequired
561
+     * @NoCSRFRequired
562
+     * @PublicPage
563
+     */
564
+    public function receivesmsnex() {
565
+
566
+       $plivosignature = $_SERVER['HTTP_X_PLIVO_SIGNATURE_V2'];
567
+       $plivononce = $_SERVER["HTTP_X_PLIVO_SIGNATURE_V2_NONCE"];
568
+
569
+       $plivorecurl = $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
570
+
571
+       $ncuserforplivo = $this->service->getuserbyplivorecwhurl($plivorecurl);
572
+
573
+       $smsapicred = $this->service->getapicredentials($ncuserforplivo);
574
+
575
+       $plivoapikey = $smsapicred[5];
576
+       $plivoauthtoken = $smsapicred[6];
577
+       $plivowhdelrcpt = $smsapicred[8];
578
+
579
+       $baseplivourlinit = explode("?", $plivorecurl);  
580
+       $baseplivoURI = $baseplivourlinit[0];
581
+
582
+       // Verify message signature
583
+       $SigValidation = new signatureValidation();
584
+       $signverify = $SigValidation->validateSignature($baseplivoURI, $plivononce, $plivosignature, $plivoauthtoken);
585
+
586
+       if ($signverify) {
587
+
588
+              if ($ncuserforplivo != '' && $ncuserforplivo != null && $ncuserforplivo != 'undefined') {
589
+
590
+	          $messageid = $_REQUEST["MessageUUID"];
591
+
592
+	          $messagedate = date("Y-m-d H:i:s");
593
+
594
+	          $messagefrom = "+" . $_REQUEST['From'];
595
+	          $messageto = "Plivo: +" . $_REQUEST['To'];
596
+	          $messagetoprpl = "Pl: +" . $_REQUEST['To'];
597
+                  $messagetoplsp = "+" . $_REQUEST['To'];
598
+
599
+                  // Check if the message is a MMS
600
+                  if ($_REQUEST['Type'] == 'mms') {
601
+
602
+                      $includedFilespl = '';
603
+                      foreach ($_REQUEST as $plkey => $plvalue) {
604
+
605
+			   if (strpos($plkey, "Media") !== false && $plkey != "MediaCount") {
606
+                               $includedFilespl .= "<div id='mmsTblUrl-" . mt_rand(1, 10000) . "' class='mmstblUrls' title='Download this file only if you trust the sender and the domain of the URL.'>" . $plvalue . "</div><br><br>";
607
+			   }
608
+                      }
609
+
610
+                      $messagetextpl = $_REQUEST['Body'] . "<br><br><br></b>--- The files included in the MMS follow. Download them only if you trust the sender and the domains of the URLs ---<br><br><br>" . $includedFilespl;
611
+                      $ismmspl = 1;
612
+                  } else {
613
+                      $messagetextpl = $_REQUEST['Text'];
614
+                      $ismmspl = 0;
615
+                  }
616
+
617
+	          $recmessagearr = [$messageid, $messagedate, $messagefrom, $messageto, $messagetextpl];
618
+
619
+                  $this->service->insertrecsms($ncuserforplivo, $recmessagearr);
620
+
621
+
622
+                  // Check if there is any auto-reply configured for the receiving number
623
+	          $plgetarpl = $this->connection->prepare('SELECT `phone_number`, `days_of_week`, `daily_start`, `daily_end`, `vacation_start`, `vacation_end`, `message_text` FROM 
624
+                                                          `*PREFIX*sms_relent_autorply` WHERE `phone_number` = ?');
625
+	          $plgetarplres = $plgetarpl->execute([$messagetoprpl]);
626
+	          $plarpldata = $plgetarplres->fetch();
627
+	          $plgetarplres->closeCursor();
628
+
629
+                  if ($plarpldata) {
630
+
631
+                      $autoreplytext = $plarpldata['message_text'];
632
+
633
+                      // Get the Display Name of the current user
634
+                      $crtuser = $this->userManager->get($ncuserforplivo);
635
+                      $displaynm = $crtuser->getDisplayName();
636
+
637
+                      // Check if the auto-reply is in 'daily mode'
638
+                      if ($plarpldata['days_of_week']) {
639
+
640
+                          // Check if the auto-reply should be sent 
641
+                          $daysofweekarrinit = explode(",", $plarpldata['days_of_week']);
642
+
643
+                          $daysofweekarr = [];
644
+                          $fulldays = [];
645
+                          foreach ($daysofweekarrinit as $crtday) {
646
+                              if (strpos($crtday, "full") !== false) {
647
+                                  $fulldays[] = $crtday;
648
+                              } else {
649
+                                  $daysofweekarr[] = $crtday;
650
+                              }
651
+                          }
652
+
653
+                          $dailystart = $plarpldata['daily_start'];
654
+                          $dailyend = $plarpldata['daily_end'];
655
+
656
+                          $crntdate = date("Y-m-d");
657
+                          $crntDayNumber = date('N', strtotime($crntdate));
658
+
659
+                          if (in_array($crntDayNumber, $daysofweekarr)) {
660
+
661
+                              $crntimehrmin = date("H:i");
662
+                              $crntdatefmt = new DateTime($crntimehrmin);
663
+                              $startdatefmt = new DateTime($dailystart);
664
+                              $enddatefmt = new DateTime($dailyend);
665
+
666
+                              if ($crntdatefmt >= $startdatefmt && $enddatefmt > $crntdatefmt) {
667
+                                  // OK
668
+                              } else {
669
+
670
+                                  // Send the auto-reply
671
+		                  $client = new RestClient($plivoapikey, $plivoauthtoken);
672
+                                  $messagedatepl = date("Y-m-d H:i:s");
673
+		                  $response = $client->messages->create($messagetoplsp,[$messagefrom],$autoreplytext,["url" => $plivowhdelrcpt]);
674
+			          $messageidinit = $response->getmessageUuid(0);
675
+		                  $messageid = $messageidinit[0];
676
+
677
+		                  if (property_exists($response, 'error')) { 
678
+		                      $messagestatus = "Error: " . $response->error;
679
+		                  } else { $messagestatus = 'The message has been accepted for delivery.'; }
680
+
681
+                                  $messagefrompl = $messageto;
682
+			          $messagetopl = $messagefrom;
683
+			          $messagenetwork = '';
684
+			          $messageprice = '';
685
+
686
+			          $messagedelivery = '';
687
+
688
+			          $sentmessagearr = [$messageid, $messagedatepl, $messagefrompl, $messagetopl, $messagenetwork, $messageprice, $messagestatus, $messagedelivery, $autoreplytext];
689
+
690
+			          $this->service->insertsentsms($ncuserforplivo, $displaynm, $sentmessagearr);
691
+                              }
692
+                          }
693
+
694
+                          if (in_array($crntDayNumber, $fulldays)) {
695
+
696
+                                  // Send the auto-reply
697
+		                  $client = new RestClient($plivoapikey, $plivoauthtoken);
698
+                                  $messagedatepl = date("Y-m-d H:i:s");
699
+		                  $response = $client->messages->create($messagetoplsp,[$messagefrom],$autoreplytext,["url" => $plivowhdelrcpt]);
700
+			          $messageidinit = $response->getmessageUuid(0);
701
+		                  $messageid = $messageidinit[0];
702
+
703
+		                  if (property_exists($response, 'error')) { 
704
+		                      $messagestatus = "Error: " . $response->error;
705
+		                  } else { $messagestatus = 'The message has been accepted for delivery.'; }
706
+
707
+                                  $messagefrompl = $messageto;
708
+			          $messagetopl = $messagefrom;
709
+			          $messagenetwork = '';
710
+			          $messageprice = '';
711
+
712
+			          $messagedelivery = '';
713
+
714
+			          $sentmessagearr = [$messageid, $messagedatepl, $messagefrompl, $messagetopl, $messagenetwork, $messageprice, $messagestatus, $messagedelivery, $autoreplytext];
715
+
716
+			          $this->service->insertsentsms($ncuserforplivo, $displaynm, $sentmessagearr);
717
+                          }
718
+
719
+                      } elseif ($plarpldata['vacation_start'] && $plarpldata['vacation_end']) {
720
+
721
+                             $vacationstart = $plarpldata['vacation_start'];
722
+                             $vacationend = $plarpldata['vacation_end'];
723
+
724
+                             $crntimeymd = date("Y-m-d H:i:s");
725
+                             $crntdatevcfmt = new DateTime($crntimeymd);
726
+                             $startdatevcfmt = new DateTime($vacationstart);
727
+                             $enddatefvcmt = new DateTime($vacationend);
728
+
729
+                             if ($startdatevcfmt <= $crntdatevcfmt && $crntdatevcfmt <= $enddatefvcmt) {
730
+
731
+		                 $client = new RestClient($plivoapikey, $plivoauthtoken);
732
+                                 $messagedatepl = date("Y-m-d H:i:s");
733
+		                 $response = $client->messages->create($messagetoplsp,[$messagefrom],$autoreplytext,["url" => $plivowhdelrcpt]);
734
+
735
+			         $messageidinit = $response->getmessageUuid(0);
736
+		                 $messageid = $messageidinit[0];
737
+
738
+		                 if (property_exists($response, 'error')) { 
739
+		                     $messagestatus = "Error: " . $response->error;
740
+		                 } else { $messagestatus = 'The message has been accepted for delivery.'; }
741
+
742
+                                 $messagefrompl = $messageto;
743
+			         $messagetopl = $messagefrom;
744
+			         $messagenetwork = '';
745
+			         $messageprice = '';
746
+
747
+			         $messagedelivery = '';
748
+
749
+			         $sentmessagearr = [$messageid, $messagedatepl, $messagefrompl, $messagetopl, $messagenetwork, $messageprice, $messagestatus, $messagedelivery, $autoreplytext];
750
+
751
+			         $this->service->insertsentsms($ncuserforplivo, $displaynm, $sentmessagearr);
752
+                             }
753
+
754
+                      }
755
+                  }
756
+
757
+
758
+	          // Send notifications
759
+                  $nameofhost = $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['HTTP_HOST'];
760
+
761
+	          $nextnotify = $smsapicred[12];
762
+	          $emailaddress = $smsapicred[13];
763
+	          $includemessageinemail = $smsapicred[14];
764
+
765
+                  if ($ismmspl == 0) { $smsormmspl = "SMS"; } else { $smsormmspl = "MMS"; }
766
+
767
+	          if ($nextnotify != 0 ) {
768
+
769
+                      $allalloweduserspl = $this->service->getallowedusers($ncuserforplivo);
770
+
771
+                      foreach ($allalloweduserspl as $alusrkeypl => $specusrnamepl) {
772
+
773
+		               $notificationpl = $this->manager->createNotification();
774
+		               $notificationpl->setApp('sms_relentless')
775
+			                      ->setUser($specusrnamepl)
776
+			                      ->setDateTime(new \DateTime())
777
+			                      ->setObject('sms_relentless', '11')
778
+			                      ->setSubject('New SMS Message');
779
+		               $this->manager->notify($notificationpl);
780
+                      }
781
+	          }
782
+
783
+	          if ($emailaddress != '') {
784
+
785
+		      $gmtind = "UTC " . date('P');
786
+		      $smsdateinit = date("Y-m-d  H:i:s");
787
+		      $smsdate = $smsdateinit . " " . $gmtind;
788
+
789
+		      $subject = "New ". $smsormmspl ." message received";
790
+
791
+                      $messagetextnlpl = str_replace("\n", "<br>", $messagetextpl);
792
+
793
+		      if ($includemessageinemail == 0) {
794
+		          $message = "Hello, <br><br> You have received a new message on ".$smsdate." .<br> You can check the new message by going to 'SMS Relentless' > 'Received SMS Messages'. <br><br> Yours, <br> SMS Relentless <br> An SMS application for Nextcloud <br> Host: '".$nameofhost."' <br>";
795
+		      } else {
796
+		          $message = "Hello, <br><br> You have received a new message on ".$smsdate." :<br><br><br> Message ID: ".$messageid." <br> Message Date: ".$messagedate." <br> From: ".$messagefrom." <br> To: ".$messageto."<br> Message Text: <br><br><b>".$messagetextnlpl."</b><br>____________<br><br> Yours, <br> SMS Relentless <br> An SMS application for Nextcloud <br> Host: '".$nameofhost."' <br>";
797
+		      }
798
+
799
+                      $messagefin = chunk_split(base64_encode($message));
800
+
801
+		      $headers = "MIME-Version: 1.0" . "\r\n";
802
+		      $headers .= "Content-type: text/html; charset=UTF-8" . "\r\n";
803
+                      $headers .= "Content-Transfer-Encoding: base64" . "\r\n";
804
+
805
+		      // Set the email sender
806
+		      $headers .= "From: " . $emailaddress . "\r\n";
807
+		      $headers .= "Reply-To: " . $emailaddress . "\r\n";
808
+
809
+		      mail($emailaddress, $subject, $messagefin, $headers);
810
+	          }
811
+
812
+	          return http_response_code(200);
813
+
814
+              } else { return "access denied"; }
815
+
816
+       } else { return "access denied"; }
817
+    }
818
+
819
+
820
+    /**
821
+     * @NoAdminRequired
822
+     * @NoCSRFRequired
823
+     * @PublicPage
824
+     */
825
+    public function receivesmstwil() {
826
+
827
+       $twilsig = $_SERVER['HTTP_X_TWILIO_SIGNATURE'];
828
+
829
+       $basepath = $this->config->getSystemValue('overwrite.cli.url');
830
+       $twilrecprm = $_GET["twilrecparam"];
831
+       $twilrecurl = $basepath . "/apps/sms_relentless/api/recsmstwil?twilrecparam=" . $twilrecprm;
832
+
833
+       $ncuserfortwil = $this->service->getuserbytwilrecwhurl($twilrecurl);
834
+
835
+       $smsapicred = $this->service->getapicredentials($ncuserfortwil);
836
+       $apikeyTw = $smsapicred[15];
837
+       $authTokenTw = $smsapicred[16];
838
+       $apidelrecurltw = $smsapicred[18];
839
+
840
+       $postVars = $_POST;
841
+       ksort($postVars);
842
+
843
+       $compurlpart = '';
844
+
845
+       foreach ($postVars as $twilkey => $twilvalue) {
846
+                $compurlpart .= $twilkey . $twilvalue;
847
+       }
848
+
849
+       $compURL1 = $basepath . "/apps/sms_relentless/api/recsmstwil?twilrecparam=" . $twilrecprm . $compurlpart;
850
+       $compURL2 = $basepath . "/apps/sms_relentless/api/recsmstwil?twilrecparam=" . $twilrecprm . "&twilrecparam=" . $twilrecprm . $compurlpart;
851
+       $computedsig1 = base64_encode(hash_hmac('sha1', $compURL1, $authTokenTw, true));
852
+       $computedsig2 = base64_encode(hash_hmac('sha1', $compURL2, $authTokenTw, true));
853
+
854
+       // Verify message signature
855
+       if (strcmp($computedsig1, $twilsig) == 0 || strcmp($computedsig2, $twilsig) == 0) {
856
+
857
+           if ($ncuserfortwil) {
858
+
859
+	       $messageid = $_POST['MessageSid'];
860
+
861
+	       $messagedate = date("Y-m-d H:i:s");
862
+
863
+	       $messagefrom = $_POST['From'];
864
+
865
+	       $messageto = "Twilio: " . $_POST['To'];
866
+
867
+	       $messagetoprtw = $_POST['To'];
868
+
869
+	       $messagetotwls = "Tw: " . $_POST['To'];
870
+
871
+               // Check if the new message is a MMS
872
+               if ($_POST['NumMedia'] != 0) {
873
+
874
+                   $includedFilestw = '';
875
+                   foreach ($_POST as $twkey => $twvalue) {
876
+
877
+			if (strpos($twkey, "MediaUrl") !== false) {
878
+
879
+                            $includedFilestw .= "<div id='mmsTblUrl-" . mt_rand(1, 10000) . "' class='mmstblUrls' title='Download this file only if you trust the sender and the domain of the URL.'>" . $twvalue . "</div><br><br>";
880
+			}
881
+                   }
882
+                   $messagetexttw = $_POST['Body'] . "<br><br><br></b>--- The files included in the MMS follow. Download them only if you trust the sender and the domains of the URLs ---<br><br><br>" . $includedFilestw;
883
+                   $ismmstw = 1;
884
+
885
+               } else {
886
+                   $messagetexttw = $_POST['Body'];
887
+                   $ismmstw = 0;
888
+               }
889
+
890
+	       $recmessagearr = [$messageid, $messagedate, $messagefrom, $messageto, $messagetexttw];
891
+
892
+	       $this->service->insertrecsms($ncuserfortwil, $recmessagearr);
893
+
894
+
895
+               // Check if there is any auto-reply configured for the receiving number
896
+	       $twilgetarpl = $this->connection->prepare('SELECT `phone_number`, `days_of_week`, `daily_start`, `daily_end`, `vacation_start`, `vacation_end`, `message_text` FROM 
897
+                                                         `*PREFIX*sms_relent_autorply` WHERE `phone_number` = ?');
898
+	       $twilgetarplres = $twilgetarpl->execute([$messagetotwls]);
899
+	       $twilarpldata = $twilgetarplres->fetch();
900
+	       $twilgetarplres->closeCursor();
901
+
902
+               if ($twilarpldata) {
903
+
904
+                   $autoreplytext = $twilarpldata['message_text'];
905
+
906
+                   // Get the Display Name of the current user
907
+                   $crtuser = $this->userManager->get($ncuserfortwil);
908
+                   $displaynm = $crtuser->getDisplayName();
909
+
910
+                   // Check if the auto-reply is in 'daily mode'
911
+                   if ($twilarpldata['days_of_week']) {
912
+
913
+                       // Check if the auto-reply should be sent 
914
+                       $daysofweekarrinit = explode(",", $twilarpldata['days_of_week']);
915
+
916
+                       $daysofweekarr = [];
917
+                       $fulldays = [];
918
+                       foreach ($daysofweekarrinit as $crtday) {
919
+                           if (strpos($crtday, "full") !== false) {
920
+                               $fulldays[] = str_replace("(full)", "", $crtday);
921
+                           } else {
922
+                               $daysofweekarr[] = $crtday;
923
+                           }
924
+                       }
925
+
926
+                       $dailystart = $twilarpldata['daily_start'];
927
+                       $dailyend = $twilarpldata['daily_end'];
928
+
929
+                       $crntdate = date("Y-m-d");
930
+                       $crntDayNumber = date('N', strtotime($crntdate));
931
+
932
+                       if (in_array($crntDayNumber, $daysofweekarr)) {
933
+
934
+                           $crntimehrmin = date("H:i");
935
+                           $crntdatefmt = new DateTime($crntimehrmin);
936
+                           $startdatefmt = new DateTime($dailystart);
937
+                           $enddatefmt = new DateTime($dailyend);
938
+
939
+                           if ($crntdatefmt >= $startdatefmt && $enddatefmt > $crntdatefmt) {
940
+                               // OK
941
+                           } else {
942
+
943
+			       $datatoposttw = [["To" => $messagefrom, "From" => $messagetoprtw, "Body" => $autoreplytext, "StatusCallback" => $apidelrecurltw]];
944
+
945
+			       $postedsendingfl = implode('&', array_map('http_build_query', $datatoposttw));
946
+			       $messagedatetw = date("Y-m-d H:i:s");
947
+
948
+			       $chtw = curl_init();
949
+			       curl_setopt($chtw, CURLOPT_URL, 'https://api.twilio.com/2010-04-01/Accounts/' . $apikeyTw . '/Messages.json');
950
+			       curl_setopt($chtw, CURLOPT_TIMEOUT, 300);
951
+			       curl_setopt($chtw, CURLOPT_RETURNTRANSFER, 1);
952
+			       curl_setopt($chtw, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
953
+			       curl_setopt($chtw, CURLOPT_USERPWD, "$apikeyTw:$authTokenTw");
954
+			       curl_setopt($chtw, CURLOPT_POST, 1);
955
+			       curl_setopt($chtw, CURLOPT_POSTFIELDS, $postedsendingfl);
956
+
957
+			       $resulttw = curl_exec ($chtw);
958
+			       $statusCodetw = curl_getinfo($chtw, CURLINFO_HTTP_CODE);
959
+			       curl_close ($chtw);
960
+
961
+			       $decresulttw = json_decode($resulttw);
962
+
963
+			       if ($resulttw) {
964
+				   $messageidtw = $decresulttw->sid;
965
+			       } else { $messageidtw = ''; }
966
+
967
+			       if (in_array($statusCodetw, [200, 201, 202, 203, 204, 205, 206])) {
968
+				   $messagestatustw = 'The message has been accepted for delivery.';
969
+			       } else {
970
+				   $messagestatustw = 'An error occurred while trying to send the message.';
971
+			       }
972
+
973
+			       $messagenetworktw = '';
974
+			       $messagepricetw = '';
975
+			       $messagedeliverytw = '';
976
+
977
+			       $sentmessagearr = [$messageidtw, $messagedatetw, $messageto, $messagefrom, $messagenetworktw, $messagepricetw, $messagestatustw, $messagedeliverytw, $autoreplytext];
978
+
979
+			       $this->service->insertsentsms($ncuserfortwil, $displaynm, $sentmessagearr);
980
+                           }
981
+                       }
982
+
983
+                       if (in_array($crntDayNumber, $fulldays)) {
984
+
985
+			       $datatoposttw = [["To" => $messagefrom, "From" => $messagetoprtw, "Body" => $autoreplytext, "StatusCallback" => $apidelrecurltw]];
986
+
987
+			       $postedsendingfl = implode('&', array_map('http_build_query', $datatoposttw));
988
+			       $messagedatetw = date("Y-m-d H:i:s");
989
+
990
+			       $chtw = curl_init();
991
+			       curl_setopt($chtw, CURLOPT_URL, 'https://api.twilio.com/2010-04-01/Accounts/' . $apikeyTw . '/Messages.json');
992
+			       curl_setopt($chtw, CURLOPT_TIMEOUT, 300);
993
+			       curl_setopt($chtw, CURLOPT_RETURNTRANSFER, 1);
994
+			       curl_setopt($chtw, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
995
+			       curl_setopt($chtw, CURLOPT_USERPWD, "$apikeyTw:$authTokenTw");
996
+			       curl_setopt($chtw, CURLOPT_POST, 1);
997
+			       curl_setopt($chtw, CURLOPT_POSTFIELDS, $postedsendingfl);
998
+
999
+			       $resulttw = curl_exec ($chtw);
1000
+			       $statusCodetw = curl_getinfo($chtw, CURLINFO_HTTP_CODE);
1001
+			       curl_close ($chtw);
1002
+
1003
+			       $decresulttw = json_decode($resulttw);
1004
+
1005
+			       if ($resulttw) {
1006
+				   $messageidtw = $decresulttw->sid;
1007
+			       } else { $messageidtw = ''; }
1008
+
1009
+			       if (in_array($statusCodetw, [200, 201, 202, 203, 204, 205, 206])) {
1010
+				   $messagestatustw = 'The message has been accepted for delivery.';
1011
+			       } else {
1012
+				   $messagestatustw = 'An error occurred while trying to send the message.';
1013
+			       }
1014
+
1015
+			       $messagenetworktw = '';
1016
+			       $messagepricetw = '';
1017
+			       $messagedeliverytw = '';
1018
+
1019
+			       $sentmessagearr = [$messageidtw, $messagedatetw, $messageto, $messagefrom, $messagenetworktw, $messagepricetw, $messagestatustw, $messagedeliverytw, $autoreplytext];
1020
+
1021
+			       $this->service->insertsentsms($ncuserfortwil, $displaynm, $sentmessagearr);
1022
+                       }
1023
+
1024
+                   } elseif ($twilarpldata['vacation_start'] && $twilarpldata['vacation_end']) {
1025
+
1026
+                             $vacationstart = $twilarpldata['vacation_start'];
1027
+                             $vacationend = $twilarpldata['vacation_end'];
1028
+
1029
+                             $crntimeymd = date("Y-m-d H:i:s");
1030
+                             $crntdatevcfmt = new DateTime($crntimeymd);
1031
+                             $startdatevcfmt = new DateTime($vacationstart);
1032
+                             $enddatefvcmt = new DateTime($vacationend);
1033
+
1034
+                             if ($startdatevcfmt <= $crntdatevcfmt && $crntdatevcfmt <= $enddatefvcmt) {
1035
+
1036
+			         $datatoposttw = [["To" => $messagefrom, "From" => $messagetoprtw, "Body" => $autoreplytext, "StatusCallback" => $apidelrecurltw]];
1037
+
1038
+			         $postedsendingfl = implode('&', array_map('http_build_query', $datatoposttw));
1039
+			         $messagedatetw = date("Y-m-d H:i:s");
1040
+
1041
+			         $chtw = curl_init();
1042
+			         curl_setopt($chtw, CURLOPT_URL, 'https://api.twilio.com/2010-04-01/Accounts/' . $apikeyTw . '/Messages.json');
1043
+			         curl_setopt($chtw, CURLOPT_TIMEOUT, 300);
1044
+			         curl_setopt($chtw, CURLOPT_RETURNTRANSFER, 1);
1045
+			         curl_setopt($chtw, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
1046
+			         curl_setopt($chtw, CURLOPT_USERPWD, "$apikeyTw:$authTokenTw");
1047
+			         curl_setopt($chtw, CURLOPT_POST, 1);
1048
+			         curl_setopt($chtw, CURLOPT_POSTFIELDS, $postedsendingfl);
1049
+
1050
+			         $resulttw = curl_exec ($chtw);
1051
+			         $statusCodetw = curl_getinfo($chtw, CURLINFO_HTTP_CODE);
1052
+			         curl_close ($chtw);
1053
+
1054
+			         $decresulttw = json_decode($resulttw);
1055
+
1056
+			         if ($resulttw) {
1057
+				     $messageidtw = $decresulttw->sid;
1058
+			         } else { $messageidtw = ''; }
1059
+
1060
+			         if (in_array($statusCodetw, [200, 201, 202, 203, 204, 205, 206])) {
1061
+				     $messagestatustw = 'The message has been accepted for delivery.';
1062
+			         } else {
1063
+				     $messagestatustw = 'An error occurred while trying to send the message.';
1064
+			         }
1065
+
1066
+			         $messagenetworktw = '';
1067
+			         $messagepricetw = '';
1068
+			         $messagedeliverytw = '';
1069
+
1070
+			         $sentmessagearr = [$messageidtw, $messagedatetw, $messageto, $messagefrom, $messagenetworktw, $messagepricetw, $messagestatustw, $messagedeliverytw, $autoreplytext];
1071
+
1072
+			         $this->service->insertsentsms($ncuserfortwil, $displaynm, $sentmessagearr);
1073
+                             }
1074
+
1075
+                   }
1076
+               }
1077
+
1078
+
1079
+	       // Send notifications
1080
+               $nameofhost = $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['HTTP_HOST'];
1081
+
1082
+	       $twilnotify = $smsapicred[12];
1083
+	       $emailaddress = $smsapicred[13];
1084
+	       $includemessageinemail = $smsapicred[14];
1085
+
1086
+               if ($ismmstw == 0) { $smsormmstw = "SMS"; } else { $smsormmstw = "MMS"; }
1087
+
1088
+	       if ($twilnotify != 0 ) {
1089
+
1090
+                   $allalloweduserstw = $this->service->getallowedusers($ncuserfortwil);
1091
+
1092
+                   foreach ($allalloweduserstw as $alusrkeytw => $specusrnametw) {
1093
+
1094
+	                    $notificationtw = $this->manager->createNotification();
1095
+		            $notificationtw->setApp('sms_relentless')
1096
+			                   ->setUser($specusrnametw)
1097
+			                   ->setDateTime(new \DateTime())
1098
+			                   ->setObject('sms_relentless', '11')
1099
+			                   ->setSubject('New SMS Message');
1100
+		            $this->manager->notify($notificationtw);
1101
+                   }
1102
+	       }
1103
+
1104
+	       if ($emailaddress != '') {
1105
+
1106
+		   $gmtind = "UTC " . date('P');
1107
+		   $smsdateinit = date("Y-m-d  H:i:s");
1108
+		   $smsdate = $smsdateinit . " " . $gmtind;
1109
+
1110
+		   $subject = "New ". $smsormmstw ." message received";
1111
+
1112
+                   $messagetextnltw = str_replace("\n", "<br>", $messagetexttw);
1113
+
1114
+		   if ($includemessageinemail == 0) {
1115
+		       $message = "Hello, <br><br> You have received a new message on ".$smsdate." .<br> You can check the new message by going to 'SMS Relentless' > 'Received SMS Messages'. <br><br> Yours, <br> SMS Relentless <br> An SMS application for Nextcloud <br> Host: '".$nameofhost."' <br>";
1116
+		   } else {
1117
+		       $message = "Hello, <br><br> You have received a new message on ".$smsdate." :<br><br><br> Message ID: ".$messageid." <br> Message Date: ".$messagedate." <br> From: ".$messagefrom." <br> To: ".$messageto."<br> Message Text: <br><br><b>".$messagetextnltw."</b><br>____________<br><br> Yours, <br> SMS Relentless <br> An SMS application for Nextcloud <br> Host: '".$nameofhost."' <br>";
1118
+		   }
1119
+
1120
+                   $messagefin = chunk_split(base64_encode($message));
1121
+
1122
+		   $headers = "MIME-Version: 1.0" . "\r\n";
1123
+		   $headers .= "Content-type: text/html; charset=UTF-8" . "\r\n";
1124
+                   $headers .= "Content-Transfer-Encoding: base64" . "\r\n";
1125
+
1126
+		   // Set the email sender
1127
+		   $headers .= "From: " . $emailaddress . "\r\n";
1128
+		   $headers .= "Reply-To: " . $emailaddress . "\r\n";
1129
+
1130
+		   mail($emailaddress, $subject, $messagefin, $headers);
1131
+	       }
1132
+
1133
+               exit();
1134
+
1135
+           } else { exit(); }
1136
+
1137
+       } else { exit(); }
1138
+
1139
+    }
1140
+
1141
+
1142
+    /**
1143
+     * @NoAdminRequired
1144
+     * @NoCSRFRequired
1145
+     * @PublicPage
1146
+     */
1147
+    public function receivesmsflow() {
1148
+
1149
+       $flowdrurl = $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
1150
+
1151
+       $receivesms = file_get_contents('php://input');
1152
+       $recsmsarr = json_decode($receivesms, true);
1153
+
1154
+       $ncuserforflowrec = $this->service->getuserbyflowrecwhurl($flowdrurl);
1155
+
1156
+       if ($ncuserforflowrec != '' && $ncuserforflowrec != null && $ncuserforflowrec != 'undefined') {
1157
+
1158
+           $messageidfl = $recsmsarr['data']['id'];
1159
+
1160
+           $messagedatefl = date("Y-m-d H:i:s");
1161
+
1162
+           $messagefromflpre = $recsmsarr['data']['attributes']['from'];
1163
+           if (substr($messagefromflpre, 0, 1) == '+') { $messagefromfl = $messagefromflpre; } else { $messagefromfl = '+' . $messagefromflpre; }
1164
+
1165
+           $messagetofl = "Flowroute: +" . $recsmsarr['data']['attributes']['to'];
1166
+           $messagetoprsl = "+" . $recsmsarr['data']['attributes']['to'];
1167
+           $messagetoprfl = "Fl: +" . $recsmsarr['data']['attributes']['to'];
1168
+
1169
+           // Check if the message is a MMS
1170
+           if ($recsmsarr['data']['attributes']['is_mms'] == true) {
1171
+
1172
+               $includedFilesfl = '';
1173
+               for ($k = 0; $k < count($recsmsarr['included']); $k++) {
1174
+
1175
+                    $includedFilesfl .= "<div id='mmsTblUrl-" . mt_rand(1, 10000) . "' class='mmstblUrls' title='Download this file only if you trust the sender and the domain of the URL.'>" . $recsmsarr['included'][$k]['attributes']['url'] . "</div><br><br>";
1176
+               }
1177
+               $messagetextfl = $recsmsarr['data']['attributes']['body'] . "<br><br><br></b>--- The files included in the MMS follow. Download them only if you trust the sender and the domains of the URLs ---<br><br><br>" . $includedFilesfl;
1178
+               $ismmsfl = 1;
1179
+           } else {
1180
+               $messagetextfl = $recsmsarr['data']['attributes']['body'];
1181
+               $ismmsfl = 0;
1182
+           }
1183
+
1184
+           $recmessagearr = [$messageidfl, $messagedatefl, $messagefromfl, $messagetofl, $messagetextfl];
1185
+
1186
+           $this->service->insertrecsms($ncuserforflowrec, $recmessagearr);
1187
+
1188
+           $flsmsapicred = $this->service->getapicredentials($ncuserforflowrec);
1189
+	   $flownotify = $flsmsapicred[12];
1190
+	   $emailaddress = $flsmsapicred[13];
1191
+	   $includemessageinemail = $flsmsapicred[14];
1192
+           $flowapikey = $flsmsapicred[20];
1193
+           $flowapisecret = $flsmsapicred[21];
1194
+           $flowdelrecurl = $flsmsapicred[23];
1195
+
1196
+
1197
+           // Check if there is any auto-reply configured for the receiving number
1198
+	   $flgetarpl = $this->connection->prepare('SELECT `phone_number`, `days_of_week`, `daily_start`, `daily_end`, `vacation_start`, `vacation_end`, `message_text` FROM 
1199
+                                                   `*PREFIX*sms_relent_autorply` WHERE `phone_number` = ?');
1200
+	   $flgetarplres = $flgetarpl->execute([$messagetoprfl]);
1201
+	   $flarpldata = $flgetarplres->fetch();
1202
+	   $flgetarplres->closeCursor();
1203
+
1204
+           if ($flarpldata) {
1205
+
1206
+               $autoreplytext = $flarpldata['message_text'];
1207
+
1208
+               // Get the Display Name of the current user
1209
+               $crtuser = $this->userManager->get($ncuserforflowrec);
1210
+               $displaynm = $crtuser->getDisplayName();
1211
+
1212
+               // Check if the auto-reply is in 'daily mode'
1213
+               if ($flarpldata['days_of_week']) {
1214
+
1215
+                   // Check if the auto-reply should be sent 
1216
+                   $daysofweekarrinit = explode(",", $flarpldata['days_of_week']);
1217
+
1218
+                   $daysofweekarr = [];
1219
+                   $fulldays = [];
1220
+                   foreach ($daysofweekarrinit as $crtday) {
1221
+                       if (strpos($crtday, "full") !== false) {
1222
+                           $fulldays[] = str_replace("(full)", "", $crtday);
1223
+                       } else {
1224
+                           $daysofweekarr[] = $crtday;
1225
+                       }
1226
+                   }
1227
+
1228
+                   $dailystart = $flarpldata['daily_start'];
1229
+                   $dailyend = $flarpldata['daily_end'];
1230
+
1231
+                   $crntdate = date("Y-m-d");
1232
+                   $crntDayNumber = date('N', strtotime($crntdate));
1233
+
1234
+                   if (in_array($crntDayNumber, $daysofweekarr)) {
1235
+
1236
+                       $crntimehrmin = date("H:i");
1237
+                       $crntdatefmt = new DateTime($crntimehrmin);
1238
+                       $startdatefmt = new DateTime($dailystart);
1239
+                       $enddatefmt = new DateTime($dailyend);
1240
+
1241
+                       if ($crntdatefmt >= $startdatefmt && $enddatefmt > $crntdatefmt) {
1242
+                           // OK
1243
+                       } else {
1244
+
1245
+                           // Send the auto-reply
1246
+		           $postedparamsfl = json_encode(["to" => $messagefromfl, "from" => $messagetoprsl, "body" => $autoreplytext, "dlr_callback" => $flowdelrecurl]);
1247
+		           $messagedatefl = date("Y-m-d H:i:s");
1248
+
1249
+		           $chfl = curl_init();
1250
+		           curl_setopt($chfl, CURLOPT_URL, 'https://' . $flowapikey . ':' . $flowapisecret . '@api.flowroute.com/v2.1/messages');
1251
+		           curl_setopt($chfl, CURLOPT_HTTPHEADER, array("Content-Type: application/vnd.api+json"));
1252
+		           curl_setopt($chfl, CURLOPT_TIMEOUT, 300);
1253
+		           curl_setopt($chfl, CURLOPT_RETURNTRANSFER, 1);
1254
+		           curl_setopt($chfl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
1255
+		           curl_setopt($chfl, CURLOPT_POST, 1);
1256
+		           curl_setopt($chfl, CURLOPT_POSTFIELDS, $postedparamsfl);
1257
+		           $resultfl = curl_exec ($chfl);
1258
+		           $statusCode = curl_getinfo($chfl, CURLINFO_HTTP_CODE);
1259
+		           curl_close ($chfl);
1260
+
1261
+		           $decresultfl = json_decode($resultfl);
1262
+
1263
+		           if ($resultfl) {
1264
+		               $messageidfl = $decresultfl->data->id;
1265
+		           } else { $messageidfl = ''; }
1266
+
1267
+		           if (in_array($statusCode, [200, 201, 202, 203, 204, 205, 206])) {
1268
+		               $messagestatusfl = 'The message has been accepted for delivery.'; 
1269
+		           } else { 
1270
+		               $messagestatusfl = 'An error occurred while trying to send the message.'; 
1271
+		           }
1272
+
1273
+		           $messagefromflow = "Flowroute: " . $messagetoprsl;
1274
+                           $messagetoflow = $messagefromfl;
1275
+		           $messagenetworkfl = '';
1276
+		           $messagepricefl = '';
1277
+		           $messagedeliveryfl = '';
1278
+
1279
+		           $sentmessagearr = [$messageidfl, $messagedatefl, $messagefromflow, $messagetoflow, $messagenetworkfl, $messagepricefl, $messagestatusfl, $messagedeliveryfl, $autoreplytext];
1280
+
1281
+		           $this->service->insertsentsms($ncuserforflowrec, $displaynm, $sentmessagearr);
1282
+                       }
1283
+                   }
1284
+
1285
+                   if (in_array($crntDayNumber, $fulldays)) {
1286
+
1287
+                           // Send the auto-reply
1288
+		           $postedparamsfl = json_encode(["to" => $messagefromfl, "from" => $messagetoprsl, "body" => $autoreplytext, "dlr_callback" => $flowdelrecurl]);
1289
+		           $messagedatefl = date("Y-m-d H:i:s");
1290
+
1291
+		           $chfl = curl_init();
1292
+		           curl_setopt($chfl, CURLOPT_URL, 'https://' . $flowapikey . ':' . $flowapisecret . '@api.flowroute.com/v2.1/messages');
1293
+		           curl_setopt($chfl, CURLOPT_HTTPHEADER, array("Content-Type: application/vnd.api+json"));
1294
+		           curl_setopt($chfl, CURLOPT_TIMEOUT, 300);
1295
+		           curl_setopt($chfl, CURLOPT_RETURNTRANSFER, 1);
1296
+		           curl_setopt($chfl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
1297
+		           curl_setopt($chfl, CURLOPT_POST, 1);
1298
+		           curl_setopt($chfl, CURLOPT_POSTFIELDS, $postedparamsfl);
1299
+		           $resultfl = curl_exec ($chfl);
1300
+		           $statusCode = curl_getinfo($chfl, CURLINFO_HTTP_CODE);
1301
+		           curl_close ($chfl);
1302
+
1303
+		           $decresultfl = json_decode($resultfl);
1304
+
1305
+		           if ($resultfl) {
1306
+		               $messageidfl = $decresultfl->data->id;
1307
+		           } else { $messageidfl = ''; }
1308
+
1309
+		           if (in_array($statusCode, [200, 201, 202, 203, 204, 205, 206])) {
1310
+		               $messagestatusfl = 'The message has been accepted for delivery.'; 
1311
+		           } else { 
1312
+		               $messagestatusfl = 'An error occurred while trying to send the message.'; 
1313
+		           }
1314
+
1315
+		           $messagefromflow = "Flowroute: " . $messagetoprsl;
1316
+                           $messagetoflow = $messagefromfl;
1317
+		           $messagenetworkfl = '';
1318
+		           $messagepricefl = '';
1319
+		           $messagedeliveryfl = '';
1320
+
1321
+		           $sentmessagearr = [$messageidfl, $messagedatefl, $messagefromflow, $messagetoflow, $messagenetworkfl, $messagepricefl, $messagestatusfl, $messagedeliveryfl, $autoreplytext];
1322
+
1323
+		           $this->service->insertsentsms($ncuserforflowrec, $displaynm, $sentmessagearr);
1324
+                   }
1325
+
1326
+               } elseif ($flarpldata['vacation_start'] && $flarpldata['vacation_end']) {
1327
+
1328
+                         $vacationstart = $flarpldata['vacation_start'];
1329
+                         $vacationend = $flarpldata['vacation_end'];
1330
+
1331
+                         $crntimeymd = date("Y-m-d H:i:s");
1332
+                         $crntdatevcfmt = new DateTime($crntimeymd);
1333
+                         $startdatevcfmt = new DateTime($vacationstart);
1334
+                         $enddatefvcmt = new DateTime($vacationend);
1335
+
1336
+                         if ($startdatevcfmt <= $crntdatevcfmt && $crntdatevcfmt <= $enddatefvcmt) {
1337
+
1338
+		             $postedparamsfl = json_encode(["to" => $messagefromfl, "from" => $messagetoprsl, "body" => $autoreplytext, "dlr_callback" => $flowdelrecurl]);
1339
+		             $messagedatefl = date("Y-m-d H:i:s");
1340
+
1341
+		             $chfl = curl_init();
1342
+		             curl_setopt($chfl, CURLOPT_URL, 'https://' . $flowapikey . ':' . $flowapisecret . '@api.flowroute.com/v2.1/messages');
1343
+		             curl_setopt($chfl, CURLOPT_HTTPHEADER, array("Content-Type: application/vnd.api+json"));
1344
+		             curl_setopt($chfl, CURLOPT_TIMEOUT, 300);
1345
+		             curl_setopt($chfl, CURLOPT_RETURNTRANSFER, 1);
1346
+		             curl_setopt($chfl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
1347
+		             curl_setopt($chfl, CURLOPT_POST, 1);
1348
+		             curl_setopt($chfl, CURLOPT_POSTFIELDS, $postedparamsfl);
1349
+		             $resultfl = curl_exec ($chfl);
1350
+		             $statusCode = curl_getinfo($chfl, CURLINFO_HTTP_CODE);
1351
+		             curl_close ($chfl);
1352
+
1353
+		             $decresultfl = json_decode($resultfl);
1354
+
1355
+		             if ($resultfl) {
1356
+		                 $messageidfl = $decresultfl->data->id;
1357
+		             } else { $messageidfl = ''; }
1358
+
1359
+		             if (in_array($statusCode, [200, 201, 202, 203, 204, 205, 206])) {
1360
+		                 $messagestatusfl = 'The message has been accepted for delivery.'; 
1361
+		             } else { 
1362
+		                 $messagestatusfl = 'An error occurred while trying to send the message.'; 
1363
+		             }
1364
+
1365
+		             $messagefromflow = "Flowroute: " . $messagetoprsl;
1366
+                             $messagetoflow = $messagefromfl;
1367
+		             $messagenetworkfl = '';
1368
+		             $messagepricefl = '';
1369
+		             $messagedeliveryfl = '';
1370
+
1371
+		             $sentmessagearr = [$messageidfl, $messagedatefl, $messagefromflow, $messagetoflow, $messagenetworkfl, $messagepricefl, $messagestatusfl, $messagedeliveryfl, $autoreplytext];
1372
+
1373
+		             $this->service->insertsentsms($ncuserforflowrec, $displaynm, $sentmessagearr);
1374
+                         }
1375
+
1376
+               }
1377
+           }
1378
+
1379
+
1380
+	   // Send notifications
1381
+           $nameofhost = $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['HTTP_HOST'];
1382
+
1383
+           if ($ismmsfl == 0) { $smsormmsfl = "SMS"; } else { $smsormmsfl = "MMS"; }
1384
+
1385
+	   if ($flownotify != 0 ) {
1386
+
1387
+               $allallowedusersfl = $this->service->getallowedusers($ncuserforflowrec);
1388
+
1389
+               foreach ($allallowedusersfl as $alusrkeyfl => $specusrnamefl) {
1390
+
1391
+	                $notificationfl = $this->manager->createNotification();
1392
+	                $notificationfl->setApp('sms_relentless')
1393
+		                       ->setUser($specusrnamefl)
1394
+			               ->setDateTime(new \DateTime())
1395
+			               ->setObject('sms_relentless', '11')
1396
+			               ->setSubject('New SMS Message');
1397
+	                $this->manager->notify($notificationfl);
1398
+               }
1399
+	   }
1400
+
1401
+	   if ($emailaddress != '') {
1402
+
1403
+	       $gmtind = "UTC " . date('P');
1404
+	       $smsdateinit = date("Y-m-d  H:i:s");
1405
+	       $smsdate = $smsdateinit . " " . $gmtind;
1406
+
1407
+	       $subject = "New ". $smsormmsfl ." message received";
1408
+
1409
+               $messagetextnlfl = str_replace("\n", "<br>", $messagetextfl);
1410
+
1411
+	       if ($includemessageinemail == 0) {
1412
+	           $message = "Hello, <br><br> You have received a new message on ".$smsdate." .<br> You can check the new message by going to 'SMS Relentless' > 'Received SMS Messages'. <br><br> Yours, <br> SMS Relentless <br> An SMS application for Nextcloud <br> Host: '".$nameofhost."' <br>";
1413
+	       } else {
1414
+	           $message = "Hello, <br><br> You have received a new message on ".$smsdate." :<br><br><br> Message ID: ".$messageidfl." <br> Message Date: ".$messagedatefl." <br> From: ".$messagefromfl." <br> To: ".$messagetofl."<br> Message Text: <br><br><b>".$messagetextnlfl."</b><br>____________<br><br> Yours, <br> SMS Relentless <br> An SMS application for Nextcloud <br> Host: '".$nameofhost."' <br>";
1415
+	       }
1416
+
1417
+               $messagefin = chunk_split(base64_encode($message));
1418
+
1419
+	       $headers = "MIME-Version: 1.0" . "\r\n";
1420
+	       $headers .= "Content-type: text/html; charset=UTF-8" . "\r\n";
1421
+               $headers .= "Content-Transfer-Encoding: base64" . "\r\n";
1422
+
1423
+	       // Set the email sender
1424
+	       $headers .= "From: " . $emailaddress . "\r\n";
1425
+	       $headers .= "Reply-To: " . $emailaddress . "\r\n";
1426
+
1427
+	       mail($emailaddress, $subject, $messagefin, $headers);
1428
+	   }
1429
+
1430
+           return http_response_code(200);
1431
+
1432
+       } else { return "access denied"; }
1433
+
1434
+    }
1435
+}
0 1436
new file mode 100644
... ...
@@ -0,0 +1,258 @@
1
+<?php
2
+/**
3
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
4
+ *
5
+ * @author Double Bastion LLC
6
+ *
7
+ * @license GNU AGPL version 3 or any later version
8
+ *
9
+ * This program is free software; you can redistribute it and/or
10
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
11
+ * License as published by the Free Software Foundation; either
12
+ * version 3 of the License, or any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
18
+ *
19
+ * You should have received a copy of the GNU Affero General Public
20
+ * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ */
23
+
24
+declare(strict_types=1);
25
+
26
+script('sms_relentless', 'sendsms');
27
+script('sms_relentless', 'showsmstables');
28
+script('sms_relentless', 'deleteoldsms');
29
+style('sms_relentless', 'style');
30
+
31
+?>
32
+
33
+
34
+<div id="smsrelentless_vbar">
35
+
36
+       <div id="currentbaldiv" class="cllridcls">
37
+            <div id="showsum">Balance:</div>
38
+            <select id="smsprovider" class="optselectprov">
39
+                    <option value="" selected="selected" disabled hidden class="selectsmsprov">see balance</option>
40
+            </select>
41
+            <span id="currentbalance"></span>
42
+            <div class="tooltipbalanceid">
43
+                <div id="infobalance">i</div>
44
+                <span class="balancetooltip">To see the current balance, select a provider from the drop-down list. The balance will be rounded to 3 decimal places and the
45
+                      currency will be that of the respective account. You can see Telnyx prices <a href="https://telnyx.com/pricing/messaging" style="color:#1b60ba"
46
+                      target="_blank" rel="noreferrer noopener">here</a>, Plivo prices <a href="https://www.plivo.com/sms/pricing/us/" style="color:#1b60ba" target="_blank"
47
+                      rel="noreferrer noopener">here</a>, Twilio prices <a href="https://www.twilio.com/sms/pricing/ro" style="color:#1b60ba" target="_blank" 
48
+                      rel="noreferrer noopener">here</a> and Flowroute prices <a href="https://flowroute.com/pricing-details/"  style="color:#1b60ba" target="_blank" 
49
+                      rel="noreferrer noopener">here</a>.
50
+                </span>
51
+            </div>
52
+       </div>
53
+
54
+       <div id="smsnumbersdiv" class="cllridcls">
55
+            <div id="pickid">Set ID:</div>
56
+            <select id="currentsmsnmbrs" class="optselectsmsnb">
57
+                  <option value='' class="optselectsmsnb" selected disabled hidden>getting numbers ...</option>
58
+            </select>
59
+            <div class="tooltipsetid">
60
+                <div id="infotipid">i</div>
61
+                <div id="setcalleridtp">
62
+                    <span class="calleridtooltip">If you see more than one phone number in the drop-down list, select a number or an alphanumeric ID as Sender ID. The Sender ID is 
63
+                        the 'From' field that is displayed on the phone of the receivers, when they receive your message. It can be a phone number or an alphanumeric sequence. To 
64
+                        choose an alphanumeric sequence as Sender ID, it must be first saved in 'Administration settings' > 'Administration' > 'SMS Relentless' > 'Telnyx/Plivo/Twilio 
65
+                        alphanumeric Sender ID' field. 
66
+                        <font style="color:#aa2e4b">There are local restrictions based on market regulations or carrier-specific, that can prevent SMS
67
+                        messages to reach their destination because of their Sender ID.</font> For example, in USA and Canada, incoming SMS messages with alphanumeric Sender IDs
68
+                        are not accepted. All messages to phone numbers in USA and Canada must have a phone number as Sender ID. Before sending SMS messages to a country,
69
+                        it's recommended to read about the <a href="https://support.twilio.com/hc/en-us/articles/223133767-International-support-for-Alphanumeric-Sender-ID" 
70
+                        style="color:#1b60ba" target="_blank" rel="noreferrer noopener">Sender ID restrictions</a> specific to that country. If you use alphanumeric Sender IDs, 
71
+                        there are even <a href="https://support.plivo.com/hc/en-us/articles/360048268071" style="color:#1b60ba" target="_blank" rel="noreferrer noopener">countries</a> 
72
+                        that require that you preregister your Sender ID. If you use Telnyx, to be able to select a phone number as Sender ID, you must have a 'Messaging Profile' 
73
+                        associated with that phone number.
74
+                    </span>
75
+                </div>
76
+            </div>
77
+       </div>
78
+
79
+       <div  class="srheader">
80
+            Enter the recipient's number as:
81
+       </div>
82
+       <div class="smsnbformat">
83
+            <a href="https://en.wikipedia.org/wiki/List_of_country_calling_codes#Alphabetical_order" style="color:#1b60ba"
84
+               target="_blank" rel="noreferrer noopener">CountryCallingCode</a><font style="color:#aa2e4b">PhoneNumber</font>
85
+       </div>
86
+       <div class="fortooltip"><font class="texttooltip">i</font>
87
+         <div id="tonmbrformat">
88
+            <span class="fortooltiptext">
89
+               For example, to send an SMS to the German number 1212121212, enter 491212121212, where 49 is the country calling code of Germany. The
90
+               <a href="https://en.wikipedia.org/wiki/List_of_country_calling_codes#Alphabetical_order"
91
+               style="color:#1b60ba" target="_blank" rel="noreferrer noopener">country calling code</a> must be always included, even if the SMS is sent locally. You don't need to add 
92
+               the '+' sign or '00' in front of the number. <font style="color:#aa2e4b">In different countries there are market regulations and restrictions that
93
+               can prevent certain SMS messages to reach their destination (such as when the text contains repetitive URLs) or can make them illegal (such as when sending messages that 
94
+               advertise money-lending services).</font> Before sending SMS messages to a country, it's recommended to read about the 
95
+               <a href="https://support.twilio.com/hc/en-us/articles/223133767-International-support-for-Alphanumeric-Sender-ID" style="color:#1b60ba" target="_blank" rel="noreferrer noopener">
96
+               restrictions</a> that apply to that country. To send the same message to multiple recipients, you can enter their phone numbers one after the other separated by comma, 
97
+               in the phone number field. If you want to send the same message to more than 10 phone numbers at once, it's recommended to upload a txt/csv file containing the recipients' 
98
+               phone numbers, by using the option from below. If you check that checkbox, you will be able to upload a file containing phone numbers.
99
+            </span>
100
+         </div>
101
+       </div>
102
+
103
+   <div id="smstodiv">
104
+       <input type="text" id="smsto" name="smsto" />
105
+   </div>
106
+
107
+   <div id="sendtomultiple">Upload file with phone numbers:</div><input type="checkbox" id="tomultchckbx" />
108
+
109
+   <div id="multiplerecivers">
110
+       <div class="fortooltipsec"><font class="texttooltip">i</font>
111
+          <div id="uploadfileinfo">
112
+          <span class="fortooltiptextsec">To send an SMS to a large number of recipients, upload a file containing the recipients' phone numbers.
113
+              Supported formats are txt and csv. The phone numbers can be separated by comma (,) , semicolon (;) , vertical bar (|) , or by new line (by listing one number per line).
114
+              The duplicate phone numbers will be automatically removed. If the numbers contain dots, hyphens or plus signs, they will be also automatically removed.
115
+              After uploading the file, enter the time interval in milliseconds (1 second has 1000 milliseconds) between two consecutive message sending requests,
116
+              in the text box from below. It's important to note that SMS providers impose restrictions upon the message sending rate and there are also country specific and 
117
+              carrier specific restrictions regarding the frequency of outgoing/incoming messages. For Telnyx, the allowed SMS sending rate for US or 
118
+              Canadian long code numbers (10 digit numbers) is 
119
+              <a href="https://support.telnyx.com/en/articles/96934-throughput-limit-for-outbound-long-code-sms" style="color:#1b60ba" target="_blank" rel="noreferrer noopener">1 
120
+              message per 6 seconds per number</a> . If you need a higher throughput per number, you can rent toll-free numbers (with sending rates of 20 messages per second per number)
121
+              or short codes (with sending rates of 1000 messages per second per number). For Plivo, if you have rented a US or Canadian 10 digit number, you can send SMS messages at 
122
+              a rate of <a href="https://support.plivo.com/hc/en-us/articles/360041314852-What-s-the-outgoing-rate-limit-for-SMS-messages-" style="color:#1b60ba" target="_blank" 
123
+              rel="noreferrer noopener">1 message per 4 seconds per number</a>. If you need a higher throughput, you can rent toll-free numbers (with rates of 10 messages per second per 
124
+              number) or short codes (with rates of 100 messages per second per number). For Twilio, a US or Canadian 10 digit number can send 
125
+              <a href="https://support.twilio.com/hc/en-us/articles/115002943027-Understanding-Twilio-Rate-Limits-and-Message-Queues" style="color:#1b60ba" target="_blank"
126
+              rel="noreferrer noopener">1 message per second</a>. If you need a higher throughput, you can send 3 messages per second per number with toll-free numbers, or 100 messages 
127
+              per second per number with short codes. For Flowroute, using a US or Canadian 10 digit number or toll-free number, you can send 
128
+              <a href="https://developer.flowroute.com/docs/flowroute-messaging-rate-limits/" style="color:#1b60ba" target="_blank" rel="noreferrer noopener">4 messages per second
129
+              per account</a> (accross all phone numbers). These sending rate limits don't necessarily apply when using non-US and non-Canadian phone numbers to send SMS messages to 
130
+              non-US and non-Canadian numbers. Also, in general, custom sending rates may be obtained by contacting Telnyx/Plivo/Twilio/Flowroute support. Starting from 2021, if you 
131
+              want to send A2P (<a href="https://www.plivo.com/docs/sms/concepts/terminology" style="color:#1b60ba" target="_blank" rel="noreferrer noopener">Application-To-Person</a>) 
132
+              SMS messages to phone numbers or from phone numbers belonging to certain carriers in the US, such as AT&T and T-Mobile, you will need to register your brand and your 
133
+              campaign via
134
+              <a href="https://support.telnyx.com/en/articles/3679260-frequently-asked-questions-about-10dlc" style="color:#1b60ba" target="_blank" rel="noreferrer noopener">Telnyx</a>/
135
+              <a href="https://support.plivo.com/hc/en-us/articles/4682352262809-How-to-Register-10DLC-Brands-and-Campaigns" style="color:#1b60ba" target="_blank" rel="noreferrer noopener">Plivo</a>/
136
+              <a href="https://support.twilio.com/hc/en-us/articles/1260801864489-How-do-I-register-to-use-A2P-10DLC-messaging-" style="color:#1b60ba" target="_blank" rel="noreferrer noopener">Twilio</a>/ 
137
+              <a href="https://support.flowroute.com/265034-Messaging-Guidelines---10DLC-Carrier-Fees-and-Registration" style="color:#1b60ba" target="_blank" rel="noreferrer noopener">Flowroute</a>. 
138
+              Registered campaigns also benefit from a much higher message sending rate, which differs from one use case to another. If you leave the text box from below empty, the 
139
+              application will try to send all the messages with the default sending rate of 1 message per second. If you send messages from a US or Canadian long code number and you 
140
+              surpass the limit of 1 message per 6 seconds for Telnyx or 1 message per 4 seconds for Plivo, or 1 message per 1 second for Twilio, or 4 messages per second for Flowroute,
141
+              Telnyx/Plivo/Twilio/Flowroute respectively will queue your messages and will send them at the specified rates in the order they were received. However, if you send a large 
142
+              number of messages, when the queue becomes full, new messages can be rejected and lost, therefore, to prevent message loss, it's recommended to set the right sending rate 
143
+              in the text box from below.
144
+          </span>
145
+          </div>
146
+       </div>
147
+       <div id="multsetrows">
148
+          <div id="fileuploadednm" class="fileuploadstl"></div>
149
+          <div class="uploadfiledv">
150
+              <form class="uploadflbt"  enctype="multipart/form-data" >
151
+                  <label for="uploadfileforsms" class="pfprompt"><span id="uploadflprmpt"><?php p($l->t('Upload the file ')) ?></span></label>
152
+                  <input id="uploadfileforsms" class="fileupload" name="uploadedtosms" type="file" />
153
+                  <label for="uploadfileforsms" class="button icon-upload svg" id="uploadfileforsms" </label>
154
+              </form>
155
+          </div>
156
+          <span id="sms_upload_msg"></span>
157
+          <span class="entertime">Enter the time interval between consecutive messages, in milliseconds:</span><input type="text"
158
+          id="multsmsinterval" placeholder="Eg.: 1000" />
159
+       </div>
160
+   </div>
161
+
162
+   <div id="entermessage">Enter message:</div>
163
+   <textarea id="smstext"  name="smstext" placeholder="Enter a message here, then press 'Send SMS'."></textarea>
164
+
165
+   <div class="maxmessagelength"><font class="texttooltip">i</font>
166
+       <div id="maxlengthinfo">
167
+           <span class="maxlengthtooltip">
168
+                The maximum length allowed for SMS messages using the standard GSM 03.38 encoding is 160 characters (fewer in some countries),
169
+                while for Unicode encoded messages is 70 characters. If you send an SMS message longer than 160 characters for standard GSM encoding or longer than 70 
170
+                characters for Unicode encoding, the message will be sent as a 'concatenated' message: it will be split into smaller pieces by Telnyx/Plivo/Twilio/Flowroute 
171
+                and it will be reassembled as one message at its destination. However, you will be charged for each piece as for a separate SMS. Thus, if the initial message 
172
+                is 385 GSM encoded characters in length, you will be charged for 3 SMS messages. The maximum number of characters per concatenated message is slightly smaller 
173
+                than the standard 160 for GSM encoded characters and 70 for Unicode, due to the inclusion of concatenation headers. Some symbols in the GSM 7-bit alphabet 
174
+                table (like "£" or "€") will count as two characters, therefore, not always 160 characters will fit into a single GSM encoded SMS message. The maximum length 
175
+                for MMS messages is different. MMS messages can be up to 1600 characters long.
176
+           </span>
177
+       </div>
178
+   </div>
179
+
180
+   <div id="char_count"><span id="countchnb"></span><span> characters</span></div>
181
+   <div id="mtextSize"><span id="textsizeinkb"></span><span> KB</span></div>
182
+
183
+   <div id="sendmediafl">
184
+        <span>Select file(s) to send as MMS:</span><input type="checkbox" id="mediafilechckbx" />
185
+   </div>
186
+
187
+   <div id="upmediafiles">
188
+
189
+       <div class="fortooltipfourth"><div id="infotipmms">i</div>
190
+          <div id="uploadmmfileinfo">
191
+             <span id="tooltiptextfourth">To send an MMS message, you can upload media files or pick them from Nextcloud.</span>
192
+          </div>
193
+       </div>
194
+
195
+       <div class="srheaderch">Choose the file(s) that you want to send as MMS:</div>
196
+
197
+          <div id="filestotsize">Total files size:<span id="filessizetext"></span> KB</div>
198
+
199
+          <div id="mmsfileuploadednm" class="fileuploadstl"></div>
200
+          <div class="uploadfiledv">
201
+               <form class="uploadflbt"  enctype="multipart/form-data" >
202
+                     <span id="uploadFile">Upload file</span>
203
+                     <input id="uploadfileformms" class="fileupload" name="uploadedtomms[]" type="file" multiple />
204
+                     <label for="uploadfileformms" class="button icon-upload svg" id="uploadfileformms" </label>
205
+               </form>
206
+          </div>
207
+
208
+       <span id="pf_upload_msg"></span>
209
+
210
+       <div id="filespickednc" class="filesfromnc"></div>
211
+  
212
+       <div id="pickfilesNext"><span id="pickFromNext">Pick from Nextcloud</span><button id="choosefilen"></button></div>
213
+
214
+       <span id="pf_choose_msg"></span>
215
+
216
+       <p class="pickedflnm"></p>
217
+
218
+   </div>
219
+
220
+   <input type="submit" id="submitsms" value="Send SMS" />
221
+   <span id="sms_submit_msg"></span>
222
+
223
+   <div id="dirbuttons">
224
+       <button id="receivedsmstableshow" class="opensmsfolder">Received Messages</button>
225
+       <button id="sentsmstableshow" class="opensmsfolder">Sent Messages</button>
226
+       <button id="groupedtableshow" class="opensmsfolder">Messages Grouped by Number</button>
227
+   </div>
228
+
229
+
230
+   <div id="deleteoldmssgs">Remove old messages:</div><input type="checkbox" id="deleteoldchckbox" />
231
+
232
+   <div id="deleteoldsms">
233
+       <div class="fortooltiptert"><font class="texttooltip">i</font>
234
+          <div id="deleteoldinfo">
235
+             <span class="fortooltiptexttert">Since this application records all incoming and outgoing SMS messages, in time, its database can become very large, which
236
+                 can slow it down. To avoid having to work with extremely large tables, it's recommended that you delete from time to time all the sent/received messages older than 
237
+                 a specified number of days (for example 180 days). All the messages deleted using the options from below will be preserved, because they will be saved as csv files
238
+                 before being deleted from the database. The csv files will contain all the data of the deleted messages, they will bear the date of the removal and they will be
239
+                 stored in the 'SMS_Relentless/ removed_sent_messages' and 'SMS_Relentless/ removed_received_messages' directories. Being structured as 'csv',
240
+                 the data can then be viewed and analyzed with other applications to create statistics, graphs etc. Therefore, as long as the 'csv' files are preserved,
241
+                 the deleted messages are not lost. (Please note that this 'save before delete' mechanism is not used when messages are deleted by selecting their respective table 
242
+                 rows and clicking on the 'Permanently delete' upper-left corner icon).
243
+          </span>
244
+          </div>
245
+       </div>
246
+       <div id="delsetrows">
247
+          <span class="deletesmsolder">Delete from the database all the <font style="color: #ba3555;">received</font> messages that are older than <input type="text" id="oldrecSmsInterval" title="Enter the number of days." /> days.</span>
248
+          <input type="submit" id="delOldrecSMS" value="Delete received messages" />
249
+          <span id="sms_deleterecmsg"></span><br><br>
250
+
251
+          <span class="deletesmsolder">Delete from the database all the <font style="color: #ba3555;">sent</font> messages that are older than </span><input type="text" id="oldsentSmsInterval" title="Enter the number of days."/>
252
+          <span class="deletesmsolder"> days.</span>
253
+          <input type="submit" id="delOldsentSMS" value="Delete sent messages" />
254
+          <span id="sms_deletesentmsg"></span>
255
+       </div>
256
+   </div>
257
+
258
+</div>