Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
514 commits
Select commit Hold shift + click to select a range
d021358
make string values longer in KV tables
nadirhamid Jul 5, 2024
7120602
add more messages to script
nadirhamid Jul 5, 2024
5bcca5e
make KV columns even larger
nadirhamid Jul 5, 2024
e10aae5
fix issues with 2fa settings API
nadirhamid Jul 29, 2024
fea8198
fix 2FA API
nadirhamid Jul 29, 2024
f438f96
fix issue with register credits
nadirhamid Aug 19, 2024
f5bb97f
further integrate APIs for registration questionnaire
nadirhamid Sep 19, 2024
996f0e7
add feed API
nadirhamid Oct 25, 2024
6c1223f
add new API routes for workspace roles
nadirhamid Nov 5, 2024
c547c7f
KV database tables in get all settings APIs
nadirhamid Nov 25, 2024
b76e75a
shorten payyment descriptors
nadirhamid Nov 28, 2024
ceccbaf
use new stripe API in CardController.php
nadirhamid Dec 18, 2024
b2b6602
add readable dates to recordings list endpoint
nadirhamid Dec 23, 2024
c45bfe4
show friendly dates in all support tickets
nadirhamid Dec 23, 2024
7e1f034
fix issues in ApiCredentialKVStore
nadirhamid Dec 24, 2024
b14032f
add option to auto save editor flows
nadirhamid Dec 31, 2024
aba9807
integrate paypal billing agreements
nadirhamid Jan 8, 2025
dfa3f0f
add option to filter calls by extensions in calls listing API
nadirhamid Jan 14, 2025
64bfc54
add endpoint to get SIP credentials for workspace user
nadirhamid Jan 16, 2025
5ea6afa
fix some issues within getSIPCredentials endpoint
nadirhamid Jan 16, 2025
2b58449
add more attributes to SIP credentials endpoint
nadirhamid Jan 22, 2025
89f831e
columns to support websocket connections
nadirhamid Jan 22, 2025
f941896
update translation files
nadirhamid Jan 22, 2025
f329d7b
fix issues in user CRUD workflow and patch some APIs
nadirhamid Jan 28, 2025
1ed6855
add assets base URL to settings API
nadirhamid Jan 31, 2025
766db5f
improve formatting for some API variables
nadirhamid Feb 2, 2025
73347cf
improve formatting in call durations
nadirhamid Feb 2, 2025
c679251
dont include all data input for update queries in the update workspac…
nadirhamid Feb 6, 2025
7119282
add apn_token to workspace user record
nadirhamid Feb 7, 2025
1a5ab95
integrate APN tokens with database and update call workflow
nadirhamid Feb 10, 2025
720f341
send welcome email when user registers
nadirhamid Mar 13, 2025
ed8336c
do not query all flow columns in flow listing API
nadirhamid Mar 13, 2025
8e3308d
add user details to support ticket reply data
nadirhamid Mar 18, 2025
c509901
add category name field to support ticket API
nadirhamid Mar 28, 2025
ecc7168
fix issue with deleting media server in router edit page
nadirhamid Apr 21, 2025
44f88e2
switch to native PHP yaml extension
nadirhamid May 15, 2025
3d05427
fix some issues with composer packages
Jun 18, 2025
293552c
add modules to vendoring folder
nadirhamid Sep 17, 2025
329db74
add new field in flows table to track intent of newly created flows
nadirhamid Oct 29, 2025
f318582
add creation intent to DID API responses
nadirhamid Oct 29, 2025
dc82139
unset flow_id when assigning number to trunk
nadirhamid Jan 29, 2026
f46e993
integrate CRUD rtpengine module
nadirhamid Feb 4, 2026
d8ddbb8
add websocket_settings to get SIP credentials API
nadirhamid Feb 5, 2026
7013cbc
add subscriptions table for reliable billing and improve DID number API
nadirhamid Feb 20, 2026
b5e167d
fix some DB fields and integrate subscriptions table
nadirhamid Feb 20, 2026
5896f7b
add workspace_id to billing tables
nadirhamid Feb 20, 2026
48aa080
demo code to add a subscription
nadirhamid Feb 20, 2026
60a9678
fix issues with billing code and add confirmation num to invoice records
nadirhamid Feb 20, 2026
734dc7d
billing enhancements
nadirhamid Feb 25, 2026
70b8e52
refactor class for consuming rabbitmq events
nadirhamid Feb 25, 2026
44aa9e2
process rabbitmq events to send payment receipts
nadirhamid Feb 28, 2026
0f8a56e
add code for estimated charges PDF export
nadirhamid Feb 28, 2026
ceaeecf
improve design in PDF invoices
nadirhamid Feb 28, 2026
8ab9306
improve subscriptions billing logic and add rabbitmq helper classes
nadirhamid Mar 1, 2026
ba4bb26
code to show prorated amounts in getServicePlans API call
nadirhamid Mar 1, 2026
db41c08
improve billing helper code
nadirhamid Mar 2, 2026
de73d12
use new database fields for service plan pricing
nadirhamid Mar 2, 2026
8369346
Design changes on installation wizard
gaurav-vaghela Mar 5, 2026
d2ed23b
Merge pull request #15 from Lineblocs/gaurav
nadirhamid Mar 5, 2026
fced673
MSAT-200 - setup redesign and make sure it should initialize only once
gaurav-vaghela Mar 8, 2026
c5115f8
MSAT-192
gaurav-vaghela Mar 8, 2026
d280828
Update pricing.blade.php
gaurav-vaghela Mar 8, 2026
9d77f84
Merge pull request #16 from Lineblocs/gaurav
nadirhamid Mar 9, 2026
e551815
404 on compeltion
gaurav-vaghela Mar 13, 2026
cb46a6d
only check for conflicting extension username when username in reques…
nadirhamid Mar 14, 2026
e470316
pricing page changes
gaurav-vaghela Mar 16, 2026
18ef850
Merge pull request #17 from Lineblocs/gaurav
nadirhamid Mar 16, 2026
759ce50
rename some data fields in service plan seeder
nadirhamid Mar 16, 2026
ce64a90
rework billing logic in registration controller
nadirhamid Mar 16, 2026
3b73f5e
Order by rank and order by alphabetic order
gaurav-vaghela Mar 19, 2026
7873102
getServicePlans API added order by
gaurav-vaghela Mar 19, 2026
eb317ce
Added a query string param for billing period
gaurav-vaghela Mar 19, 2026
fb7f9fb
login function reverted
gaurav-vaghela Mar 20, 2026
8b5f03f
Fixed the function name on pricing plan
gaurav-vaghela Mar 20, 2026
d227437
New API sendOneTimeLoginLink
gaurav-vaghela Mar 20, 2026
98fd293
Merge pull request #18 from Lineblocs/gaurav
nadirhamid Mar 23, 2026
bbb4875
add TCP port to SIP credentials API endpoint
nadirhamid Mar 23, 2026
4a68bca
fix code for generating invoices
nadirhamid Mar 23, 2026
529a5b4
fix get service plans API
nadirhamid Mar 24, 2026
51a89b0
add refund button to workspaces module in admin
nadirhamid Mar 25, 2026
8a8b6f6
update invoice status after refund is processed
nadirhamid Mar 25, 2026
fec1ec2
fix code for admin refund processing
nadirhamid Mar 25, 2026
160b708
call quality survey
gaurav-vaghela Mar 27, 2026
5be9565
survey svg files for blade template
gaurav-vaghela Mar 27, 2026
3ea6a1e
Merge pull request #20 from Lineblocs/gaurav
nadirhamid Mar 27, 2026
2dd917d
Finalize Billing & Invoicing System
gaurav-vaghela Mar 31, 2026
0be4761
Changed the queue title and change the ternary operator
gaurav-vaghela Mar 31, 2026
d21ca4f
Changed the line items for invoices
gaurav-vaghela Mar 31, 2026
2c227f5
Merge pull request #22 from Lineblocs/master
nadirhamid Mar 31, 2026
1540c12
improve some code and add new setting for billing
nadirhamid Mar 31, 2026
063cfc1
remove monthly invoice HTTP route
nadirhamid Mar 31, 2026
34b73f8
Merge pull request #21 from Lineblocs/gaurav
nadirhamid Mar 31, 2026
6addddf
use integer data type for all monetary value columns for consistency
nadirhamid Apr 1, 2026
465a75b
add deduplication key to billing tables
nadirhamid Apr 1, 2026
ded5f97
update deduplication migration file name
nadirhamid Apr 2, 2026
1af1ffe
Merge pull request #23 from Lineblocs/gaurav
nadirhamid Apr 2, 2026
335fa3b
handle invoice message where invoice is pre generated
nadirhamid Apr 6, 2026
b88cd04
Merge pull request #24 from Lineblocs/invoice-work
nadirhamid Apr 6, 2026
fe93e51
use subscription data table in invoicing code
nadirhamid Apr 6, 2026
9ad7aa0
Add login button
gaurav-vaghela Apr 7, 2026
ffe0838
code to handle email logging and improve email helper class
nadirhamid Apr 8, 2026
5ca9d16
Merge pull request #26 from Lineblocs/invoice-work
nadirhamid Apr 8, 2026
78f4301
Merge pull request #25 from Lineblocs/gaurav
nadirhamid Apr 8, 2026
7449d54
add new SMTP transport options to dropdown
nadirhamid Apr 8, 2026
00708a1
support sending emails with phpmailer.
nadirhamid Apr 8, 2026
0cc8538
Add section on homepage with testimonials
gaurav-vaghela Apr 9, 2026
aa4cd90
Merge pull request #27 from Lineblocs/gaurav
nadirhamid Apr 9, 2026
ec28866
add membership fees to billing APIs
nadirhamid Apr 10, 2026
cb3f086
billing work and some bug fixes
nadirhamid Apr 14, 2026
0b9640c
add cloudflare turnstile keys to API credentials page.
nadirhamid Apr 15, 2026
67ca5b3
improve code for checking if custom logos are avaialble.
nadirhamid Apr 17, 2026
a679de8
Fix layout issues of all email templates
gaurav-vaghela Apr 17, 2026
ad3be88
Merge pull request #28 from Lineblocs/feature/email-templates
nadirhamid Apr 17, 2026
c284cbf
add API route to verify cloudflare turnstile
nadirhamid Apr 17, 2026
a88eb39
Create paypal billing agreement
gaurav-vaghela Apr 21, 2026
241a0de
add some enums and wip on competitor comparison pages.
nadirhamid Apr 21, 2026
f68c257
use new enum values across the board.
nadirhamid Apr 21, 2026
fc772b6
use new enums for DID numbers resource.
nadirhamid Apr 21, 2026
15c199a
add support tickets enum class
nadirhamid Apr 21, 2026
6d07d8b
add billing debit status enum class
nadirhamid Apr 22, 2026
1684b83
use clearer enum values for service billing status
nadirhamid Apr 22, 2026
d3a0691
Add import CSV feature to blocked numbers module in user portal
gaurav-vaghela Apr 22, 2026
4ee59fb
API for settling invoices.
nadirhamid Apr 22, 2026
3d60782
update fields in rabbitmq message in the settle invoice API endpoint.
nadirhamid Apr 22, 2026
34863b3
uppercase action field in rabbitmq billing events.
nadirhamid Apr 22, 2026
6d3e9e7
send card meta data with settle invoice rabbitmq event.
nadirhamid Apr 22, 2026
4e537ff
use enums in billing data helper class
nadirhamid Apr 22, 2026
920fd05
Merge pull request #31 from Lineblocs/import-csv-feature
nadirhamid Apr 24, 2026
a28e6ec
add graceful process for service plan deactivations
nadirhamid Apr 24, 2026
b6cc8e0
add script to reconcile S3 URL and recording status incase of failure.
nadirhamid Apr 24, 2026
6c53a98
handle multiple invoice ids in invoice settling API
nadirhamid Apr 26, 2026
1f71663
add status in workspace users table for tracking terminated accounts.
nadirhamid Apr 26, 2026
07c6d45
add activated and terminated date time columns to workspace users
nadirhamid Apr 26, 2026
6524a4c
fix typo in workspace user update query
nadirhamid Apr 26, 2026
a21e038
use more precise query to get workspace user account for billing
nadirhamid Apr 26, 2026
795e9e2
fix some issues with sql queries and add more date fields to workspac…
nadirhamid Apr 26, 2026
1a35bb6
fix duration calculation in call resource
nadirhamid Apr 27, 2026
0b3cdcc
fix issues in invoice settling API endpoints.
nadirhamid Apr 27, 2026
f06a817
Send email alert when call is made with unregistered caller ID like v…
gaurav-vaghela Apr 29, 2026
1df2947
Update RabbitMQEventConsumer.php
gaurav-vaghela Apr 29, 2026
e1ff905
Merge pull request #33 from Lineblocs/MSAT-215
nadirhamid Apr 29, 2026
c60ec48
API to download invoice
nadirhamid May 6, 2026
2f551fb
add email SIP credentials API endpoint
nadirhamid May 6, 2026
6d6e312
add email template for sending out SIP credentials
nadirhamid May 6, 2026
0d058b3
Merge pull request #34 from Lineblocs/new-dev
nadirhamid May 7, 2026
4f6aae0
create api which will return ai summary of calls
gaurav-vaghela May 8, 2026
7aefc4f
fix issues in some API endpoints
nadirhamid May 8, 2026
0713e35
Merge pull request #35 from Lineblocs/MSAT-172
nadirhamid May 8, 2026
9bc8198
fix issues in user spinup API
nadirhamid May 8, 2026
367c4cd
fix invoice generating code.
nadirhamid May 9, 2026
c84523d
remove commented line
nadirhamid May 9, 2026
cb84119
implement downloadRecordings API
nadirhamid May 11, 2026
8210d4e
Merge branch 'master' into new-dev
nadirhamid May 11, 2026
9d639ef
Merge pull request #36 from Lineblocs/new-dev
nadirhamid May 11, 2026
45d1e37
fix a merge conflict
nadirhamid May 11, 2026
b95d423
revert listCalls function
nadirhamid May 11, 2026
69c5fe0
revert changes in call workflow
nadirhamid May 11, 2026
547825e
fix latyout on ALL email templates
gaurav-vaghela May 11, 2026
589f871
Merge pull request #38 from Lineblocs/MSAT-225
nadirhamid May 11, 2026
c177970
Merge pull request #32 from Lineblocs/paypalagreement
nadirhamid May 11, 2026
e752a3c
fix call resource API
nadirhamid May 11, 2026
68f10fa
Merge pull request #39 from Lineblocs/fix-callworkflow
nadirhamid May 11, 2026
23623cf
integrate code for API endpoint to download recordings in batch
nadirhamid May 12, 2026
0e5c143
rework logic for upgrading plans
nadirhamid May 12, 2026
8167bfd
update gitignore
nadirhamid May 12, 2026
79f923c
Billing issues fixed as per document
gaurav-vaghela May 13, 2026
ccc083a
Update plan_upgraded.blade.php
gaurav-vaghela May 13, 2026
d56c812
Improve invoice PDF layout and design.
gaurav-vaghela May 13, 2026
bd95d08
Merge pull request #42 from Lineblocs/MSAT-226
nadirhamid May 13, 2026
fece656
Merge pull request #41 from Lineblocs/MSAT-225
nadirhamid May 13, 2026
51d618a
new changes
gaurav-vaghela May 19, 2026
5f149a5
template fixes
gaurav-vaghela May 19, 2026
c5256fe
Merge branch 'master' into new-dev
gaurav-vaghela May 19, 2026
5b4f3cc
Add mocked gateway tests for Stripe/PayPal.
gaurav-vaghela May 19, 2026
11961c8
Merge pull request #40 from Lineblocs/MSAT-224
nadirhamid May 19, 2026
e9fd8e6
Merge pull request #44 from Lineblocs/MSAT-225
nadirhamid May 19, 2026
6c0ed82
Merge pull request #45 from Lineblocs/new-dev
nadirhamid May 19, 2026
6cfea4f
add more better logging and remove some unneeded code in plan upgrade…
nadirhamid May 19, 2026
a466584
dont log email contents when sending emails
nadirhamid May 19, 2026
e7b6dc6
fix typo in email template to send SIP credentials
nadirhamid May 19, 2026
2c8e7ec
email templates updated
gaurav-vaghela May 21, 2026
38dd2f2
Update SendEmailTemplatePreviewsCommand.php
gaurav-vaghela May 22, 2026
e66ddef
Extend Workspace Edit Page & Implement Suspension Billing Features
gaurav-vaghela May 22, 2026
0d7b5c2
integrate isWorkspaceSuspended util function
nadirhamid May 22, 2026
aa6e315
Merge pull request #47 from Lineblocs/workspace-suspension-utils
nadirhamid May 22, 2026
1ab780e
Merge pull request #46 from Lineblocs/MSAT-225
nadirhamid May 22, 2026
ac4097f
Merge pull request #48 from Lineblocs/new-dev
nadirhamid May 22, 2026
a6cedd1
added on rabitMq
gaurav-vaghela May 22, 2026
811c32e
Merge pull request #49 from Lineblocs/MSAT-233
nadirhamid May 22, 2026
b597c5f
Merge pull request #50 from Lineblocs/new-dev
nadirhamid May 25, 2026
813c54e
Merge pull request #43 from Lineblocs/MSAT-230
nadirhamid May 25, 2026
7ce32cd
Merge pull request #51 from Lineblocs/new-dev
nadirhamid May 25, 2026
2c87b18
Fix the header issue
gaurav-vaghela May 25, 2026
24e0f78
Merge pull request #52 from Lineblocs/MSAT-225
nadirhamid May 25, 2026
b685e30
Merge pull request #53 from Lineblocs/new-dev
nadirhamid May 25, 2026
20badf7
removed the console command
gaurav-vaghela May 25, 2026
f0306d9
email template fixes
gaurav-vaghela May 25, 2026
433a49e
use dropdown for grace period
nadirhamid May 25, 2026
bb3487d
Merge pull request #55 from Lineblocs/admin-fixes
nadirhamid May 25, 2026
c9f2774
add invoice id to suspensions
nadirhamid May 25, 2026
1884866
Merge pull request #56 from Lineblocs/suspension-code-updates
nadirhamid May 25, 2026
2f6740a
mobile view fixed
gaurav-vaghela May 25, 2026
00b18af
UI of email improved
gaurav-vaghela May 26, 2026
4f70e03
Merge pull request #57 from Lineblocs/MSAT-225
nadirhamid May 26, 2026
d8377a3
Merge pull request #58 from Lineblocs/new-dev
nadirhamid May 26, 2026
7caa06e
email templates mobile view changes
gaurav-vaghela May 27, 2026
e725fda
Merge pull request #59 from Lineblocs/MSAT-225
nadirhamid May 27, 2026
ad9cd25
Merge pull request #60 from Lineblocs/new-dev
nadirhamid May 27, 2026
97cd291
Augment RabbitMQ consumer to send workspace suspension emails
gaurav-vaghela May 27, 2026
bd0d3d7
Merge pull request #54 from Lineblocs/MSAT-233
nadirhamid May 28, 2026
52650b4
Merge pull request #62 from Lineblocs/new-dev
nadirhamid May 28, 2026
5c36e1e
suspended label changes
gaurav-vaghela May 29, 2026
d837920
Datatable label changed
gaurav-vaghela May 29, 2026
c3eb690
Merge pull request #63 from Lineblocs/MSAT-233
nadirhamid May 29, 2026
a6b5cfa
Merge pull request #64 from Lineblocs/new-dev
nadirhamid May 29, 2026
c844694
Pdf UI issues are fixed
gaurav-vaghela May 29, 2026
3804376
Merge pull request #65 from Lineblocs/MSAT-239
nadirhamid May 29, 2026
5737362
Merge pull request #66 from Lineblocs/new-dev
nadirhamid May 29, 2026
7d44264
add pm2 config files
nadirhamid May 29, 2026
6e4b939
rename suspensions table
nadirhamid Jun 1, 2026
588d1f2
Merge pull request #67 from Lineblocs/fix-suspensions-tbl-name
nadirhamid Jun 1, 2026
a96161d
add suspension initiated at field
nadirhamid Jun 1, 2026
b505e3c
Merge pull request #68 from Lineblocs/workspace-suspensions-updates
nadirhamid Jun 1, 2026
8807ec3
include card details in failed payment email.
nadirhamid Jun 1, 2026
f2e7e08
Merge pull request #69 from Lineblocs/failed-payment-alerts
nadirhamid Jun 1, 2026
435ca06
check if invoice_generated field is omitted
nadirhamid Jun 1, 2026
216016f
Merge pull request #70 from Lineblocs/fix-rabbitmq-consumer-runtime-i…
nadirhamid Jun 1, 2026
d1e58ec
log errors when attaching invoices to emails
nadirhamid Jun 1, 2026
52750c6
Update RabbitMQHelper.php
gaurav-vaghela Jun 2, 2026
0e3f67a
Merge pull request #61 from Lineblocs/MSAT-237
nadirhamid Jun 2, 2026
5904c1a
add function to get available service plans
nadirhamid Jun 2, 2026
1faef21
fix some plan sorting issues
nadirhamid Jun 2, 2026
5ff102a
send back more data in billing APIs
nadirhamid Jun 2, 2026
70126e7
improvements to billing code
nadirhamid Jun 2, 2026
fa9b77d
set source_service when creating invoices
nadirhamid Jun 2, 2026
0389fc7
further integrate code for handling plan upgrades.
nadirhamid Jun 2, 2026
d31488f
dispatch event to upgrade workspace in upgrade API
nadirhamid Jun 2, 2026
2122881
send subscription ID in workspace upgrade event
nadirhamid Jun 3, 2026
e47a985
Merge pull request #72 from Lineblocs/new-dev
nadirhamid Jun 3, 2026
0d52d50
Merge branch 'master' into misc-optimizations
nadirhamid Jun 3, 2026
0ca48eb
Merge pull request #73 from Lineblocs/misc-optimizations
nadirhamid Jun 3, 2026
92d0701
send creator ID in workspace upgrade event
nadirhamid Jun 3, 2026
a567312
fix some issues in upgrade workflow.
nadirhamid Jun 3, 2026
70d4042
Merge pull request #74 from Lineblocs/billing-code-optimizations
nadirhamid Jun 3, 2026
bf9df43
handle workspace upgrade events in rabbitmq consumer
nadirhamid Jun 3, 2026
15ec29c
rework code for handling workspace upgrade events
nadirhamid Jun 4, 2026
9d403f7
fix workspace suspension code
nadirhamid Jun 6, 2026
4f33677
Merge pull request #75 from Lineblocs/billing-code-optimizations
nadirhamid Jun 6, 2026
01f430d
improve workspace suspension code and update workspace modal UI
nadirhamid Jun 6, 2026
9a09044
Merge pull request #76 from Lineblocs/billing-code-optimizations
nadirhamid Jun 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
62 changes: 62 additions & 0 deletions .config/psysh/psysh_history
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
_HiStOrY_V2_
require('./generate_monthly_invoice.php_old');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
require('./generate_monthly_invoice.php');
Empty file modified .github/workflows/ci.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions .lesshst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.less-history-file:
39 changes: 0 additions & 39 deletions app/.env.cop

This file was deleted.

33 changes: 33 additions & 0 deletions app/.env.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
APP_ENV=local
APP_DEBUG=false
APP_USE_SSL=0

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

MAIL_DRIVER=smtp
MAIL_HOST=smtp.sendgrid.net
MAIL_PORT=587
MAIL_USERNAME=apikey
MAIL_PASSWORD=YOUR-API-KEY
MAIL_ENCRYPTION=tls
MAIL_FROM_NAME="Service Emails"
MAIL_FROM_ADDRESS=emails@lineblocs.com

API_STANDARDS_TREE=vnd
API_SUBTYPE=oneline_backend
API_PREFIX=api
API_VERSION=v1
API_NAME="Oneline Backend"
API_CONDITIONAL_REQUEST=false
API_DEFAULT_FORMAT=json
API_DEBUG=true
API_VERSION=v1
JWT_TTL=null
AWS_ACCESS_KEY=AWS-KEY
AWS_SECRET_KEY=AWS-SECRET
AWS_REGION=ca-central-1
AWS_BUCKET=lineblocs
AWS_SESSION_TOKEN=
SENTRY_LARAVEL_DSN=https://a930fd30e53d48bbb1dcf41bb9d47ff0@o405396.ingest.sentry.io/5270934
2 changes: 1 addition & 1 deletion app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/node_modules
/public/hot
/public/storage
/public/recordings
/public/recordings/*
/public/documents
/public/files
/public/fs
Expand Down
Empty file modified app/.test.php.swp
100644 → 100755
Empty file.
50 changes: 39 additions & 11 deletions app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,36 @@
FROM php:7.3.0-apache
FROM php:7.4.0-apache
SHELL ["/bin/bash", "-c"]

# Set working directory
WORKDIR /var/www/html

# TODO: this is a temporary fix.
# in the future, upgrade to use later verison of PHP instead (possibly PHP 8)
#RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list

# Install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libcurl3-gnutls \
libx11-6 \
libpng16-16 \
libjpeg62-turbo \
curl \
libzip-dev \
libpng-dev \
libjpeg62-turbo-dev \
libfreetype6 \
libfreetype6-dev \
locales \
zip \
jpegoptim optipng pngquant gifsicle \
vim \
unzip \
git \
curl
RUN apt-get install -y libmcrypt-dev && \
pecl install mcrypt-1.0.2 && \
docker-php-ext-enable mcrypt
libonig-dev

#RUN apt-get install -y libmcrypt-dev && \
# pecl install mcrypt-1.0.2 && \
# docker-php-ext-enable mcrypt

# Clear cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
Expand All @@ -35,7 +45,7 @@ RUN rm -rf /etc/apt/preferences.d/no-debian-php \

# Install extensions
RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl
RUN docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/
#RUN docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/
RUN docker-php-ext-install gd
RUN docker-php-ext-install mysqli
RUN docker-php-ext-install bcmath
Expand Down Expand Up @@ -64,7 +74,25 @@ COPY 000-default.conf /etc/apache2/sites-available/000-default.conf

# copy php.ini
RUN mv php.ini "$PHP_INI_DIR/php.ini"
RUN mv .env.cop .env
RUN mv .env.docker .env

#prepare set up .env from docker-compose enviroment
ARG DB_HOST_ARG=127.0.0.1
ARG DB_USERNAME_ARG=root_lineblocs
ARG DB_PASSWORD_ARG=101010
ARG DB_DATABASE_ARG=lineblocs
ARG DB_PORT_ARG=3306
ARG DB_OPENSIPS_DATABASE_ARG=opensips
ARG DEPLOYMENT_DOMAIN_ARG=domain.tld

ENV DB_HOST $DB_HOST_ARG
ENV DB_USERNAME $DB_USERNAME_ARG
ENV DB_PASSWORD $DB_PASSWORD_ARG
ENV DB_DATABASE $DB_DATABASE_ARG
ENV DB_PORT $DB_PORT_ARG
ENV DB_OPENSIPS_DATABASE $DB_OPENSIPS_DATABASE_ARG
ENV DEPLOYMENT_DOMAIN $DEPLOYMENT_DOMAIN_ARG


# Change current user to www
# Expose port 9000 and start php-fpm server
Expand All @@ -76,12 +104,12 @@ RUN mv vendoring vendor

# Copy existing application directory permissions
#RUN chown -R www-data:www-data /var/www/html
RUN ./deploy-docker.sh
RUN ./shell_scripts/deploy-docker.sh

# Change current user to www
# Expose port 9000 and start php-fpm server
COPY ports.conf /etc/apache2/ports.conf
RUN chown -R www-data www-data ./public/assets
RUN chown -R www-data:www-data ./public/assets
EXPOSE 8080
#CMD [ "apache2-foreground" ]
ENTRYPOINT ["./entrypoint.sh"]
ENTRYPOINT ["./shell_scripts/entrypoint.sh"]
Binary file removed app/app/.PortNumber.php.swp
Binary file not shown.
Binary file removed app/app/.User.php.swp
Binary file not shown.
Binary file removed app/app/.UserDebit.php.swp
Binary file not shown.
43 changes: 40 additions & 3 deletions app/app/ApiCredential.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,50 @@
use Illuminate\Database\Eloquent\SoftDeletes;
use App\ApiResource;
use App\Helpers\MainHelper;
use Exception;
use Log;
use Illuminate\Support\Facades\DB;

class ApiCredential extends Model {
class ApiCredential extends SettingsRecord {
protected $dates = ['created_at', 'updated_at'];
protected $casts = array(
"setup_complete" => "boolean"
);

protected $guarded = array('id');
public static function getRecord() {
return ApiCredential::all()[0];
protected $table = 'api_credentials';


public static function getParameterIfAvailable($param) {
try {
$record = self::getRecord();
return $record->{$param};
} catch (Exception $ex) {
print("error occured while getting API credential: " .$param);
}
return "";
}
public static function getFrontendValuesOnly() {
$creds = self::getRecord()->toArray();
extract( $creds );
$result = compact(
'google_signin_developer_key',
'google_signin_client_id',
'google_signin_app_id',
'msft_signin_client_id',
'msft_signin_client_secret',
'apple_signin_client_id',
'apple_signin_client_secret',
'google_analytics_script_tag',
'matomo_script_tag',
'stripe_pub_key',
'cloudflare_site_key',
);
if ($creds['stripe_mode'] == 'test') {
$result['stripe_pub_key'] = $creds['stripe_test_pub_key'];
}

return $result;
}

}
Expand Down
22 changes: 22 additions & 0 deletions app/app/ApiCredentialGroup2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\ApiResource;
use App\Helpers\MainHelper;
use Exception;
use Log;
use Illuminate\Support\Facades\DB;

class ApiCredentialGroup2 extends SettingsRecord {
protected $dates = ['created_at', 'updated_at'];
protected $casts = array(
);

protected $guarded = array('id');

protected $table = 'api_credentials_group2';
}


63 changes: 63 additions & 0 deletions app/app/ApiCredentialKVStore.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?php

namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\ApiResource;
use App\Helpers\MainHelper;
use Exception;
use Log;
use Illuminate\Support\Facades\DB;

class ApiCredentialKVStore extends SettingsKVStoreModel {
protected $dates = ['created_at', 'updated_at'];
protected $casts = array(
"setup_complete" => "boolean"
);

protected $guarded = array('id');
protected $table = 'api_credentials_kv_store';


public static function getParameterIfAvailable($param) {
try {
DB::connection()->getPdo();
} catch (\Exception $e) {
echo("Could not connect to the database. Please check your configuration. error:" . $e );
return;
}
try {
$record = self::getRecord();
return $record->{$param};
} catch (Exception $ex) {
print("error occured while getting API credential: " .$param);
}
return "";
}
public static function getFrontendValuesOnly() {
$record = self::getKVPairs();
extract( $record );
$creds = compact(
'google_signin_developer_key',
'google_signin_client_id',
'google_signin_app_id',
'msft_signin_client_id',
'msft_signin_client_secret',
'apple_signin_client_id',
'apple_signin_client_secret',
'google_analytics_script_tag',
'matomo_script_tag',
'stripe_pub_key',
'cloudflare_site_key'
);

if ($record['stripe_mode'] == 'test') {
$creds['stripe_pub_key'] = $record['stripe_test_pub_key'];
}

return $creds;
}

}


Loading
Loading