|
12760
|
274
|
4
|
2026-04-14T11:36:55.840468+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166615840_m1.jpg...
|
PhpStorm
|
faVsco.js – AutomatedReportsService.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"#11894 on JY-18909-automated-reports-ask-jiminny, menu","depth":5,"help_text":"Pull request #11894 exists for current branch JY-18909-automated-reports-ask-jiminny","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"AutomatedReportsCommandTest","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'AutomatedReportsCommandTest'","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'AutomatedReportsCommandTest'","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Execute","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Explain Plan","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Browse Query History","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"View Parameters","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Open Query Execution Settings…","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"In-Editor Results","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Tx: Auto","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Cancel Running Statements","depth":4,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Playground","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"jiminny","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"17","depth":4,"role_description":"text"},{"role":"AXStaticText","text":"15","depth":4,"role_description":"text"},{"role":"AXStaticText","text":"13","depth":4,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
2276606594930349341
|
-8652443158866867378
|
click
|
hybrid
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER© 81DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 24 mec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zsh-zsh100% <47Tue 14 Apr 14:36:5518186-zshO 87* Unable to acce...*- *8],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
|
12761
|
275
|
2
|
2026-04-14T11:36:55.827328+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166615827_m2.jpg...
|
PhpStorm
|
faVsco.js – AutomatedReportsService.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.03046875,"top":0.017361112,"width":0.0453125,"height":0.022222223},"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"#11894 on JY-18909-automated-reports-ask-jiminny, menu","depth":5,"bounds":{"left":0.07578125,"top":0.017361112,"width":0.14257812,"height":0.022222223},"help_text":"Pull request #11894 exists for current branch JY-18909-automated-reports-ask-jiminny","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.78515625,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"AutomatedReportsCommandTest","depth":6,"bounds":{"left":0.803125,"top":0.017361112,"width":0.09765625,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'AutomatedReportsCommandTest'","depth":6,"bounds":{"left":0.9007813,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'AutomatedReportsCommandTest'","depth":6,"bounds":{"left":0.9140625,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9273437,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96015626,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9734375,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9867188,"top":0.017361112,"width":0.013281226,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Execute","depth":4,"bounds":{"left":0.46132812,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Explain Plan","depth":4,"bounds":{"left":0.47148436,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Browse Query History","depth":4,"bounds":{"left":0.484375,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"View Parameters","depth":4,"bounds":{"left":0.49453124,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Open Query Execution Settings…","depth":4,"bounds":{"left":0.5046875,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"In-Editor Results","depth":4,"bounds":{"left":0.5175781,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Tx: Auto","depth":4,"bounds":{"left":0.53046876,"top":0.08611111,"width":0.028515626,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Cancel Running Statements","depth":4,"bounds":{"left":0.56171876,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Playground","depth":4,"bounds":{"left":0.5746094,"top":0.08611111,"width":0.034765624,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"jiminny","depth":4,"bounds":{"left":0.67929685,"top":0.08611111,"width":0.033203125,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.049609374,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"17","depth":4,"bounds":{"left":0.65703124,"top":0.10763889,"width":0.0109375,"height":0.013194445},"role_description":"text"},{"role":"AXStaticText","text":"15","depth":4,"bounds":{"left":0.6703125,"top":0.10763889,"width":0.011328125,"height":0.013194445},"role_description":"text"},{"role":"AXStaticText","text":"13","depth":4,"bounds":{"left":0.6839844,"top":0.10763889,"width":0.011328125,"height":0.013194445},"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.6972656,"top":0.10625,"width":0.00859375,"height":0.015972223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
2276606594930349341
|
-8652443158866867378
|
click
|
hybrid
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error
PhpStormFileFditViewNavigateCodeLaravelRefactonToolsWindowHelpFV faVsco.js v#11894 on JY-18909-automated-reports-ask-iminny ~Project v© EmailMessageRepository.pC) GenericAiPromptRepositorg grouprepository.phpInboxEmailBatchRepositonInboxRepository.php© InvitationRepository.pnpC) JobRepositorv.ohpC LanquageRepository.phpC MomentRepository.phpNotificationRepositorv.php© ParticipantRepository.phpC ParticipantSpeechRepositoC ParticipantStatsRepository© PlaybookCategoryRepositcg Playbookkepository.phpPlaylistActivityRepository.pPlaylistRepository.php(C) PlavlistShareRepositorv.ph© QuestionRepository.phpC) RoleChangeEventReposito(C) RoleRepository.php(©) SearchRepository.php©) SnapshotRepository.phpC) SocialAccountRepository.pC StageRepository.php© SubscriptionSetRepository.© TaskRepository.php© TeamAiContextRepository.© TeamDomainsRepository.pC) TeaminsiahtsRepositorv.phC TeamRepository.php©) ThemeRepository.php(C) TimezoneRepository.phpC TopicRepository.phpC) TopicTriggerRepository.ph© TrackRepository.php© TranscriptionModelLocaleF© TranscriptionRepository.ph© TranscriptionSummaryRepC UserRepository.php© VocabularyRepository.php> D Rulesv _ Services> D Activity> D AjReports>D AvatarlcalendarConterenceM erm> D Import> MInternalv MKioskv M AutomatedReports(C) ActivityTypeService.(©) AskJiminnyReportAc(C) AutomatedReportsC(©) AutomatedReportsSi© DealStagesService.p(© RecipientsService.ph(©) ReportController.phpC SendReportJob.php(©) AutomatedReportsCommand.php= custom.loc= laravel.logL SF (iminny@localhost« HS_local fiminny@localhostC AutomatedReportsSendCommand.phgC AddLayoutEntities.phpC) Team.phpC AutomatedReportsRepository.phpAutomatedReportsService.phpCreateHeldActivityEvent.phpe) Track?roviderinstalled-vent.ono(©) CreateActivityLoggedEvent.phpC UserPilotActivityListener.phpC ActivityLogged.phpC AutomatedReportsCallbackService.phpC RequestGenerateAskJiminnyReportJob.phpRequestGeneratereporJob.ong© AutomatedReportResult.php© AutomatedReport.phpconsole PROD4 console [EUlL console [STAGINGI :Tx: Auto vFlaycroundvt.owner_1d FROM soc1al_accounts sa520521JOIN users u on u.1d = sa.soclable_1dNol teams tI.n<->I: on t.ld = U.team_1dWHERE U.team_1d = 1 and sa.provider = salestorce :class AutomatedReportsservice1041051elo11Le?10%11611111211311511014012312412512612%A102 V3 V34 ^V0J 523public const array MEDIA_TYPE_OBJECT_PODCAST = L'1d => self::MEDLA_TYPE_PODCAST,1 usagepublic const array MEDIA_TYPE_OBJECTS = [self::MEDIA_TYPE_OBJECT_PDF, self::MEDIA_TYPE_OBJECT_P0 52'9 usagesousadespublic const array CALL TYPE CONFERENCE = ['id' => 'conference'.public const array CALL_TYPE_DIALER = L'id' => 'dialer', 'name' => 'Dialer'J;public const int SENT REPORT AT HOURS = 5:public const string PbF_key = "paf";1 usagepublic const string AUDlO_KEy = 'aud1o';1 usageprivate const array ALL_FREQUENCIES = [T'id' => self::FREOUENCY DATLY. 'name' => 'Daily'].l'id' => self::FREQUENCY_WEEKLY, 'name' => 'Weekly'],'id' => self::FREQUENCY MONTHLY, 'name' => 'Monthly').L'id' => self::FREQUENCY_QUARTERLY, 'name' => 'Quarterly'J,L'id' => self::FREQUENCY_ONE_OFF, 'name' => 'One-off'J,Tusdye1 usage1 usageprivate const string S3_DIR = 'reports';private const array FILE_EXTENSIONS_VARIANTS = ['html', 'MD', 'pdf']:private const array FTLE PODCAST EXTENSTONS VARTANTS = ['ison'.'mp3', 'ssml'];public function __construct(private readonly TeamRepository steamkeposicory.private readonly GroupRepository $groupRepository,private readonly Userrepository suserrepository,private readonly stagerepository sstageRepository,private readonly Dealstagesservice sdealstagesservice,privace readonly Reciplentsservice preciplentsservice,privace readonly Automacedкeportskeposicory фаuсоmасеакерогиsкeрos1сory.privace readonly webnook &wednookservice,private readonly Busuispaucher saispaucher,orvare readonuy Acmuyvoeseruce sacmulryvoeserarcerretur true.=> "Pod 5231540152852953053153253315.541155555 A=050539540541542543544•54=5471548=5495505515525535545555561558SO.563565liminny017 A 15 V13 ^select * tron reans where 1o =15sеtcttrдros9 s pla1..n<->1: on g.playbook_id = p.id wnselect * TroIcirouosnere t =oo.select * from playbooks where team_ id = 1:select * from playbooks where id = 175:select * from playbook categories where playbook id = 175:select * from users where team_1d = 1:select * from users where 1d = 7160*select * from crm_profiles where user_1d = 7160*select * trom reatures,select# id, vuid, type, provider, playbook_category_id, user_id,leao o, contact# crm confiquration idiciciorovLoer 1oTranscrrocion orSTaTUSfrom activities where crm_confiquration id = 1 and type =# and crm_ provider id IS NOT NULLand provider != 'uploader' and actual start time IS NOT NULLORDER by id desc;select * from activities where 1d = 54/47785; # 0000400000pCZOJMAOselect p.1d, p.activity_type, pc.1d, pc.nameFRUM playdooks pjoin playpook_categories pe"o>l.n: on p.1d = pc.playbook_10where p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm fields WHERE crm confiquration id = 1 and obiect tvpe = !SELECT * FROM crm_ field values WHERE crm_ field id = 4select * from crm_layouts cl join playbook layouts pl 1<->i.n: on cl.id =pwhere crm_configuration_1d = 1 and pl.playbooK_1d = 175:select * from teams:SELECI r.* FRUn aucomaced_reporus rjoin ceams t on r.ueam 10 = t.10WHERE r.trequency = "dally"and f.stauus-AND t.status =aciveAND (r.expires at >= now OR r.expires at IS NULD):select * from automated_report_results where report.id IN (18, 33);select * from activity_searches where 1d = 10952;1O7116921693169416951694return Sthis->hasPassedScheduledTimeSqeneratedAt, SearliestTz):15661567N 568 v156915701select * from activity_search_filters where activity_search_1d = 10932:select * from automated_reports order by 1d desc;select * tromautomated_report_results order by id desc;select * from automated_report_results where report id IN (36);5145 usages16971161pubuic tuncclon naspassedscheauledlimel:cardonincertace sgeneratedAt, suring scimezone): Doo6 usagesSupport Daily • in 24 m100% [45)Tue 14 Apr 14:36:55AutomatedRenortsCommandTest+0 .CascadeDebug Automated RepLogic Walkthroughoteo l. derueneraceanorsentkesultsrerches AutomatedkenortResult recoros wnerergenerated_at IS NOT NULLsent_at Is NULLstatus = STATUS GENERATEDnas arelared revortYour 7 results pass this.Step 2: getValidRecipientUsers()For each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients(→ includes creator. For regular reports it goes through getRecipientUsers() . Either way, the creator has anemail, so validRecipients is not empty.vSteox. shouldSendRenorto - THSS WHEREITFAILS•phppubLic const int SENI_REPORI_AI_HUURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +1080• secondsIt then checks:• php$now = carbon::now($earliestiz);$isScheduledTime = (int) $now->format('H") === 5;// current time in GMT+3// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime():0 phppublic function hasPassedScheduledTime(?CarbonInterface SgeneratedAt, string $timezone): booltihis checksgeneratedat < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)soit onlv returns true If1. The report was generated before 05:00 GMT+3 today (l.e., before 02:00 UTC.2. AND current time is past 05:00 GMT+3 (past 02:00 UTC)Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT ‹ scheduledTimeutc, so hasPassedScheduledTime returns false• OR the current time is before 05:00 GMT+3 → nowUtc is NOT > scheduledTimeUtcciven vou 're running this at 2:35 PM UTic+3 14.35 ocaly 11:35 Unic). here's what hapoens.scheduledtame = tocav at 05:00 GMT+3 = 02:00 U10now = 11:35 UTC → past scheduled timevgeneratedat must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtUtr.Iffcchedulentimellfr) stalse z hacPaccenSchenulerime returns talce → notina senosAsk anything (&+LClaude Sonnet 4.6winasun leam16/9:38uir-oia 4 spaces...
|
NULL
|
|
12762
|
274
|
5
|
2026-04-14T11:36:57.524292+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166617524_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER© 81DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 24 m100% <47Tue 14 Apr 14:36:57181ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zsh-zsh86-zshO ₴7* Unable to acce...],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
5266478389276310979
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER© 81DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 24 m100% <47Tue 14 Apr 14:36:57181ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zsh-zsh86-zshO ₴7* Unable to acce...],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
12760
|
|
12763
|
274
|
6
|
2026-04-14T11:37:02.795794+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166622795_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER0 881DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahl• Support Daily • in 23 ml100% 147ec2-user@ip-10-30-...ec2-user@ip-10-30-93-249:~-zsh-zsh86-zshO 87Tue 14 Apr 14:37:02181* Unable to acce...€ *8],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
-7556254851387729219
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER0 881DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahl• Support Daily • in 23 ml100% 147ec2-user@ip-10-30-...ec2-user@ip-10-30-93-249:~-zsh-zsh86-zshO 87Tue 14 Apr 14:37:02181* Unable to acce...€ *8],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
|
12764
|
275
|
3
|
2026-04-14T11:37:02.795806+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166622795_m2.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
PhpStormFileFditViewNavigateCodeLaravelPetactonToo PhpStormFileFditViewNavigateCodeLaravelPetactonToolsWindowHelpFV faVsco.js v#11894 on JY-18909-automated-reports-ask-iminny ~Project v© EmailMessageRepository.pC) GenericAiPromptRepositorg grouprepository.phpInboxEmailBatchRepositonC InboxRepository.php© InvitationRepository.pnpC) JobRepositorv.ohpC LanquageRepository.phpC MomentRepository.phpNotificationRepositorv.php© ParticipantRepository.phpC ParticipantSpeechRepositoC ParticipantStatsRepository© PlaybookCategoryRepositcg Playbookkepository.phpPlaylistActivityRepository.pPlaylistRepository.php(C) PlavlistShareRepositorv.ph© QuestionRepository.phpC) RoleChangeEventRepositol(C) RoleRepository.php(©) SearchRepository.php©) SnapshotRepository.php©) SocialAccountRepository.pC StageRepository.php© SubscriptionSetRepository.© TaskRepository.php© TeamAiContextRepository.© TeamDomainsRepository.pC) TeaminsiahtsRepositorv.phC TeamRepository.phpC) ThemeRepository.php(C) TimezoneRepository.phpC TopicRepository.phpC TopicTriggerRepository.ph© TrackRepository.php© TranscriptionModelLocaleF© TranscriptionRepository.ph© TranscriptionSummaryRepC UserRepository-php© VocabularyRepository.pnp› D Rulesv _ Services>→ Activity> D AjReports>D AvatarlcalendarConterenceM erm> D Import> MInternalv MKioskv M AutomatedReports(C) ActivityTypeService.(©) AskJiminnyReportAc(C) AutomatedReportsC(©) AutomatedReportsSi© DealStagesService.p(© RecipientsService.ph(©) ReportController.phpC SendReportJob.php(©) AutomatedReportsCommand.php= custom.loc= laravel.logc SF liminny@localhost« HS_local fiminny@localhostC AutomatedReportsSendCommand.phgC AddLayoutEntities.phpC) Team.phpC) AutomatedReportsRepository.php© AutomatedReportsService.php© CreateHeldActivityEvent.phpe) TrackProviderinstallled-vent.ono(©) CreateActivityLoggedEvent.phpC UserPilotActivityListener.phpC ActivityLogged.php© AutomatedReportsCallbackService.phpC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpconsole PROD4 console [EU1L console [STAGING]Tx: Auto vFlaycroundvt.owner_1d FROM soc1al_accounts sa52015211JOIN users u on u.1d = sa.soclable_1dJOIN teams tI.n<->I: on t.1d = u.team_1dWHERE U.team_1d = 1 and sa.provider = salestorce :163616631664100516661100.166816691672116751677167816791680168116821683168416851686168716881689169016911692116941OYA117171718171917201721172217231724172411720class AutomatedReportsservicepublic function getActivit1escountPayload(array s1nputPayload): array'playdook_categories'= $vaLidacedbatal playdook_categories'J !! lJ.'request_1d = nuLl,'callback url = nuul,A 102 V3 V34 ^V0J 523susaeespublic function shouldsendReport(array susers, ?Carbonintertace sgeneratedAt = null): boou1f (empty(susers))return false;15452752852953053153253315.5411555155455 Anearuestz = coulectcsusers)->mapWithKeys(function (array $user) 1$tz = new DateTimeZone($user['timezone']):SnowUtc = new DateTime datetime: 'now', new DateTimeZone( timezone: "UTC':Soffset = stz->get0ffset(Snowtc):return [suserl'timezone' => soffsetl;=05053954054154215431544->sortbesc()->Keys)->first(O:lnnow = varoonr.noynearuresciz.$isScheduledTime = (int) $now->format( format: 'H') === self::SENT_RESORT_AT_HOURS;if (SisScheduledTime)return true:•54=5471548=549550551552553554555556return sthis->hasPassedScheduLedlime(SgeneratedAt, searliestiz):15585 usagespublic function hasPassedScheduledTime(?CarbonInterface Sgeneratedt, string $timezone): boolf.. 561b usagespublic function calculateFromAndToDatePeriodostring Sfrequency,?Carbon $fromDate = null,?Carbon stobate = nuul): array "ifüfrequencK seLfi: FREQUENCX ONE DEE)NEreturn"trombace = stromdate,'toDate' => stobate,—0045635645635665675o8 M=569—5/0Pusnea 1 commit to oricin/Jy-loy0g-automated-repors-ask- iminny View pull request loday 13.29liminny017 A 15 V13 ^select * tron reans wnere 1o =1select x tron groups g Juin playbooks p1..n<->1: on a.plavbook id = p.id wiselect * 1r0IOIrOUOSnere t =oo.select * from playbooks where team_ id = 1:select * from playbooks where id = 175:select * from playbook categories where playbook id = 175:select * from users where team_1d = 1:select * from users where 1d = 7160*select * from crm_profiles where user_1d = 7160*select * trom reatures,select*o, Uuno, tyoe, orovoer, oavoook careoory or user 0rleao o, contact* cri conmouracionorciri orovoer LorTranscrrocion orSTaTUSfrom activities where crm_confiquration id = 1 and type =# and crm_ provider id IS NOT NULLand provider != 'uploader' and actual start time IS NOT NULLORDER by id desc;select * from activities where 1d = 54/47785; # 0000400000pCZOJMAOselect p.1d, p.activity_type, pc.1d, pc.nameFRUM playdooks pjoin playpook_categories pe"->l.n: on p.1d = pc.playbook_1dwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm fields WHERE crm confiquration id = 1 and obiect tvpe = !SELECT * FROM crm_ field values WHERE crm_ field id = 4select * from crm_layouts cl join playbook layouts pl 1<->i.n: on cl.id =pwhere crm_configuration_1d = 1 and pl.playbooK_1d = 175:select * from teams:SELECI r.* FRUn aucomaced_reporus rjoin ceams t on r.ueam 10 = t.10WHERE r.trequency = "dally"and f.stauus-AND t.status = 'activelAND (r.expires at >= now) OR r.expires at IS NULD):select * from automated_report_results where report. id IN (18, 33);select * from activity_searches where 1d = 10952;select * from activity_search_filters where activity_search_1d = 10932:select * from automated_reports order by 1d desc;select * from automated_report_results order by id desc;select * from automated_report_results where report id IN (36);Support Daily • in 23 m100% [45)Tue 14 Apr 14:37:02AutomatedRenortsCommandTestCascadeDebug Automated RepLogic Walkthroughoteo l. derueneraceanorsentkesultsrerches AutomatedkenortResult recoros wnerergenerated_at IS NOT NULLsent_at Is NULLstatus = STATUS GENERATEDnas arelared revortYour 7 results pass this.Step 2: getValidRecipientUsers()For each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients(→ includes creator. For regular reports it goes through getRecipientUsers() . Either way, the creator has anemail, so validRecipients is not empty.vStenx. shouldSendRenorto - THISS WHERE ITFAILS•phppubLic const int SENI_REPORI_AI_HUURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +1080• secondsIt then checks:• php$now = carbon::now($earliestiz);$isScheduledTime = (int) $now->format('H") === 5;// current time in GMT+3// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :0 phppublic function hasPassedScheduledTime(?CarbonInterface SgeneratedAt, string $timezone): booltihis checksgeneratedat < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)soit onlv returns true If1. The report was generated before 05:00 GMT+3 today (l.e., before 02:00 UTC.2. AND current time is past 05:00 GMT+3 (past 02:00 UTC)Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeutc, so hasPassedScheduledTime returns false• OR the current time is before 05:00 GMT+3 → nowUtc is NOT > scheduledTimeUtcciven vou 're running this at 2:35 PM UTic+3 14.35 ocaly 11:35 Unic). here's what hapoens.scheduledtame = tocav at 05:00 GMT+3 = 02:00 U10now = 11:35 UTC → past scheduled timevgeneratedat must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (atter 02:00 UTC) today, so generatedAtUtr.Iffcchedulentimellfr) stalse z hacPaccenSchenulerime returns talce → notina senosAsk anything (&+LClaude Sonnet 4.6winasun leam1685:23uir-oia 4 spacesw...
|
NULL
|
-6375461198440928507
|
NULL
|
click
|
ocr
|
NULL
|
PhpStormFileFditViewNavigateCodeLaravelPetactonToo PhpStormFileFditViewNavigateCodeLaravelPetactonToolsWindowHelpFV faVsco.js v#11894 on JY-18909-automated-reports-ask-iminny ~Project v© EmailMessageRepository.pC) GenericAiPromptRepositorg grouprepository.phpInboxEmailBatchRepositonC InboxRepository.php© InvitationRepository.pnpC) JobRepositorv.ohpC LanquageRepository.phpC MomentRepository.phpNotificationRepositorv.php© ParticipantRepository.phpC ParticipantSpeechRepositoC ParticipantStatsRepository© PlaybookCategoryRepositcg Playbookkepository.phpPlaylistActivityRepository.pPlaylistRepository.php(C) PlavlistShareRepositorv.ph© QuestionRepository.phpC) RoleChangeEventRepositol(C) RoleRepository.php(©) SearchRepository.php©) SnapshotRepository.php©) SocialAccountRepository.pC StageRepository.php© SubscriptionSetRepository.© TaskRepository.php© TeamAiContextRepository.© TeamDomainsRepository.pC) TeaminsiahtsRepositorv.phC TeamRepository.phpC) ThemeRepository.php(C) TimezoneRepository.phpC TopicRepository.phpC TopicTriggerRepository.ph© TrackRepository.php© TranscriptionModelLocaleF© TranscriptionRepository.ph© TranscriptionSummaryRepC UserRepository-php© VocabularyRepository.pnp› D Rulesv _ Services>→ Activity> D AjReports>D AvatarlcalendarConterenceM erm> D Import> MInternalv MKioskv M AutomatedReports(C) ActivityTypeService.(©) AskJiminnyReportAc(C) AutomatedReportsC(©) AutomatedReportsSi© DealStagesService.p(© RecipientsService.ph(©) ReportController.phpC SendReportJob.php(©) AutomatedReportsCommand.php= custom.loc= laravel.logc SF liminny@localhost« HS_local fiminny@localhostC AutomatedReportsSendCommand.phgC AddLayoutEntities.phpC) Team.phpC) AutomatedReportsRepository.php© AutomatedReportsService.php© CreateHeldActivityEvent.phpe) TrackProviderinstallled-vent.ono(©) CreateActivityLoggedEvent.phpC UserPilotActivityListener.phpC ActivityLogged.php© AutomatedReportsCallbackService.phpC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpconsole PROD4 console [EU1L console [STAGING]Tx: Auto vFlaycroundvt.owner_1d FROM soc1al_accounts sa52015211JOIN users u on u.1d = sa.soclable_1dJOIN teams tI.n<->I: on t.1d = u.team_1dWHERE U.team_1d = 1 and sa.provider = salestorce :163616631664100516661100.166816691672116751677167816791680168116821683168416851686168716881689169016911692116941OYA117171718171917201721172217231724172411720class AutomatedReportsservicepublic function getActivit1escountPayload(array s1nputPayload): array'playdook_categories'= $vaLidacedbatal playdook_categories'J !! lJ.'request_1d = nuLl,'callback url = nuul,A 102 V3 V34 ^V0J 523susaeespublic function shouldsendReport(array susers, ?Carbonintertace sgeneratedAt = null): boou1f (empty(susers))return false;15452752852953053153253315.5411555155455 Anearuestz = coulectcsusers)->mapWithKeys(function (array $user) 1$tz = new DateTimeZone($user['timezone']):SnowUtc = new DateTime datetime: 'now', new DateTimeZone( timezone: "UTC':Soffset = stz->get0ffset(Snowtc):return [suserl'timezone' => soffsetl;=05053954054154215431544->sortbesc()->Keys)->first(O:lnnow = varoonr.noynearuresciz.$isScheduledTime = (int) $now->format( format: 'H') === self::SENT_RESORT_AT_HOURS;if (SisScheduledTime)return true:•54=5471548=549550551552553554555556return sthis->hasPassedScheduLedlime(SgeneratedAt, searliestiz):15585 usagespublic function hasPassedScheduledTime(?CarbonInterface Sgeneratedt, string $timezone): boolf.. 561b usagespublic function calculateFromAndToDatePeriodostring Sfrequency,?Carbon $fromDate = null,?Carbon stobate = nuul): array "ifüfrequencK seLfi: FREQUENCX ONE DEE)NEreturn"trombace = stromdate,'toDate' => stobate,—0045635645635665675o8 M=569—5/0Pusnea 1 commit to oricin/Jy-loy0g-automated-repors-ask- iminny View pull request loday 13.29liminny017 A 15 V13 ^select * tron reans wnere 1o =1select x tron groups g Juin playbooks p1..n<->1: on a.plavbook id = p.id wiselect * 1r0IOIrOUOSnere t =oo.select * from playbooks where team_ id = 1:select * from playbooks where id = 175:select * from playbook categories where playbook id = 175:select * from users where team_1d = 1:select * from users where 1d = 7160*select * from crm_profiles where user_1d = 7160*select * trom reatures,select*o, Uuno, tyoe, orovoer, oavoook careoory or user 0rleao o, contact* cri conmouracionorciri orovoer LorTranscrrocion orSTaTUSfrom activities where crm_confiquration id = 1 and type =# and crm_ provider id IS NOT NULLand provider != 'uploader' and actual start time IS NOT NULLORDER by id desc;select * from activities where 1d = 54/47785; # 0000400000pCZOJMAOselect p.1d, p.activity_type, pc.1d, pc.nameFRUM playdooks pjoin playpook_categories pe"->l.n: on p.1d = pc.playbook_1dwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm fields WHERE crm confiquration id = 1 and obiect tvpe = !SELECT * FROM crm_ field values WHERE crm_ field id = 4select * from crm_layouts cl join playbook layouts pl 1<->i.n: on cl.id =pwhere crm_configuration_1d = 1 and pl.playbooK_1d = 175:select * from teams:SELECI r.* FRUn aucomaced_reporus rjoin ceams t on r.ueam 10 = t.10WHERE r.trequency = "dally"and f.stauus-AND t.status = 'activelAND (r.expires at >= now) OR r.expires at IS NULD):select * from automated_report_results where report. id IN (18, 33);select * from activity_searches where 1d = 10952;select * from activity_search_filters where activity_search_1d = 10932:select * from automated_reports order by 1d desc;select * from automated_report_results order by id desc;select * from automated_report_results where report id IN (36);Support Daily • in 23 m100% [45)Tue 14 Apr 14:37:02AutomatedRenortsCommandTestCascadeDebug Automated RepLogic Walkthroughoteo l. derueneraceanorsentkesultsrerches AutomatedkenortResult recoros wnerergenerated_at IS NOT NULLsent_at Is NULLstatus = STATUS GENERATEDnas arelared revortYour 7 results pass this.Step 2: getValidRecipientUsers()For each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients(→ includes creator. For regular reports it goes through getRecipientUsers() . Either way, the creator has anemail, so validRecipients is not empty.vStenx. shouldSendRenorto - THISS WHERE ITFAILS•phppubLic const int SENI_REPORI_AI_HUURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +1080• secondsIt then checks:• php$now = carbon::now($earliestiz);$isScheduledTime = (int) $now->format('H") === 5;// current time in GMT+3// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :0 phppublic function hasPassedScheduledTime(?CarbonInterface SgeneratedAt, string $timezone): booltihis checksgeneratedat < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)soit onlv returns true If1. The report was generated before 05:00 GMT+3 today (l.e., before 02:00 UTC.2. AND current time is past 05:00 GMT+3 (past 02:00 UTC)Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeutc, so hasPassedScheduledTime returns false• OR the current time is before 05:00 GMT+3 → nowUtc is NOT > scheduledTimeUtcciven vou 're running this at 2:35 PM UTic+3 14.35 ocaly 11:35 Unic). here's what hapoens.scheduledtame = tocav at 05:00 GMT+3 = 02:00 U10now = 11:35 UTC → past scheduled timevgeneratedat must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (atter 02:00 UTC) today, so generatedAtUtr.Iffcchedulentimellfr) stalse z hacPaccenSchenulerime returns talce → notina senosAsk anything (&+LClaude Sonnet 4.6winasun leam1685:23uir-oia 4 spacesw...
|
12761
|
|
12769
|
274
|
9
|
2026-04-14T11:38:26.170246+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166706170_m1.jpg...
|
PhpStorm
|
faVsco.js – AutomatedReportsSendCommand.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp(ah]Support Daily - in 22 m100% <47ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKER981DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}-zsh86-zshO ₴7Tue 14 Apr 14:38:25181* Unable to acce...*8> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
1844545154833492684
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp(ah]Support Daily - in 22 m100% <47ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKER981DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}-zsh86-zshO ₴7Tue 14 Apr 14:38:25181* Unable to acce...*8> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
12767
|
|
12770
|
275
|
6
|
2026-04-14T11:38:26.128042+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166706128_m2.jpg...
|
PhpStorm
|
faVsco.js – AutomatedReportsSendCommand.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
PhpStormProject vFileFV faVsco.js vEditViewNavigat PhpStormProject vFileFV faVsco.js vEditViewNavigateCodeLaravelRefactorToolsWindowHelp#11894 on JY-18909-automated-reports-ask-iminny ~© AutomatedReportsCi© AutomatedReportsRr© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpIsackM TeamsD TracksD TranscriptionD TwilioO UsersVocabularyD Zoom© CoachingFeedbacksUpr© Command.php© CreateDatabaseUsers.p© DatabaseTableCount.ptc DelereoeAcimnorescc Deleress eroverscom(C DevPostmanCommand.© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantlssues.p© FlushRolesPermissionsC© GeneratelnternalWebhoGroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.phpImportUsersFromCsvFil© IterateUsersCommand.fc.liminnveacheclearcom(©) JiminnyDebugCommanc(©) JiminnySetEncryptedTo(C) .JiminnvTokeninfoComm© MakeSlackLiveCoachins© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesComi© RecalculateDealRisksCo(C) RemoveDeleteMarkersd(c) Remove-XoiredNuddes© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCor© SeedActivities.php© SyncActivity.php© ReportController.php© SendReportJob.php© AutomatedReporh/Command.php x© AutomatedReportsSendCommand.phpAddLayoutchuitles.onpc leam.ongC) AutomatedReportsRepository.php= custom.logconsole PROD© AutomatedReportsService.php) CreateActivityLoggedEvent.php© TrackProviderInstalledEvent.php© ActivityLogged.phpAutomareakeporscallbackservice.ongC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportsSendCommand extends Command521522= laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';A HS_local [iminny@localhost]Sa jiminny v017 A15 Х13 A25 Ct32 Ct35 Ct394144455556C&889988*ne nome one stendrure of tne console commond.*ovar scringprotected $signature = 'automated-reports:send';/*** The console command description.* Ovar string52415251154015275285295305315325335345351554protected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,private readonly AutomatedReportsRepository $reportRepository,private readonly AutomatedReportsService $automatedReportsService,private readonly BusDispatcher $dispatcher,parent::__construct();/*** Execute the console command.* Qreturn intpublic function handle(): int155000%54054154254354454554654715481547550551552553554555556foreach (SrenortResults as SrevortResult) {1558/** Ovar AutomatedReportResult $reportResult */$validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->g560if ($this->automatedReportsService->shouldSen|dReport($validRecipients, $reportResult->get$561$this->logger->info(self::LOG_PREFIX'Dispatching job',1);562563$this->dispatcher->dispatch(new SendReportJob($reportResult->getUvid()));select * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect x Tolgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vuid, type, provider, playbook_category_id, user_id,leao o, contact* cri conmouracionorcirn orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks Pjoin playbook_categories pc"->l.n: on p.1d = pc.playbook_1dwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1..n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status ='activeAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);select * from automated_report_results where repontaig IN (18, 33);return CommandALias: : SUCCESS;565566567568 v569570571572select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where repontaid IN (36);Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)> 0lablSupport Daily • in 22 mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:38:25CascadeDebug Automated Rep+0 .Fetches AutomatedReportResult records where:generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwSten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemail, so validRecipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILsD phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.0 phpsnow = larbon::nowsearllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') === 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerumns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (84L)+ <> Code Claude Sonnet 4.6Winasun leams50:00uir-o( 4 spaces...
|
NULL
|
4282880968425003261
|
NULL
|
click
|
ocr
|
NULL
|
PhpStormProject vFileFV faVsco.js vEditViewNavigat PhpStormProject vFileFV faVsco.js vEditViewNavigateCodeLaravelRefactorToolsWindowHelp#11894 on JY-18909-automated-reports-ask-iminny ~© AutomatedReportsCi© AutomatedReportsRr© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpIsackM TeamsD TracksD TranscriptionD TwilioO UsersVocabularyD Zoom© CoachingFeedbacksUpr© Command.php© CreateDatabaseUsers.p© DatabaseTableCount.ptc DelereoeAcimnorescc Deleress eroverscom(C DevPostmanCommand.© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantlssues.p© FlushRolesPermissionsC© GeneratelnternalWebhoGroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.phpImportUsersFromCsvFil© IterateUsersCommand.fc.liminnveacheclearcom(©) JiminnyDebugCommanc(©) JiminnySetEncryptedTo(C) .JiminnvTokeninfoComm© MakeSlackLiveCoachins© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesComi© RecalculateDealRisksCo(C) RemoveDeleteMarkersd(c) Remove-XoiredNuddes© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCor© SeedActivities.php© SyncActivity.php© ReportController.php© SendReportJob.php© AutomatedReporh/Command.php x© AutomatedReportsSendCommand.phpAddLayoutchuitles.onpc leam.ongC) AutomatedReportsRepository.php= custom.logconsole PROD© AutomatedReportsService.php) CreateActivityLoggedEvent.php© TrackProviderInstalledEvent.php© ActivityLogged.phpAutomareakeporscallbackservice.ongC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportsSendCommand extends Command521522= laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';A HS_local [iminny@localhost]Sa jiminny v017 A15 Х13 A25 Ct32 Ct35 Ct394144455556C&889988*ne nome one stendrure of tne console commond.*ovar scringprotected $signature = 'automated-reports:send';/*** The console command description.* Ovar string52415251154015275285295305315325335345351554protected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,private readonly AutomatedReportsRepository $reportRepository,private readonly AutomatedReportsService $automatedReportsService,private readonly BusDispatcher $dispatcher,parent::__construct();/*** Execute the console command.* Qreturn intpublic function handle(): int155000%54054154254354454554654715481547550551552553554555556foreach (SrenortResults as SrevortResult) {1558/** Ovar AutomatedReportResult $reportResult */$validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->g560if ($this->automatedReportsService->shouldSen|dReport($validRecipients, $reportResult->get$561$this->logger->info(self::LOG_PREFIX'Dispatching job',1);562563$this->dispatcher->dispatch(new SendReportJob($reportResult->getUvid()));select * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect x Tolgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vuid, type, provider, playbook_category_id, user_id,leao o, contact* cri conmouracionorcirn orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks Pjoin playbook_categories pc"->l.n: on p.1d = pc.playbook_1dwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1..n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status ='activeAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);select * from automated_report_results where repontaig IN (18, 33);return CommandALias: : SUCCESS;565566567568 v569570571572select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where repontaid IN (36);Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)> 0lablSupport Daily • in 22 mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:38:25CascadeDebug Automated Rep+0 .Fetches AutomatedReportResult records where:generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwSten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemail, so validRecipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILsD phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.0 phpsnow = larbon::nowsearllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') === 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerumns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (84L)+ <> Code Claude Sonnet 4.6Winasun leams50:00uir-o( 4 spaces...
|
12766
|
|
12771
|
274
|
10
|
2026-04-14T11:38:28.149862+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166708149_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp(ah]Support Daily - in 22 m100% 197ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKER- 281DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}-zsh86-zshO ₴7Tue 14 Apr 14:38:27181* Unable to acce...K 888> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
4185911227182237860
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp(ah]Support Daily - in 22 m100% 197ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKER- 281DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}-zsh86-zshO ₴7Tue 14 Apr 14:38:27181* Unable to acce...K 888> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
|
12772
|
274
|
11
|
2026-04-14T11:38:31.293314+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166711293_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp(ah]Support Daily - in 22 mec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKER-281DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}-zsh100% <47Tue 14 Apr 14:38:3018186-zshO 87* Unable to acce...*- *8> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
794888055854396673
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp(ah]Support Daily - in 22 mec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKER-281DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}-zsh100% <47Tue 14 Apr 14:38:3018186-zshO 87* Unable to acce...*- *8> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
12771
|
|
12773
|
275
|
7
|
2026-04-14T11:38:31.279780+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166711279_m2.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
PhpStormFileFditViewNavigateCodelaraveRefactonTool PhpStormFileFditViewNavigateCodelaraveRefactonToolsWindowHelpFV faVsco.js v• :1894 on.lY-18909-automated-renorts-ask-liminnv vProject vc) ReportController.onpSendReportJob.php(©) AutomatedReportsCommand.php= custom.loc= laravel.logc SF liminny@localhost« HS_local fiminny@localhostC AutomatedReportsSendCommand.phgAadLayoutchutles.onleam.onoC AutomatedReportsRepository.phpIl AuthD eustomerApI JnternallI KlOSkU settings_lelepnonyMWebhook> Hubspot> _ IntegrationAppSubsc(C) ActivityProviderCont(C) ActivityTranscription(©) BaseController.phpCalendarController.p© ReportController.php• SoftphoneWebhookC(S AbstractController.php(1 CommentContextintena(C) Conferences@ptIn@utCcconTolerone(C ExportController.php(©) FrontendController.phpT FrontendControllerTraitC GeocodingController.ph(©) HealthCheckController.(C LiveCoachController.ph© Missing l eamcontroller.© Mobllecontroller.php© NotificationController.plc NottctonrovceronC) PlavbackController.php(C PlaylistController.php(©) PusherController.php(C SlackController.phpC SupportController.php(©) TeamSetupController.pl(C) UserAutomatedReports© WelcomeController.php→ Micclleware> D Requests> MResources> MResponses› Serializers> TransformersC Kernel.phpD PlaylistTrackResourceTraitT ValidateCrmConnectionRec>_ Integrations•linteractions• M.lobs>_ Activity> M AiAutomationM AiReports>M Audiov _ AutomatedReports(C) RequestGenerateAskJin(C) RequestGenerateRepori©) SendReportJob.php(©) SendReportMailJob.php→I CalendarrackProvicerinstalled-vent.ondconsole PROD< console LUiL console [STAGING]Tx: Auto vC ActivityLogged.phpC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong520521© AutomatedReportResult.php© AutomatedReport.phpclass SendReportJob 1mplements ShouldQueue, ShouldBeUniquepubLic tunction nandlelLoggerintertace slogger,Joousoarcherinvertace "oou1spatcher.AutomatedReportsService SautomatedReportsService: void -lltry "$report = $automatedReportsService->getReportResult(Sthis->reportUuid:scatch (Throwable $e) 1sLogger->error(self::LOG_PREFIX.Error getting report result', ['uuld' => sth1s->reportUu1d'exception' => se->getMessage),thnow $e;$logger->info(self::LOG_PREFIX . ' Processing report', ['uuid' => sthis->reportUuid,'status" => $report->getStatusLabel,1):sssPath = sautomatedReportsservice->getMed1aPath(sreport)// Verify the file exists in S3if (! Storage::disk( name: 'client-data-cloud')->exists($s3Path)) {$logger->error(self::LOG_PREFIX' Report file not found in S3', IUuld → scnis->reportuund's3Path' => $s3Path,1):throw new FileNotFoundException( message: 'Report file not found in S3');try"$VaL1dReciplents = saucomacedkeportsservice->getvaL1drec1plentusersфrероги-›дескерогт),includesiminny: true,if (empty($validRecipients) ‹Sloqger->error(self::LOG_PREFIXNo valid recipients found','uuid' => Sthis-›reportUuid,1525115401527528529530531153253300%540541542154354454515461547154815475505515525535545555561558SO.004563564565156615675o8 M10010110211051104105nmit to oricin/Jy-loy09-automated-repors-ask- minny View pull request loday 13.29throw new Runtimetxceptionl message: "No reciplents found for report: isth1s->reportuu15701Get report metadata (same for all recipients)SfileName = SautomatedReportsService->getReportFileName(Sreport):$typeName = Sreport->getReport(->getCustomName®Flaycroundvt.owner_1d FROM soc1al_accounts saJOIN users u on u.1d = sa.soclable_1dJOIN teams tI.n<->I: on t.ld = U.team_1dWHERE U.team_1d = 1 and sa.provider = salestorce :liminny017 A 15 V13 ^select * trom teams wnere 1d = 1,select x tron groups g Juin playbooks p1..n<->1: on a.plavbook id = p.id wiselect * TroIOIrOUOSnere t =oo.select * from playbooks where team_ id = 1:select * from playbooks where id = 175:select * from playbook categories where playbook 1d = 175:select * from users where team_1d = 1:select * from users where 1d = 7160*select * from crm_profiles where user_1d = 7160*select * trom reatures,select# 10, Uu10, type, proviaer, playbook_cacegory-1a, user_ia,leao o, contact* cri conmouracionorcirn orovoer 1o,Transcrrocion orSTaTUSfrom activities where crm_confiquration id = 1 and type ='conference'# and crm_ provider id IS NOT NULLand provider != 'uploader' and actual start time IS NOT NULLORDER by id desc;select * from activities where 1d = 54/47785; # 0000400000pCZOJMAOselect p.1d, p.activity_type, pc.1d, pc.nameFRUM playdooks pJoin playdook_cacegories pc"->l.n: on p.1d = pc.playbook_1dwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm fields WHERE crm confiquration id = 1 and obiect tvpe = "SELECT * FROM crm field values WHERE crm_ field id = 4select * from crm_layouts cl join playbook layouts pl1<->1..n: on cl.id = pwhere crm_configuration_1d = 1 and pl.playbooK_1d = 175:select * from teams:SELECI r.* FRUn aucomaced_reporus rjoin ceams t on r.ueam 10 = t.10WHERE r.trequency = "dally"and f. stauusAND t.status = 'activelAND (r.expires at >= now OR r.expires at IS NULD):select * from automated_report_results where report. id IN (18, 33);select * from activity_searches where 1d = 10952;select * from activity_search_filters where activity_search_1d = 10932:select * from automated_reports order by 1d desc;select * from automated_report_results order by id desc;select * from automated_report_results where report id IN (36);labl:Support Daily • in 22 m100% [45)Tue 14 Apr 14:38:30AutomatedRenortsCommandTestCascadeDebug Automated RepFetches AutomatedReportResult records where:generated at is NOT NULLsent at is NULLstatus = STATUS GENERATED• has a related reportYour 7 results pass this.Sten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemall, so validRecipients is not emotv.vStep 3: shouldSendReporto — hisls whEkEllraiLs# phppublic const int SENT REPORT AT HOURS = 5;The logic picks the earliest timezone (highest UTC ortset = most ahead of UTC). For GMT+s, the oftset is +10800 seconds.t then checks.•phosnow = larbon::nowsearllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;11 is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIfit's not 5:00 AM right now in GMT+3, it falls through to hasPassedSchedu ledTime() :® phppublic tunction hasPassedscheduledlimetrlarbonintertace sgeneratedAt, string stimezone): boounis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.wny Nothing is sentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven vou're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:scheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtUtc.lt(scheduledTimeUtc) istalse→ hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (&+L+ <> Code Claude Sonnet 4.6wW Winasurt leams60:14uir-oia 4 spaces...
|
NULL
|
-8922413385090130735
|
NULL
|
click
|
ocr
|
NULL
|
PhpStormFileFditViewNavigateCodelaraveRefactonTool PhpStormFileFditViewNavigateCodelaraveRefactonToolsWindowHelpFV faVsco.js v• :1894 on.lY-18909-automated-renorts-ask-liminnv vProject vc) ReportController.onpSendReportJob.php(©) AutomatedReportsCommand.php= custom.loc= laravel.logc SF liminny@localhost« HS_local fiminny@localhostC AutomatedReportsSendCommand.phgAadLayoutchutles.onleam.onoC AutomatedReportsRepository.phpIl AuthD eustomerApI JnternallI KlOSkU settings_lelepnonyMWebhook> Hubspot> _ IntegrationAppSubsc(C) ActivityProviderCont(C) ActivityTranscription(©) BaseController.phpCalendarController.p© ReportController.php• SoftphoneWebhookC(S AbstractController.php(1 CommentContextintena(C) Conferences@ptIn@utCcconTolerone(C ExportController.php(©) FrontendController.phpT FrontendControllerTraitC GeocodingController.ph(©) HealthCheckController.(C LiveCoachController.ph© Missing l eamcontroller.© Mobllecontroller.php© NotificationController.plc NottctonrovceronC) PlavbackController.php(C PlaylistController.php(©) PusherController.php(C SlackController.phpC SupportController.php(©) TeamSetupController.pl(C) UserAutomatedReports© WelcomeController.php→ Micclleware> D Requests> MResources> MResponses› Serializers> TransformersC Kernel.phpD PlaylistTrackResourceTraitT ValidateCrmConnectionRec>_ Integrations•linteractions• M.lobs>_ Activity> M AiAutomationM AiReports>M Audiov _ AutomatedReports(C) RequestGenerateAskJin(C) RequestGenerateRepori©) SendReportJob.php(©) SendReportMailJob.php→I CalendarrackProvicerinstalled-vent.ondconsole PROD< console LUiL console [STAGING]Tx: Auto vC ActivityLogged.phpC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong520521© AutomatedReportResult.php© AutomatedReport.phpclass SendReportJob 1mplements ShouldQueue, ShouldBeUniquepubLic tunction nandlelLoggerintertace slogger,Joousoarcherinvertace "oou1spatcher.AutomatedReportsService SautomatedReportsService: void -lltry "$report = $automatedReportsService->getReportResult(Sthis->reportUuid:scatch (Throwable $e) 1sLogger->error(self::LOG_PREFIX.Error getting report result', ['uuld' => sth1s->reportUu1d'exception' => se->getMessage),thnow $e;$logger->info(self::LOG_PREFIX . ' Processing report', ['uuid' => sthis->reportUuid,'status" => $report->getStatusLabel,1):sssPath = sautomatedReportsservice->getMed1aPath(sreport)// Verify the file exists in S3if (! Storage::disk( name: 'client-data-cloud')->exists($s3Path)) {$logger->error(self::LOG_PREFIX' Report file not found in S3', IUuld → scnis->reportuund's3Path' => $s3Path,1):throw new FileNotFoundException( message: 'Report file not found in S3');try"$VaL1dReciplents = saucomacedkeportsservice->getvaL1drec1plentusersфrероги-›дескерогт),includesiminny: true,if (empty($validRecipients) ‹Sloqger->error(self::LOG_PREFIXNo valid recipients found','uuid' => Sthis-›reportUuid,1525115401527528529530531153253300%540541542154354454515461547154815475505515525535545555561558SO.004563564565156615675o8 M10010110211051104105nmit to oricin/Jy-loy09-automated-repors-ask- minny View pull request loday 13.29throw new Runtimetxceptionl message: "No reciplents found for report: isth1s->reportuu15701Get report metadata (same for all recipients)SfileName = SautomatedReportsService->getReportFileName(Sreport):$typeName = Sreport->getReport(->getCustomName®Flaycroundvt.owner_1d FROM soc1al_accounts saJOIN users u on u.1d = sa.soclable_1dJOIN teams tI.n<->I: on t.ld = U.team_1dWHERE U.team_1d = 1 and sa.provider = salestorce :liminny017 A 15 V13 ^select * trom teams wnere 1d = 1,select x tron groups g Juin playbooks p1..n<->1: on a.plavbook id = p.id wiselect * TroIOIrOUOSnere t =oo.select * from playbooks where team_ id = 1:select * from playbooks where id = 175:select * from playbook categories where playbook 1d = 175:select * from users where team_1d = 1:select * from users where 1d = 7160*select * from crm_profiles where user_1d = 7160*select * trom reatures,select# 10, Uu10, type, proviaer, playbook_cacegory-1a, user_ia,leao o, contact* cri conmouracionorcirn orovoer 1o,Transcrrocion orSTaTUSfrom activities where crm_confiquration id = 1 and type ='conference'# and crm_ provider id IS NOT NULLand provider != 'uploader' and actual start time IS NOT NULLORDER by id desc;select * from activities where 1d = 54/47785; # 0000400000pCZOJMAOselect p.1d, p.activity_type, pc.1d, pc.nameFRUM playdooks pJoin playdook_cacegories pc"->l.n: on p.1d = pc.playbook_1dwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm fields WHERE crm confiquration id = 1 and obiect tvpe = "SELECT * FROM crm field values WHERE crm_ field id = 4select * from crm_layouts cl join playbook layouts pl1<->1..n: on cl.id = pwhere crm_configuration_1d = 1 and pl.playbooK_1d = 175:select * from teams:SELECI r.* FRUn aucomaced_reporus rjoin ceams t on r.ueam 10 = t.10WHERE r.trequency = "dally"and f. stauusAND t.status = 'activelAND (r.expires at >= now OR r.expires at IS NULD):select * from automated_report_results where report. id IN (18, 33);select * from activity_searches where 1d = 10952;select * from activity_search_filters where activity_search_1d = 10932:select * from automated_reports order by 1d desc;select * from automated_report_results order by id desc;select * from automated_report_results where report id IN (36);labl:Support Daily • in 22 m100% [45)Tue 14 Apr 14:38:30AutomatedRenortsCommandTestCascadeDebug Automated RepFetches AutomatedReportResult records where:generated at is NOT NULLsent at is NULLstatus = STATUS GENERATED• has a related reportYour 7 results pass this.Sten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemall, so validRecipients is not emotv.vStep 3: shouldSendReporto — hisls whEkEllraiLs# phppublic const int SENT REPORT AT HOURS = 5;The logic picks the earliest timezone (highest UTC ortset = most ahead of UTC). For GMT+s, the oftset is +10800 seconds.t then checks.•phosnow = larbon::nowsearllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;11 is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIfit's not 5:00 AM right now in GMT+3, it falls through to hasPassedSchedu ledTime() :® phppublic tunction hasPassedscheduledlimetrlarbonintertace sgeneratedAt, string stimezone): boounis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.wny Nothing is sentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven vou're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:scheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtUtc.lt(scheduledTimeUtc) istalse→ hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (&+L+ <> Code Claude Sonnet 4.6wW Winasurt leams60:14uir-oia 4 spaces...
|
NULL
|
|
12774
|
274
|
12
|
2026-04-14T11:38:36.695639+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166716695_m1.jpg...
|
PhpStorm
|
faVsco.js – AutomatedReportsCommand.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"#11894 on JY-18909-automated-reports-ask-jiminny, menu","depth":5,"help_text":"Pull request #11894 exists for current branch JY-18909-automated-reports-ask-jiminny","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
305365489813454361
|
-4018125326210054687
|
click
|
hybrid
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
iTerm2ShellEditViewSessionScriptsProfilesWindowHelp(ah]Support Daily - in 22 m100% 197ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKER25981DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}-zsh86-zshO 87Tue 14 Apr 14:38:36181* Unable to acce...*8> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
|
12775
|
275
|
8
|
2026-04-14T11:38:36.684407+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166716684_m2.jpg...
|
PhpStorm
|
faVsco.js – AutomatedReportsCommand.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.03046875,"top":0.017361112,"width":0.0453125,"height":0.022222223},"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"#11894 on JY-18909-automated-reports-ask-jiminny, menu","depth":5,"bounds":{"left":0.07578125,"top":0.017361112,"width":0.14257812,"height":0.022222223},"help_text":"Pull request #11894 exists for current branch JY-18909-automated-reports-ask-jiminny","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.78515625,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"AutomatedReportsCommandTest","depth":6,"bounds":{"left":0.803125,"top":0.017361112,"width":0.09765625,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'AutomatedReportsCommandTest'","depth":6,"bounds":{"left":0.9007813,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'AutomatedReportsCommandTest'","depth":6,"bounds":{"left":0.9140625,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9273437,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96015626,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9734375,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9867188,"top":0.017361112,"width":0.013281226,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Execute","depth":4,"bounds":{"left":0.46132812,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Explain Plan","depth":4,"bounds":{"left":0.47148436,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Browse Query History","depth":4,"bounds":{"left":0.484375,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"View Parameters","depth":4,"bounds":{"left":0.49453124,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Open Query Execution Settings…","depth":4,"bounds":{"left":0.5046875,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"In-Editor Results","depth":4,"bounds":{"left":0.5175781,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Tx: Auto","depth":4,"bounds":{"left":0.53046876,"top":0.08611111,"width":0.028515626,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Cancel Running Statements","depth":4,"bounds":{"left":0.56171876,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Playground","depth":4,"bounds":{"left":0.5746094,"top":0.08611111,"width":0.034765624,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-2795940472118649142
|
-9120817794974547126
|
click
|
hybrid
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
PhpStormFileFditViewNavigateCodeLaravelRefactonToolsWindowHelpFV faVsco.js v#11894 on JY-18909-automated-reports-ask-liminny ~Project v| ProphetAiv → Reports(C AutomatedReportsC(©) AutomatedReportsR(C) AutomatedReportsS© CreateMockAsKJimirC DeleteReportcomma© GenerateMarketingR©leam.phpC Usage.phpM Slack→ Teams→ Tracks_ TranscriptionD TwilioD Users_ Vocabulary_ 4oom© coachingeedbacksupcg command.phpcreateDatabaseusers.pc Daraoase oecountoiC DeleteOldAiCrmNotesC(©) DeleteS3LeftoversCom|DevPostmanCommand./C DiarizeViaAiParticipantk(©) EncryptTokensCommar(©) EngagementStatsReger© FeatureFlagsHelper.php© FixCrossTenantlssues.pC) FlushRolesPermissions((C) GeneratelnternalWebho(C) GroupSetDefaultLanquaC) HelperTruncateCoachin(©) HubspotJournalPollingC(©) HubspotWebhookServic(©) ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gcJiminnvcacheclearcom(c) minnv Deouacommanc(C) JiminnvSetEncrvotedTcC) JiminnvTokenInfoComm(C) MakeSlackLiveCoachinc(C) ManageScimForTeam.o(©) MarkBranchForEnvironn(C) MuteOrganizerChannel.(C) PhpApm.php(C PropagateCoachingFee(©) PurgeConterences.php(©) PurgeSoftDeletedOppol© PurgeSyncBatchesCom(C) RecalculateDealRisksCdC) RemoveDeleteMarkersd(C) RemoveExpiredNudaes(C) RemoveUnusedParticio:C ResetElasticSearch.php(C) RestoreActivityCrmProv(C) RestoreActivityTypeCor© ReportCpatroller.php xC SendReportJob.php(©) AutomatedReportsCommand.php XC AutomatedReportsSendCommand.phgC AddLayoutEntities.phpleam.onoC) AutomatedReportsRepository.php= custom.loc= laravel.logc SF liminny@localhost« HS_local fiminny@localhost) AutomatedReportsService.phpCreateHeldActivityEvent.phpe) Track?rovidernstalled-vent.onoconsole PROD4 console [EU1L console [STAGING]Tx: Auto vFlaycroundvC ActivityLogged.php520C RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong15211© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportscommand extends commandv 0J 52315251private function getReportByTdstring SreportId): Collection115/1381391401411421431441451146|1471481149150151152153154155157158159160161162116611671681691701711721731174175176117711781179180Sreport = $this->reportRepository->findById0rUuid($reportid):154527528529if (Sreport === nulb) 1sthis->Logger->warning(self::LOG_PREFIX .• Report not found for --report-1d',L'reportid531sthis->warn( string: "Report not found: isreportia");return collecto);153253515.5411555if @ Sreport->getStatuso)Sthis->logger->warning(self::LOG PREFTX . ' Report is inactive. processina anvwav manuali'reportid' => Sreportid.''reportluid' => $report->getluido.55 AI);sthis->warn( string: 'Report 1s 1nactive - processing anyway (manual override).')*$team = $report->getTeam():if ($team->getStatus() !== Team::STATUS_ACTIVE) {$this->logger->warning(self::LOG_PREFIX .'reportId' => SreportId.'reportluid' => Sreport-›getUuido.'teamId' => $report->getTeamId(),'teamStatus' => $team->getStatus(),1):5395405415421543154415451154615471548549550551552$this->warn( string: "Team #$report-›getleamidOr is not active - processing anyway (manua]553554if (Srenort->isFxpiredO) {55515561$this->logger->warning(self::LOG_PREFIX . ' Report is expired, processing anyway (manual'reportId' => SreportId.'reportluid' => Sreport-›getUuido.1558'expiresAt' => Sreport->getExpiresAtO?->toDateStringo.I):$this->warn( string: 'Report is expired (expires_at:" • Sreport->getexpiresAt(?->toDateSti562563$this->info( string: self::LOG_PREFIX . ' Automated report found' . $report->getCustomName()):564156515661return collect(lsreport5675o8 M15701572Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)t.owner_1d FROM soc1al_accounts saliminny017 A 15 V13 ^JolN users u on u.1d = sa.soclable_1dJOIN teams tI.n<->I: on t.1d = u.team_1dWHERE U.team_1d = 1 and sa.provider = salestorce :select * tron reans where 1o =15select x tron groupsg suin playpooks p1..n<->1: on a.plavbook id = p.id wiselect * 1r0IOIrOUOSnere t =oo.select * from playbooks where team_ id = 1:select * from playbooks where id = 175:select * from playbook categories where playbook 1d = 175:select * from users where team_1d = 1:select * from users where 1d = 7160*select * from crm_profiles where user_1d = 7160*select * trom reatures,select# 10, Uud, type, provider, playbook_category-1o, user_1a,leao o, contact* cri conmouracionorcirn orovoer LorTranscrrocion orSTaTUSfrom activities where crm_confiquration id = 1 and type ='conference'# and crm_ provider id IS NOT NULLand provider != 'uploader' and actual start time IS NOT NULLORDER by id desc;select * from activities where 1d = 54/47783; # 0000400000pCZOJMACselect p.1d, p.activity_type, pc.1d, pc.nameFRUM playdooks pjoin playpook_categories pe"->l.n: on p.1d = pc.playbook_1dwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm fields WHERE crm confiquration id = 1 and obiect tvoe = "SELECT * FROM crm_ field values WHERE crm_ field id = 4select * from crm_layouts cl join playbook layouts pl1<->1..n: on cl.id = pwhere crm_configuration_1d = 1 and pl.playbooK_1d = 175:select * from teams:SELECI r.* FRUn aucomaced_reporus rjoin ceams t on r.ueam 10 = t.10WHERE r.trequency = "dally"and f.stauus-AND t.status = 'activelAND (r.expires at >= now OR r.expires at IS NULD):select * from automated_report_results where report.id IN (18, 33);select * from activity_searches where 1d = 10952;select * from activity_search_filters where activity_search_1d = 10932:select * from automated_reports order by 1d desc;select * tromautomated_report_results order by id desc;select * from automated_report_results where report id IN (36);labl:Support Daily • in 22 m100% [45)Tue 14 Apr 14:38:36AutomatedRenortsCommandTestCascadeDebug Automated RepFetches AutomatedReportResult records where:generated at is NOT NULLsent at is NULLstatus = STATUS GENERATED• has a related reportYour 7 results pass this.Sten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemall, so validRecipients is not emotv.vStep 3: shouldSendReporto — hisls whEkEllraiLs# phppublic const int SENT REPORT AT HOURS = 5;The logic picks the earliest timezone (highest UTC oftset = most ahead of UTC). For GMT+s, the offset is +10800 seconds.t then checks.•phosnow = larbon::now searllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;1/ is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIfit's not 5:00 AM right now in GMT+3, it falls through to hasPassedSchedu ledTime() :® phppublic tunction hasPassedscheduledlimetrlarbonintertace sgeneratedAt, string stimezone): boounis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.wny Nothing is sentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven vou're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:scheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtUtc.lt(scheduledTimeUtc) istalse→ hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (&+L+ <> Code Claude Sonnet 4.6wwinasun leamsuir-oia 4 spaces...
|
12773
|
|
12776
|
274
|
13
|
2026-04-14T11:38:40.844866+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166720844_m1.jpg...
|
iTerm2
|
ec2-user@ip-10-30-93-249:~
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Last login: Sat Apr 11 12:38:35 on ttys007
Poetry Last login: Sat Apr 11 12:38:35 on ttys007
Poetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents
Poetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/jiminny/app (JY-18909-automated-reports-ask-jiminny) $ vstg
Warning: Permanently added 'jiminny-stage-ecs1' (ED25519) to the list of known hosts.
A newer release of "Amazon Linux" is available.
Version 2023.10.20260105:
Version 2023.10.20260120:
Version 2023.10.20260202:
Version 2023.10.20260216:
Version 2023.10.20260302:
Version 2023.10.20260325:
Version 2023.10.20260330:
Version 2023.11.20260406:
Version 2023.11.20260413:
Version 2023.8.20250707:
Version 2023.8.20250715:
Version 2023.8.20250721:
Version 2023.8.20250808:
Version 2023.8.20250818:
Version 2023.8.20250908:
Version 2023.8.20250915:
Version 2023.9.20250929:
Version 2023.9.20251014:
Version 2023.9.20251020:
Version 2023.9.20251027:
Version 2023.9.20251105:
Version 2023.9.20251110:
Version 2023.9.20251117:
Version 2023.9.20251208:
Run "/usr/bin/dnf check-release-update" for full release and version update info
, #_
~\_ ####_
~~ \_#####\
~~ \###|
~~ \#/ ___ Amazon Linux 2023 (ECS Optimized)
~~ V~' '->
~~~ /
~~._. _/
_/ _/
_/m/'
For documentation, visit [URL_WITH_CREDENTIALS] php artisan automated-reports
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Started {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Found 2 daily reports to process {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"fa7417aa-538e-49ab-8827-77235637a6f9","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"63e6d70b-b7cb-4dfa-8443-53453e6c4054","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Completed {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
root@fee51d2e1f17:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format "{{.ID}}" --filter "name=ecs-worker" | head -1) /bin/bash -c "cd /home/jiminny && bash"
root@73b64f5d54a3:/home/jiminny# php artisan automated-reports
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Started {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Found 3 daily reports to process {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"fa7417aa-538e-49ab-8827-77235637a6f9","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"63e6d70b-b7cb-4dfa-8443-53453e6c4054","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:04] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"7e7846e2-c0ea-4040-88f4-0ae14b66ade8","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:04] staging.INFO: [automated-reports] Completed {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
root@73b64f5d54a3:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format "{{.ID}}" --filter "name=ecs-worker" | head -1) /bin/bash -c "cd /home/jiminny && bash"
root@c78a087b1345:/home/jiminny# php artisan automated-reports
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Started {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Found 3 daily reports to process {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"fa7417aa-538e-49ab-8827-77235637a6f9","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"63e6d70b-b7cb-4dfa-8443-53453e6c4054","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"7e7846e2-c0ea-4040-88f4-0ae14b66ade8","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Completed {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
root@c78a087b1345:/home/jiminny# php artisan automated-reports --report-id 35
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Started {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[automated-reports] Automated report found Test 6
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Found 1 daily reports to process {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"7e7846e2-c0ea-4040-88f4-0ae14b66ade8","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Completed {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
root@c78a087b1345:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format "{{.ID}}" --filter "name=ecs-worker" | head -1) /bin/bash -c "cd /home/jiminny && bash"
root@b79a4bdd6905:/home/jiminny# php artisan automated-reports --report-id 71b8bbf5-23f4-41df-b637-693765e7aa78
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Started {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[automated-reports] Automated report found Tuesday report
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Found 1 daily reports to process {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"71b8bbf5-23f4-41df-b637-693765e7aa78","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Completed {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
root@b79a4bdd6905:/home/jiminny# php artisan automated-reports:send
root@b79a4bdd6905:/home/jiminny# php artisan tinker
Psy Shell v0.12.21 (PHP 8.3.30 — cli) by Justin Hileman
New PHP manual is available (latest: 3.0.5). Update with `doc --update-manual`
> $repo = app(AutomatedReportsRepository::class);
[!] Aliasing 'AutomatedReportsRepository' to 'Jiminny\Repositories\AutomatedReportsRepository' for this Tinker session.
= Jiminny\Repositories\AutomatedReportsRepository {#15215}
> $repo->getGeneratedNotSentResults();
= Illuminate\Database\Eloquent\Collection {#15683
all: [
Jiminny\Models\AutomatedReportResult {#15703
id: 14,
uuid: b"C^Ð>!€]¢ª1vàý\x1F6Ï",
report_id: 8,
name: "Exec Summary - 5 Sep 2024 - 10 Mar 2026 - All",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"team_id":1,"request_id":"21805da2-d03e-435e-aa31-76e0fd1f36cf","report_type":"exec_summary","media_types":["pdf","podcast"],"from_date":"2024-09-05T00:00:00+00:00","to_date":"2026-03-10T23:59:59+00:00","group_ids":[],"call_deal_stage":[],"current_deal_stage":[],"deal_min_value":null,"deal_max_value":null,"call_types":["conference","dialer"],"call_duration_min_seconds":null,"call_duration_max_seconds":null,"special_requirements":"","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"5 Sep 2024 - 10 Mar 2026","playbook_categories":[],"custom_name":null}",
response: "{"request_id":"21805da2-d03e-435e-aa31-76e0fd1f36cf","status":"completed","timestamp":"2026-03-26T14:10:58.983895+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf.MD","report_type":"exec_summary","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf.pdf","podcast_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.txt","podcast_audio_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.mp3","podcast_ssml_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.ssml"}",
requested_at: "2026-03-26 14:06:35",
generated_at: "2026-03-26 14:10:59",
sent_at: null,
created_at: "2026-03-26 14:06:35",
updated_at: "2026-03-26 14:10:59",
report: Jiminny\Models\AutomatedReport {#15197
id: 8,
#uuid: b"FWNçôý\x1Dªš–+âga”d",
team_id: 1,
type: "exec_summary",
status: 1,
frequency: "one_off",
from: "2024-09-05 00:00:00",
to: "2026-03-10 00:00:00",
deal_value_min: null,
deal_value_max: null,
call_types: "["conference","dialer"]",
media_types: "["pdf","podcast"]",
call_duration_min: null,
call_duration_max: null,
groups: "[]",
playbook_categories: "[]",
deal_at_call_stages: "[]",
current_deal_stages: "[]",
recipients: "{"users":[]}",
jiminny_recipients: "{"users":[]}",
additional_prompt_input: "",
custom_name: null,
activity_search_id: null,
ask_anything_prompt_id: null,
expires_at: null,
created_by: 3248,
created_at: "2026-03-26 14:06:32",
updated_at: "2026-03-26 14:06:32",
deleted_at: null,
},
},
Jiminny\Models\AutomatedReportResult {#15701
id: 43,
uuid: b"GJ—\x14?§ÄÉøN_0A}Ý",
report_id: 33,
name: "Ask Jiminny test report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54964443","54964442","54214348","54747783","54792639","54355211","54214356","54214362","54373257","54276602","54547166","54357434","54638437","54439335","54184628","54435911","54547029","54580912","54314274","53918272","54447612","54561308","52175046","54531535","54495620","52753147","52175055","54358692","54020412","54424068","54222599","53852885","52697526","53944212","54222051","54125650","54284918","54137014","54142985","53755346","54078231","52175067","54021634","53971125","54077453","54010996","52759195","53028445","54065927","52175082","53920744","54020314","52714861","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","52263045","52564798","53604424","53575428","52167221","53545307","53545088","53606423","52956249","52894249","52568574","52527230","53058889","52760234","52263048","52451159","52175073","52358247","52189687","52232025","51980465","52430474","52363300","52346694","52359342","52231503","52255239","50934254","52303651","52258169","51958927","52242714","52239097","52083853","52083904","51765719","52072580","51525359","51806803"],"team_id":1,"request_id":"3fa7c4c9-9714-474a-adf8-4e5f30417ddd","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Ask Jiminny test report"}",
response: "{"request_id":"3fa7c4c9-9714-474a-adf8-4e5f30417ddd","status":"completed","timestamp":"2026-04-14T07:49:35.099004+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.pdf"}",
requested_at: "2026-04-14 07:49:04",
generated_at: "2026-04-14 07:49:35",
sent_at: null,
created_at: "2026-04-14 07:49:03",
updated_at: "2026-04-14 07:49:35",
report: Jiminny\Models\AutomatedReport {#15196
id: 33,
#uuid: b"I«SŽút\x17ªˆ'w#V7¦ù",
team_id: 1,
type: "ask_jiminny",
status: 1,
frequency: "daily",
from: null,
to: null,
deal_value_min: null,
deal_value_max: null,
call_types: "[]",
media_types: "["pdf"]",
call_duration_min: null,
call_duration_max: null,
groups: "[9]",
playbook_categories: null,
deal_at_call_stages: null,
current_deal_stages: null,
recipients: "{"users":[7160,23309]}",
jiminny_recipients: null,
additional_prompt_input: null,
custom_name: "Ask Jiminny test report",
activity_search_id: 26912,
ask_anything_prompt_id: 62,
expires_at: "2026-04-30",
created_by: 7160,
created_at: "2026-04-08 10:12:30",
updated_at: "2026-04-08 10:12:30",
deleted_at: null,
},
},
Jiminny\Models\AutomatedReportResult {#15700
id: 45,
uuid: b"A¢•M8z~‚*l\x01÷ð\0s",
report_id: 33,
name: "Ask Jiminny test report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54964443","54964442","54214348","54747783","54792639","54355211","54214356","54214362","54373257","54276602","54547166","54357434","54638437","54439335","54184628","54435911","54547029","54580912","54314274","53918272","54447612","54561308","52175046","54531535","54495620","52753147","52175055","54358692","54020412","54424068","54222599","53852885","52697526","53944212","54222051","54125650","54284918","54137014","54142985","53755346","54078231","52175067","54021634","53971125","54077453","54010996","52759195","53028445","54065927","52175082","53920744","54020314","52714861","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","52263045","52564798","53604424","53575428","52167221","53545307","53545088","53606423","52956249","52894249","52568574","52527230","53058889","52760234","52263048","52451159","52175073","52358247","52189687","52232025","51980465","52430474","52363300","52346694","52359342","52231503","52255239","50934254","52303651","52258169","51958927","52242714","52239097","52083853","52083904","51765719","52072580","51525359","51806803"],"team_id":1,"request_id":"38817a7e-954d-41a2-822a-6c01f7f00073","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Ask Jiminny test report"}",
response: "{"request_id":"38817a7e-954d-41a2-822a-6c01f7f00073","status":"completed","timestamp":"2026-04-14T08:41:46.594895+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/38817a7e-954d-41a2-822a-6c01f7f00073.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/38817a7e-954d-41a2-822a-6c01f7f00073.pdf"}",
requested_at: "2026-04-14 08:41:11",
generated_at: "2026-04-14 08:41:46",
sent_at: null,
created_at: "2026-04-14 08:41:11",
updated_at: "2026-04-14 08:41:46",
report: Jiminny\Models\AutomatedReport {#15196},
},
Jiminny\Models\AutomatedReportResult {#15705
id: 47,
uuid: b"D‘\x10[̘^–𔹧-ÞÝB",
report_id: 33,
name: "Ask Jiminny test report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54964443","54964442","54214348","54747783","54792639","54355211","54214356","54214362","54373257","54276602","54547166","54357434","54638437","54439335","54184628","54435911","54547029","54580912","54314274","53918272","54447612","54561308","52175046","54531535","54495620","52753147","52175055","54358692","54020412","54424068","54222599","53852885","52697526","53944212","54222051","54125650","54284918","54137014","54142985","53755346","54078231","52175067","54021634","53971125","54077453","54010996","52759195","53028445","54065927","52175082","53920744","54020314","52714861","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","52263045","52564798","53604424","53575428","52167221","53545307","53545088","53606423","52956249","52894249","52568574","52527230","53058889","52760234","52263048","52451159","52175073","52358247","52189687","52232025","51980465","52430474","52363300","52346694","52359342","52231503","52255239","50934254","52303651","52258169","51958927","52242714","52239097","52083853","52083904","51765719","52072580","51525359","51806803"],"team_id":1,"request_id":"cc985e96-105b-4491-9a94-b9a72ddedd42","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Ask Jiminny test report"}",
response: "{"request_id":"cc985e96-105b-4491-9a94-b9a72ddedd42","status":"completed","timestamp":"2026-04-14T10:46:38.602513+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cc985e96-105b-4491-9a94-b9a72ddedd42.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cc985e96-105b-4491-9a94-b9a72ddedd42.pdf"}",
requested_at: "2026-04-14 10:46:09",
generated_at: "2026-04-14 10:46:38",
sent_at: null,
created_at: "2026-04-14 10:46:08",
updated_at: "2026-04-14 10:46:38",
report: Jiminny\Models\AutomatedReport {#15196},
},
Jiminny\Models\AutomatedReportResult {#15687
id: 49,
uuid: b"K·Ì¬Ò\vþþ«PÈ»‰\x19™s",
report_id: 35,
name: "Test 6 - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"Please make a summary for all calls","call_ids":["49880280","49104686","48360159","47193308","44762288","43862984","41678335","41310991","39940631","39779620","39389894","39106205","38745110","38510502"],"team_id":1,"request_id":"d20bfefe-ccac-4bb7-ab50-c8bb89199973","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Test 6"}",
response: "{"request_id":"d20bfefe-ccac-4bb7-ab50-c8bb89199973","status":"completed","timestamp":"2026-04-14T10:46:37.905336+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.pdf"}",
requested_at: "2026-04-14 10:46:16",
generated_at: "2026-04-14 10:46:37",
sent_at: null,
created_at: "2026-04-14 10:46:16",
updated_at: "2026-04-14 10:46:38",
report: Jiminny\Models\AutomatedReport {#15219
id: 35,
#uuid: b"""
@@Àê~xFâˆô\n
áKfè
""",
team_id: 1,
type: "ask_jiminny",
status: 1,
frequency: "daily",
from: null,
to: null,
deal_value_min: null,
deal_value_max: null,
call_types: "[]",
media_types: "["pdf"]",
call_duration_min: null,
call_duration_max: null,
groups: "[9]",
playbook_categories: null,
deal_at_call_stages: null,
current_deal_stages: null,
recipients: "{"users":[3248,23559]}",
jiminny_recipients: null,
additional_prompt_input: null,
custom_name: "Test 6",
activity_search_id: 10932,
ask_anything_prompt_id: 65,
expires_at: "2026-04-19",
created_by: 3248,
created_at: "2026-04-14 08:39:14",
updated_at: "2026-04-14 08:39:14",
deleted_at: null,
},
},
Jiminny\Models\AutomatedReportResult {#15686
id: 50,
uuid: b"GÙµ‚\{3‡p©ú1ÿÖŽ",
report_id: 35,
name: "Test 6 - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"Please make a summary for all calls","call_ids":["49880280","49104686","48360159","47193308","44762288","43862984","41678335","41310991","39940631","39779620","39389894","39106205","38745110","38510502"],"team_id":1,"request_id":"5c9d7b33-b582-47d9-8770-a9fa31ffd68d","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Test 6"}",
response: "{"request_id":"5c9d7b33-b582-47d9-8770-a9fa31ffd68d","status":"completed","timestamp":"2026-04-14T10:49:01.677577+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.pdf"}",
requested_at: "2026-04-14 10:48:43",
generated_at: "2026-04-14 10:49:01",
sent_at: null,
created_at: "2026-04-14 10:48:42",
updated_at: "2026-04-14 10:49:01",
report: Jiminny\Models\AutomatedReport {#15219},
},
Jiminny\Models\AutomatedReportResult {#15685
id: 51,
uuid: b"L\x13HSÏÖ»™ŸŽ¦¯Cár{",
report_id: 36,
name: "Tuesday report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54214348","54747783","54792639","54355211","54214356","54579532","54214362","54795501","54373257","54566775","54179068","54691680","54702966","54186485","54547166","54357434","54439335","54435911","54547029","54179299","54580912","54314274","53918272","54310744","54447612","54561308","52175046","54531535","54495620","52753147","53853301","52551697","52175055","54358692","54020412","54424068","54222599","53853298","53852885","53931221","54132327","53944212","54037186","54125650","54059512","53801108","54284918","52552430","54142985","53755346","52175067","54021634","52896288","52175051","54077453","52413114","54010996","53528248","54078291","53813598","54076266","53028445","54065927","53922780","53729434","53919824","53384442","52175082","53920744","54020314","52714861","54009217","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","53769369","53384450","52161199","52263045","52564798","50907426","53604424","53575428","52167221","52156369","53545307","52565625","53610225","53594648","53545088","52175041","52956249","52217425","52562272","52248293"],"team_id":1,"request_id":"cfd6bb99-4853-4c13-9f8e-a6af43e1727b","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Tuesday report"}",
response: "{"request_id":"cfd6bb99-4853-4c13-9f8e-a6af43e1727b","status":"completed","timestamp":"2026-04-14T11:23:03.951289+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.pdf"}",
requested_at: "2026-04-14 11:22:36",
generated_at: "2026-04-14 11:23:04",
sent_at: null,
created_at: "2026-04-14 11:22:36",
updated_at: "2026-04-14 11:23:04",
report: Jiminny\Models\AutomatedReport {#15221
id: 36,
#uuid: b"Aß#ôq¸»õ¶7i7eçªx",
team_id: 1,
type: "ask_jiminny",
status: 1,
frequency: "daily",
from: null,
to: null,
deal_value_min: null,
deal_value_max: null,
call_types: "[]",
media_types: "["pdf"]",
call_duration_min: null,
call_duration_max: null,
groups: "[]",
playbook_categories: null,
deal_at_call_stages: null,
current_deal_stages: null,
recipients: "{"users":[7160]}",
jiminny_recipients: null,
additional_prompt_input: null,
custom_name: "Tuesday report",
activity_search_id: 26913,
ask_anything_prompt_id: 62,
expires_at: "2026-04-30",
created_by: 7160,
created_at: "2026-04-14 11:20:20",
updated_at: "2026-04-14 11:20:20",
deleted_at: null,
},
},
],
}
> $repo->getGeneratedNotSentResults()->count();
= 7
> exit
INFO Goodbye.
root@b79a4bdd6905:/home/jiminny#
DOCKER
Close Tab
DEV (docker)
Close Tab
APP (-zsh)
Close Tab
ec2-user@ip-10-30-93-249:~ (nc)
Close Tab
-zsh
Close Tab
-zsh
Close Tab
-zsh
Close Tab
✳ Unable to access screenpipe activity data (claude)
Close Tab
⌥⌘1
ec2-user@ip-10-30-93-249:~...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"Last login: Sat Apr 11 12:38:35 on ttys007\n\nPoetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents\n\nPoetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/jiminny/app (JY-18909-automated-reports-ask-jiminny) $ vstg\nWarning: Permanently added 'jiminny-stage-ecs1' (ED25519) to the list of known hosts.\n\nA newer release of \"Amazon Linux\" is available.\n Version 2023.10.20260105:\n Version 2023.10.20260120:\n Version 2023.10.20260202:\n Version 2023.10.20260216:\n Version 2023.10.20260302:\n Version 2023.10.20260325:\n Version 2023.10.20260330:\n Version 2023.11.20260406:\n Version 2023.11.20260413:\n Version 2023.8.20250707:\n Version 2023.8.20250715:\n Version 2023.8.20250721:\n Version 2023.8.20250808:\n Version 2023.8.20250818:\n Version 2023.8.20250908:\n Version 2023.8.20250915:\n Version 2023.9.20250929:\n Version 2023.9.20251014:\n Version 2023.9.20251020:\n Version 2023.9.20251027:\n Version 2023.9.20251105:\n Version 2023.9.20251110:\n Version 2023.9.20251117:\n Version 2023.9.20251208:\nRun \"/usr/bin/dnf check-release-update\" for full release and version update info\n , #_\n ~\\_ ####_\n ~~ \\_#####\\\n ~~ \\###|\n ~~ \\#/ ___ Amazon Linux 2023 (ECS Optimized)\n ~~ V~' '->\n ~~~ /\n ~~._. _/\n _/ _/\n _/m/'\n\nFor documentation, visit http://aws.amazon.com/documentation/ecs\n[ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@fee51d2e1f17:/home/jiminny# php artisan about\n\n Environment ...................................................................................................................................... \n Application Name ................................................................................................................. Jiminny Web App \n Laravel Version .......................................................................................................................... 12.54.1 \n PHP Version ............................................................................................................................... 8.3.30 \n Composer Version ............................................................................................................................... - \n Environment .............................................................................................................................. staging \n Debug Mode ................................................................................................................................... OFF \n URL ...................................................................................................................... app.staging.jiminny.com \n Maintenance Mode ............................................................................................................................. OFF \n Timezone ..................................................................................................................................... UTC \n Locale ..................................................................................................................................... en_US \n\n Cache ............................................................................................................................................ \n Config .................................................................................................................................... CACHED \n Events ................................................................................................................................ NOT CACHED \n Routes .................................................................................................................................... CACHED \n Views ..................................................................................................................................... CACHED \n\n Drivers .......................................................................................................................................... \n Broadcasting .............................................................................................................................. pusher \n Cache ...................................................................................................................................... redis \n Database ................................................................................................................................... mysql \n Logs .................................................................................................................................... errorlog \n Mail ......................................................................................................................................... ses \n Queue ........................................................................................................................................ sqs \n Session .................................................................................................................................... redis \n\n Storage .......................................................................................................................................... \n public/storage ........................................................................................................................ NOT LINKED \n\n Sentry ........................................................................................................................................... \n Enabled ...................................................................................................................................... YES \n Environment .............................................................................................................................. staging \n Laravel SDK Version ....................................................................................................................... 4.13.0 \n PHP SDK Version ........................................................................................................................... 4.13.0 \n Release ................................................................................................................................... 869720 \n Sample Rate Errors .......................................................................................................................... 100% \n Sample Rate Performance Monitoring ....................................................................................................... NOT SET \n Sample Rate Profiling .................................................................................................................... NOT SET \n Send Default PII ........................................................................................................................ DISABLED \n\nroot@fee51d2e1f17:/home/jiminny# php artisan automated-reports\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Started {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Found 2 daily reports to process {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"fa7417aa-538e-49ab-8827-77235637a6f9\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"63e6d70b-b7cb-4dfa-8443-53453e6c4054\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\nroot@fee51d2e1f17:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@73b64f5d54a3:/home/jiminny# php artisan automated-reports\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Started {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Found 3 daily reports to process {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"fa7417aa-538e-49ab-8827-77235637a6f9\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"63e6d70b-b7cb-4dfa-8443-53453e6c4054\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:04] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"7e7846e2-c0ea-4040-88f4-0ae14b66ade8\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:04] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\nroot@73b64f5d54a3:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@c78a087b1345:/home/jiminny# php artisan automated-reports\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Started {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Found 3 daily reports to process {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"fa7417aa-538e-49ab-8827-77235637a6f9\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"63e6d70b-b7cb-4dfa-8443-53453e6c4054\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"7e7846e2-c0ea-4040-88f4-0ae14b66ade8\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\nroot@c78a087b1345:/home/jiminny# php artisan automated-reports --report-id 35\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Started {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[automated-reports] Automated report found Test 6\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Found 1 daily reports to process {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"7e7846e2-c0ea-4040-88f4-0ae14b66ade8\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\nroot@c78a087b1345:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@b79a4bdd6905:/home/jiminny# php artisan automated-reports --report-id 71b8bbf5-23f4-41df-b637-693765e7aa78\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Started {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[automated-reports] Automated report found Tuesday report\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Found 1 daily reports to process {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"71b8bbf5-23f4-41df-b637-693765e7aa78\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\nroot@b79a4bdd6905:/home/jiminny# php artisan automated-reports:send\nroot@b79a4bdd6905:/home/jiminny# php artisan tinker\nPsy Shell v0.12.21 (PHP 8.3.30 — cli) by Justin Hileman\nNew PHP manual is available (latest: 3.0.5). Update with `doc --update-manual`\n> $repo = app(AutomatedReportsRepository::class);\n[!] Aliasing 'AutomatedReportsRepository' to 'Jiminny\\Repositories\\AutomatedReportsRepository' for this Tinker session.\n= Jiminny\\Repositories\\AutomatedReportsRepository {#15215}\n\n> $repo->getGeneratedNotSentResults();\n= Illuminate\\Database\\Eloquent\\Collection {#15683\n all: [\n Jiminny\\Models\\AutomatedReportResult {#15703\n id: 14,\n uuid: b\"C^Ð>!€]¢ª1vàý\\x1F6Ï\",\n report_id: 8,\n name: \"Exec Summary - 5 Sep 2024 - 10 Mar 2026 - All\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"team_id\":1,\"request_id\":\"21805da2-d03e-435e-aa31-76e0fd1f36cf\",\"report_type\":\"exec_summary\",\"media_types\":[\"pdf\",\"podcast\"],\"from_date\":\"2024-09-05T00:00:00+00:00\",\"to_date\":\"2026-03-10T23:59:59+00:00\",\"group_ids\":[],\"call_deal_stage\":[],\"current_deal_stage\":[],\"deal_min_value\":null,\"deal_max_value\":null,\"call_types\":[\"conference\",\"dialer\"],\"call_duration_min_seconds\":null,\"call_duration_max_seconds\":null,\"special_requirements\":\"\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"5 Sep 2024 - 10 Mar 2026\",\"playbook_categories\":[],\"custom_name\":null}\",\n response: \"{\"request_id\":\"21805da2-d03e-435e-aa31-76e0fd1f36cf\",\"status\":\"completed\",\"timestamp\":\"2026-03-26T14:10:58.983895+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf.MD\",\"report_type\":\"exec_summary\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf.pdf\",\"podcast_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.txt\",\"podcast_audio_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.mp3\",\"podcast_ssml_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.ssml\"}\",\n requested_at: \"2026-03-26 14:06:35\",\n generated_at: \"2026-03-26 14:10:59\",\n sent_at: null,\n created_at: \"2026-03-26 14:06:35\",\n updated_at: \"2026-03-26 14:10:59\",\n report: Jiminny\\Models\\AutomatedReport {#15197\n id: 8,\n #uuid: b\"FWNçôý\\x1Dªš–+âga”d\",\n team_id: 1,\n type: \"exec_summary\",\n status: 1,\n frequency: \"one_off\",\n from: \"2024-09-05 00:00:00\",\n to: \"2026-03-10 00:00:00\",\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[\"conference\",\"dialer\"]\",\n media_types: \"[\"pdf\",\"podcast\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[]\",\n playbook_categories: \"[]\",\n deal_at_call_stages: \"[]\",\n current_deal_stages: \"[]\",\n recipients: \"{\"users\":[]}\",\n jiminny_recipients: \"{\"users\":[]}\",\n additional_prompt_input: \"\",\n custom_name: null,\n activity_search_id: null,\n ask_anything_prompt_id: null,\n expires_at: null,\n created_by: 3248,\n created_at: \"2026-03-26 14:06:32\",\n updated_at: \"2026-03-26 14:06:32\",\n deleted_at: null,\n },\n },\n Jiminny\\Models\\AutomatedReportResult {#15701\n id: 43,\n uuid: b\"GJ—\\x14?§ÄÉøN_0A}Ý\",\n report_id: 33,\n name: \"Ask Jiminny test report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54964443\",\"54964442\",\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54214362\",\"54373257\",\"54276602\",\"54547166\",\"54357434\",\"54638437\",\"54439335\",\"54184628\",\"54435911\",\"54547029\",\"54580912\",\"54314274\",\"53918272\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53852885\",\"52697526\",\"53944212\",\"54222051\",\"54125650\",\"54284918\",\"54137014\",\"54142985\",\"53755346\",\"54078231\",\"52175067\",\"54021634\",\"53971125\",\"54077453\",\"54010996\",\"52759195\",\"53028445\",\"54065927\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"52263045\",\"52564798\",\"53604424\",\"53575428\",\"52167221\",\"53545307\",\"53545088\",\"53606423\",\"52956249\",\"52894249\",\"52568574\",\"52527230\",\"53058889\",\"52760234\",\"52263048\",\"52451159\",\"52175073\",\"52358247\",\"52189687\",\"52232025\",\"51980465\",\"52430474\",\"52363300\",\"52346694\",\"52359342\",\"52231503\",\"52255239\",\"50934254\",\"52303651\",\"52258169\",\"51958927\",\"52242714\",\"52239097\",\"52083853\",\"52083904\",\"51765719\",\"52072580\",\"51525359\",\"51806803\"],\"team_id\":1,\"request_id\":\"3fa7c4c9-9714-474a-adf8-4e5f30417ddd\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Ask Jiminny test report\"}\",\n response: \"{\"request_id\":\"3fa7c4c9-9714-474a-adf8-4e5f30417ddd\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T07:49:35.099004+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.pdf\"}\",\n requested_at: \"2026-04-14 07:49:04\",\n generated_at: \"2026-04-14 07:49:35\",\n sent_at: null,\n created_at: \"2026-04-14 07:49:03\",\n updated_at: \"2026-04-14 07:49:35\",\n report: Jiminny\\Models\\AutomatedReport {#15196\n id: 33,\n #uuid: b\"I«SŽút\\x17ªˆ'w#V7¦ù\",\n team_id: 1,\n type: \"ask_jiminny\",\n status: 1,\n frequency: \"daily\",\n from: null,\n to: null,\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[]\",\n media_types: \"[\"pdf\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[9]\",\n playbook_categories: null,\n deal_at_call_stages: null,\n current_deal_stages: null,\n recipients: \"{\"users\":[7160,23309]}\",\n jiminny_recipients: null,\n additional_prompt_input: null,\n custom_name: \"Ask Jiminny test report\",\n activity_search_id: 26912,\n ask_anything_prompt_id: 62,\n expires_at: \"2026-04-30\",\n created_by: 7160,\n created_at: \"2026-04-08 10:12:30\",\n updated_at: \"2026-04-08 10:12:30\",\n deleted_at: null,\n },\n },\n Jiminny\\Models\\AutomatedReportResult {#15700\n id: 45,\n uuid: b\"A¢•M8z~‚*l\\x01÷ð\\0s\",\n report_id: 33,\n name: \"Ask Jiminny test report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54964443\",\"54964442\",\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54214362\",\"54373257\",\"54276602\",\"54547166\",\"54357434\",\"54638437\",\"54439335\",\"54184628\",\"54435911\",\"54547029\",\"54580912\",\"54314274\",\"53918272\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53852885\",\"52697526\",\"53944212\",\"54222051\",\"54125650\",\"54284918\",\"54137014\",\"54142985\",\"53755346\",\"54078231\",\"52175067\",\"54021634\",\"53971125\",\"54077453\",\"54010996\",\"52759195\",\"53028445\",\"54065927\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"52263045\",\"52564798\",\"53604424\",\"53575428\",\"52167221\",\"53545307\",\"53545088\",\"53606423\",\"52956249\",\"52894249\",\"52568574\",\"52527230\",\"53058889\",\"52760234\",\"52263048\",\"52451159\",\"52175073\",\"52358247\",\"52189687\",\"52232025\",\"51980465\",\"52430474\",\"52363300\",\"52346694\",\"52359342\",\"52231503\",\"52255239\",\"50934254\",\"52303651\",\"52258169\",\"51958927\",\"52242714\",\"52239097\",\"52083853\",\"52083904\",\"51765719\",\"52072580\",\"51525359\",\"51806803\"],\"team_id\":1,\"request_id\":\"38817a7e-954d-41a2-822a-6c01f7f00073\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Ask Jiminny test report\"}\",\n response: \"{\"request_id\":\"38817a7e-954d-41a2-822a-6c01f7f00073\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T08:41:46.594895+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/38817a7e-954d-41a2-822a-6c01f7f00073.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/38817a7e-954d-41a2-822a-6c01f7f00073.pdf\"}\",\n requested_at: \"2026-04-14 08:41:11\",\n generated_at: \"2026-04-14 08:41:46\",\n sent_at: null,\n created_at: \"2026-04-14 08:41:11\",\n updated_at: \"2026-04-14 08:41:46\",\n report: Jiminny\\Models\\AutomatedReport {#15196},\n },\n Jiminny\\Models\\AutomatedReportResult {#15705\n id: 47,\n uuid: b\"D‘\\x10[̘^–𔹧-ÞÝB\",\n report_id: 33,\n name: \"Ask Jiminny test report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54964443\",\"54964442\",\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54214362\",\"54373257\",\"54276602\",\"54547166\",\"54357434\",\"54638437\",\"54439335\",\"54184628\",\"54435911\",\"54547029\",\"54580912\",\"54314274\",\"53918272\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53852885\",\"52697526\",\"53944212\",\"54222051\",\"54125650\",\"54284918\",\"54137014\",\"54142985\",\"53755346\",\"54078231\",\"52175067\",\"54021634\",\"53971125\",\"54077453\",\"54010996\",\"52759195\",\"53028445\",\"54065927\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"52263045\",\"52564798\",\"53604424\",\"53575428\",\"52167221\",\"53545307\",\"53545088\",\"53606423\",\"52956249\",\"52894249\",\"52568574\",\"52527230\",\"53058889\",\"52760234\",\"52263048\",\"52451159\",\"52175073\",\"52358247\",\"52189687\",\"52232025\",\"51980465\",\"52430474\",\"52363300\",\"52346694\",\"52359342\",\"52231503\",\"52255239\",\"50934254\",\"52303651\",\"52258169\",\"51958927\",\"52242714\",\"52239097\",\"52083853\",\"52083904\",\"51765719\",\"52072580\",\"51525359\",\"51806803\"],\"team_id\":1,\"request_id\":\"cc985e96-105b-4491-9a94-b9a72ddedd42\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Ask Jiminny test report\"}\",\n response: \"{\"request_id\":\"cc985e96-105b-4491-9a94-b9a72ddedd42\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T10:46:38.602513+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cc985e96-105b-4491-9a94-b9a72ddedd42.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cc985e96-105b-4491-9a94-b9a72ddedd42.pdf\"}\",\n requested_at: \"2026-04-14 10:46:09\",\n generated_at: \"2026-04-14 10:46:38\",\n sent_at: null,\n created_at: \"2026-04-14 10:46:08\",\n updated_at: \"2026-04-14 10:46:38\",\n report: Jiminny\\Models\\AutomatedReport {#15196},\n },\n Jiminny\\Models\\AutomatedReportResult {#15687\n id: 49,\n uuid: b\"K·Ì¬Ò\\vþþ«PÈ»‰\\x19™s\",\n report_id: 35,\n name: \"Test 6 - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"Please make a summary for all calls\",\"call_ids\":[\"49880280\",\"49104686\",\"48360159\",\"47193308\",\"44762288\",\"43862984\",\"41678335\",\"41310991\",\"39940631\",\"39779620\",\"39389894\",\"39106205\",\"38745110\",\"38510502\"],\"team_id\":1,\"request_id\":\"d20bfefe-ccac-4bb7-ab50-c8bb89199973\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Test 6\"}\",\n response: \"{\"request_id\":\"d20bfefe-ccac-4bb7-ab50-c8bb89199973\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T10:46:37.905336+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.pdf\"}\",\n requested_at: \"2026-04-14 10:46:16\",\n generated_at: \"2026-04-14 10:46:37\",\n sent_at: null,\n created_at: \"2026-04-14 10:46:16\",\n updated_at: \"2026-04-14 10:46:38\",\n report: Jiminny\\Models\\AutomatedReport {#15219\n id: 35,\n #uuid: b\"\"\"\n @@Àê~xFâˆô\\n\n áKfè\n \"\"\",\n team_id: 1,\n type: \"ask_jiminny\",\n status: 1,\n frequency: \"daily\",\n from: null,\n to: null,\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[]\",\n media_types: \"[\"pdf\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[9]\",\n playbook_categories: null,\n deal_at_call_stages: null,\n current_deal_stages: null,\n recipients: \"{\"users\":[3248,23559]}\",\n jiminny_recipients: null,\n additional_prompt_input: null,\n custom_name: \"Test 6\",\n activity_search_id: 10932,\n ask_anything_prompt_id: 65,\n expires_at: \"2026-04-19\",\n created_by: 3248,\n created_at: \"2026-04-14 08:39:14\",\n updated_at: \"2026-04-14 08:39:14\",\n deleted_at: null,\n },\n },\n Jiminny\\Models\\AutomatedReportResult {#15686\n id: 50,\n uuid: b\"GÙµ‚\\{3‡p©ú1ÿÖŽ\",\n report_id: 35,\n name: \"Test 6 - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"Please make a summary for all calls\",\"call_ids\":[\"49880280\",\"49104686\",\"48360159\",\"47193308\",\"44762288\",\"43862984\",\"41678335\",\"41310991\",\"39940631\",\"39779620\",\"39389894\",\"39106205\",\"38745110\",\"38510502\"],\"team_id\":1,\"request_id\":\"5c9d7b33-b582-47d9-8770-a9fa31ffd68d\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Test 6\"}\",\n response: \"{\"request_id\":\"5c9d7b33-b582-47d9-8770-a9fa31ffd68d\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T10:49:01.677577+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.pdf\"}\",\n requested_at: \"2026-04-14 10:48:43\",\n generated_at: \"2026-04-14 10:49:01\",\n sent_at: null,\n created_at: \"2026-04-14 10:48:42\",\n updated_at: \"2026-04-14 10:49:01\",\n report: Jiminny\\Models\\AutomatedReport {#15219},\n },\n Jiminny\\Models\\AutomatedReportResult {#15685\n id: 51,\n uuid: b\"L\\x13HSÏÖ»™ŸŽ¦¯Cár{\",\n report_id: 36,\n name: \"Tuesday report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54579532\",\"54214362\",\"54795501\",\"54373257\",\"54566775\",\"54179068\",\"54691680\",\"54702966\",\"54186485\",\"54547166\",\"54357434\",\"54439335\",\"54435911\",\"54547029\",\"54179299\",\"54580912\",\"54314274\",\"53918272\",\"54310744\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"53853301\",\"52551697\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53853298\",\"53852885\",\"53931221\",\"54132327\",\"53944212\",\"54037186\",\"54125650\",\"54059512\",\"53801108\",\"54284918\",\"52552430\",\"54142985\",\"53755346\",\"52175067\",\"54021634\",\"52896288\",\"52175051\",\"54077453\",\"52413114\",\"54010996\",\"53528248\",\"54078291\",\"53813598\",\"54076266\",\"53028445\",\"54065927\",\"53922780\",\"53729434\",\"53919824\",\"53384442\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"54009217\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"53769369\",\"53384450\",\"52161199\",\"52263045\",\"52564798\",\"50907426\",\"53604424\",\"53575428\",\"52167221\",\"52156369\",\"53545307\",\"52565625\",\"53610225\",\"53594648\",\"53545088\",\"52175041\",\"52956249\",\"52217425\",\"52562272\",\"52248293\"],\"team_id\":1,\"request_id\":\"cfd6bb99-4853-4c13-9f8e-a6af43e1727b\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Tuesday report\"}\",\n response: \"{\"request_id\":\"cfd6bb99-4853-4c13-9f8e-a6af43e1727b\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T11:23:03.951289+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.pdf\"}\",\n requested_at: \"2026-04-14 11:22:36\",\n generated_at: \"2026-04-14 11:23:04\",\n sent_at: null,\n created_at: \"2026-04-14 11:22:36\",\n updated_at: \"2026-04-14 11:23:04\",\n report: Jiminny\\Models\\AutomatedReport {#15221\n id: 36,\n #uuid: b\"Aß#ôq¸»õ¶7i7eçªx\",\n team_id: 1,\n type: \"ask_jiminny\",\n status: 1,\n frequency: \"daily\",\n from: null,\n to: null,\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[]\",\n media_types: \"[\"pdf\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[]\",\n playbook_categories: null,\n deal_at_call_stages: null,\n current_deal_stages: null,\n recipients: \"{\"users\":[7160]}\",\n jiminny_recipients: null,\n additional_prompt_input: null,\n custom_name: \"Tuesday report\",\n activity_search_id: 26913,\n ask_anything_prompt_id: 62,\n expires_at: \"2026-04-30\",\n created_by: 7160,\n created_at: \"2026-04-14 11:20:20\",\n updated_at: \"2026-04-14 11:20:20\",\n deleted_at: null,\n },\n },\n ],\n }\n\n> $repo->getGeneratedNotSentResults()->count();\n= 7\n\n> exit\n\n INFO Goodbye.\n\nroot@b79a4bdd6905:/home/jiminny#","depth":4,"value":"Last login: Sat Apr 11 12:38:35 on ttys007\n\nPoetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents\n\nPoetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/jiminny/app (JY-18909-automated-reports-ask-jiminny) $ vstg\nWarning: Permanently added 'jiminny-stage-ecs1' (ED25519) to the list of known hosts.\n\nA newer release of \"Amazon Linux\" is available.\n Version 2023.10.20260105:\n Version 2023.10.20260120:\n Version 2023.10.20260202:\n Version 2023.10.20260216:\n Version 2023.10.20260302:\n Version 2023.10.20260325:\n Version 2023.10.20260330:\n Version 2023.11.20260406:\n Version 2023.11.20260413:\n Version 2023.8.20250707:\n Version 2023.8.20250715:\n Version 2023.8.20250721:\n Version 2023.8.20250808:\n Version 2023.8.20250818:\n Version 2023.8.20250908:\n Version 2023.8.20250915:\n Version 2023.9.20250929:\n Version 2023.9.20251014:\n Version 2023.9.20251020:\n Version 2023.9.20251027:\n Version 2023.9.20251105:\n Version 2023.9.20251110:\n Version 2023.9.20251117:\n Version 2023.9.20251208:\nRun \"/usr/bin/dnf check-release-update\" for full release and version update info\n , #_\n ~\\_ ####_\n ~~ \\_#####\\\n ~~ \\###|\n ~~ \\#/ ___ Amazon Linux 2023 (ECS Optimized)\n ~~ V~' '->\n ~~~ /\n ~~._. _/\n _/ _/\n _/m/'\n\nFor documentation, visit http://aws.amazon.com/documentation/ecs\n[ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@fee51d2e1f17:/home/jiminny# php artisan about\n\n Environment ...................................................................................................................................... \n Application Name ................................................................................................................. Jiminny Web App \n Laravel Version .......................................................................................................................... 12.54.1 \n PHP Version ............................................................................................................................... 8.3.30 \n Composer Version ............................................................................................................................... - \n Environment .............................................................................................................................. staging \n Debug Mode ................................................................................................................................... OFF \n URL ...................................................................................................................... app.staging.jiminny.com \n Maintenance Mode ............................................................................................................................. OFF \n Timezone ..................................................................................................................................... UTC \n Locale ..................................................................................................................................... en_US \n\n Cache ............................................................................................................................................ \n Config .................................................................................................................................... CACHED \n Events ................................................................................................................................ NOT CACHED \n Routes .................................................................................................................................... CACHED \n Views ..................................................................................................................................... CACHED \n\n Drivers .......................................................................................................................................... \n Broadcasting .............................................................................................................................. pusher \n Cache ...................................................................................................................................... redis \n Database ................................................................................................................................... mysql \n Logs .................................................................................................................................... errorlog \n Mail ......................................................................................................................................... ses \n Queue ........................................................................................................................................ sqs \n Session .................................................................................................................................... redis \n\n Storage .......................................................................................................................................... \n public/storage ........................................................................................................................ NOT LINKED \n\n Sentry ........................................................................................................................................... \n Enabled ...................................................................................................................................... YES \n Environment .............................................................................................................................. staging \n Laravel SDK Version ....................................................................................................................... 4.13.0 \n PHP SDK Version ........................................................................................................................... 4.13.0 \n Release ................................................................................................................................... 869720 \n Sample Rate Errors .......................................................................................................................... 100% \n Sample Rate Performance Monitoring ....................................................................................................... NOT SET \n Sample Rate Profiling .................................................................................................................... NOT SET \n Send Default PII ........................................................................................................................ DISABLED \n\nroot@fee51d2e1f17:/home/jiminny# php artisan automated-reports\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Started {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Found 2 daily reports to process {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"fa7417aa-538e-49ab-8827-77235637a6f9\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"63e6d70b-b7cb-4dfa-8443-53453e6c4054\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\nroot@fee51d2e1f17:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@73b64f5d54a3:/home/jiminny# php artisan automated-reports\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Started {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Found 3 daily reports to process {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"fa7417aa-538e-49ab-8827-77235637a6f9\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"63e6d70b-b7cb-4dfa-8443-53453e6c4054\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:04] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"7e7846e2-c0ea-4040-88f4-0ae14b66ade8\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:04] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\nroot@73b64f5d54a3:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@c78a087b1345:/home/jiminny# php artisan automated-reports\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Started {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Found 3 daily reports to process {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"fa7417aa-538e-49ab-8827-77235637a6f9\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"63e6d70b-b7cb-4dfa-8443-53453e6c4054\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"7e7846e2-c0ea-4040-88f4-0ae14b66ade8\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\nroot@c78a087b1345:/home/jiminny# php artisan automated-reports --report-id 35\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Started {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[automated-reports] Automated report found Test 6\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Found 1 daily reports to process {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"7e7846e2-c0ea-4040-88f4-0ae14b66ade8\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\nroot@c78a087b1345:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@b79a4bdd6905:/home/jiminny# php artisan automated-reports --report-id 71b8bbf5-23f4-41df-b637-693765e7aa78\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Started {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[automated-reports] Automated report found Tuesday report\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Found 1 daily reports to process {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"71b8bbf5-23f4-41df-b637-693765e7aa78\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\nroot@b79a4bdd6905:/home/jiminny# php artisan automated-reports:send\nroot@b79a4bdd6905:/home/jiminny# php artisan tinker\nPsy Shell v0.12.21 (PHP 8.3.30 — cli) by Justin Hileman\nNew PHP manual is available (latest: 3.0.5). Update with `doc --update-manual`\n> $repo = app(AutomatedReportsRepository::class);\n[!] Aliasing 'AutomatedReportsRepository' to 'Jiminny\\Repositories\\AutomatedReportsRepository' for this Tinker session.\n= Jiminny\\Repositories\\AutomatedReportsRepository {#15215}\n\n> $repo->getGeneratedNotSentResults();\n= Illuminate\\Database\\Eloquent\\Collection {#15683\n all: [\n Jiminny\\Models\\AutomatedReportResult {#15703\n id: 14,\n uuid: b\"C^Ð>!€]¢ª1vàý\\x1F6Ï\",\n report_id: 8,\n name: \"Exec Summary - 5 Sep 2024 - 10 Mar 2026 - All\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"team_id\":1,\"request_id\":\"21805da2-d03e-435e-aa31-76e0fd1f36cf\",\"report_type\":\"exec_summary\",\"media_types\":[\"pdf\",\"podcast\"],\"from_date\":\"2024-09-05T00:00:00+00:00\",\"to_date\":\"2026-03-10T23:59:59+00:00\",\"group_ids\":[],\"call_deal_stage\":[],\"current_deal_stage\":[],\"deal_min_value\":null,\"deal_max_value\":null,\"call_types\":[\"conference\",\"dialer\"],\"call_duration_min_seconds\":null,\"call_duration_max_seconds\":null,\"special_requirements\":\"\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"5 Sep 2024 - 10 Mar 2026\",\"playbook_categories\":[],\"custom_name\":null}\",\n response: \"{\"request_id\":\"21805da2-d03e-435e-aa31-76e0fd1f36cf\",\"status\":\"completed\",\"timestamp\":\"2026-03-26T14:10:58.983895+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf.MD\",\"report_type\":\"exec_summary\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf.pdf\",\"podcast_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.txt\",\"podcast_audio_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.mp3\",\"podcast_ssml_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.ssml\"}\",\n requested_at: \"2026-03-26 14:06:35\",\n generated_at: \"2026-03-26 14:10:59\",\n sent_at: null,\n created_at: \"2026-03-26 14:06:35\",\n updated_at: \"2026-03-26 14:10:59\",\n report: Jiminny\\Models\\AutomatedReport {#15197\n id: 8,\n #uuid: b\"FWNçôý\\x1Dªš–+âga”d\",\n team_id: 1,\n type: \"exec_summary\",\n status: 1,\n frequency: \"one_off\",\n from: \"2024-09-05 00:00:00\",\n to: \"2026-03-10 00:00:00\",\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[\"conference\",\"dialer\"]\",\n media_types: \"[\"pdf\",\"podcast\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[]\",\n playbook_categories: \"[]\",\n deal_at_call_stages: \"[]\",\n current_deal_stages: \"[]\",\n recipients: \"{\"users\":[]}\",\n jiminny_recipients: \"{\"users\":[]}\",\n additional_prompt_input: \"\",\n custom_name: null,\n activity_search_id: null,\n ask_anything_prompt_id: null,\n expires_at: null,\n created_by: 3248,\n created_at: \"2026-03-26 14:06:32\",\n updated_at: \"2026-03-26 14:06:32\",\n deleted_at: null,\n },\n },\n Jiminny\\Models\\AutomatedReportResult {#15701\n id: 43,\n uuid: b\"GJ—\\x14?§ÄÉøN_0A}Ý\",\n report_id: 33,\n name: \"Ask Jiminny test report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54964443\",\"54964442\",\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54214362\",\"54373257\",\"54276602\",\"54547166\",\"54357434\",\"54638437\",\"54439335\",\"54184628\",\"54435911\",\"54547029\",\"54580912\",\"54314274\",\"53918272\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53852885\",\"52697526\",\"53944212\",\"54222051\",\"54125650\",\"54284918\",\"54137014\",\"54142985\",\"53755346\",\"54078231\",\"52175067\",\"54021634\",\"53971125\",\"54077453\",\"54010996\",\"52759195\",\"53028445\",\"54065927\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"52263045\",\"52564798\",\"53604424\",\"53575428\",\"52167221\",\"53545307\",\"53545088\",\"53606423\",\"52956249\",\"52894249\",\"52568574\",\"52527230\",\"53058889\",\"52760234\",\"52263048\",\"52451159\",\"52175073\",\"52358247\",\"52189687\",\"52232025\",\"51980465\",\"52430474\",\"52363300\",\"52346694\",\"52359342\",\"52231503\",\"52255239\",\"50934254\",\"52303651\",\"52258169\",\"51958927\",\"52242714\",\"52239097\",\"52083853\",\"52083904\",\"51765719\",\"52072580\",\"51525359\",\"51806803\"],\"team_id\":1,\"request_id\":\"3fa7c4c9-9714-474a-adf8-4e5f30417ddd\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Ask Jiminny test report\"}\",\n response: \"{\"request_id\":\"3fa7c4c9-9714-474a-adf8-4e5f30417ddd\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T07:49:35.099004+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.pdf\"}\",\n requested_at: \"2026-04-14 07:49:04\",\n generated_at: \"2026-04-14 07:49:35\",\n sent_at: null,\n created_at: \"2026-04-14 07:49:03\",\n updated_at: \"2026-04-14 07:49:35\",\n report: Jiminny\\Models\\AutomatedReport {#15196\n id: 33,\n #uuid: b\"I«SŽút\\x17ªˆ'w#V7¦ù\",\n team_id: 1,\n type: \"ask_jiminny\",\n status: 1,\n frequency: \"daily\",\n from: null,\n to: null,\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[]\",\n media_types: \"[\"pdf\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[9]\",\n playbook_categories: null,\n deal_at_call_stages: null,\n current_deal_stages: null,\n recipients: \"{\"users\":[7160,23309]}\",\n jiminny_recipients: null,\n additional_prompt_input: null,\n custom_name: \"Ask Jiminny test report\",\n activity_search_id: 26912,\n ask_anything_prompt_id: 62,\n expires_at: \"2026-04-30\",\n created_by: 7160,\n created_at: \"2026-04-08 10:12:30\",\n updated_at: \"2026-04-08 10:12:30\",\n deleted_at: null,\n },\n },\n Jiminny\\Models\\AutomatedReportResult {#15700\n id: 45,\n uuid: b\"A¢•M8z~‚*l\\x01÷ð\\0s\",\n report_id: 33,\n name: \"Ask Jiminny test report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54964443\",\"54964442\",\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54214362\",\"54373257\",\"54276602\",\"54547166\",\"54357434\",\"54638437\",\"54439335\",\"54184628\",\"54435911\",\"54547029\",\"54580912\",\"54314274\",\"53918272\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53852885\",\"52697526\",\"53944212\",\"54222051\",\"54125650\",\"54284918\",\"54137014\",\"54142985\",\"53755346\",\"54078231\",\"52175067\",\"54021634\",\"53971125\",\"54077453\",\"54010996\",\"52759195\",\"53028445\",\"54065927\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"52263045\",\"52564798\",\"53604424\",\"53575428\",\"52167221\",\"53545307\",\"53545088\",\"53606423\",\"52956249\",\"52894249\",\"52568574\",\"52527230\",\"53058889\",\"52760234\",\"52263048\",\"52451159\",\"52175073\",\"52358247\",\"52189687\",\"52232025\",\"51980465\",\"52430474\",\"52363300\",\"52346694\",\"52359342\",\"52231503\",\"52255239\",\"50934254\",\"52303651\",\"52258169\",\"51958927\",\"52242714\",\"52239097\",\"52083853\",\"52083904\",\"51765719\",\"52072580\",\"51525359\",\"51806803\"],\"team_id\":1,\"request_id\":\"38817a7e-954d-41a2-822a-6c01f7f00073\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Ask Jiminny test report\"}\",\n response: \"{\"request_id\":\"38817a7e-954d-41a2-822a-6c01f7f00073\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T08:41:46.594895+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/38817a7e-954d-41a2-822a-6c01f7f00073.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/38817a7e-954d-41a2-822a-6c01f7f00073.pdf\"}\",\n requested_at: \"2026-04-14 08:41:11\",\n generated_at: \"2026-04-14 08:41:46\",\n sent_at: null,\n created_at: \"2026-04-14 08:41:11\",\n updated_at: \"2026-04-14 08:41:46\",\n report: Jiminny\\Models\\AutomatedReport {#15196},\n },\n Jiminny\\Models\\AutomatedReportResult {#15705\n id: 47,\n uuid: b\"D‘\\x10[̘^–𔹧-ÞÝB\",\n report_id: 33,\n name: \"Ask Jiminny test report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54964443\",\"54964442\",\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54214362\",\"54373257\",\"54276602\",\"54547166\",\"54357434\",\"54638437\",\"54439335\",\"54184628\",\"54435911\",\"54547029\",\"54580912\",\"54314274\",\"53918272\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53852885\",\"52697526\",\"53944212\",\"54222051\",\"54125650\",\"54284918\",\"54137014\",\"54142985\",\"53755346\",\"54078231\",\"52175067\",\"54021634\",\"53971125\",\"54077453\",\"54010996\",\"52759195\",\"53028445\",\"54065927\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"52263045\",\"52564798\",\"53604424\",\"53575428\",\"52167221\",\"53545307\",\"53545088\",\"53606423\",\"52956249\",\"52894249\",\"52568574\",\"52527230\",\"53058889\",\"52760234\",\"52263048\",\"52451159\",\"52175073\",\"52358247\",\"52189687\",\"52232025\",\"51980465\",\"52430474\",\"52363300\",\"52346694\",\"52359342\",\"52231503\",\"52255239\",\"50934254\",\"52303651\",\"52258169\",\"51958927\",\"52242714\",\"52239097\",\"52083853\",\"52083904\",\"51765719\",\"52072580\",\"51525359\",\"51806803\"],\"team_id\":1,\"request_id\":\"cc985e96-105b-4491-9a94-b9a72ddedd42\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Ask Jiminny test report\"}\",\n response: \"{\"request_id\":\"cc985e96-105b-4491-9a94-b9a72ddedd42\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T10:46:38.602513+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cc985e96-105b-4491-9a94-b9a72ddedd42.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cc985e96-105b-4491-9a94-b9a72ddedd42.pdf\"}\",\n requested_at: \"2026-04-14 10:46:09\",\n generated_at: \"2026-04-14 10:46:38\",\n sent_at: null,\n created_at: \"2026-04-14 10:46:08\",\n updated_at: \"2026-04-14 10:46:38\",\n report: Jiminny\\Models\\AutomatedReport {#15196},\n },\n Jiminny\\Models\\AutomatedReportResult {#15687\n id: 49,\n uuid: b\"K·Ì¬Ò\\vþþ«PÈ»‰\\x19™s\",\n report_id: 35,\n name: \"Test 6 - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"Please make a summary for all calls\",\"call_ids\":[\"49880280\",\"49104686\",\"48360159\",\"47193308\",\"44762288\",\"43862984\",\"41678335\",\"41310991\",\"39940631\",\"39779620\",\"39389894\",\"39106205\",\"38745110\",\"38510502\"],\"team_id\":1,\"request_id\":\"d20bfefe-ccac-4bb7-ab50-c8bb89199973\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Test 6\"}\",\n response: \"{\"request_id\":\"d20bfefe-ccac-4bb7-ab50-c8bb89199973\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T10:46:37.905336+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.pdf\"}\",\n requested_at: \"2026-04-14 10:46:16\",\n generated_at: \"2026-04-14 10:46:37\",\n sent_at: null,\n created_at: \"2026-04-14 10:46:16\",\n updated_at: \"2026-04-14 10:46:38\",\n report: Jiminny\\Models\\AutomatedReport {#15219\n id: 35,\n #uuid: b\"\"\"\n @@Àê~xFâˆô\\n\n áKfè\n \"\"\",\n team_id: 1,\n type: \"ask_jiminny\",\n status: 1,\n frequency: \"daily\",\n from: null,\n to: null,\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[]\",\n media_types: \"[\"pdf\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[9]\",\n playbook_categories: null,\n deal_at_call_stages: null,\n current_deal_stages: null,\n recipients: \"{\"users\":[3248,23559]}\",\n jiminny_recipients: null,\n additional_prompt_input: null,\n custom_name: \"Test 6\",\n activity_search_id: 10932,\n ask_anything_prompt_id: 65,\n expires_at: \"2026-04-19\",\n created_by: 3248,\n created_at: \"2026-04-14 08:39:14\",\n updated_at: \"2026-04-14 08:39:14\",\n deleted_at: null,\n },\n },\n Jiminny\\Models\\AutomatedReportResult {#15686\n id: 50,\n uuid: b\"GÙµ‚\\{3‡p©ú1ÿÖŽ\",\n report_id: 35,\n name: \"Test 6 - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"Please make a summary for all calls\",\"call_ids\":[\"49880280\",\"49104686\",\"48360159\",\"47193308\",\"44762288\",\"43862984\",\"41678335\",\"41310991\",\"39940631\",\"39779620\",\"39389894\",\"39106205\",\"38745110\",\"38510502\"],\"team_id\":1,\"request_id\":\"5c9d7b33-b582-47d9-8770-a9fa31ffd68d\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Test 6\"}\",\n response: \"{\"request_id\":\"5c9d7b33-b582-47d9-8770-a9fa31ffd68d\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T10:49:01.677577+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.pdf\"}\",\n requested_at: \"2026-04-14 10:48:43\",\n generated_at: \"2026-04-14 10:49:01\",\n sent_at: null,\n created_at: \"2026-04-14 10:48:42\",\n updated_at: \"2026-04-14 10:49:01\",\n report: Jiminny\\Models\\AutomatedReport {#15219},\n },\n Jiminny\\Models\\AutomatedReportResult {#15685\n id: 51,\n uuid: b\"L\\x13HSÏÖ»™ŸŽ¦¯Cár{\",\n report_id: 36,\n name: \"Tuesday report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54579532\",\"54214362\",\"54795501\",\"54373257\",\"54566775\",\"54179068\",\"54691680\",\"54702966\",\"54186485\",\"54547166\",\"54357434\",\"54439335\",\"54435911\",\"54547029\",\"54179299\",\"54580912\",\"54314274\",\"53918272\",\"54310744\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"53853301\",\"52551697\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53853298\",\"53852885\",\"53931221\",\"54132327\",\"53944212\",\"54037186\",\"54125650\",\"54059512\",\"53801108\",\"54284918\",\"52552430\",\"54142985\",\"53755346\",\"52175067\",\"54021634\",\"52896288\",\"52175051\",\"54077453\",\"52413114\",\"54010996\",\"53528248\",\"54078291\",\"53813598\",\"54076266\",\"53028445\",\"54065927\",\"53922780\",\"53729434\",\"53919824\",\"53384442\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"54009217\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"53769369\",\"53384450\",\"52161199\",\"52263045\",\"52564798\",\"50907426\",\"53604424\",\"53575428\",\"52167221\",\"52156369\",\"53545307\",\"52565625\",\"53610225\",\"53594648\",\"53545088\",\"52175041\",\"52956249\",\"52217425\",\"52562272\",\"52248293\"],\"team_id\":1,\"request_id\":\"cfd6bb99-4853-4c13-9f8e-a6af43e1727b\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Tuesday report\"}\",\n response: \"{\"request_id\":\"cfd6bb99-4853-4c13-9f8e-a6af43e1727b\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T11:23:03.951289+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.pdf\"}\",\n requested_at: \"2026-04-14 11:22:36\",\n generated_at: \"2026-04-14 11:23:04\",\n sent_at: null,\n created_at: \"2026-04-14 11:22:36\",\n updated_at: \"2026-04-14 11:23:04\",\n report: Jiminny\\Models\\AutomatedReport {#15221\n id: 36,\n #uuid: b\"Aß#ôq¸»õ¶7i7eçªx\",\n team_id: 1,\n type: \"ask_jiminny\",\n status: 1,\n frequency: \"daily\",\n from: null,\n to: null,\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[]\",\n media_types: \"[\"pdf\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[]\",\n playbook_categories: null,\n deal_at_call_stages: null,\n current_deal_stages: null,\n recipients: \"{\"users\":[7160]}\",\n jiminny_recipients: null,\n additional_prompt_input: null,\n custom_name: \"Tuesday report\",\n activity_search_id: 26913,\n ask_anything_prompt_id: 62,\n expires_at: \"2026-04-30\",\n created_by: 7160,\n created_at: \"2026-04-14 11:20:20\",\n updated_at: \"2026-04-14 11:20:20\",\n deleted_at: null,\n },\n },\n ],\n }\n\n> $repo->getGeneratedNotSentResults()->count();\n= 7\n\n> exit\n\n INFO Goodbye.\n\nroot@b79a4bdd6905:/home/jiminny#","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.12291667,"height":0.026666667},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (docker)","depth":2,"bounds":{"left":0.12291667,"top":0.05888889,"width":0.12291667,"height":0.026666667},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.12708333,"top":0.06333333,"width":0.011111111,"height":0.017777778},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.24583334,"top":0.05888889,"width":0.12291667,"height":0.026666667},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.25,"top":0.06333333,"width":0.011111111,"height":0.017777778},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"ec2-user@ip-10-30-93-249:~ (nc)","depth":2,"bounds":{"left":0.36875,"top":0.05888889,"width":0.12291667,"height":0.026666667},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.37291667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.49166667,"top":0.05888889,"width":0.12291667,"height":0.026666667},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.49583334,"top":0.06333333,"width":0.011111111,"height":0.017777778},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.6145833,"top":0.05888889,"width":0.12291667,"height":0.026666667},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.61875,"top":0.06333333,"width":0.011111111,"height":0.017777778},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.7375,"top":0.05888889,"width":0.12291667,"height":0.026666667},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7416667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"✳ Unable to access screenpipe activity data (claude)","depth":2,"bounds":{"left":0.86041665,"top":0.05888889,"width":0.12291667,"height":0.026666667},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.8645833,"top":0.06333333,"width":0.011111111,"height":0.017777778},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.9548611,"top":0.032222223,"width":0.03888889,"height":0.018888889},"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"ec2-user@ip-10-30-93-249:~","depth":1,"bounds":{"left":0.4298611,"top":0.033333335,"width":0.13958333,"height":0.017777778},"role_description":"text"}]...
|
7000309365672198019
|
-5261720347317964283
|
click
|
accessibility
|
NULL
|
Last login: Sat Apr 11 12:38:35 on ttys007
Poetry Last login: Sat Apr 11 12:38:35 on ttys007
Poetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents
Poetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/jiminny/app (JY-18909-automated-reports-ask-jiminny) $ vstg
Warning: Permanently added 'jiminny-stage-ecs1' (ED25519) to the list of known hosts.
A newer release of "Amazon Linux" is available.
Version 2023.10.20260105:
Version 2023.10.20260120:
Version 2023.10.20260202:
Version 2023.10.20260216:
Version 2023.10.20260302:
Version 2023.10.20260325:
Version 2023.10.20260330:
Version 2023.11.20260406:
Version 2023.11.20260413:
Version 2023.8.20250707:
Version 2023.8.20250715:
Version 2023.8.20250721:
Version 2023.8.20250808:
Version 2023.8.20250818:
Version 2023.8.20250908:
Version 2023.8.20250915:
Version 2023.9.20250929:
Version 2023.9.20251014:
Version 2023.9.20251020:
Version 2023.9.20251027:
Version 2023.9.20251105:
Version 2023.9.20251110:
Version 2023.9.20251117:
Version 2023.9.20251208:
Run "/usr/bin/dnf check-release-update" for full release and version update info
, #_
~\_ ####_
~~ \_#####\
~~ \###|
~~ \#/ ___ Amazon Linux 2023 (ECS Optimized)
~~ V~' '->
~~~ /
~~._. _/
_/ _/
_/m/'
For documentation, visit [URL_WITH_CREDENTIALS] php artisan automated-reports
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Started {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Found 2 daily reports to process {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"fa7417aa-538e-49ab-8827-77235637a6f9","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"63e6d70b-b7cb-4dfa-8443-53453e6c4054","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Completed {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
root@fee51d2e1f17:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format "{{.ID}}" --filter "name=ecs-worker" | head -1) /bin/bash -c "cd /home/jiminny && bash"
root@73b64f5d54a3:/home/jiminny# php artisan automated-reports
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Started {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Found 3 daily reports to process {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"fa7417aa-538e-49ab-8827-77235637a6f9","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"63e6d70b-b7cb-4dfa-8443-53453e6c4054","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:04] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"7e7846e2-c0ea-4040-88f4-0ae14b66ade8","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:04] staging.INFO: [automated-reports] Completed {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
root@73b64f5d54a3:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format "{{.ID}}" --filter "name=ecs-worker" | head -1) /bin/bash -c "cd /home/jiminny && bash"
root@c78a087b1345:/home/jiminny# php artisan automated-reports
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Started {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Found 3 daily reports to process {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"fa7417aa-538e-49ab-8827-77235637a6f9","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"63e6d70b-b7cb-4dfa-8443-53453e6c4054","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"7e7846e2-c0ea-4040-88f4-0ae14b66ade8","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Completed {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
root@c78a087b1345:/home/jiminny# php artisan automated-reports --report-id 35
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Started {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[automated-reports] Automated report found Test 6
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Found 1 daily reports to process {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"7e7846e2-c0ea-4040-88f4-0ae14b66ade8","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Completed {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
root@c78a087b1345:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format "{{.ID}}" --filter "name=ecs-worker" | head -1) /bin/bash -c "cd /home/jiminny && bash"
root@b79a4bdd6905:/home/jiminny# php artisan automated-reports --report-id 71b8bbf5-23f4-41df-b637-693765e7aa78
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Started {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[automated-reports] Automated report found Tuesday report
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Found 1 daily reports to process {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"71b8bbf5-23f4-41df-b637-693765e7aa78","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Completed {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
root@b79a4bdd6905:/home/jiminny# php artisan automated-reports:send
root@b79a4bdd6905:/home/jiminny# php artisan tinker
Psy Shell v0.12.21 (PHP 8.3.30 — cli) by Justin Hileman
New PHP manual is available (latest: 3.0.5). Update with `doc --update-manual`
> $repo = app(AutomatedReportsRepository::class);
[!] Aliasing 'AutomatedReportsRepository' to 'Jiminny\Repositories\AutomatedReportsRepository' for this Tinker session.
= Jiminny\Repositories\AutomatedReportsRepository {#15215}
> $repo->getGeneratedNotSentResults();
= Illuminate\Database\Eloquent\Collection {#15683
all: [
Jiminny\Models\AutomatedReportResult {#15703
id: 14,
uuid: b"C^Ð>!€]¢ª1vàý\x1F6Ï",
report_id: 8,
name: "Exec Summary - 5 Sep 2024 - 10 Mar 2026 - All",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"team_id":1,"request_id":"21805da2-d03e-435e-aa31-76e0fd1f36cf","report_type":"exec_summary","media_types":["pdf","podcast"],"from_date":"2024-09-05T00:00:00+00:00","to_date":"2026-03-10T23:59:59+00:00","group_ids":[],"call_deal_stage":[],"current_deal_stage":[],"deal_min_value":null,"deal_max_value":null,"call_types":["conference","dialer"],"call_duration_min_seconds":null,"call_duration_max_seconds":null,"special_requirements":"","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"5 Sep 2024 - 10 Mar 2026","playbook_categories":[],"custom_name":null}",
response: "{"request_id":"21805da2-d03e-435e-aa31-76e0fd1f36cf","status":"completed","timestamp":"2026-03-26T14:10:58.983895+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf.MD","report_type":"exec_summary","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf.pdf","podcast_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.txt","podcast_audio_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.mp3","podcast_ssml_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.ssml"}",
requested_at: "2026-03-26 14:06:35",
generated_at: "2026-03-26 14:10:59",
sent_at: null,
created_at: "2026-03-26 14:06:35",
updated_at: "2026-03-26 14:10:59",
report: Jiminny\Models\AutomatedReport {#15197
id: 8,
#uuid: b"FWNçôý\x1Dªš–+âga”d",
team_id: 1,
type: "exec_summary",
status: 1,
frequency: "one_off",
from: "2024-09-05 00:00:00",
to: "2026-03-10 00:00:00",
deal_value_min: null,
deal_value_max: null,
call_types: "["conference","dialer"]",
media_types: "["pdf","podcast"]",
call_duration_min: null,
call_duration_max: null,
groups: "[]",
playbook_categories: "[]",
deal_at_call_stages: "[]",
current_deal_stages: "[]",
recipients: "{"users":[]}",
jiminny_recipients: "{"users":[]}",
additional_prompt_input: "",
custom_name: null,
activity_search_id: null,
ask_anything_prompt_id: null,
expires_at: null,
created_by: 3248,
created_at: "2026-03-26 14:06:32",
updated_at: "2026-03-26 14:06:32",
deleted_at: null,
},
},
Jiminny\Models\AutomatedReportResult {#15701
id: 43,
uuid: b"GJ—\x14?§ÄÉøN_0A}Ý",
report_id: 33,
name: "Ask Jiminny test report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54964443","54964442","54214348","54747783","54792639","54355211","54214356","54214362","54373257","54276602","54547166","54357434","54638437","54439335","54184628","54435911","54547029","54580912","54314274","53918272","54447612","54561308","52175046","54531535","54495620","52753147","52175055","54358692","54020412","54424068","54222599","53852885","52697526","53944212","54222051","54125650","54284918","54137014","54142985","53755346","54078231","52175067","54021634","53971125","54077453","54010996","52759195","53028445","54065927","52175082","53920744","54020314","52714861","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","52263045","52564798","53604424","53575428","52167221","53545307","53545088","53606423","52956249","52894249","52568574","52527230","53058889","52760234","52263048","52451159","52175073","52358247","52189687","52232025","51980465","52430474","52363300","52346694","52359342","52231503","52255239","50934254","52303651","52258169","51958927","52242714","52239097","52083853","52083904","51765719","52072580","51525359","51806803"],"team_id":1,"request_id":"3fa7c4c9-9714-474a-adf8-4e5f30417ddd","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Ask Jiminny test report"}",
response: "{"request_id":"3fa7c4c9-9714-474a-adf8-4e5f30417ddd","status":"completed","timestamp":"2026-04-14T07:49:35.099004+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.pdf"}",
requested_at: "2026-04-14 07:49:04",
generated_at: "2026-04-14 07:49:35",
sent_at: null,
created_at: "2026-04-14 07:49:03",
updated_at: "2026-04-14 07:49:35",
report: Jiminny\Models\AutomatedReport {#15196
id: 33,
#uuid: b"I«SŽút\x17ªˆ'w#V7¦ù",
team_id: 1,
type: "ask_jiminny",
status: 1,
frequency: "daily",
from: null,
to: null,
deal_value_min: null,
deal_value_max: null,
call_types: "[]",
media_types: "["pdf"]",
call_duration_min: null,
call_duration_max: null,
groups: "[9]",
playbook_categories: null,
deal_at_call_stages: null,
current_deal_stages: null,
recipients: "{"users":[7160,23309]}",
jiminny_recipients: null,
additional_prompt_input: null,
custom_name: "Ask Jiminny test report",
activity_search_id: 26912,
ask_anything_prompt_id: 62,
expires_at: "2026-04-30",
created_by: 7160,
created_at: "2026-04-08 10:12:30",
updated_at: "2026-04-08 10:12:30",
deleted_at: null,
},
},
Jiminny\Models\AutomatedReportResult {#15700
id: 45,
uuid: b"A¢•M8z~‚*l\x01÷ð\0s",
report_id: 33,
name: "Ask Jiminny test report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54964443","54964442","54214348","54747783","54792639","54355211","54214356","54214362","54373257","54276602","54547166","54357434","54638437","54439335","54184628","54435911","54547029","54580912","54314274","53918272","54447612","54561308","52175046","54531535","54495620","52753147","52175055","54358692","54020412","54424068","54222599","53852885","52697526","53944212","54222051","54125650","54284918","54137014","54142985","53755346","54078231","52175067","54021634","53971125","54077453","54010996","52759195","53028445","54065927","52175082","53920744","54020314","52714861","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","52263045","52564798","53604424","53575428","52167221","53545307","53545088","53606423","52956249","52894249","52568574","52527230","53058889","52760234","52263048","52451159","52175073","52358247","52189687","52232025","51980465","52430474","52363300","52346694","52359342","52231503","52255239","50934254","52303651","52258169","51958927","52242714","52239097","52083853","52083904","51765719","52072580","51525359","51806803"],"team_id":1,"request_id":"38817a7e-954d-41a2-822a-6c01f7f00073","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Ask Jiminny test report"}",
response: "{"request_id":"38817a7e-954d-41a2-822a-6c01f7f00073","status":"completed","timestamp":"2026-04-14T08:41:46.594895+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/38817a7e-954d-41a2-822a-6c01f7f00073.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/38817a7e-954d-41a2-822a-6c01f7f00073.pdf"}",
requested_at: "2026-04-14 08:41:11",
generated_at: "2026-04-14 08:41:46",
sent_at: null,
created_at: "2026-04-14 08:41:11",
updated_at: "2026-04-14 08:41:46",
report: Jiminny\Models\AutomatedReport {#15196},
},
Jiminny\Models\AutomatedReportResult {#15705
id: 47,
uuid: b"D‘\x10[̘^–𔹧-ÞÝB",
report_id: 33,
name: "Ask Jiminny test report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54964443","54964442","54214348","54747783","54792639","54355211","54214356","54214362","54373257","54276602","54547166","54357434","54638437","54439335","54184628","54435911","54547029","54580912","54314274","53918272","54447612","54561308","52175046","54531535","54495620","52753147","52175055","54358692","54020412","54424068","54222599","53852885","52697526","53944212","54222051","54125650","54284918","54137014","54142985","53755346","54078231","52175067","54021634","53971125","54077453","54010996","52759195","53028445","54065927","52175082","53920744","54020314","52714861","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","52263045","52564798","53604424","53575428","52167221","53545307","53545088","53606423","52956249","52894249","52568574","52527230","53058889","52760234","52263048","52451159","52175073","52358247","52189687","52232025","51980465","52430474","52363300","52346694","52359342","52231503","52255239","50934254","52303651","52258169","51958927","52242714","52239097","52083853","52083904","51765719","52072580","51525359","51806803"],"team_id":1,"request_id":"cc985e96-105b-4491-9a94-b9a72ddedd42","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Ask Jiminny test report"}",
response: "{"request_id":"cc985e96-105b-4491-9a94-b9a72ddedd42","status":"completed","timestamp":"2026-04-14T10:46:38.602513+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cc985e96-105b-4491-9a94-b9a72ddedd42.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cc985e96-105b-4491-9a94-b9a72ddedd42.pdf"}",
requested_at: "2026-04-14 10:46:09",
generated_at: "2026-04-14 10:46:38",
sent_at: null,
created_at: "2026-04-14 10:46:08",
updated_at: "2026-04-14 10:46:38",
report: Jiminny\Models\AutomatedReport {#15196},
},
Jiminny\Models\AutomatedReportResult {#15687
id: 49,
uuid: b"K·Ì¬Ò\vþþ«PÈ»‰\x19™s",
report_id: 35,
name: "Test 6 - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"Please make a summary for all calls","call_ids":["49880280","49104686","48360159","47193308","44762288","43862984","41678335","41310991","39940631","39779620","39389894","39106205","38745110","38510502"],"team_id":1,"request_id":"d20bfefe-ccac-4bb7-ab50-c8bb89199973","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Test 6"}",
response: "{"request_id":"d20bfefe-ccac-4bb7-ab50-c8bb89199973","status":"completed","timestamp":"2026-04-14T10:46:37.905336+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.pdf"}",
requested_at: "2026-04-14 10:46:16",
generated_at: "2026-04-14 10:46:37",
sent_at: null,
created_at: "2026-04-14 10:46:16",
updated_at: "2026-04-14 10:46:38",
report: Jiminny\Models\AutomatedReport {#15219
id: 35,
#uuid: b"""
@@Àê~xFâˆô\n
áKfè
""",
team_id: 1,
type: "ask_jiminny",
status: 1,
frequency: "daily",
from: null,
to: null,
deal_value_min: null,
deal_value_max: null,
call_types: "[]",
media_types: "["pdf"]",
call_duration_min: null,
call_duration_max: null,
groups: "[9]",
playbook_categories: null,
deal_at_call_stages: null,
current_deal_stages: null,
recipients: "{"users":[3248,23559]}",
jiminny_recipients: null,
additional_prompt_input: null,
custom_name: "Test 6",
activity_search_id: 10932,
ask_anything_prompt_id: 65,
expires_at: "2026-04-19",
created_by: 3248,
created_at: "2026-04-14 08:39:14",
updated_at: "2026-04-14 08:39:14",
deleted_at: null,
},
},
Jiminny\Models\AutomatedReportResult {#15686
id: 50,
uuid: b"GÙµ‚\{3‡p©ú1ÿÖŽ",
report_id: 35,
name: "Test 6 - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"Please make a summary for all calls","call_ids":["49880280","49104686","48360159","47193308","44762288","43862984","41678335","41310991","39940631","39779620","39389894","39106205","38745110","38510502"],"team_id":1,"request_id":"5c9d7b33-b582-47d9-8770-a9fa31ffd68d","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Test 6"}",
response: "{"request_id":"5c9d7b33-b582-47d9-8770-a9fa31ffd68d","status":"completed","timestamp":"2026-04-14T10:49:01.677577+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.pdf"}",
requested_at: "2026-04-14 10:48:43",
generated_at: "2026-04-14 10:49:01",
sent_at: null,
created_at: "2026-04-14 10:48:42",
updated_at: "2026-04-14 10:49:01",
report: Jiminny\Models\AutomatedReport {#15219},
},
Jiminny\Models\AutomatedReportResult {#15685
id: 51,
uuid: b"L\x13HSÏÖ»™ŸŽ¦¯Cár{",
report_id: 36,
name: "Tuesday report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54214348","54747783","54792639","54355211","54214356","54579532","54214362","54795501","54373257","54566775","54179068","54691680","54702966","54186485","54547166","54357434","54439335","54435911","54547029","54179299","54580912","54314274","53918272","54310744","54447612","54561308","52175046","54531535","54495620","52753147","53853301","52551697","52175055","54358692","54020412","54424068","54222599","53853298","53852885","53931221","54132327","53944212","54037186","54125650","54059512","53801108","54284918","52552430","54142985","53755346","52175067","54021634","52896288","52175051","54077453","52413114","54010996","53528248","54078291","53813598","54076266","53028445","54065927","53922780","53729434","53919824","53384442","52175082","53920744","54020314","52714861","54009217","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","53769369","53384450","52161199","52263045","52564798","50907426","53604424","53575428","52167221","52156369","53545307","52565625","53610225","53594648","53545088","52175041","52956249","52217425","52562272","52248293"],"team_id":1,"request_id":"cfd6bb99-4853-4c13-9f8e-a6af43e1727b","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Tuesday report"}",
response: "{"request_id":"cfd6bb99-4853-4c13-9f8e-a6af43e1727b","status":"completed","timestamp":"2026-04-14T11:23:03.951289+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.pdf"}",
requested_at: "2026-04-14 11:22:36",
generated_at: "2026-04-14 11:23:04",
sent_at: null,
created_at: "2026-04-14 11:22:36",
updated_at: "2026-04-14 11:23:04",
report: Jiminny\Models\AutomatedReport {#15221
id: 36,
#uuid: b"Aß#ôq¸»õ¶7i7eçªx",
team_id: 1,
type: "ask_jiminny",
status: 1,
frequency: "daily",
from: null,
to: null,
deal_value_min: null,
deal_value_max: null,
call_types: "[]",
media_types: "["pdf"]",
call_duration_min: null,
call_duration_max: null,
groups: "[]",
playbook_categories: null,
deal_at_call_stages: null,
current_deal_stages: null,
recipients: "{"users":[7160]}",
jiminny_recipients: null,
additional_prompt_input: null,
custom_name: "Tuesday report",
activity_search_id: 26913,
ask_anything_prompt_id: 62,
expires_at: "2026-04-30",
created_by: 7160,
created_at: "2026-04-14 11:20:20",
updated_at: "2026-04-14 11:20:20",
deleted_at: null,
},
},
],
}
> $repo->getGeneratedNotSentResults()->count();
= 7
> exit
INFO Goodbye.
root@b79a4bdd6905:/home/jiminny#
DOCKER
Close Tab
DEV (docker)
Close Tab
APP (-zsh)
Close Tab
ec2-user@ip-10-30-93-249:~ (nc)
Close Tab
-zsh
Close Tab
-zsh
Close Tab
-zsh
Close Tab
✳ Unable to access screenpipe activity data (claude)
Close Tab
⌥⌘1
ec2-user@ip-10-30-93-249:~...
|
12774
|
|
12777
|
275
|
9
|
2026-04-14T11:38:40.824643+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166720824_m2.jpg...
|
iTerm2
|
ec2-user@ip-10-30-93-249:~
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Last login: Sat Apr 11 12:38:35 on ttys007
Poetry Last login: Sat Apr 11 12:38:35 on ttys007
Poetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents
Poetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/jiminny/app (JY-18909-automated-reports-ask-jiminny) $ vstg
Warning: Permanently added 'jiminny-stage-ecs1' (ED25519) to the list of known hosts.
A newer release of "Amazon Linux" is available.
Version 2023.10.20260105:
Version 2023.10.20260120:
Version 2023.10.20260202:
Version 2023.10.20260216:
Version 2023.10.20260302:
Version 2023.10.20260325:
Version 2023.10.20260330:
Version 2023.11.20260406:
Version 2023.11.20260413:
Version 2023.8.20250707:
Version 2023.8.20250715:
Version 2023.8.20250721:
Version 2023.8.20250808:
Version 2023.8.20250818:
Version 2023.8.20250908:
Version 2023.8.20250915:
Version 2023.9.20250929:
Version 2023.9.20251014:
Version 2023.9.20251020:
Version 2023.9.20251027:
Version 2023.9.20251105:
Version 2023.9.20251110:
Version 2023.9.20251117:
Version 2023.9.20251208:
Run "/usr/bin/dnf check-release-update" for full release and version update info
, #_
~\_ ####_
~~ \_#####\
~~ \###|
~~ \#/ ___ Amazon Linux 2023 (ECS Optimized)
~~ V~' '->
~~~ /
~~._. _/
_/ _/
_/m/'
For documentation, visit [URL_WITH_CREDENTIALS] php artisan automated-reports
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Started {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Found 2 daily reports to process {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"fa7417aa-538e-49ab-8827-77235637a6f9","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"63e6d70b-b7cb-4dfa-8443-53453e6c4054","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Completed {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
root@fee51d2e1f17:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format "{{.ID}}" --filter "name=ecs-worker" | head -1) /bin/bash -c "cd /home/jiminny && bash"
root@73b64f5d54a3:/home/jiminny# php artisan automated-reports
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Started {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Found 3 daily reports to process {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"fa7417aa-538e-49ab-8827-77235637a6f9","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"63e6d70b-b7cb-4dfa-8443-53453e6c4054","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:04] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"7e7846e2-c0ea-4040-88f4-0ae14b66ade8","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:04] staging.INFO: [automated-reports] Completed {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
root@73b64f5d54a3:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format "{{.ID}}" --filter "name=ecs-worker" | head -1) /bin/bash -c "cd /home/jiminny && bash"
root@c78a087b1345:/home/jiminny# php artisan automated-reports
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Started {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Found 3 daily reports to process {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"fa7417aa-538e-49ab-8827-77235637a6f9","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"63e6d70b-b7cb-4dfa-8443-53453e6c4054","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"7e7846e2-c0ea-4040-88f4-0ae14b66ade8","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Completed {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
root@c78a087b1345:/home/jiminny# php artisan automated-reports --report-id 35
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Started {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[automated-reports] Automated report found Test 6
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Found 1 daily reports to process {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"7e7846e2-c0ea-4040-88f4-0ae14b66ade8","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Completed {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
root@c78a087b1345:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format "{{.ID}}" --filter "name=ecs-worker" | head -1) /bin/bash -c "cd /home/jiminny && bash"
root@b79a4bdd6905:/home/jiminny# php artisan automated-reports --report-id 71b8bbf5-23f4-41df-b637-693765e7aa78
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Started {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[automated-reports] Automated report found Tuesday report
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Found 1 daily reports to process {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"71b8bbf5-23f4-41df-b637-693765e7aa78","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Completed {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
root@b79a4bdd6905:/home/jiminny# php artisan automated-reports:send
root@b79a4bdd6905:/home/jiminny# php artisan tinker
Psy Shell v0.12.21 (PHP 8.3.30 — cli) by Justin Hileman
New PHP manual is available (latest: 3.0.5). Update with `doc --update-manual`
> $repo = app(AutomatedReportsRepository::class);
[!] Aliasing 'AutomatedReportsRepository' to 'Jiminny\Repositories\AutomatedReportsRepository' for this Tinker session.
= Jiminny\Repositories\AutomatedReportsRepository {#15215}
> $repo->getGeneratedNotSentResults();
= Illuminate\Database\Eloquent\Collection {#15683
all: [
Jiminny\Models\AutomatedReportResult {#15703
id: 14,
uuid: b"C^Ð>!€]¢ª1vàý\x1F6Ï",
report_id: 8,
name: "Exec Summary - 5 Sep 2024 - 10 Mar 2026 - All",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"team_id":1,"request_id":"21805da2-d03e-435e-aa31-76e0fd1f36cf","report_type":"exec_summary","media_types":["pdf","podcast"],"from_date":"2024-09-05T00:00:00+00:00","to_date":"2026-03-10T23:59:59+00:00","group_ids":[],"call_deal_stage":[],"current_deal_stage":[],"deal_min_value":null,"deal_max_value":null,"call_types":["conference","dialer"],"call_duration_min_seconds":null,"call_duration_max_seconds":null,"special_requirements":"","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"5 Sep 2024 - 10 Mar 2026","playbook_categories":[],"custom_name":null}",
response: "{"request_id":"21805da2-d03e-435e-aa31-76e0fd1f36cf","status":"completed","timestamp":"2026-03-26T14:10:58.983895+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf.MD","report_type":"exec_summary","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf.pdf","podcast_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.txt","podcast_audio_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.mp3","podcast_ssml_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.ssml"}",
requested_at: "2026-03-26 14:06:35",
generated_at: "2026-03-26 14:10:59",
sent_at: null,
created_at: "2026-03-26 14:06:35",
updated_at: "2026-03-26 14:10:59",
report: Jiminny\Models\AutomatedReport {#15197
id: 8,
#uuid: b"FWNçôý\x1Dªš–+âga”d",
team_id: 1,
type: "exec_summary",
status: 1,
frequency: "one_off",
from: "2024-09-05 00:00:00",
to: "2026-03-10 00:00:00",
deal_value_min: null,
deal_value_max: null,
call_types: "["conference","dialer"]",
media_types: "["pdf","podcast"]",
call_duration_min: null,
call_duration_max: null,
groups: "[]",
playbook_categories: "[]",
deal_at_call_stages: "[]",
current_deal_stages: "[]",
recipients: "{"users":[]}",
jiminny_recipients: "{"users":[]}",
additional_prompt_input: "",
custom_name: null,
activity_search_id: null,
ask_anything_prompt_id: null,
expires_at: null,
created_by: 3248,
created_at: "2026-03-26 14:06:32",
updated_at: "2026-03-26 14:06:32",
deleted_at: null,
},
},
Jiminny\Models\AutomatedReportResult {#15701
id: 43,
uuid: b"GJ—\x14?§ÄÉøN_0A}Ý",
report_id: 33,
name: "Ask Jiminny test report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54964443","54964442","54214348","54747783","54792639","54355211","54214356","54214362","54373257","54276602","54547166","54357434","54638437","54439335","54184628","54435911","54547029","54580912","54314274","53918272","54447612","54561308","52175046","54531535","54495620","52753147","52175055","54358692","54020412","54424068","54222599","53852885","52697526","53944212","54222051","54125650","54284918","54137014","54142985","53755346","54078231","52175067","54021634","53971125","54077453","54010996","52759195","53028445","54065927","52175082","53920744","54020314","52714861","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","52263045","52564798","53604424","53575428","52167221","53545307","53545088","53606423","52956249","52894249","52568574","52527230","53058889","52760234","52263048","52451159","52175073","52358247","52189687","52232025","51980465","52430474","52363300","52346694","52359342","52231503","52255239","50934254","52303651","52258169","51958927","52242714","52239097","52083853","52083904","51765719","52072580","51525359","51806803"],"team_id":1,"request_id":"3fa7c4c9-9714-474a-adf8-4e5f30417ddd","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Ask Jiminny test report"}",
response: "{"request_id":"3fa7c4c9-9714-474a-adf8-4e5f30417ddd","status":"completed","timestamp":"2026-04-14T07:49:35.099004+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.pdf"}",
requested_at: "2026-04-14 07:49:04",
generated_at: "2026-04-14 07:49:35",
sent_at: null,
created_at: "2026-04-14 07:49:03",
updated_at: "2026-04-14 07:49:35",
report: Jiminny\Models\AutomatedReport {#15196
id: 33,
#uuid: b"I«SŽút\x17ªˆ'w#V7¦ù",
team_id: 1,
type: "ask_jiminny",
status: 1,
frequency: "daily",
from: null,
to: null,
deal_value_min: null,
deal_value_max: null,
call_types: "[]",
media_types: "["pdf"]",
call_duration_min: null,
call_duration_max: null,
groups: "[9]",
playbook_categories: null,
deal_at_call_stages: null,
current_deal_stages: null,
recipients: "{"users":[7160,23309]}",
jiminny_recipients: null,
additional_prompt_input: null,
custom_name: "Ask Jiminny test report",
activity_search_id: 26912,
ask_anything_prompt_id: 62,
expires_at: "2026-04-30",
created_by: 7160,
created_at: "2026-04-08 10:12:30",
updated_at: "2026-04-08 10:12:30",
deleted_at: null,
},
},
Jiminny\Models\AutomatedReportResult {#15700
id: 45,
uuid: b"A¢•M8z~‚*l\x01÷ð\0s",
report_id: 33,
name: "Ask Jiminny test report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54964443","54964442","54214348","54747783","54792639","54355211","54214356","54214362","54373257","54276602","54547166","54357434","54638437","54439335","54184628","54435911","54547029","54580912","54314274","53918272","54447612","54561308","52175046","54531535","54495620","52753147","52175055","54358692","54020412","54424068","54222599","53852885","52697526","53944212","54222051","54125650","54284918","54137014","54142985","53755346","54078231","52175067","54021634","53971125","54077453","54010996","52759195","53028445","54065927","52175082","53920744","54020314","52714861","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","52263045","52564798","53604424","53575428","52167221","53545307","53545088","53606423","52956249","52894249","52568574","52527230","53058889","52760234","52263048","52451159","52175073","52358247","52189687","52232025","51980465","52430474","52363300","52346694","52359342","52231503","52255239","50934254","52303651","52258169","51958927","52242714","52239097","52083853","52083904","51765719","52072580","51525359","51806803"],"team_id":1,"request_id":"38817a7e-954d-41a2-822a-6c01f7f00073","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Ask Jiminny test report"}",
response: "{"request_id":"38817a7e-954d-41a2-822a-6c01f7f00073","status":"completed","timestamp":"2026-04-14T08:41:46.594895+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/38817a7e-954d-41a2-822a-6c01f7f00073.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/38817a7e-954d-41a2-822a-6c01f7f00073.pdf"}",
requested_at: "2026-04-14 08:41:11",
generated_at: "2026-04-14 08:41:46",
sent_at: null,
created_at: "2026-04-14 08:41:11",
updated_at: "2026-04-14 08:41:46",
report: Jiminny\Models\AutomatedReport {#15196},
},
Jiminny\Models\AutomatedReportResult {#15705
id: 47,
uuid: b"D‘\x10[̘^–𔹧-ÞÝB",
report_id: 33,
name: "Ask Jiminny test report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54964443","54964442","54214348","54747783","54792639","54355211","54214356","54214362","54373257","54276602","54547166","54357434","54638437","54439335","54184628","54435911","54547029","54580912","54314274","53918272","54447612","54561308","52175046","54531535","54495620","52753147","52175055","54358692","54020412","54424068","54222599","53852885","52697526","53944212","54222051","54125650","54284918","54137014","54142985","53755346","54078231","52175067","54021634","53971125","54077453","54010996","52759195","53028445","54065927","52175082","53920744","54020314","52714861","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","52263045","52564798","53604424","53575428","52167221","53545307","53545088","53606423","52956249","52894249","52568574","52527230","53058889","52760234","52263048","52451159","52175073","52358247","52189687","52232025","51980465","52430474","52363300","52346694","52359342","52231503","52255239","50934254","52303651","52258169","51958927","52242714","52239097","52083853","52083904","51765719","52072580","51525359","51806803"],"team_id":1,"request_id":"cc985e96-105b-4491-9a94-b9a72ddedd42","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Ask Jiminny test report"}",
response: "{"request_id":"cc985e96-105b-4491-9a94-b9a72ddedd42","status":"completed","timestamp":"2026-04-14T10:46:38.602513+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cc985e96-105b-4491-9a94-b9a72ddedd42.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cc985e96-105b-4491-9a94-b9a72ddedd42.pdf"}",
requested_at: "2026-04-14 10:46:09",
generated_at: "2026-04-14 10:46:38",
sent_at: null,
created_at: "2026-04-14 10:46:08",
updated_at: "2026-04-14 10:46:38",
report: Jiminny\Models\AutomatedReport {#15196},
},
Jiminny\Models\AutomatedReportResult {#15687
id: 49,
uuid: b"K·Ì¬Ò\vþþ«PÈ»‰\x19™s",
report_id: 35,
name: "Test 6 - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"Please make a summary for all calls","call_ids":["49880280","49104686","48360159","47193308","44762288","43862984","41678335","41310991","39940631","39779620","39389894","39106205","38745110","38510502"],"team_id":1,"request_id":"d20bfefe-ccac-4bb7-ab50-c8bb89199973","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Test 6"}",
response: "{"request_id":"d20bfefe-ccac-4bb7-ab50-c8bb89199973","status":"completed","timestamp":"2026-04-14T10:46:37.905336+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.pdf"}",
requested_at: "2026-04-14 10:46:16",
generated_at: "2026-04-14 10:46:37",
sent_at: null,
created_at: "2026-04-14 10:46:16",
updated_at: "2026-04-14 10:46:38",
report: Jiminny\Models\AutomatedReport {#15219
id: 35,
#uuid: b"""
@@Àê~xFâˆô\n
áKfè
""",
team_id: 1,
type: "ask_jiminny",
status: 1,
frequency: "daily",
from: null,
to: null,
deal_value_min: null,
deal_value_max: null,
call_types: "[]",
media_types: "["pdf"]",
call_duration_min: null,
call_duration_max: null,
groups: "[9]",
playbook_categories: null,
deal_at_call_stages: null,
current_deal_stages: null,
recipients: "{"users":[3248,23559]}",
jiminny_recipients: null,
additional_prompt_input: null,
custom_name: "Test 6",
activity_search_id: 10932,
ask_anything_prompt_id: 65,
expires_at: "2026-04-19",
created_by: 3248,
created_at: "2026-04-14 08:39:14",
updated_at: "2026-04-14 08:39:14",
deleted_at: null,
},
},
Jiminny\Models\AutomatedReportResult {#15686
id: 50,
uuid: b"GÙµ‚\{3‡p©ú1ÿÖŽ",
report_id: 35,
name: "Test 6 - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"Please make a summary for all calls","call_ids":["49880280","49104686","48360159","47193308","44762288","43862984","41678335","41310991","39940631","39779620","39389894","39106205","38745110","38510502"],"team_id":1,"request_id":"5c9d7b33-b582-47d9-8770-a9fa31ffd68d","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Test 6"}",
response: "{"request_id":"5c9d7b33-b582-47d9-8770-a9fa31ffd68d","status":"completed","timestamp":"2026-04-14T10:49:01.677577+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.pdf"}",
requested_at: "2026-04-14 10:48:43",
generated_at: "2026-04-14 10:49:01",
sent_at: null,
created_at: "2026-04-14 10:48:42",
updated_at: "2026-04-14 10:49:01",
report: Jiminny\Models\AutomatedReport {#15219},
},
Jiminny\Models\AutomatedReportResult {#15685
id: 51,
uuid: b"L\x13HSÏÖ»™ŸŽ¦¯Cár{",
report_id: 36,
name: "Tuesday report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54214348","54747783","54792639","54355211","54214356","54579532","54214362","54795501","54373257","54566775","54179068","54691680","54702966","54186485","54547166","54357434","54439335","54435911","54547029","54179299","54580912","54314274","53918272","54310744","54447612","54561308","52175046","54531535","54495620","52753147","53853301","52551697","52175055","54358692","54020412","54424068","54222599","53853298","53852885","53931221","54132327","53944212","54037186","54125650","54059512","53801108","54284918","52552430","54142985","53755346","52175067","54021634","52896288","52175051","54077453","52413114","54010996","53528248","54078291","53813598","54076266","53028445","54065927","53922780","53729434","53919824","53384442","52175082","53920744","54020314","52714861","54009217","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","53769369","53384450","52161199","52263045","52564798","50907426","53604424","53575428","52167221","52156369","53545307","52565625","53610225","53594648","53545088","52175041","52956249","52217425","52562272","52248293"],"team_id":1,"request_id":"cfd6bb99-4853-4c13-9f8e-a6af43e1727b","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Tuesday report"}",
response: "{"request_id":"cfd6bb99-4853-4c13-9f8e-a6af43e1727b","status":"completed","timestamp":"2026-04-14T11:23:03.951289+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.pdf"}",
requested_at: "2026-04-14 11:22:36",
generated_at: "2026-04-14 11:23:04",
sent_at: null,
created_at: "2026-04-14 11:22:36",
updated_at: "2026-04-14 11:23:04",
report: Jiminny\Models\AutomatedReport {#15221
id: 36,
#uuid: b"Aß#ôq¸»õ¶7i7eçªx",
team_id: 1,
type: "ask_jiminny",
status: 1,
frequency: "daily",
from: null,
to: null,
deal_value_min: null,
deal_value_max: null,
call_types: "[]",
media_types: "["pdf"]",
call_duration_min: null,
call_duration_max: null,
groups: "[]",
playbook_categories: null,
deal_at_call_stages: null,
current_deal_stages: null,
recipients: "{"users":[7160]}",
jiminny_recipients: null,
additional_prompt_input: null,
custom_name: "Tuesday report",
activity_search_id: 26913,
ask_anything_prompt_id: 62,
expires_at: "2026-04-30",
created_by: 7160,
created_at: "2026-04-14 11:20:20",
updated_at: "2026-04-14 11:20:20",
deleted_at: null,
},
},
],
}
> $repo->getGeneratedNotSentResults()->count();
= 7
> exit
INFO Goodbye.
root@b79a4bdd6905:/home/jiminny#
DOCKER
Close Tab
DEV (docker)
Close Tab
APP (-zsh)
Close Tab
ec2-user@ip-10-30-93-249:~ (nc)
Close Tab
-zsh
Close Tab
-zsh
Close Tab
-zsh
Close Tab
✳ Unable to access screenpipe activity data (claude)
Close Tab
⌥⌘1
ec2-user@ip-10-30-93-249:~...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"Last login: Sat Apr 11 12:38:35 on ttys007\n\nPoetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents\n\nPoetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/jiminny/app (JY-18909-automated-reports-ask-jiminny) $ vstg\nWarning: Permanently added 'jiminny-stage-ecs1' (ED25519) to the list of known hosts.\n\nA newer release of \"Amazon Linux\" is available.\n Version 2023.10.20260105:\n Version 2023.10.20260120:\n Version 2023.10.20260202:\n Version 2023.10.20260216:\n Version 2023.10.20260302:\n Version 2023.10.20260325:\n Version 2023.10.20260330:\n Version 2023.11.20260406:\n Version 2023.11.20260413:\n Version 2023.8.20250707:\n Version 2023.8.20250715:\n Version 2023.8.20250721:\n Version 2023.8.20250808:\n Version 2023.8.20250818:\n Version 2023.8.20250908:\n Version 2023.8.20250915:\n Version 2023.9.20250929:\n Version 2023.9.20251014:\n Version 2023.9.20251020:\n Version 2023.9.20251027:\n Version 2023.9.20251105:\n Version 2023.9.20251110:\n Version 2023.9.20251117:\n Version 2023.9.20251208:\nRun \"/usr/bin/dnf check-release-update\" for full release and version update info\n , #_\n ~\\_ ####_\n ~~ \\_#####\\\n ~~ \\###|\n ~~ \\#/ ___ Amazon Linux 2023 (ECS Optimized)\n ~~ V~' '->\n ~~~ /\n ~~._. _/\n _/ _/\n _/m/'\n\nFor documentation, visit http://aws.amazon.com/documentation/ecs\n[ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@fee51d2e1f17:/home/jiminny# php artisan about\n\n Environment ...................................................................................................................................... \n Application Name ................................................................................................................. Jiminny Web App \n Laravel Version .......................................................................................................................... 12.54.1 \n PHP Version ............................................................................................................................... 8.3.30 \n Composer Version ............................................................................................................................... - \n Environment .............................................................................................................................. staging \n Debug Mode ................................................................................................................................... OFF \n URL ...................................................................................................................... app.staging.jiminny.com \n Maintenance Mode ............................................................................................................................. OFF \n Timezone ..................................................................................................................................... UTC \n Locale ..................................................................................................................................... en_US \n\n Cache ............................................................................................................................................ \n Config .................................................................................................................................... CACHED \n Events ................................................................................................................................ NOT CACHED \n Routes .................................................................................................................................... CACHED \n Views ..................................................................................................................................... CACHED \n\n Drivers .......................................................................................................................................... \n Broadcasting .............................................................................................................................. pusher \n Cache ...................................................................................................................................... redis \n Database ................................................................................................................................... mysql \n Logs .................................................................................................................................... errorlog \n Mail ......................................................................................................................................... ses \n Queue ........................................................................................................................................ sqs \n Session .................................................................................................................................... redis \n\n Storage .......................................................................................................................................... \n public/storage ........................................................................................................................ NOT LINKED \n\n Sentry ........................................................................................................................................... \n Enabled ...................................................................................................................................... YES \n Environment .............................................................................................................................. staging \n Laravel SDK Version ....................................................................................................................... 4.13.0 \n PHP SDK Version ........................................................................................................................... 4.13.0 \n Release ................................................................................................................................... 869720 \n Sample Rate Errors .......................................................................................................................... 100% \n Sample Rate Performance Monitoring ....................................................................................................... NOT SET \n Sample Rate Profiling .................................................................................................................... NOT SET \n Send Default PII ........................................................................................................................ DISABLED \n\nroot@fee51d2e1f17:/home/jiminny# php artisan automated-reports\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Started {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Found 2 daily reports to process {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"fa7417aa-538e-49ab-8827-77235637a6f9\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"63e6d70b-b7cb-4dfa-8443-53453e6c4054\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\nroot@fee51d2e1f17:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@73b64f5d54a3:/home/jiminny# php artisan automated-reports\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Started {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Found 3 daily reports to process {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"fa7417aa-538e-49ab-8827-77235637a6f9\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"63e6d70b-b7cb-4dfa-8443-53453e6c4054\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:04] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"7e7846e2-c0ea-4040-88f4-0ae14b66ade8\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:04] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\nroot@73b64f5d54a3:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@c78a087b1345:/home/jiminny# php artisan automated-reports\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Started {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Found 3 daily reports to process {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"fa7417aa-538e-49ab-8827-77235637a6f9\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"63e6d70b-b7cb-4dfa-8443-53453e6c4054\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"7e7846e2-c0ea-4040-88f4-0ae14b66ade8\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\nroot@c78a087b1345:/home/jiminny# php artisan automated-reports --report-id 35\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Started {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[automated-reports] Automated report found Test 6\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Found 1 daily reports to process {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"7e7846e2-c0ea-4040-88f4-0ae14b66ade8\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\nroot@c78a087b1345:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@b79a4bdd6905:/home/jiminny# php artisan automated-reports --report-id 71b8bbf5-23f4-41df-b637-693765e7aa78\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Started {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[automated-reports] Automated report found Tuesday report\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Found 1 daily reports to process {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"71b8bbf5-23f4-41df-b637-693765e7aa78\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\nroot@b79a4bdd6905:/home/jiminny# php artisan automated-reports:send\nroot@b79a4bdd6905:/home/jiminny# php artisan tinker\nPsy Shell v0.12.21 (PHP 8.3.30 — cli) by Justin Hileman\nNew PHP manual is available (latest: 3.0.5). Update with `doc --update-manual`\n> $repo = app(AutomatedReportsRepository::class);\n[!] Aliasing 'AutomatedReportsRepository' to 'Jiminny\\Repositories\\AutomatedReportsRepository' for this Tinker session.\n= Jiminny\\Repositories\\AutomatedReportsRepository {#15215}\n\n> $repo->getGeneratedNotSentResults();\n= Illuminate\\Database\\Eloquent\\Collection {#15683\n all: [\n Jiminny\\Models\\AutomatedReportResult {#15703\n id: 14,\n uuid: b\"C^Ð>!€]¢ª1vàý\\x1F6Ï\",\n report_id: 8,\n name: \"Exec Summary - 5 Sep 2024 - 10 Mar 2026 - All\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"team_id\":1,\"request_id\":\"21805da2-d03e-435e-aa31-76e0fd1f36cf\",\"report_type\":\"exec_summary\",\"media_types\":[\"pdf\",\"podcast\"],\"from_date\":\"2024-09-05T00:00:00+00:00\",\"to_date\":\"2026-03-10T23:59:59+00:00\",\"group_ids\":[],\"call_deal_stage\":[],\"current_deal_stage\":[],\"deal_min_value\":null,\"deal_max_value\":null,\"call_types\":[\"conference\",\"dialer\"],\"call_duration_min_seconds\":null,\"call_duration_max_seconds\":null,\"special_requirements\":\"\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"5 Sep 2024 - 10 Mar 2026\",\"playbook_categories\":[],\"custom_name\":null}\",\n response: \"{\"request_id\":\"21805da2-d03e-435e-aa31-76e0fd1f36cf\",\"status\":\"completed\",\"timestamp\":\"2026-03-26T14:10:58.983895+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf.MD\",\"report_type\":\"exec_summary\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf.pdf\",\"podcast_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.txt\",\"podcast_audio_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.mp3\",\"podcast_ssml_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.ssml\"}\",\n requested_at: \"2026-03-26 14:06:35\",\n generated_at: \"2026-03-26 14:10:59\",\n sent_at: null,\n created_at: \"2026-03-26 14:06:35\",\n updated_at: \"2026-03-26 14:10:59\",\n report: Jiminny\\Models\\AutomatedReport {#15197\n id: 8,\n #uuid: b\"FWNçôý\\x1Dªš–+âga”d\",\n team_id: 1,\n type: \"exec_summary\",\n status: 1,\n frequency: \"one_off\",\n from: \"2024-09-05 00:00:00\",\n to: \"2026-03-10 00:00:00\",\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[\"conference\",\"dialer\"]\",\n media_types: \"[\"pdf\",\"podcast\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[]\",\n playbook_categories: \"[]\",\n deal_at_call_stages: \"[]\",\n current_deal_stages: \"[]\",\n recipients: \"{\"users\":[]}\",\n jiminny_recipients: \"{\"users\":[]}\",\n additional_prompt_input: \"\",\n custom_name: null,\n activity_search_id: null,\n ask_anything_prompt_id: null,\n expires_at: null,\n created_by: 3248,\n created_at: \"2026-03-26 14:06:32\",\n updated_at: \"2026-03-26 14:06:32\",\n deleted_at: null,\n },\n },\n Jiminny\\Models\\AutomatedReportResult {#15701\n id: 43,\n uuid: b\"GJ—\\x14?§ÄÉøN_0A}Ý\",\n report_id: 33,\n name: \"Ask Jiminny test report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54964443\",\"54964442\",\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54214362\",\"54373257\",\"54276602\",\"54547166\",\"54357434\",\"54638437\",\"54439335\",\"54184628\",\"54435911\",\"54547029\",\"54580912\",\"54314274\",\"53918272\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53852885\",\"52697526\",\"53944212\",\"54222051\",\"54125650\",\"54284918\",\"54137014\",\"54142985\",\"53755346\",\"54078231\",\"52175067\",\"54021634\",\"53971125\",\"54077453\",\"54010996\",\"52759195\",\"53028445\",\"54065927\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"52263045\",\"52564798\",\"53604424\",\"53575428\",\"52167221\",\"53545307\",\"53545088\",\"53606423\",\"52956249\",\"52894249\",\"52568574\",\"52527230\",\"53058889\",\"52760234\",\"52263048\",\"52451159\",\"52175073\",\"52358247\",\"52189687\",\"52232025\",\"51980465\",\"52430474\",\"52363300\",\"52346694\",\"52359342\",\"52231503\",\"52255239\",\"50934254\",\"52303651\",\"52258169\",\"51958927\",\"52242714\",\"52239097\",\"52083853\",\"52083904\",\"51765719\",\"52072580\",\"51525359\",\"51806803\"],\"team_id\":1,\"request_id\":\"3fa7c4c9-9714-474a-adf8-4e5f30417ddd\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Ask Jiminny test report\"}\",\n response: \"{\"request_id\":\"3fa7c4c9-9714-474a-adf8-4e5f30417ddd\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T07:49:35.099004+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.pdf\"}\",\n requested_at: \"2026-04-14 07:49:04\",\n generated_at: \"2026-04-14 07:49:35\",\n sent_at: null,\n created_at: \"2026-04-14 07:49:03\",\n updated_at: \"2026-04-14 07:49:35\",\n report: Jiminny\\Models\\AutomatedReport {#15196\n id: 33,\n #uuid: b\"I«SŽút\\x17ªˆ'w#V7¦ù\",\n team_id: 1,\n type: \"ask_jiminny\",\n status: 1,\n frequency: \"daily\",\n from: null,\n to: null,\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[]\",\n media_types: \"[\"pdf\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[9]\",\n playbook_categories: null,\n deal_at_call_stages: null,\n current_deal_stages: null,\n recipients: \"{\"users\":[7160,23309]}\",\n jiminny_recipients: null,\n additional_prompt_input: null,\n custom_name: \"Ask Jiminny test report\",\n activity_search_id: 26912,\n ask_anything_prompt_id: 62,\n expires_at: \"2026-04-30\",\n created_by: 7160,\n created_at: \"2026-04-08 10:12:30\",\n updated_at: \"2026-04-08 10:12:30\",\n deleted_at: null,\n },\n },\n Jiminny\\Models\\AutomatedReportResult {#15700\n id: 45,\n uuid: b\"A¢•M8z~‚*l\\x01÷ð\\0s\",\n report_id: 33,\n name: \"Ask Jiminny test report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54964443\",\"54964442\",\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54214362\",\"54373257\",\"54276602\",\"54547166\",\"54357434\",\"54638437\",\"54439335\",\"54184628\",\"54435911\",\"54547029\",\"54580912\",\"54314274\",\"53918272\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53852885\",\"52697526\",\"53944212\",\"54222051\",\"54125650\",\"54284918\",\"54137014\",\"54142985\",\"53755346\",\"54078231\",\"52175067\",\"54021634\",\"53971125\",\"54077453\",\"54010996\",\"52759195\",\"53028445\",\"54065927\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"52263045\",\"52564798\",\"53604424\",\"53575428\",\"52167221\",\"53545307\",\"53545088\",\"53606423\",\"52956249\",\"52894249\",\"52568574\",\"52527230\",\"53058889\",\"52760234\",\"52263048\",\"52451159\",\"52175073\",\"52358247\",\"52189687\",\"52232025\",\"51980465\",\"52430474\",\"52363300\",\"52346694\",\"52359342\",\"52231503\",\"52255239\",\"50934254\",\"52303651\",\"52258169\",\"51958927\",\"52242714\",\"52239097\",\"52083853\",\"52083904\",\"51765719\",\"52072580\",\"51525359\",\"51806803\"],\"team_id\":1,\"request_id\":\"38817a7e-954d-41a2-822a-6c01f7f00073\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Ask Jiminny test report\"}\",\n response: \"{\"request_id\":\"38817a7e-954d-41a2-822a-6c01f7f00073\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T08:41:46.594895+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/38817a7e-954d-41a2-822a-6c01f7f00073.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/38817a7e-954d-41a2-822a-6c01f7f00073.pdf\"}\",\n requested_at: \"2026-04-14 08:41:11\",\n generated_at: \"2026-04-14 08:41:46\",\n sent_at: null,\n created_at: \"2026-04-14 08:41:11\",\n updated_at: \"2026-04-14 08:41:46\",\n report: Jiminny\\Models\\AutomatedReport {#15196},\n },\n Jiminny\\Models\\AutomatedReportResult {#15705\n id: 47,\n uuid: b\"D‘\\x10[̘^–𔹧-ÞÝB\",\n report_id: 33,\n name: \"Ask Jiminny test report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54964443\",\"54964442\",\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54214362\",\"54373257\",\"54276602\",\"54547166\",\"54357434\",\"54638437\",\"54439335\",\"54184628\",\"54435911\",\"54547029\",\"54580912\",\"54314274\",\"53918272\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53852885\",\"52697526\",\"53944212\",\"54222051\",\"54125650\",\"54284918\",\"54137014\",\"54142985\",\"53755346\",\"54078231\",\"52175067\",\"54021634\",\"53971125\",\"54077453\",\"54010996\",\"52759195\",\"53028445\",\"54065927\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"52263045\",\"52564798\",\"53604424\",\"53575428\",\"52167221\",\"53545307\",\"53545088\",\"53606423\",\"52956249\",\"52894249\",\"52568574\",\"52527230\",\"53058889\",\"52760234\",\"52263048\",\"52451159\",\"52175073\",\"52358247\",\"52189687\",\"52232025\",\"51980465\",\"52430474\",\"52363300\",\"52346694\",\"52359342\",\"52231503\",\"52255239\",\"50934254\",\"52303651\",\"52258169\",\"51958927\",\"52242714\",\"52239097\",\"52083853\",\"52083904\",\"51765719\",\"52072580\",\"51525359\",\"51806803\"],\"team_id\":1,\"request_id\":\"cc985e96-105b-4491-9a94-b9a72ddedd42\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Ask Jiminny test report\"}\",\n response: \"{\"request_id\":\"cc985e96-105b-4491-9a94-b9a72ddedd42\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T10:46:38.602513+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cc985e96-105b-4491-9a94-b9a72ddedd42.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cc985e96-105b-4491-9a94-b9a72ddedd42.pdf\"}\",\n requested_at: \"2026-04-14 10:46:09\",\n generated_at: \"2026-04-14 10:46:38\",\n sent_at: null,\n created_at: \"2026-04-14 10:46:08\",\n updated_at: \"2026-04-14 10:46:38\",\n report: Jiminny\\Models\\AutomatedReport {#15196},\n },\n Jiminny\\Models\\AutomatedReportResult {#15687\n id: 49,\n uuid: b\"K·Ì¬Ò\\vþþ«PÈ»‰\\x19™s\",\n report_id: 35,\n name: \"Test 6 - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"Please make a summary for all calls\",\"call_ids\":[\"49880280\",\"49104686\",\"48360159\",\"47193308\",\"44762288\",\"43862984\",\"41678335\",\"41310991\",\"39940631\",\"39779620\",\"39389894\",\"39106205\",\"38745110\",\"38510502\"],\"team_id\":1,\"request_id\":\"d20bfefe-ccac-4bb7-ab50-c8bb89199973\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Test 6\"}\",\n response: \"{\"request_id\":\"d20bfefe-ccac-4bb7-ab50-c8bb89199973\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T10:46:37.905336+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.pdf\"}\",\n requested_at: \"2026-04-14 10:46:16\",\n generated_at: \"2026-04-14 10:46:37\",\n sent_at: null,\n created_at: \"2026-04-14 10:46:16\",\n updated_at: \"2026-04-14 10:46:38\",\n report: Jiminny\\Models\\AutomatedReport {#15219\n id: 35,\n #uuid: b\"\"\"\n @@Àê~xFâˆô\\n\n áKfè\n \"\"\",\n team_id: 1,\n type: \"ask_jiminny\",\n status: 1,\n frequency: \"daily\",\n from: null,\n to: null,\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[]\",\n media_types: \"[\"pdf\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[9]\",\n playbook_categories: null,\n deal_at_call_stages: null,\n current_deal_stages: null,\n recipients: \"{\"users\":[3248,23559]}\",\n jiminny_recipients: null,\n additional_prompt_input: null,\n custom_name: \"Test 6\",\n activity_search_id: 10932,\n ask_anything_prompt_id: 65,\n expires_at: \"2026-04-19\",\n created_by: 3248,\n created_at: \"2026-04-14 08:39:14\",\n updated_at: \"2026-04-14 08:39:14\",\n deleted_at: null,\n },\n },\n Jiminny\\Models\\AutomatedReportResult {#15686\n id: 50,\n uuid: b\"GÙµ‚\\{3‡p©ú1ÿÖŽ\",\n report_id: 35,\n name: \"Test 6 - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"Please make a summary for all calls\",\"call_ids\":[\"49880280\",\"49104686\",\"48360159\",\"47193308\",\"44762288\",\"43862984\",\"41678335\",\"41310991\",\"39940631\",\"39779620\",\"39389894\",\"39106205\",\"38745110\",\"38510502\"],\"team_id\":1,\"request_id\":\"5c9d7b33-b582-47d9-8770-a9fa31ffd68d\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Test 6\"}\",\n response: \"{\"request_id\":\"5c9d7b33-b582-47d9-8770-a9fa31ffd68d\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T10:49:01.677577+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.pdf\"}\",\n requested_at: \"2026-04-14 10:48:43\",\n generated_at: \"2026-04-14 10:49:01\",\n sent_at: null,\n created_at: \"2026-04-14 10:48:42\",\n updated_at: \"2026-04-14 10:49:01\",\n report: Jiminny\\Models\\AutomatedReport {#15219},\n },\n Jiminny\\Models\\AutomatedReportResult {#15685\n id: 51,\n uuid: b\"L\\x13HSÏÖ»™ŸŽ¦¯Cár{\",\n report_id: 36,\n name: \"Tuesday report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54579532\",\"54214362\",\"54795501\",\"54373257\",\"54566775\",\"54179068\",\"54691680\",\"54702966\",\"54186485\",\"54547166\",\"54357434\",\"54439335\",\"54435911\",\"54547029\",\"54179299\",\"54580912\",\"54314274\",\"53918272\",\"54310744\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"53853301\",\"52551697\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53853298\",\"53852885\",\"53931221\",\"54132327\",\"53944212\",\"54037186\",\"54125650\",\"54059512\",\"53801108\",\"54284918\",\"52552430\",\"54142985\",\"53755346\",\"52175067\",\"54021634\",\"52896288\",\"52175051\",\"54077453\",\"52413114\",\"54010996\",\"53528248\",\"54078291\",\"53813598\",\"54076266\",\"53028445\",\"54065927\",\"53922780\",\"53729434\",\"53919824\",\"53384442\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"54009217\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"53769369\",\"53384450\",\"52161199\",\"52263045\",\"52564798\",\"50907426\",\"53604424\",\"53575428\",\"52167221\",\"52156369\",\"53545307\",\"52565625\",\"53610225\",\"53594648\",\"53545088\",\"52175041\",\"52956249\",\"52217425\",\"52562272\",\"52248293\"],\"team_id\":1,\"request_id\":\"cfd6bb99-4853-4c13-9f8e-a6af43e1727b\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Tuesday report\"}\",\n response: \"{\"request_id\":\"cfd6bb99-4853-4c13-9f8e-a6af43e1727b\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T11:23:03.951289+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.pdf\"}\",\n requested_at: \"2026-04-14 11:22:36\",\n generated_at: \"2026-04-14 11:23:04\",\n sent_at: null,\n created_at: \"2026-04-14 11:22:36\",\n updated_at: \"2026-04-14 11:23:04\",\n report: Jiminny\\Models\\AutomatedReport {#15221\n id: 36,\n #uuid: b\"Aß#ôq¸»õ¶7i7eçªx\",\n team_id: 1,\n type: \"ask_jiminny\",\n status: 1,\n frequency: \"daily\",\n from: null,\n to: null,\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[]\",\n media_types: \"[\"pdf\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[]\",\n playbook_categories: null,\n deal_at_call_stages: null,\n current_deal_stages: null,\n recipients: \"{\"users\":[7160]}\",\n jiminny_recipients: null,\n additional_prompt_input: null,\n custom_name: \"Tuesday report\",\n activity_search_id: 26913,\n ask_anything_prompt_id: 62,\n expires_at: \"2026-04-30\",\n created_by: 7160,\n created_at: \"2026-04-14 11:20:20\",\n updated_at: \"2026-04-14 11:20:20\",\n deleted_at: null,\n },\n },\n ],\n }\n\n> $repo->getGeneratedNotSentResults()->count();\n= 7\n\n> exit\n\n INFO Goodbye.\n\nroot@b79a4bdd6905:/home/jiminny#","depth":4,"value":"Last login: Sat Apr 11 12:38:35 on ttys007\n\nPoetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents\n\nPoetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/jiminny/app (JY-18909-automated-reports-ask-jiminny) $ vstg\nWarning: Permanently added 'jiminny-stage-ecs1' (ED25519) to the list of known hosts.\n\nA newer release of \"Amazon Linux\" is available.\n Version 2023.10.20260105:\n Version 2023.10.20260120:\n Version 2023.10.20260202:\n Version 2023.10.20260216:\n Version 2023.10.20260302:\n Version 2023.10.20260325:\n Version 2023.10.20260330:\n Version 2023.11.20260406:\n Version 2023.11.20260413:\n Version 2023.8.20250707:\n Version 2023.8.20250715:\n Version 2023.8.20250721:\n Version 2023.8.20250808:\n Version 2023.8.20250818:\n Version 2023.8.20250908:\n Version 2023.8.20250915:\n Version 2023.9.20250929:\n Version 2023.9.20251014:\n Version 2023.9.20251020:\n Version 2023.9.20251027:\n Version 2023.9.20251105:\n Version 2023.9.20251110:\n Version 2023.9.20251117:\n Version 2023.9.20251208:\nRun \"/usr/bin/dnf check-release-update\" for full release and version update info\n , #_\n ~\\_ ####_\n ~~ \\_#####\\\n ~~ \\###|\n ~~ \\#/ ___ Amazon Linux 2023 (ECS Optimized)\n ~~ V~' '->\n ~~~ /\n ~~._. _/\n _/ _/\n _/m/'\n\nFor documentation, visit http://aws.amazon.com/documentation/ecs\n[ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@fee51d2e1f17:/home/jiminny# php artisan about\n\n Environment ...................................................................................................................................... \n Application Name ................................................................................................................. Jiminny Web App \n Laravel Version .......................................................................................................................... 12.54.1 \n PHP Version ............................................................................................................................... 8.3.30 \n Composer Version ............................................................................................................................... - \n Environment .............................................................................................................................. staging \n Debug Mode ................................................................................................................................... OFF \n URL ...................................................................................................................... app.staging.jiminny.com \n Maintenance Mode ............................................................................................................................. OFF \n Timezone ..................................................................................................................................... UTC \n Locale ..................................................................................................................................... en_US \n\n Cache ............................................................................................................................................ \n Config .................................................................................................................................... CACHED \n Events ................................................................................................................................ NOT CACHED \n Routes .................................................................................................................................... CACHED \n Views ..................................................................................................................................... CACHED \n\n Drivers .......................................................................................................................................... \n Broadcasting .............................................................................................................................. pusher \n Cache ...................................................................................................................................... redis \n Database ................................................................................................................................... mysql \n Logs .................................................................................................................................... errorlog \n Mail ......................................................................................................................................... ses \n Queue ........................................................................................................................................ sqs \n Session .................................................................................................................................... redis \n\n Storage .......................................................................................................................................... \n public/storage ........................................................................................................................ NOT LINKED \n\n Sentry ........................................................................................................................................... \n Enabled ...................................................................................................................................... YES \n Environment .............................................................................................................................. staging \n Laravel SDK Version ....................................................................................................................... 4.13.0 \n PHP SDK Version ........................................................................................................................... 4.13.0 \n Release ................................................................................................................................... 869720 \n Sample Rate Errors .......................................................................................................................... 100% \n Sample Rate Performance Monitoring ....................................................................................................... NOT SET \n Sample Rate Profiling .................................................................................................................... NOT SET \n Send Default PII ........................................................................................................................ DISABLED \n\nroot@fee51d2e1f17:/home/jiminny# php artisan automated-reports\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Started {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Found 2 daily reports to process {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"fa7417aa-538e-49ab-8827-77235637a6f9\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"63e6d70b-b7cb-4dfa-8443-53453e6c4054\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\n[2026-04-14 07:48:51] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"4c37ea47-eebd-4122-8c35-9d6b9d707beb\",\"trace_id\":\"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81\"}\n\nroot@fee51d2e1f17:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@73b64f5d54a3:/home/jiminny# php artisan automated-reports\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Started {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Found 3 daily reports to process {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"fa7417aa-538e-49ab-8827-77235637a6f9\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"63e6d70b-b7cb-4dfa-8443-53453e6c4054\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:04] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"7e7846e2-c0ea-4040-88f4-0ae14b66ade8\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\n[2026-04-14 08:41:04] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"c858e03f-62bd-462d-add2-c1e12a4c4cf8\",\"trace_id\":\"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f\"}\n\nroot@73b64f5d54a3:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@c78a087b1345:/home/jiminny# php artisan automated-reports\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Started {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Found 3 daily reports to process {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"fa7417aa-538e-49ab-8827-77235637a6f9\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"63e6d70b-b7cb-4dfa-8443-53453e6c4054\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"7e7846e2-c0ea-4040-88f4-0ae14b66ade8\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\n[2026-04-14 10:46:08] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"5c23e861-2ca9-4f92-9f67-773d6bc80ca0\",\"trace_id\":\"185df6f6-4327-4609-9c2e-2ab83a0f5432\"}\n\nroot@c78a087b1345:/home/jiminny# php artisan automated-reports --report-id 35\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Started {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[automated-reports] Automated report found Test 6\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Found 1 daily reports to process {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"7e7846e2-c0ea-4040-88f4-0ae14b66ade8\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\n[2026-04-14 10:48:42] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"246a1a1a-7076-458c-bd7d-49d2f5a2db88\",\"trace_id\":\"1f894bf6-e50d-4e99-b635-2aa52627fc27\"}\n\nroot@c78a087b1345:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format \"{{.ID}}\" --filter \"name=ecs-worker\" | head -1) /bin/bash -c \"cd /home/jiminny && bash\"\nroot@b79a4bdd6905:/home/jiminny# php artisan automated-reports --report-id 71b8bbf5-23f4-41df-b637-693765e7aa78\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Started {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Checking conditions {\"isMonday\":false,\"isFirstDayOfMonth\":false,\"currentMonth\":4,\"isQuarterlyMonth\":true} {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Processing daily reports {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[automated-reports] Automated report found Tuesday report\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Found 1 daily reports to process {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Dispatching Generate Report job for report {\"reportUuid\":\"71b8bbf5-23f4-41df-b637-693765e7aa78\",\"teamId\":1,\"frequency\":\"daily\",\"type\":\"ask_jiminny\"} {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\n[2026-04-14 11:22:33] staging.INFO: [automated-reports] Completed {\"correlation_id\":\"90a98201-fc6a-45b9-b3bd-2055cfce711b\",\"trace_id\":\"8e05a574-88d0-4475-acd0-86c51b5659a5\"}\n\nroot@b79a4bdd6905:/home/jiminny# php artisan automated-reports:send\nroot@b79a4bdd6905:/home/jiminny# php artisan tinker\nPsy Shell v0.12.21 (PHP 8.3.30 — cli) by Justin Hileman\nNew PHP manual is available (latest: 3.0.5). Update with `doc --update-manual`\n> $repo = app(AutomatedReportsRepository::class);\n[!] Aliasing 'AutomatedReportsRepository' to 'Jiminny\\Repositories\\AutomatedReportsRepository' for this Tinker session.\n= Jiminny\\Repositories\\AutomatedReportsRepository {#15215}\n\n> $repo->getGeneratedNotSentResults();\n= Illuminate\\Database\\Eloquent\\Collection {#15683\n all: [\n Jiminny\\Models\\AutomatedReportResult {#15703\n id: 14,\n uuid: b\"C^Ð>!€]¢ª1vàý\\x1F6Ï\",\n report_id: 8,\n name: \"Exec Summary - 5 Sep 2024 - 10 Mar 2026 - All\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"team_id\":1,\"request_id\":\"21805da2-d03e-435e-aa31-76e0fd1f36cf\",\"report_type\":\"exec_summary\",\"media_types\":[\"pdf\",\"podcast\"],\"from_date\":\"2024-09-05T00:00:00+00:00\",\"to_date\":\"2026-03-10T23:59:59+00:00\",\"group_ids\":[],\"call_deal_stage\":[],\"current_deal_stage\":[],\"deal_min_value\":null,\"deal_max_value\":null,\"call_types\":[\"conference\",\"dialer\"],\"call_duration_min_seconds\":null,\"call_duration_max_seconds\":null,\"special_requirements\":\"\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"5 Sep 2024 - 10 Mar 2026\",\"playbook_categories\":[],\"custom_name\":null}\",\n response: \"{\"request_id\":\"21805da2-d03e-435e-aa31-76e0fd1f36cf\",\"status\":\"completed\",\"timestamp\":\"2026-03-26T14:10:58.983895+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf.MD\",\"report_type\":\"exec_summary\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf.pdf\",\"podcast_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.txt\",\"podcast_audio_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.mp3\",\"podcast_ssml_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/reports\\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.ssml\"}\",\n requested_at: \"2026-03-26 14:06:35\",\n generated_at: \"2026-03-26 14:10:59\",\n sent_at: null,\n created_at: \"2026-03-26 14:06:35\",\n updated_at: \"2026-03-26 14:10:59\",\n report: Jiminny\\Models\\AutomatedReport {#15197\n id: 8,\n #uuid: b\"FWNçôý\\x1Dªš–+âga”d\",\n team_id: 1,\n type: \"exec_summary\",\n status: 1,\n frequency: \"one_off\",\n from: \"2024-09-05 00:00:00\",\n to: \"2026-03-10 00:00:00\",\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[\"conference\",\"dialer\"]\",\n media_types: \"[\"pdf\",\"podcast\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[]\",\n playbook_categories: \"[]\",\n deal_at_call_stages: \"[]\",\n current_deal_stages: \"[]\",\n recipients: \"{\"users\":[]}\",\n jiminny_recipients: \"{\"users\":[]}\",\n additional_prompt_input: \"\",\n custom_name: null,\n activity_search_id: null,\n ask_anything_prompt_id: null,\n expires_at: null,\n created_by: 3248,\n created_at: \"2026-03-26 14:06:32\",\n updated_at: \"2026-03-26 14:06:32\",\n deleted_at: null,\n },\n },\n Jiminny\\Models\\AutomatedReportResult {#15701\n id: 43,\n uuid: b\"GJ—\\x14?§ÄÉøN_0A}Ý\",\n report_id: 33,\n name: \"Ask Jiminny test report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54964443\",\"54964442\",\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54214362\",\"54373257\",\"54276602\",\"54547166\",\"54357434\",\"54638437\",\"54439335\",\"54184628\",\"54435911\",\"54547029\",\"54580912\",\"54314274\",\"53918272\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53852885\",\"52697526\",\"53944212\",\"54222051\",\"54125650\",\"54284918\",\"54137014\",\"54142985\",\"53755346\",\"54078231\",\"52175067\",\"54021634\",\"53971125\",\"54077453\",\"54010996\",\"52759195\",\"53028445\",\"54065927\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"52263045\",\"52564798\",\"53604424\",\"53575428\",\"52167221\",\"53545307\",\"53545088\",\"53606423\",\"52956249\",\"52894249\",\"52568574\",\"52527230\",\"53058889\",\"52760234\",\"52263048\",\"52451159\",\"52175073\",\"52358247\",\"52189687\",\"52232025\",\"51980465\",\"52430474\",\"52363300\",\"52346694\",\"52359342\",\"52231503\",\"52255239\",\"50934254\",\"52303651\",\"52258169\",\"51958927\",\"52242714\",\"52239097\",\"52083853\",\"52083904\",\"51765719\",\"52072580\",\"51525359\",\"51806803\"],\"team_id\":1,\"request_id\":\"3fa7c4c9-9714-474a-adf8-4e5f30417ddd\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Ask Jiminny test report\"}\",\n response: \"{\"request_id\":\"3fa7c4c9-9714-474a-adf8-4e5f30417ddd\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T07:49:35.099004+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.pdf\"}\",\n requested_at: \"2026-04-14 07:49:04\",\n generated_at: \"2026-04-14 07:49:35\",\n sent_at: null,\n created_at: \"2026-04-14 07:49:03\",\n updated_at: \"2026-04-14 07:49:35\",\n report: Jiminny\\Models\\AutomatedReport {#15196\n id: 33,\n #uuid: b\"I«SŽút\\x17ªˆ'w#V7¦ù\",\n team_id: 1,\n type: \"ask_jiminny\",\n status: 1,\n frequency: \"daily\",\n from: null,\n to: null,\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[]\",\n media_types: \"[\"pdf\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[9]\",\n playbook_categories: null,\n deal_at_call_stages: null,\n current_deal_stages: null,\n recipients: \"{\"users\":[7160,23309]}\",\n jiminny_recipients: null,\n additional_prompt_input: null,\n custom_name: \"Ask Jiminny test report\",\n activity_search_id: 26912,\n ask_anything_prompt_id: 62,\n expires_at: \"2026-04-30\",\n created_by: 7160,\n created_at: \"2026-04-08 10:12:30\",\n updated_at: \"2026-04-08 10:12:30\",\n deleted_at: null,\n },\n },\n Jiminny\\Models\\AutomatedReportResult {#15700\n id: 45,\n uuid: b\"A¢•M8z~‚*l\\x01÷ð\\0s\",\n report_id: 33,\n name: \"Ask Jiminny test report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54964443\",\"54964442\",\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54214362\",\"54373257\",\"54276602\",\"54547166\",\"54357434\",\"54638437\",\"54439335\",\"54184628\",\"54435911\",\"54547029\",\"54580912\",\"54314274\",\"53918272\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53852885\",\"52697526\",\"53944212\",\"54222051\",\"54125650\",\"54284918\",\"54137014\",\"54142985\",\"53755346\",\"54078231\",\"52175067\",\"54021634\",\"53971125\",\"54077453\",\"54010996\",\"52759195\",\"53028445\",\"54065927\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"52263045\",\"52564798\",\"53604424\",\"53575428\",\"52167221\",\"53545307\",\"53545088\",\"53606423\",\"52956249\",\"52894249\",\"52568574\",\"52527230\",\"53058889\",\"52760234\",\"52263048\",\"52451159\",\"52175073\",\"52358247\",\"52189687\",\"52232025\",\"51980465\",\"52430474\",\"52363300\",\"52346694\",\"52359342\",\"52231503\",\"52255239\",\"50934254\",\"52303651\",\"52258169\",\"51958927\",\"52242714\",\"52239097\",\"52083853\",\"52083904\",\"51765719\",\"52072580\",\"51525359\",\"51806803\"],\"team_id\":1,\"request_id\":\"38817a7e-954d-41a2-822a-6c01f7f00073\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Ask Jiminny test report\"}\",\n response: \"{\"request_id\":\"38817a7e-954d-41a2-822a-6c01f7f00073\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T08:41:46.594895+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/38817a7e-954d-41a2-822a-6c01f7f00073.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/38817a7e-954d-41a2-822a-6c01f7f00073.pdf\"}\",\n requested_at: \"2026-04-14 08:41:11\",\n generated_at: \"2026-04-14 08:41:46\",\n sent_at: null,\n created_at: \"2026-04-14 08:41:11\",\n updated_at: \"2026-04-14 08:41:46\",\n report: Jiminny\\Models\\AutomatedReport {#15196},\n },\n Jiminny\\Models\\AutomatedReportResult {#15705\n id: 47,\n uuid: b\"D‘\\x10[̘^–𔹧-ÞÝB\",\n report_id: 33,\n name: \"Ask Jiminny test report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54964443\",\"54964442\",\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54214362\",\"54373257\",\"54276602\",\"54547166\",\"54357434\",\"54638437\",\"54439335\",\"54184628\",\"54435911\",\"54547029\",\"54580912\",\"54314274\",\"53918272\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53852885\",\"52697526\",\"53944212\",\"54222051\",\"54125650\",\"54284918\",\"54137014\",\"54142985\",\"53755346\",\"54078231\",\"52175067\",\"54021634\",\"53971125\",\"54077453\",\"54010996\",\"52759195\",\"53028445\",\"54065927\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"52263045\",\"52564798\",\"53604424\",\"53575428\",\"52167221\",\"53545307\",\"53545088\",\"53606423\",\"52956249\",\"52894249\",\"52568574\",\"52527230\",\"53058889\",\"52760234\",\"52263048\",\"52451159\",\"52175073\",\"52358247\",\"52189687\",\"52232025\",\"51980465\",\"52430474\",\"52363300\",\"52346694\",\"52359342\",\"52231503\",\"52255239\",\"50934254\",\"52303651\",\"52258169\",\"51958927\",\"52242714\",\"52239097\",\"52083853\",\"52083904\",\"51765719\",\"52072580\",\"51525359\",\"51806803\"],\"team_id\":1,\"request_id\":\"cc985e96-105b-4491-9a94-b9a72ddedd42\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Ask Jiminny test report\"}\",\n response: \"{\"request_id\":\"cc985e96-105b-4491-9a94-b9a72ddedd42\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T10:46:38.602513+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cc985e96-105b-4491-9a94-b9a72ddedd42.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cc985e96-105b-4491-9a94-b9a72ddedd42.pdf\"}\",\n requested_at: \"2026-04-14 10:46:09\",\n generated_at: \"2026-04-14 10:46:38\",\n sent_at: null,\n created_at: \"2026-04-14 10:46:08\",\n updated_at: \"2026-04-14 10:46:38\",\n report: Jiminny\\Models\\AutomatedReport {#15196},\n },\n Jiminny\\Models\\AutomatedReportResult {#15687\n id: 49,\n uuid: b\"K·Ì¬Ò\\vþþ«PÈ»‰\\x19™s\",\n report_id: 35,\n name: \"Test 6 - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"Please make a summary for all calls\",\"call_ids\":[\"49880280\",\"49104686\",\"48360159\",\"47193308\",\"44762288\",\"43862984\",\"41678335\",\"41310991\",\"39940631\",\"39779620\",\"39389894\",\"39106205\",\"38745110\",\"38510502\"],\"team_id\":1,\"request_id\":\"d20bfefe-ccac-4bb7-ab50-c8bb89199973\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Test 6\"}\",\n response: \"{\"request_id\":\"d20bfefe-ccac-4bb7-ab50-c8bb89199973\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T10:46:37.905336+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.pdf\"}\",\n requested_at: \"2026-04-14 10:46:16\",\n generated_at: \"2026-04-14 10:46:37\",\n sent_at: null,\n created_at: \"2026-04-14 10:46:16\",\n updated_at: \"2026-04-14 10:46:38\",\n report: Jiminny\\Models\\AutomatedReport {#15219\n id: 35,\n #uuid: b\"\"\"\n @@Àê~xFâˆô\\n\n áKfè\n \"\"\",\n team_id: 1,\n type: \"ask_jiminny\",\n status: 1,\n frequency: \"daily\",\n from: null,\n to: null,\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[]\",\n media_types: \"[\"pdf\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[9]\",\n playbook_categories: null,\n deal_at_call_stages: null,\n current_deal_stages: null,\n recipients: \"{\"users\":[3248,23559]}\",\n jiminny_recipients: null,\n additional_prompt_input: null,\n custom_name: \"Test 6\",\n activity_search_id: 10932,\n ask_anything_prompt_id: 65,\n expires_at: \"2026-04-19\",\n created_by: 3248,\n created_at: \"2026-04-14 08:39:14\",\n updated_at: \"2026-04-14 08:39:14\",\n deleted_at: null,\n },\n },\n Jiminny\\Models\\AutomatedReportResult {#15686\n id: 50,\n uuid: b\"GÙµ‚\\{3‡p©ú1ÿÖŽ\",\n report_id: 35,\n name: \"Test 6 - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"Please make a summary for all calls\",\"call_ids\":[\"49880280\",\"49104686\",\"48360159\",\"47193308\",\"44762288\",\"43862984\",\"41678335\",\"41310991\",\"39940631\",\"39779620\",\"39389894\",\"39106205\",\"38745110\",\"38510502\"],\"team_id\":1,\"request_id\":\"5c9d7b33-b582-47d9-8770-a9fa31ffd68d\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Test 6\"}\",\n response: \"{\"request_id\":\"5c9d7b33-b582-47d9-8770-a9fa31ffd68d\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T10:49:01.677577+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.pdf\"}\",\n requested_at: \"2026-04-14 10:48:43\",\n generated_at: \"2026-04-14 10:49:01\",\n sent_at: null,\n created_at: \"2026-04-14 10:48:42\",\n updated_at: \"2026-04-14 10:49:01\",\n report: Jiminny\\Models\\AutomatedReport {#15219},\n },\n Jiminny\\Models\\AutomatedReportResult {#15685\n id: 51,\n uuid: b\"L\\x13HSÏÖ»™ŸŽ¦¯Cár{\",\n report_id: 36,\n name: \"Tuesday report - 13 Apr 2026\",\n media_type: \"pdf\",\n parent_id: null,\n status: 2,\n reason: 0,\n payload: \"{\"user_question\":\"test\",\"call_ids\":[\"54214348\",\"54747783\",\"54792639\",\"54355211\",\"54214356\",\"54579532\",\"54214362\",\"54795501\",\"54373257\",\"54566775\",\"54179068\",\"54691680\",\"54702966\",\"54186485\",\"54547166\",\"54357434\",\"54439335\",\"54435911\",\"54547029\",\"54179299\",\"54580912\",\"54314274\",\"53918272\",\"54310744\",\"54447612\",\"54561308\",\"52175046\",\"54531535\",\"54495620\",\"52753147\",\"53853301\",\"52551697\",\"52175055\",\"54358692\",\"54020412\",\"54424068\",\"54222599\",\"53853298\",\"53852885\",\"53931221\",\"54132327\",\"53944212\",\"54037186\",\"54125650\",\"54059512\",\"53801108\",\"54284918\",\"52552430\",\"54142985\",\"53755346\",\"52175067\",\"54021634\",\"52896288\",\"52175051\",\"54077453\",\"52413114\",\"54010996\",\"53528248\",\"54078291\",\"53813598\",\"54076266\",\"53028445\",\"54065927\",\"53922780\",\"53729434\",\"53919824\",\"53384442\",\"52175082\",\"53920744\",\"54020314\",\"52714861\",\"54009217\",\"53765213\",\"53926207\",\"52175042\",\"52948707\",\"53602066\",\"53824355\",\"53769276\",\"53048081\",\"53769369\",\"53384450\",\"52161199\",\"52263045\",\"52564798\",\"50907426\",\"53604424\",\"53575428\",\"52167221\",\"52156369\",\"53545307\",\"52565625\",\"53610225\",\"53594648\",\"53545088\",\"52175041\",\"52956249\",\"52217425\",\"52562272\",\"52248293\"],\"team_id\":1,\"request_id\":\"cfd6bb99-4853-4c13-9f8e-a6af43e1727b\",\"callback_url\":\"https:\\/\\/team:5hgTDUyu1vqCd@app.staging.jiminny.com\\/webhook\\/reports\\/ready\",\"report_period\":\"13 Apr 2026\",\"report_name\":\"Tuesday report\"}\",\n response: \"{\"request_id\":\"cfd6bb99-4853-4c13-9f8e-a6af43e1727b\",\"status\":\"completed\",\"timestamp\":\"2026-04-14T11:23:03.951289+00:00\",\"s3_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.MD\",\"pdf_url\":\"s3:\\/\\/stage.jiminny.client-data\\/5f0f4810-7e77-4086-8f69-93429ae4d70b\\/panorama-reports\\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.pdf\"}\",\n requested_at: \"2026-04-14 11:22:36\",\n generated_at: \"2026-04-14 11:23:04\",\n sent_at: null,\n created_at: \"2026-04-14 11:22:36\",\n updated_at: \"2026-04-14 11:23:04\",\n report: Jiminny\\Models\\AutomatedReport {#15221\n id: 36,\n #uuid: b\"Aß#ôq¸»õ¶7i7eçªx\",\n team_id: 1,\n type: \"ask_jiminny\",\n status: 1,\n frequency: \"daily\",\n from: null,\n to: null,\n deal_value_min: null,\n deal_value_max: null,\n call_types: \"[]\",\n media_types: \"[\"pdf\"]\",\n call_duration_min: null,\n call_duration_max: null,\n groups: \"[]\",\n playbook_categories: null,\n deal_at_call_stages: null,\n current_deal_stages: null,\n recipients: \"{\"users\":[7160]}\",\n jiminny_recipients: null,\n additional_prompt_input: null,\n custom_name: \"Tuesday report\",\n activity_search_id: 26913,\n ask_anything_prompt_id: 62,\n expires_at: \"2026-04-30\",\n created_by: 7160,\n created_at: \"2026-04-14 11:20:20\",\n updated_at: \"2026-04-14 11:20:20\",\n deleted_at: null,\n },\n },\n ],\n }\n\n> $repo->getGeneratedNotSentResults()->count();\n= 7\n\n> exit\n\n INFO Goodbye.\n\nroot@b79a4bdd6905:/home/jiminny#","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.23320313,"top":1.0,"width":0.06914063,"height":-0.03680551},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.23554687,"top":1.0,"width":0.00625,"height":-0.039583325},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (docker)","depth":2,"bounds":{"left":0.30234376,"top":1.0,"width":0.06914063,"height":-0.03680551},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3046875,"top":1.0,"width":0.00625,"height":-0.039583325},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.37148437,"top":1.0,"width":0.06914063,"height":-0.03680551},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3738281,"top":1.0,"width":0.00625,"height":-0.039583325},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"ec2-user@ip-10-30-93-249:~ (nc)","depth":2,"bounds":{"left":0.440625,"top":1.0,"width":0.06914063,"height":-0.03680551},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.44296876,"top":1.0,"width":0.00625,"height":-0.039583325},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.5097656,"top":1.0,"width":0.06914063,"height":-0.03680551},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5121094,"top":1.0,"width":0.00625,"height":-0.039583325},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.57890624,"top":1.0,"width":0.06914063,"height":-0.03680551},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.58125,"top":1.0,"width":0.00625,"height":-0.039583325},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.64804685,"top":1.0,"width":0.06914063,"height":-0.03680551},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.6503906,"top":1.0,"width":0.00625,"height":-0.039583325},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"✳ Unable to access screenpipe activity data (claude)","depth":2,"bounds":{"left":0.7171875,"top":1.0,"width":0.06914063,"height":-0.03680551},"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.71953124,"top":1.0,"width":0.00625,"height":-0.039583325},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.7703125,"top":1.0,"width":0.021875,"height":-0.02013886},"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"ec2-user@ip-10-30-93-249:~","depth":1,"bounds":{"left":0.475,"top":1.0,"width":0.07851563,"height":-0.020833373},"role_description":"text"}]...
|
7000309365672198019
|
-5261720347317964283
|
click
|
accessibility
|
NULL
|
Last login: Sat Apr 11 12:38:35 on ttys007
Poetry Last login: Sat Apr 11 12:38:35 on ttys007
Poetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents
Poetry could not find a pyproject.toml file in /Users/lukas/jiminny/app or its parents
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/jiminny/app (JY-18909-automated-reports-ask-jiminny) $ vstg
Warning: Permanently added 'jiminny-stage-ecs1' (ED25519) to the list of known hosts.
A newer release of "Amazon Linux" is available.
Version 2023.10.20260105:
Version 2023.10.20260120:
Version 2023.10.20260202:
Version 2023.10.20260216:
Version 2023.10.20260302:
Version 2023.10.20260325:
Version 2023.10.20260330:
Version 2023.11.20260406:
Version 2023.11.20260413:
Version 2023.8.20250707:
Version 2023.8.20250715:
Version 2023.8.20250721:
Version 2023.8.20250808:
Version 2023.8.20250818:
Version 2023.8.20250908:
Version 2023.8.20250915:
Version 2023.9.20250929:
Version 2023.9.20251014:
Version 2023.9.20251020:
Version 2023.9.20251027:
Version 2023.9.20251105:
Version 2023.9.20251110:
Version 2023.9.20251117:
Version 2023.9.20251208:
Run "/usr/bin/dnf check-release-update" for full release and version update info
, #_
~\_ ####_
~~ \_#####\
~~ \###|
~~ \#/ ___ Amazon Linux 2023 (ECS Optimized)
~~ V~' '->
~~~ /
~~._. _/
_/ _/
_/m/'
For documentation, visit [URL_WITH_CREDENTIALS] php artisan automated-reports
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Started {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Found 2 daily reports to process {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"fa7417aa-538e-49ab-8827-77235637a6f9","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"63e6d70b-b7cb-4dfa-8443-53453e6c4054","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
[2026-04-14 07:48:51] staging.INFO: [automated-reports] Completed {"correlation_id":"4c37ea47-eebd-4122-8c35-9d6b9d707beb","trace_id":"bfe6b131-e3ad-4cfc-8954-5fb1ecfded81"}
root@fee51d2e1f17:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format "{{.ID}}" --filter "name=ecs-worker" | head -1) /bin/bash -c "cd /home/jiminny && bash"
root@73b64f5d54a3:/home/jiminny# php artisan automated-reports
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Started {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Found 3 daily reports to process {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"fa7417aa-538e-49ab-8827-77235637a6f9","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:03] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"63e6d70b-b7cb-4dfa-8443-53453e6c4054","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:04] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"7e7846e2-c0ea-4040-88f4-0ae14b66ade8","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
[2026-04-14 08:41:04] staging.INFO: [automated-reports] Completed {"correlation_id":"c858e03f-62bd-462d-add2-c1e12a4c4cf8","trace_id":"94b4fdcc-f609-42e7-b5b7-b6abfc67e02f"}
root@73b64f5d54a3:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format "{{.ID}}" --filter "name=ecs-worker" | head -1) /bin/bash -c "cd /home/jiminny && bash"
root@c78a087b1345:/home/jiminny# php artisan automated-reports
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Started {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Found 3 daily reports to process {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"fa7417aa-538e-49ab-8827-77235637a6f9","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"63e6d70b-b7cb-4dfa-8443-53453e6c4054","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"7e7846e2-c0ea-4040-88f4-0ae14b66ade8","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
[2026-04-14 10:46:08] staging.INFO: [automated-reports] Completed {"correlation_id":"5c23e861-2ca9-4f92-9f67-773d6bc80ca0","trace_id":"185df6f6-4327-4609-9c2e-2ab83a0f5432"}
root@c78a087b1345:/home/jiminny# php artisan automated-reports --report-id 35
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Started {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[automated-reports] Automated report found Test 6
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Found 1 daily reports to process {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"7e7846e2-c0ea-4040-88f4-0ae14b66ade8","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
[2026-04-14 10:48:42] staging.INFO: [automated-reports] Completed {"correlation_id":"246a1a1a-7076-458c-bd7d-49d2f5a2db88","trace_id":"1f894bf6-e50d-4e99-b635-2aa52627fc27"}
root@c78a087b1345:/home/jiminny# [ec2-user@ip-10-30-93-249 ~]$ docker exec -it $(docker ps --format "{{.ID}}" --filter "name=ecs-worker" | head -1) /bin/bash -c "cd /home/jiminny && bash"
root@b79a4bdd6905:/home/jiminny# php artisan automated-reports --report-id 71b8bbf5-23f4-41df-b637-693765e7aa78
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Started {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Checking conditions {"isMonday":false,"isFirstDayOfMonth":false,"currentMonth":4,"isQuarterlyMonth":true} {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Processing daily reports {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[automated-reports] Automated report found Tuesday report
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Found 1 daily reports to process {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Dispatching Generate Report job for report {"reportUuid":"71b8bbf5-23f4-41df-b637-693765e7aa78","teamId":1,"frequency":"daily","type":"ask_jiminny"} {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
[2026-04-14 11:22:33] staging.INFO: [automated-reports] Completed {"correlation_id":"90a98201-fc6a-45b9-b3bd-2055cfce711b","trace_id":"8e05a574-88d0-4475-acd0-86c51b5659a5"}
root@b79a4bdd6905:/home/jiminny# php artisan automated-reports:send
root@b79a4bdd6905:/home/jiminny# php artisan tinker
Psy Shell v0.12.21 (PHP 8.3.30 — cli) by Justin Hileman
New PHP manual is available (latest: 3.0.5). Update with `doc --update-manual`
> $repo = app(AutomatedReportsRepository::class);
[!] Aliasing 'AutomatedReportsRepository' to 'Jiminny\Repositories\AutomatedReportsRepository' for this Tinker session.
= Jiminny\Repositories\AutomatedReportsRepository {#15215}
> $repo->getGeneratedNotSentResults();
= Illuminate\Database\Eloquent\Collection {#15683
all: [
Jiminny\Models\AutomatedReportResult {#15703
id: 14,
uuid: b"C^Ð>!€]¢ª1vàý\x1F6Ï",
report_id: 8,
name: "Exec Summary - 5 Sep 2024 - 10 Mar 2026 - All",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"team_id":1,"request_id":"21805da2-d03e-435e-aa31-76e0fd1f36cf","report_type":"exec_summary","media_types":["pdf","podcast"],"from_date":"2024-09-05T00:00:00+00:00","to_date":"2026-03-10T23:59:59+00:00","group_ids":[],"call_deal_stage":[],"current_deal_stage":[],"deal_min_value":null,"deal_max_value":null,"call_types":["conference","dialer"],"call_duration_min_seconds":null,"call_duration_max_seconds":null,"special_requirements":"","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"5 Sep 2024 - 10 Mar 2026","playbook_categories":[],"custom_name":null}",
response: "{"request_id":"21805da2-d03e-435e-aa31-76e0fd1f36cf","status":"completed","timestamp":"2026-03-26T14:10:58.983895+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf.MD","report_type":"exec_summary","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf.pdf","podcast_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.txt","podcast_audio_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.mp3","podcast_ssml_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/reports\/21805da2-d03e-435e-aa31-76e0fd1f36cf_podcast.ssml"}",
requested_at: "2026-03-26 14:06:35",
generated_at: "2026-03-26 14:10:59",
sent_at: null,
created_at: "2026-03-26 14:06:35",
updated_at: "2026-03-26 14:10:59",
report: Jiminny\Models\AutomatedReport {#15197
id: 8,
#uuid: b"FWNçôý\x1Dªš–+âga”d",
team_id: 1,
type: "exec_summary",
status: 1,
frequency: "one_off",
from: "2024-09-05 00:00:00",
to: "2026-03-10 00:00:00",
deal_value_min: null,
deal_value_max: null,
call_types: "["conference","dialer"]",
media_types: "["pdf","podcast"]",
call_duration_min: null,
call_duration_max: null,
groups: "[]",
playbook_categories: "[]",
deal_at_call_stages: "[]",
current_deal_stages: "[]",
recipients: "{"users":[]}",
jiminny_recipients: "{"users":[]}",
additional_prompt_input: "",
custom_name: null,
activity_search_id: null,
ask_anything_prompt_id: null,
expires_at: null,
created_by: 3248,
created_at: "2026-03-26 14:06:32",
updated_at: "2026-03-26 14:06:32",
deleted_at: null,
},
},
Jiminny\Models\AutomatedReportResult {#15701
id: 43,
uuid: b"GJ—\x14?§ÄÉøN_0A}Ý",
report_id: 33,
name: "Ask Jiminny test report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54964443","54964442","54214348","54747783","54792639","54355211","54214356","54214362","54373257","54276602","54547166","54357434","54638437","54439335","54184628","54435911","54547029","54580912","54314274","53918272","54447612","54561308","52175046","54531535","54495620","52753147","52175055","54358692","54020412","54424068","54222599","53852885","52697526","53944212","54222051","54125650","54284918","54137014","54142985","53755346","54078231","52175067","54021634","53971125","54077453","54010996","52759195","53028445","54065927","52175082","53920744","54020314","52714861","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","52263045","52564798","53604424","53575428","52167221","53545307","53545088","53606423","52956249","52894249","52568574","52527230","53058889","52760234","52263048","52451159","52175073","52358247","52189687","52232025","51980465","52430474","52363300","52346694","52359342","52231503","52255239","50934254","52303651","52258169","51958927","52242714","52239097","52083853","52083904","51765719","52072580","51525359","51806803"],"team_id":1,"request_id":"3fa7c4c9-9714-474a-adf8-4e5f30417ddd","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Ask Jiminny test report"}",
response: "{"request_id":"3fa7c4c9-9714-474a-adf8-4e5f30417ddd","status":"completed","timestamp":"2026-04-14T07:49:35.099004+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/3fa7c4c9-9714-474a-adf8-4e5f30417ddd.pdf"}",
requested_at: "2026-04-14 07:49:04",
generated_at: "2026-04-14 07:49:35",
sent_at: null,
created_at: "2026-04-14 07:49:03",
updated_at: "2026-04-14 07:49:35",
report: Jiminny\Models\AutomatedReport {#15196
id: 33,
#uuid: b"I«SŽút\x17ªˆ'w#V7¦ù",
team_id: 1,
type: "ask_jiminny",
status: 1,
frequency: "daily",
from: null,
to: null,
deal_value_min: null,
deal_value_max: null,
call_types: "[]",
media_types: "["pdf"]",
call_duration_min: null,
call_duration_max: null,
groups: "[9]",
playbook_categories: null,
deal_at_call_stages: null,
current_deal_stages: null,
recipients: "{"users":[7160,23309]}",
jiminny_recipients: null,
additional_prompt_input: null,
custom_name: "Ask Jiminny test report",
activity_search_id: 26912,
ask_anything_prompt_id: 62,
expires_at: "2026-04-30",
created_by: 7160,
created_at: "2026-04-08 10:12:30",
updated_at: "2026-04-08 10:12:30",
deleted_at: null,
},
},
Jiminny\Models\AutomatedReportResult {#15700
id: 45,
uuid: b"A¢•M8z~‚*l\x01÷ð\0s",
report_id: 33,
name: "Ask Jiminny test report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54964443","54964442","54214348","54747783","54792639","54355211","54214356","54214362","54373257","54276602","54547166","54357434","54638437","54439335","54184628","54435911","54547029","54580912","54314274","53918272","54447612","54561308","52175046","54531535","54495620","52753147","52175055","54358692","54020412","54424068","54222599","53852885","52697526","53944212","54222051","54125650","54284918","54137014","54142985","53755346","54078231","52175067","54021634","53971125","54077453","54010996","52759195","53028445","54065927","52175082","53920744","54020314","52714861","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","52263045","52564798","53604424","53575428","52167221","53545307","53545088","53606423","52956249","52894249","52568574","52527230","53058889","52760234","52263048","52451159","52175073","52358247","52189687","52232025","51980465","52430474","52363300","52346694","52359342","52231503","52255239","50934254","52303651","52258169","51958927","52242714","52239097","52083853","52083904","51765719","52072580","51525359","51806803"],"team_id":1,"request_id":"38817a7e-954d-41a2-822a-6c01f7f00073","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Ask Jiminny test report"}",
response: "{"request_id":"38817a7e-954d-41a2-822a-6c01f7f00073","status":"completed","timestamp":"2026-04-14T08:41:46.594895+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/38817a7e-954d-41a2-822a-6c01f7f00073.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/38817a7e-954d-41a2-822a-6c01f7f00073.pdf"}",
requested_at: "2026-04-14 08:41:11",
generated_at: "2026-04-14 08:41:46",
sent_at: null,
created_at: "2026-04-14 08:41:11",
updated_at: "2026-04-14 08:41:46",
report: Jiminny\Models\AutomatedReport {#15196},
},
Jiminny\Models\AutomatedReportResult {#15705
id: 47,
uuid: b"D‘\x10[̘^–𔹧-ÞÝB",
report_id: 33,
name: "Ask Jiminny test report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54964443","54964442","54214348","54747783","54792639","54355211","54214356","54214362","54373257","54276602","54547166","54357434","54638437","54439335","54184628","54435911","54547029","54580912","54314274","53918272","54447612","54561308","52175046","54531535","54495620","52753147","52175055","54358692","54020412","54424068","54222599","53852885","52697526","53944212","54222051","54125650","54284918","54137014","54142985","53755346","54078231","52175067","54021634","53971125","54077453","54010996","52759195","53028445","54065927","52175082","53920744","54020314","52714861","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","52263045","52564798","53604424","53575428","52167221","53545307","53545088","53606423","52956249","52894249","52568574","52527230","53058889","52760234","52263048","52451159","52175073","52358247","52189687","52232025","51980465","52430474","52363300","52346694","52359342","52231503","52255239","50934254","52303651","52258169","51958927","52242714","52239097","52083853","52083904","51765719","52072580","51525359","51806803"],"team_id":1,"request_id":"cc985e96-105b-4491-9a94-b9a72ddedd42","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Ask Jiminny test report"}",
response: "{"request_id":"cc985e96-105b-4491-9a94-b9a72ddedd42","status":"completed","timestamp":"2026-04-14T10:46:38.602513+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cc985e96-105b-4491-9a94-b9a72ddedd42.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cc985e96-105b-4491-9a94-b9a72ddedd42.pdf"}",
requested_at: "2026-04-14 10:46:09",
generated_at: "2026-04-14 10:46:38",
sent_at: null,
created_at: "2026-04-14 10:46:08",
updated_at: "2026-04-14 10:46:38",
report: Jiminny\Models\AutomatedReport {#15196},
},
Jiminny\Models\AutomatedReportResult {#15687
id: 49,
uuid: b"K·Ì¬Ò\vþþ«PÈ»‰\x19™s",
report_id: 35,
name: "Test 6 - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"Please make a summary for all calls","call_ids":["49880280","49104686","48360159","47193308","44762288","43862984","41678335","41310991","39940631","39779620","39389894","39106205","38745110","38510502"],"team_id":1,"request_id":"d20bfefe-ccac-4bb7-ab50-c8bb89199973","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Test 6"}",
response: "{"request_id":"d20bfefe-ccac-4bb7-ab50-c8bb89199973","status":"completed","timestamp":"2026-04-14T10:46:37.905336+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/d20bfefe-ccac-4bb7-ab50-c8bb89199973.pdf"}",
requested_at: "2026-04-14 10:46:16",
generated_at: "2026-04-14 10:46:37",
sent_at: null,
created_at: "2026-04-14 10:46:16",
updated_at: "2026-04-14 10:46:38",
report: Jiminny\Models\AutomatedReport {#15219
id: 35,
#uuid: b"""
@@Àê~xFâˆô\n
áKfè
""",
team_id: 1,
type: "ask_jiminny",
status: 1,
frequency: "daily",
from: null,
to: null,
deal_value_min: null,
deal_value_max: null,
call_types: "[]",
media_types: "["pdf"]",
call_duration_min: null,
call_duration_max: null,
groups: "[9]",
playbook_categories: null,
deal_at_call_stages: null,
current_deal_stages: null,
recipients: "{"users":[3248,23559]}",
jiminny_recipients: null,
additional_prompt_input: null,
custom_name: "Test 6",
activity_search_id: 10932,
ask_anything_prompt_id: 65,
expires_at: "2026-04-19",
created_by: 3248,
created_at: "2026-04-14 08:39:14",
updated_at: "2026-04-14 08:39:14",
deleted_at: null,
},
},
Jiminny\Models\AutomatedReportResult {#15686
id: 50,
uuid: b"GÙµ‚\{3‡p©ú1ÿÖŽ",
report_id: 35,
name: "Test 6 - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"Please make a summary for all calls","call_ids":["49880280","49104686","48360159","47193308","44762288","43862984","41678335","41310991","39940631","39779620","39389894","39106205","38745110","38510502"],"team_id":1,"request_id":"5c9d7b33-b582-47d9-8770-a9fa31ffd68d","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Test 6"}",
response: "{"request_id":"5c9d7b33-b582-47d9-8770-a9fa31ffd68d","status":"completed","timestamp":"2026-04-14T10:49:01.677577+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/5c9d7b33-b582-47d9-8770-a9fa31ffd68d.pdf"}",
requested_at: "2026-04-14 10:48:43",
generated_at: "2026-04-14 10:49:01",
sent_at: null,
created_at: "2026-04-14 10:48:42",
updated_at: "2026-04-14 10:49:01",
report: Jiminny\Models\AutomatedReport {#15219},
},
Jiminny\Models\AutomatedReportResult {#15685
id: 51,
uuid: b"L\x13HSÏÖ»™ŸŽ¦¯Cár{",
report_id: 36,
name: "Tuesday report - 13 Apr 2026",
media_type: "pdf",
parent_id: null,
status: 2,
reason: 0,
payload: "{"user_question":"test","call_ids":["54214348","54747783","54792639","54355211","54214356","54579532","54214362","54795501","54373257","54566775","54179068","54691680","54702966","54186485","54547166","54357434","54439335","54435911","54547029","54179299","54580912","54314274","53918272","54310744","54447612","54561308","52175046","54531535","54495620","52753147","53853301","52551697","52175055","54358692","54020412","54424068","54222599","53853298","53852885","53931221","54132327","53944212","54037186","54125650","54059512","53801108","54284918","52552430","54142985","53755346","52175067","54021634","52896288","52175051","54077453","52413114","54010996","53528248","54078291","53813598","54076266","53028445","54065927","53922780","53729434","53919824","53384442","52175082","53920744","54020314","52714861","54009217","53765213","53926207","52175042","52948707","53602066","53824355","53769276","53048081","53769369","53384450","52161199","52263045","52564798","50907426","53604424","53575428","52167221","52156369","53545307","52565625","53610225","53594648","53545088","52175041","52956249","52217425","52562272","52248293"],"team_id":1,"request_id":"cfd6bb99-4853-4c13-9f8e-a6af43e1727b","callback_url":"https:\/\/team:[EMAIL]\/webhook\/reports\/ready","report_period":"13 Apr 2026","report_name":"Tuesday report"}",
response: "{"request_id":"cfd6bb99-4853-4c13-9f8e-a6af43e1727b","status":"completed","timestamp":"2026-04-14T11:23:03.951289+00:00","s3_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.MD","pdf_url":"s3:\/\/stage.jiminny.client-data\/5f0f4810-7e77-4086-8f69-93429ae4d70b\/panorama-reports\/cfd6bb99-4853-4c13-9f8e-a6af43e1727b.pdf"}",
requested_at: "2026-04-14 11:22:36",
generated_at: "2026-04-14 11:23:04",
sent_at: null,
created_at: "2026-04-14 11:22:36",
updated_at: "2026-04-14 11:23:04",
report: Jiminny\Models\AutomatedReport {#15221
id: 36,
#uuid: b"Aß#ôq¸»õ¶7i7eçªx",
team_id: 1,
type: "ask_jiminny",
status: 1,
frequency: "daily",
from: null,
to: null,
deal_value_min: null,
deal_value_max: null,
call_types: "[]",
media_types: "["pdf"]",
call_duration_min: null,
call_duration_max: null,
groups: "[]",
playbook_categories: null,
deal_at_call_stages: null,
current_deal_stages: null,
recipients: "{"users":[7160]}",
jiminny_recipients: null,
additional_prompt_input: null,
custom_name: "Tuesday report",
activity_search_id: 26913,
ask_anything_prompt_id: 62,
expires_at: "2026-04-30",
created_by: 7160,
created_at: "2026-04-14 11:20:20",
updated_at: "2026-04-14 11:20:20",
deleted_at: null,
},
},
],
}
> $repo->getGeneratedNotSentResults()->count();
= 7
> exit
INFO Goodbye.
root@b79a4bdd6905:/home/jiminny#
DOCKER
Close Tab
DEV (docker)
Close Tab
APP (-zsh)
Close Tab
ec2-user@ip-10-30-93-249:~ (nc)
Close Tab
-zsh
Close Tab
-zsh
Close Tab
-zsh
Close Tab
✳ Unable to access screenpipe activity data (claude)
Close Tab
⌥⌘1
ec2-user@ip-10-30-93-249:~...
|
NULL
|
|
12778
|
274
|
14
|
2026-04-14T11:38:41.654064+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166721654_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp§ Support Daily • in 22 m100% <Tue 14 Apr 14:38:41T&1ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKER₴81DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,3,],}-zsh86-zshO ₴7* Unable to acce... ≥,* *8•Menu Bar item refreshed> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#...
|
NULL
|
6128504887002579909
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp§ Support Daily • in 22 m100% <Tue 14 Apr 14:38:41T&1ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKER₴81DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,3,],}-zsh86-zshO ₴7* Unable to acce... ≥,* *8•Menu Bar item refreshed> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#...
|
NULL
|
|
12780
|
274
|
16
|
2026-04-14T11:38:43.912817+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166723912_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp(ah]Support Daily - in 22 m100% 197ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKER981DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx"team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}-zsh86-zshO ₴7Tue 14 Apr 14:38:43181* Unable to acce...*8> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
1655732051148903104
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp(ah]Support Daily - in 22 m100% 197ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKER981DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx"team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}-zsh86-zshO ₴7Tue 14 Apr 14:38:43181* Unable to acce...*8> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
|
12781
|
275
|
10
|
2026-04-14T11:38:43.918856+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166723918_m2.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
PhpStormProject vFileFV faVsco.js vEditViewNavigat PhpStormProject vFileFV faVsco.js vEditViewNavigateCodeLaravelRefactorToolsWindowHelp• :1894 on.lY-18909-automated-renorts-ask-liminnv v© SendReportJob.php= custom.logA HS_local [iminny@localhost]ProphetAiv D Reports© AutomatedReportsC© AutomatedReportsRe© AutomatedReportsSt© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpD Slack• TeamsD TracksO TranscriptionO TwilioD UsersVocabularyDZoom© CoachingFeedbacksUpr© Command.phpcreateDatabaseusers.pc Daraoase oecountoi© DeleteOldAiCrmNotesC:© DeleteS3LeftoversComiDevPostmanCommand./© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantissues.p© FlushRolesPermissionsC© GeneratelnternalWebho• GroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gcJiminnvcacheclearcom(c) minnv Deouacommanc© JiminnySetEncryptedTo© JiminnyTokenInfoComn© MakeSlackLiveCoaching© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesCom© RecalculateDealRisksCaC) RemoveDeleteMarkersd© RemoveExpiredNudgest© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCorAddLayoutchuitles.onoCreateHeldActivityEvent.phpAutomaleakeporscommana.ongAutomatedReportsSendCommand.phpC Team.phpC AutomatedReportsRepository.php© AutomatedReportsService.phpCreateActivityLoggedEvent.phpconsole PROD© RequestGenerateAskJiminnyReportJob.phpTrackProviderInstalledEvent.php© ActivityLogged.phpRequestGeneratekeporJob.onoC AutomatedReportResult.phpE laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';Sa jiminny v017 A15 X 13 A521© AutomatedReport.php522class AutomatedReportsCommand extends Command0 523524private function getReportById(string $reportId): Collection1525115401115/1158139140141142143144145146147148149150151152153154155156157158159160161162527$report = $this->reportRepository->findById0rUuid($reportId);528529if ($report === null) {530$this->logger->warning(self::LOG_PREFIX .' Report not found for --report-id',['reportld531$this->warn( string: "Report not found: {$reportId}");532533return collecto);534535if (! $report->getStatus()) {155455 A$this->logger->warning(self::LOG_PREFIX . ' Report is inactive, processing anyway (manual'reportId' = $reportId,539|'reportUuid' => $report->getUvid(),1);540541$this->warn( string: 'Report is inactive - processing anyway (manual override).');542543$team = $report->getTeam();if ($team->getStatus() !== Team::STATUS_ACTIVE) ($this->logger->warning(self::LOG_PREFIX'reportId' => $reportId,'reportUuid' => $report->getUuid(),'teamId' => $report->getTeamId(),'teamStatus' => $team->getStatus(),5445451546select * tron reans where 1o =15select x tron groups g Juin playbooks p1..n<->1: on a.plavbook id = p.id wiselect x t'ol arouoswhere id = 565:seleseledseledseledselect * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# 10, Uud, type, provider, playbooк_cаtegory-1o, user_1a,leao o, contact* cri conmouracionorcirn orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':15485495501);551552$this->warn( string: "Team #{$report->getTeamId()} is not active - processing anyway (manua"553554555if ($report->isExpired()) {$this->logger->warning(self::LOG_PREFIX . ' Report is expired, processing anyway (manual556557'reportId' => $reportId,'reportUuid' => $report->getUuid(),1558'expiresAt' => $report->getExpiresAt()?->toDateString(),SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1.n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;1661671681691701711721731741751761177178179180I):select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status = 'activelAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);$this->warn( string: 'Report is expired (expires_at:' . Sreport->getExpiresAt()?->toDateSti562563$this->info( string: self::LOG_PREFIX . ' Automated report found' . $report->getCustomName()) ;564565566return collect([$reportl);567568 Vselect * from automated_report_results where repontaig IN (18, 33);select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * fromautomated_report_results order by id desd;select * from automated_report_results where repontaid IN (36);570572Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)> 0lablf Support Daily • in 22 mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:38:43CascadeDebug Automated Rep+0 •Fetches AutomatedReportResult records where:generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwStep 2: getValidRecipientUsers()ets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipientsialor. ror recular reoorts l eoes tnrouen detkeclolentusers . clner way, te creator nas ancipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILsD phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.0 phpsnow = larbon::now searllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (884L)+ <> Code Claude Sonnet 4.6uir-o( 4 spaces...
|
NULL
|
-4520343578792331353
|
NULL
|
click
|
ocr
|
NULL
|
PhpStormProject vFileFV faVsco.js vEditViewNavigat PhpStormProject vFileFV faVsco.js vEditViewNavigateCodeLaravelRefactorToolsWindowHelp• :1894 on.lY-18909-automated-renorts-ask-liminnv v© SendReportJob.php= custom.logA HS_local [iminny@localhost]ProphetAiv D Reports© AutomatedReportsC© AutomatedReportsRe© AutomatedReportsSt© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpD Slack• TeamsD TracksO TranscriptionO TwilioD UsersVocabularyDZoom© CoachingFeedbacksUpr© Command.phpcreateDatabaseusers.pc Daraoase oecountoi© DeleteOldAiCrmNotesC:© DeleteS3LeftoversComiDevPostmanCommand./© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantissues.p© FlushRolesPermissionsC© GeneratelnternalWebho• GroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gcJiminnvcacheclearcom(c) minnv Deouacommanc© JiminnySetEncryptedTo© JiminnyTokenInfoComn© MakeSlackLiveCoaching© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesCom© RecalculateDealRisksCaC) RemoveDeleteMarkersd© RemoveExpiredNudgest© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCorAddLayoutchuitles.onoCreateHeldActivityEvent.phpAutomaleakeporscommana.ongAutomatedReportsSendCommand.phpC Team.phpC AutomatedReportsRepository.php© AutomatedReportsService.phpCreateActivityLoggedEvent.phpconsole PROD© RequestGenerateAskJiminnyReportJob.phpTrackProviderInstalledEvent.php© ActivityLogged.phpRequestGeneratekeporJob.onoC AutomatedReportResult.phpE laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';Sa jiminny v017 A15 X 13 A521© AutomatedReport.php522class AutomatedReportsCommand extends Command0 523524private function getReportById(string $reportId): Collection1525115401115/1158139140141142143144145146147148149150151152153154155156157158159160161162527$report = $this->reportRepository->findById0rUuid($reportId);528529if ($report === null) {530$this->logger->warning(self::LOG_PREFIX .' Report not found for --report-id',['reportld531$this->warn( string: "Report not found: {$reportId}");532533return collecto);534535if (! $report->getStatus()) {155455 A$this->logger->warning(self::LOG_PREFIX . ' Report is inactive, processing anyway (manual'reportId' = $reportId,539|'reportUuid' => $report->getUvid(),1);540541$this->warn( string: 'Report is inactive - processing anyway (manual override).');542543$team = $report->getTeam();if ($team->getStatus() !== Team::STATUS_ACTIVE) ($this->logger->warning(self::LOG_PREFIX'reportId' => $reportId,'reportUuid' => $report->getUuid(),'teamId' => $report->getTeamId(),'teamStatus' => $team->getStatus(),5445451546select * tron reans where 1o =15select x tron groups g Juin playbooks p1..n<->1: on a.plavbook id = p.id wiselect x t'ol arouoswhere id = 565:seleseledseledseledselect * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# 10, Uud, type, provider, playbooк_cаtegory-1o, user_1a,leao o, contact* cri conmouracionorcirn orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':15485495501);551552$this->warn( string: "Team #{$report->getTeamId()} is not active - processing anyway (manua"553554555if ($report->isExpired()) {$this->logger->warning(self::LOG_PREFIX . ' Report is expired, processing anyway (manual556557'reportId' => $reportId,'reportUuid' => $report->getUuid(),1558'expiresAt' => $report->getExpiresAt()?->toDateString(),SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1.n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;1661671681691701711721731741751761177178179180I):select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status = 'activelAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);$this->warn( string: 'Report is expired (expires_at:' . Sreport->getExpiresAt()?->toDateSti562563$this->info( string: self::LOG_PREFIX . ' Automated report found' . $report->getCustomName()) ;564565566return collect([$reportl);567568 Vselect * from automated_report_results where repontaig IN (18, 33);select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * fromautomated_report_results order by id desd;select * from automated_report_results where repontaid IN (36);570572Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)> 0lablf Support Daily • in 22 mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:38:43CascadeDebug Automated Rep+0 •Fetches AutomatedReportResult records where:generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwStep 2: getValidRecipientUsers()ets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipientsialor. ror recular reoorts l eoes tnrouen detkeclolentusers . clner way, te creator nas ancipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILsD phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.0 phpsnow = larbon::now searllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (884L)+ <> Code Claude Sonnet 4.6uir-o( 4 spaces...
|
12777
|
|
12782
|
274
|
17
|
2026-04-14T11:38:45.637915+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166725637_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp(ah]Support Daily - in 22 m100% 197Tue 14 Apr 14:38:45181ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKERDEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}-zsh86-zshO ₴7* Unable to acce...> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
-5124475011901308319
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp(ah]Support Daily - in 22 m100% 197Tue 14 Apr 14:38:45181ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKERDEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}-zsh86-zshO ₴7* Unable to acce...> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
12780
|
|
12783
|
274
|
18
|
2026-04-14T11:38:47.921712+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166727921_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp(ah]Support Daily - in 22 m100% <47ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKER981DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx"team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}-zsh86-zshO ₴7Tue 14 Apr 14:38:47181* Unable to acce...*8> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
-8838324389021195115
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp(ah]Support Daily - in 22 m100% <47ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zshDOCKER981DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx"team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}-zsh86-zshO ₴7Tue 14 Apr 14:38:47181* Unable to acce...*8> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
|
12784
|
275
|
11
|
2026-04-14T11:38:47.921747+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166727921_m2.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
PhpStormFileFditViewNavigateCodelaravelRefactonToo PhpStormFileFditViewNavigateCodelaravelRefactonToolsWindowHelpFV faVsco.js v#11894 on JY-18909-automated-reports-ask-iminny ~Project vD ProphetAiv → Reports(C AutomatedReportsC(C) AutomatedReportsRe© AutomatedReportss© CreateMockAsKJimirC DeleteReportcomma© GenerateMarketingR©leam.phpC Usage.phpM Slack→ Teams→ Tracks_ TranscriptionD TwilioD Users_ Vocabulary_ 4oom© coachingeedbacksupcg command.phpc Crearevaroaseusers.oc Daraoase oecountoiC DeleteOldAiCrmNotesC(©) DeleteS3LeftoversCom|DevPostmanCommand.|C DiarizeViaAiParticipantk(©) EncryptTokensCommar(©) EngagementStatsReger© FeatureFlagsHelper.php© FixCrossTenantlssues.pC) FlushRolesPermissions((C) GeneratelnternalWebho(C) GroupSetDefaultLanquaC) HelperTruncateCoachin(©) HubspotJournalPollingC(©) HubspotWebhookServic(©) ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gcJiminnvcacheclearcom(c) minnv Deouacommanc(C) JiminnvSetEncrvotedTcC) JiminnvTokenInfoComm(C) MakeSlackLiveCoachinc(C) ManageScimForTeam.o(©) MarkBranchForEnvironn(C) MuteOrganizerChannel.(C) PhpApm.php(C PropagateCoachingFee(©) PurgeConterences.php(©) PurgeSoftDeletedOppol© PurgeSyncBatchesCom(C) RecalculateDealRisksCdC) RemoveDeleteMarkersd(C) RemoveExpiredNudaes(C) RemoveUnusedParticio:C ResetElasticSearch.php(C) RestoreActivityCrmProv(C) RestoreActivityTypeCor• ReportController.php XC SendReportJob.php(©) AutomatedReportsCommand.php= custom.loc= laravel.logc SF liminny@localhost« HS_local fiminny@localhostC AutomatedReportsSendCommand.phpC AddLayoutEntities.phpC) Team.phpC AutomatedReportsRepository.phpAutomatedReportsService.php© CreateHeldActivityEvent.phpconsole PROD< console EUiL console [STAGING] :Tx: Auto vC UserPilotActivityListener.phpC ActivityLogged.phpC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong52015211© AutomatedReportResult.php© AutomatedReport.php524class Reportcontrouler extends Abstractcontrollerpublic function ready(Request srequest): Jsonkesponse1524'status' => sthis->callbackservice->getPrimarystatus(sreport, spayload),15251'response' => Spayload,15401generated_at= snow,5271):528// if a podcast is set, update it529"revorcroocastr->uooareui530starus → nuns-ocaluoackoeru ce-poetrodcasorarusoay coaou531response → spaycoad,532'generated at' => Snow.5331):1555$this->Logger->info(self::LOG_PREFIX •" Report has been processed', L'uuld' => sreportuuld,'child_uuld' => sreportPodcast?->getUu1do),1);53954090if (! $this->callbackService->isSuccess($payload)) {541$this->logger→>warning(self::LOG_PREFIX'Error creating report'. Spavload):54215431return response()->json(['status' => 'ok']):1544154511546// send the primary report154799101102103104105106107ITA8I11AO11191$this->dispatcher->dispatch(new SendReportJob($reportUuid));550551#I send the nodcast renort if it set and aenerated552if (SreportPodcast &s $reportPodcast->getStatus() === AutomatedReportResult:•STATUS 6553)Sthis->dispatcher->dispatch.new SendReportJobCreportUuid: SreportPod>aetUuid55455515561// Track Datadog metrics for automated reports1558$automatedReport = $report->getReport:$this->callbackService->pushToDatadog($automatedReport, $report):if ($reportPodcast) {004112Sthis->callbackService->pushToDatadog(SautomatedReport, sreportPodcast):563113564114563115Sthis->eventDispatcher->dispatch.new_AutomatedReportGeneratedSautomatedReport.Sreport)l 5661161177 catch (ModelNotFoundException $exception) &567sthis->Loqger->error(self::L06_PREFIX." Report not found',568 v118'uuid' => SreportUuid.1569119'error' => Sexception->getMessageO157011261):572122return response()->json(['status' => 'error', 'message' => 'Report not found']status: 4123} catch (Throwable $exception) {124-.---f-1c..LA AOPPTI PadnaddPushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)Flaycroundvt.owner_1d FROM soc1al_accounts saJOIN users u on u.1d = sa.soclable_1dJOIN teams tI.n<->I: on t.ld = U.team_1dliminny017 A15 У13 ^WHERE U.team_1d = 1 and sa.provider = salestorce :select * tron reans where 1o =15select x tron groupsg suin playpooks p1..n<->1: on a.plavbook id = p.id wiselect * TroIOIrOUOSnere t =oo.select * from playbooks where team_ id = 1:select * from playbooks where id = 175:select * from playbook categories where playbook 1d = 175:select * from users where team_1d = 1:select * from users where 1d = 7160;select * from crm_profiles where user_1d = 7160*select * trom reatures,select# 10, Uu10, type, proviaer, playbook_cacegory-1a, user_ia,leao o, contact* cri conmouracionorcirn orovoer 1oTranscrrocion orSTaTUSfrom activities where crm_confiquration id = 1 and type ='conference'# and crm_ provider id IS NOT NULLand provider != 'uploader' and actual start time IS NOT NULLORDER by id desc;select * from activities where 1d = 54/47785; # 0000400000pCZOJMAOselect p.1d, p.activity_type, pc.1d, pc.nameFRUM playdooks pJoin playdook_cacegories pc"->l.n: on p.1d = pc.playbook_1dwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm fields WHERE crm confiquration id = 1 and obiect tvpe = "SELECT * FROM crm_ field values WHERE crm_ field id = 4select * from crm_layouts cl join playbook layouts pl1<->1..n: on cl.id = pwhere crm_configuration_1d = 1 and pl.playbooK_1d = 175;select * from teams;SELECI r.* FRUn aucomaced_reporus rjoin ceams t on r.ueam 10 = t.10WHERE r.trequency = "dally"and f. stauusAND t.status = 'activelAND (r.expires at >= now OR r.expires at IS NULD):select * from automated_report_results where report.id IN (18, 33);select * from activity_searches where 1d = 10952;select * from activity_search_filters where activity_search_1d = 10932)select * from automated_reports order by 1d desc;select * tromautomated_report_results order by id desc;select * from automated_report_results where report id IN (36);labl• Support Daily • in 22 m100% [47]Tue 14 Apr 14:38:47AutomatedRenortsCommandTestCascadeDebug Automated Rep-1 ..rercnes Automaceakeporckesule recoras where.generated at is NOT NULLsent at is NULLstatus = STATUS GENERATED• has a related reportYour 7 results pass this.Sten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemall, so validRecipients is not emotv.vStep 3: shouldSendReporto — hisls whEkEllraiLs# phppublic const int SENT REPORT AT HOURS = 5;The logic picks the earliest timezone (highest UTC ortset = most ahead of UTC). For GMT+s, the oftset is +10800 seconds.t then checks.•phosnow = larbon::nowsearllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;11 is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIfit's not 5:00 AM right now in GMT+3, it falls through to hasPassedSchedu ledTime() :® phppublic tunction hasPassedscheduledlimetrlarbonintertace sgeneratedAt, string stimezone): boounis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.wny Nothing is sentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven vou're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:scheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtUtc.lt(scheduledTimeUtc) Istalse→ hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (&+L+ <> Code Claude Sonnet 4.6w145:10uir-oia 4 spaces...
|
NULL
|
-9132137982724633123
|
NULL
|
click
|
ocr
|
NULL
|
PhpStormFileFditViewNavigateCodelaravelRefactonToo PhpStormFileFditViewNavigateCodelaravelRefactonToolsWindowHelpFV faVsco.js v#11894 on JY-18909-automated-reports-ask-iminny ~Project vD ProphetAiv → Reports(C AutomatedReportsC(C) AutomatedReportsRe© AutomatedReportss© CreateMockAsKJimirC DeleteReportcomma© GenerateMarketingR©leam.phpC Usage.phpM Slack→ Teams→ Tracks_ TranscriptionD TwilioD Users_ Vocabulary_ 4oom© coachingeedbacksupcg command.phpc Crearevaroaseusers.oc Daraoase oecountoiC DeleteOldAiCrmNotesC(©) DeleteS3LeftoversCom|DevPostmanCommand.|C DiarizeViaAiParticipantk(©) EncryptTokensCommar(©) EngagementStatsReger© FeatureFlagsHelper.php© FixCrossTenantlssues.pC) FlushRolesPermissions((C) GeneratelnternalWebho(C) GroupSetDefaultLanquaC) HelperTruncateCoachin(©) HubspotJournalPollingC(©) HubspotWebhookServic(©) ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gcJiminnvcacheclearcom(c) minnv Deouacommanc(C) JiminnvSetEncrvotedTcC) JiminnvTokenInfoComm(C) MakeSlackLiveCoachinc(C) ManageScimForTeam.o(©) MarkBranchForEnvironn(C) MuteOrganizerChannel.(C) PhpApm.php(C PropagateCoachingFee(©) PurgeConterences.php(©) PurgeSoftDeletedOppol© PurgeSyncBatchesCom(C) RecalculateDealRisksCdC) RemoveDeleteMarkersd(C) RemoveExpiredNudaes(C) RemoveUnusedParticio:C ResetElasticSearch.php(C) RestoreActivityCrmProv(C) RestoreActivityTypeCor• ReportController.php XC SendReportJob.php(©) AutomatedReportsCommand.php= custom.loc= laravel.logc SF liminny@localhost« HS_local fiminny@localhostC AutomatedReportsSendCommand.phpC AddLayoutEntities.phpC) Team.phpC AutomatedReportsRepository.phpAutomatedReportsService.php© CreateHeldActivityEvent.phpconsole PROD< console EUiL console [STAGING] :Tx: Auto vC UserPilotActivityListener.phpC ActivityLogged.phpC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong52015211© AutomatedReportResult.php© AutomatedReport.php524class Reportcontrouler extends Abstractcontrollerpublic function ready(Request srequest): Jsonkesponse1524'status' => sthis->callbackservice->getPrimarystatus(sreport, spayload),15251'response' => Spayload,15401generated_at= snow,5271):528// if a podcast is set, update it529"revorcroocastr->uooareui530starus → nuns-ocaluoackoeru ce-poetrodcasorarusoay coaou531response → spaycoad,532'generated at' => Snow.5331):1555$this->Logger->info(self::LOG_PREFIX •" Report has been processed', L'uuld' => sreportuuld,'child_uuld' => sreportPodcast?->getUu1do),1);53954090if (! $this->callbackService->isSuccess($payload)) {541$this->logger→>warning(self::LOG_PREFIX'Error creating report'. Spavload):54215431return response()->json(['status' => 'ok']):1544154511546// send the primary report154799101102103104105106107ITA8I11AO11191$this->dispatcher->dispatch(new SendReportJob($reportUuid));550551#I send the nodcast renort if it set and aenerated552if (SreportPodcast &s $reportPodcast->getStatus() === AutomatedReportResult:•STATUS 6553)Sthis->dispatcher->dispatch.new SendReportJobCreportUuid: SreportPod>aetUuid55455515561// Track Datadog metrics for automated reports1558$automatedReport = $report->getReport:$this->callbackService->pushToDatadog($automatedReport, $report):if ($reportPodcast) {004112Sthis->callbackService->pushToDatadog(SautomatedReport, sreportPodcast):563113564114563115Sthis->eventDispatcher->dispatch.new_AutomatedReportGeneratedSautomatedReport.Sreport)l 5661161177 catch (ModelNotFoundException $exception) &567sthis->Loqger->error(self::L06_PREFIX." Report not found',568 v118'uuid' => SreportUuid.1569119'error' => Sexception->getMessageO157011261):572122return response()->json(['status' => 'error', 'message' => 'Report not found']status: 4123} catch (Throwable $exception) {124-.---f-1c..LA AOPPTI PadnaddPushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)Flaycroundvt.owner_1d FROM soc1al_accounts saJOIN users u on u.1d = sa.soclable_1dJOIN teams tI.n<->I: on t.ld = U.team_1dliminny017 A15 У13 ^WHERE U.team_1d = 1 and sa.provider = salestorce :select * tron reans where 1o =15select x tron groupsg suin playpooks p1..n<->1: on a.plavbook id = p.id wiselect * TroIOIrOUOSnere t =oo.select * from playbooks where team_ id = 1:select * from playbooks where id = 175:select * from playbook categories where playbook 1d = 175:select * from users where team_1d = 1:select * from users where 1d = 7160;select * from crm_profiles where user_1d = 7160*select * trom reatures,select# 10, Uu10, type, proviaer, playbook_cacegory-1a, user_ia,leao o, contact* cri conmouracionorcirn orovoer 1oTranscrrocion orSTaTUSfrom activities where crm_confiquration id = 1 and type ='conference'# and crm_ provider id IS NOT NULLand provider != 'uploader' and actual start time IS NOT NULLORDER by id desc;select * from activities where 1d = 54/47785; # 0000400000pCZOJMAOselect p.1d, p.activity_type, pc.1d, pc.nameFRUM playdooks pJoin playdook_cacegories pc"->l.n: on p.1d = pc.playbook_1dwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm fields WHERE crm confiquration id = 1 and obiect tvpe = "SELECT * FROM crm_ field values WHERE crm_ field id = 4select * from crm_layouts cl join playbook layouts pl1<->1..n: on cl.id = pwhere crm_configuration_1d = 1 and pl.playbooK_1d = 175;select * from teams;SELECI r.* FRUn aucomaced_reporus rjoin ceams t on r.ueam 10 = t.10WHERE r.trequency = "dally"and f. stauusAND t.status = 'activelAND (r.expires at >= now OR r.expires at IS NULD):select * from automated_report_results where report.id IN (18, 33);select * from activity_searches where 1d = 10952;select * from activity_search_filters where activity_search_1d = 10932)select * from automated_reports order by 1d desc;select * tromautomated_report_results order by id desc;select * from automated_report_results where report id IN (36);labl• Support Daily • in 22 m100% [47]Tue 14 Apr 14:38:47AutomatedRenortsCommandTestCascadeDebug Automated Rep-1 ..rercnes Automaceakeporckesule recoras where.generated at is NOT NULLsent at is NULLstatus = STATUS GENERATED• has a related reportYour 7 results pass this.Sten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemall, so validRecipients is not emotv.vStep 3: shouldSendReporto — hisls whEkEllraiLs# phppublic const int SENT REPORT AT HOURS = 5;The logic picks the earliest timezone (highest UTC ortset = most ahead of UTC). For GMT+s, the oftset is +10800 seconds.t then checks.•phosnow = larbon::nowsearllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;11 is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIfit's not 5:00 AM right now in GMT+3, it falls through to hasPassedSchedu ledTime() :® phppublic tunction hasPassedscheduledlimetrlarbonintertace sgeneratedAt, string stimezone): boounis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.wny Nothing is sentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven vou're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:scheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtUtc.lt(scheduledTimeUtc) Istalse→ hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (&+L+ <> Code Claude Sonnet 4.6w145:10uir-oia 4 spaces...
|
NULL
|
|
12785
|
274
|
19
|
2026-04-14T11:39:08.089612+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166748089_m1.jpg...
|
PhpStorm
|
faVsco.js – ReportController.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error
Next Highlighted Error
SELECT * FROM teams WHERE id = 1;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;
SELECT * FROM crm_fields WHERE id = 2234;
SELECT * FROM crm_field_values WHERE crm_field_id = 2234;
select * from crm_profiles where user_id = 143;
select * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO
select * from business_processes where crm_configuration_id = 39;
# 01941000000H669AAC, 01941000000H66JAAS
select * from record_type_field_values
where record_type_id IN (24);
select * from crm_field_values where id IN (2730);
select * from crm_configurations where id = 39;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce'; #1035
select * from users where team_id = 1; # 222 group 3
SELECT * FROM activities WHERE user_id = 222 order by id desc;
select * from sidekick_settings where team_id = 1;
select * from teams where id = 1;
select * from team_features where team_id = 1;
select * from activities where crm_configuration_id = 2
and provider = 'ms-teams' and id = 608765;
SELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';
select * from sidekick_settings where team_id = 2;
SELECT * FROM activities WHERE id = 608660;
select * from activity_summary_logs where activity_id = 608660;
select * from ai_prompts where transcription_id = 11214;
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;
# id: 608818, crm: 59628809737
SELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;
# id: 608821, crm: 59632069252
SELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,
playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,
scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at
FROM activities a
join calendar_events ce on a.calendar_event_id = ce.id
WHERE a.id IN (608818, 608821);
select * from users where team_id = 1;
select * from team_settings where team_id = 1;
select * from crm_profiles where crm_configuration_id = 39 order by user_id;
select * from team_features where team_id = 1;
select * from users where team_id = 2;
SELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639
# Preslava N. Ivanova, grou id 3
SELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;
select * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';
select
a.id,
a.type,
a.scheduled_start_time,
a.actual_start_time,
a.created_at,
a.opportunity_id,
a.status
FROM activities a
WHERE opportunity_id = 344
and status IN ('completed', 'received', 'delivered')
and (
(a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))
;
SELECT * FROM users WHERE id = 222;
SELECT * FROM crm_profiles WHERE user_id = 222;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;
select * from group_deal_risk_types;
select * from opportunities where team_id = 1;
SELECT * FROM opportunities WHERE id = 315;
SELECT * FROM crm_field_data WHERE object_id = 315;
select * from crm_field_data where object_id = 260;
select * from generic_ai_prompts where subject_id = 315;
select * from teams; # 36, 21, 121, [EMAIL]
SELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';
# [PASSWORD_DOTS]
select * from teams where id = 1;
select * from crm_configurations where id = 39;
select * from users where team_id = 1;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 1;
# 1 - 00541000004281rAAA
# 204 - 0052g000003freeAAA
# 429 - 0052g000003qGOiAAM
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
select * from activities where type = 'softphone'
and created_at > '2024-12-11 15:24:36' order by id desc;
select * from activity_providers where team_id = 1;
select * from activity_provider_users where activity_provider_id = 328;
select * from opportunities where crm_configuration_id = 39
AND account_id = 178 AND is_closed = false
order by created_at DESC;
select * from contacts where id = 3952;
select * from accounts where id = 178;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations where id = 21;
select * from users where team_id = 36;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 36
and sa.provider = 'bullhorn';
select * from social_accounts where id = 348;
UPDATE social_accounts SET
provider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',
provider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',
expires = 1733998131,
state = 'connected'
WHERE id = 348;
# [PASSWORD_DOTS]
select * from teams where id = 31;
select * from crm_configurations where id = 18;
select * from users where team_id = 31; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 31;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 31
and sa.provider = 'close';
select * from contacts where crm_configuration_id = 18;
# [PASSWORD_DOTS] NEPTUNE [PASSWORD_DOTS]
select * from teams;
select * from users where id IN (1030, 1035, 1052);
select * from crm_configurations;
select * from users where team_id = 65; # 257
select * from team_settings where team_id = 65; # 257
select * from invitations where team_id = 65; # 257
select * from users where email = '[EMAIL]'; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 65;
select * from crm_configurations where id = 53;
select * from accounts where crm_configuration_id = 53 order by id desc;
select * from leads where crm_configuration_id = 53 order by id desc;
select * from contacts where crm_configuration_id = 53 order by id desc;
select * from opportunities where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 53 order by id desc;
select * from crm_fields where crm_configuration_id = 53 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 53 order by id desc;
select * from stages where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 13;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
and sa.provider = 'integration-app';
select * from contacts where crm_configuration_id = 13;
select * from social_accounts where sociable_id = 283;
SELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';
select * from activity_providers where team_id = 65;
SELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
;
# [PASSWORD_DOTS] STAGING [PASSWORD_DOTS]
SELECT * FROM teams;
SELECT * FROM teams WHERE id = 88;
SELECT * FROM teams WHERE id = 89;
select * from team_settings where team_id = 89;
SELECT * FROM users WHERE team_id = 89;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 89;
select * from users;
SELECT * FROM social_accounts WHERE sociable_id = 1761;
SELECT * FROM crm_configurations WHERE id = 70;
select * from accounts where crm_configuration_id = 70 order by id desc;
select * from leads where crm_configuration_id = 70 order by id desc;
select * from contacts where crm_configuration_id = 70 order by id desc;
select * from opportunities where crm_configuration_id = 70 order by id desc;
select * from crm_profiles where crm_configuration_id = 70 order by id desc;
select * from crm_fields where crm_configuration_id = 70 order by id desc;
select * from crm_field_values where crm_field_id = 3536 order by id desc;
select * from crm_layouts where crm_configuration_id = 70 order by id desc;
select * from stages where crm_configuration_id = 70 order by id desc;
select * from business_processes where crm_configuration_id = 70 order by id desc;
select * from business_process_stages where business_process_id = 34;
select * from contacts where id = 10468;
select * from crm_layouts where crm_configuration_id = 70;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;
SELECT * FROM crm_fields WHERE id IN (3533,3534,3535);
select * from activities where crm_configuration_id = 70
and (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;
SELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;
SELECT * FROM activities where crm_configuration_id = 69 ;
SELECT * FROM users WHERE email LIKE '%[EMAIL]%';
SELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;
SELECT * FROM opportunities WHERE id = 385;
select * from participants p
join activities a on p.activity_id = a.id
where a.crm_configuration_id = 70
and (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);
SELECT * FROM participants WHERE id = 1013638;
select * from teams where id = 90;
select * from users where team_id = 90;
select * from social_accounts where social_accounts.sociable_id IN (1960,1760);
SELECT * FROM crm_profiles WHERE crm_configuration_id = 71;
select * from invitations where team_id = 90;
select * from crm_configurations where id = 71;
select * from accounts where crm_configuration_id = 71 order by id desc;
select * from leads where crm_configuration_id = 71 order by id desc;
select * from contacts where crm_configuration_id = 71 order by id desc;
select * from opportunities where crm_configuration_id = 71 order by id desc;
select * from crm_profiles where crm_configuration_id = 71 order by id desc;
select * from crm_fields where crm_configuration_id = 71 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 71 order by id desc;
select * from stages where crm_configuration_id = 71 order by id desc;
select * from users order by secondary_email desc;
select u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa
join users u on sa.sociable_id = u.id
where sa.provider = 'google' and u.email LIKE 'aneliya%';
select * from failed_jobs order by id desc;
select * from users where email = '[EMAIL]' or secondary_email = '[EMAIL]';
select * from teams;
SELECT * FROM crm_profiles WHERE crm_configuration_id = 39;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;
SELECT * FROM crm_configurations WHERE id = 70;
select * from teams where id = 1;
select * from groups where team_id = 1;
select * from users where team_id = 1;
select o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o
join users u on o.user_id = u.id
join groups g on u.group_id = g.id
join role_user ru on u.id = ru.user_id
join roles r on ru.role_id = r.id
where o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';
select * from role_user where user_id = 143;
select * from roles;
select * from role_user;
select * from groups where id = 9;
select * from scope_groups where group_id = 9;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations;
SELECT * FROM social_accounts WHERE sociable_id = 121;
https://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105
https://crmsandbox.zoho.com/crm/
https://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080
https://crm.zoho.com/crm/
org3469620
SELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;
select * from users where email LIKE "%mobile_automation_%";
select * from social_accounts where sociable_id IN (2228);
select * from crm_profiles where user_id IN (2222,2223,2226,2227);
select * from teams order by id desc;
SELECT * FROM users WHERE id = 2229;
SELECT * FROM crm_profiles WHERE user_id = 2229;
select * from opportunities where crm_configuration_id = 88;
select * from crm_fields where crm_configuration_id = 88;
select * from crm_profiles where crm_configuration_id = 88;
SELECT * FROM teams WHERE id = 1;
SELECT * FROM users WHERE id = 143;
SELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;
https://app.staging.jiminny.com/ondemand?
min_duration=1
&
only_recorded=1
&
user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e
&
sequence_number=2
select * from users where team_id = 1 and email like '%stoyan%'
select * from coaching_feedbacks;
select * from teams;
SELECT * FROM users WHERE team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from users where id = 143;
SELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
select * from users where team_id = 2;
select * from activities where crm_configuration_id = 39
and activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'
AND user_id = 143
order by id desc;
# [PASSWORD_DOTS]
select * from teams where id = 142; # 2312, 126
select * from team_settings;
select * from users where team_id = 142; # 21642
SELECT * FROM social_accounts WHERE sociable_id = 21642;
SELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;
select * from crm_profiles where id IN (93);
select * from invitations;
select * from team_features where team_id = 1;
SELECT * FROM crm_configurations WHERE id = 126;
select * from accounts where crm_configuration_id = 126 order by id desc;
select * from leads where crm_configuration_id = 126 order by id desc;
select * from contacts where crm_configuration_id = 126 order by id desc;
select * from opportunities where crm_configuration_id = 126 order by id desc;
select * from crm_profiles where crm_configuration_id = 126 order by id desc;
select * from crm_fields where crm_configuration_id = 126 # 11060
# and type IN ('picklist', 'status')
# and object_type = 'task'
order by id desc;
# 5731,5732,5733
select DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;
select * from crm_layouts where crm_configuration_id = 126 order by id desc;
SELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);
select * from stages where crm_configuration_id = 126 order by id desc;
select * from business_processes where crm_configuration_id = 126 order by id desc;
select * from business_process_stages where business_process_id IN (76,75,74,73);
select * from playbooks where team_id = 142;
select * from playbook_layouts where playbook_id IN (108);
SELECT * FROM playbook_categories WHERE playbook_id IN (108);
select * from teams where id = 130;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 2
and sa.provider = 'hubspot';
SELECT * FROM activities
WHERE crm_configuration_id = 110;
select * from teams;
select * from crm_configurations;
SELECT * FROM activities WHERE id = 628773;
SELECT * FROM crm_profiles WHERE user_id = 1460;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from teams;
select ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id
join permission_role pr on pr.role_id = ru.role_id
join permissions p on p.id = pr.permission_id
where team_id = 495 and p.name IN ('dial');
select * from teams where id = 145;
select * from crm_configurations where id = 129;
select * from social_accounts where sociable_id = 2317;
SELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;
select * from teams where id = 1;
SELECT * FROM crm_layouts WHERE crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;
SELECT * FROM crm_layout_entities WHERE id = 5507;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');
select * from teams;
select * from activities where crm_configuration_id = 14;
SELECT * FROM social_accounts where provider = 'copper';
select * from activities where id = 628467;
select * from participants where activity_id = 628467;
SELECT * FROM contacts WHERE id = 3969;
SELECT * FROM accounts WHERE id = 177;
SELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;
# [PASSWORD_DOTS] BH
select * from teams where id = 36;
SELECT * FROM crm_configurations WHERE id = 21;
select * from activities where crm_configuration_id = 21 and id = 607901;
select * from activities where crm_configuration_id = 21;
select * roles;
select * from permissions;
select * from permission_role where permission_id = 226;
select * from migrations order by id desc;
# mercury
# neptune
# earth
select * from teams;
select * from teams where id = 19;
select * from teams where id = 27;
select * from users where team_id = 27;
SELECT * FROM crm_configurations WHERE id = 42;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from activities where id = 631461;
SELECT * FROM crm_field_values WHERE crm_field_id = 180;
select * from teams where id = 2;
SELECT * FROM social_accounts WHERE sociable_id = 89;
SELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273
select * from activity_summary_logs where activity_id = 634273;
select * from sidekick_settings where team_id = 2;
select * from teams; # 2, 2
SELECT * FROM crm_configurations WHERE team_id = 2; # 2
select * from team_features where team_id = 2;
select * from features;
SELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';
SELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from users where team_id = 1 and id IN (7160, 3248);
select * from migrations order by id desc;
SELECT
CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,
u.email,
sa.*,
t.owner_id FROM social_accounts sa
JOIN users u on u.id = sa.sociable_id
JOIN teams t on t.id = u.team_id
WHERE u.team_id = 1 and sa.provider = 'salesforce';
select * from teams where id = 1;
select * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;
select * from groups where id = 565;
select * from playbooks where team_id = 1;
select * from playbooks where id = 175;
select * from playbook_categories where playbook_id = 175;
select * from users where team_id = 1;
select * from users where id = 7160;
select * from crm_profiles where user_id = 7160;
select * from features;
select
*
# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,
# crm_configuration_id, crm_provider_id, transcription_id, status
from activities where crm_configuration_id = 1 and type = 'conference'
# and crm_provider_id IS NOT NULL
and provider != 'uploader' and actual_start_time IS NOT NULL
ORDER by id desc;
select * from activities where id = 54747783; # 00UO400000pCzojMAC
select p.id, p.activity_type, pc.id, pc.name
FROM playbooks p
join playbook_categories pc on p.id = pc.playbook_id
where p.team_id = 1 and p.activity_type = 'event';
SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';
SELECT * FROM crm_field_values WHERE crm_field_id = 4;
select * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id
where crm_configuration_id = 1 and pl.playbook_id = 175;
select * from teams;
SELECT r.* FROM automated_reports r
join teams t on r.team_id = t.id
WHERE r.frequency = 'daily'
and r.status = 1
AND t.status = 'active'
AND (r.expires_at >= now() OR r.expires_at IS NULL);
select * from automated_report_results where report_id IN (18, 33);
select * from activity_searches where id = 10932;
select * from activity_search_filters where activity_search_id = 10932;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from automated_report_results where report_id IN (36);
Sync Changes
Hide This Notification
Code changed:
Hide
3
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Http\Controllers\Webhook;
use Carbon\Carbon;
use Illuminate\Contracts\Bus\Dispatcher as BusDispatcher;
use Illuminate\Contracts\Events\Dispatcher as EventDispatcher;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Exceptions\ModelNotFoundException;
use Jiminny\Http\Controllers\AbstractController;
use Jiminny\Jobs\AutomatedReports\SendReportJob;
use Jiminny\Models\AutomatedReportResult;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsCallbackService;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Psr\Log\LoggerInterface;
use Throwable;
class ReportController extends AbstractController
{
/**
* Log prefix for all log messages
*/
private const string LOG_PREFIX = '[Report Ready]';
public function __construct(
private readonly AutomatedReportsService $automatedReportsService,
private readonly BusDispatcher $dispatcher,
private readonly LoggerInterface $logger,
private readonly AutomatedReportsCallbackService $callbackService,
private readonly EventDispatcher $eventDispatcher,
) {
}
public function ready(Request $request): JsonResponse
{
$payload = $request->all();
$now = Carbon::now();
$this->logger->info(self::LOG_PREFIX . ' Webhook received', [
'payload' => $payload,
]);
// validate
$reportUuid = $this->callbackService->getResultUuid($payload);
if (empty($reportUuid)) {
return response()->json(['status' => 'error', 'message' => 'Request ID is empty'], status: 400);
}
try {
$report = $this->automatedReportsService->getReportResult($reportUuid);
// validate
if ($this->callbackService->isProcessed($report)) {
$this->logger->warning(self::LOG_PREFIX . ' Report has been already processed', [
'uuid' => $reportUuid,
'currentStatus' => $report->getStatusLabel(),
]);
return response()->json(['status' => 'already_processed']);
}
// always try to get a child podcast cause report configuration cannot be trusted
$reportPodcast = $this->automatedReportsService->findChildResult(
result: $report,
type: AutomatedReportsService::MEDIA_TYPE_PODCAST
);
// update results
$report->update([
'status' => $this->callbackService->getPrimaryStatus($report, $payload),
'response' => $payload,
'generated_at' => $now,
]);
// if a podcast is set, update it
$reportPodcast?->update([
'status' => $this->callbackService->getPodcastStatus($payload),
'response' => $payload,
'generated_at' => $now,
]);
$this->logger->info(self::LOG_PREFIX . ' Report has been processed', [
'uuid' => $reportUuid,
'child_uuid' => $reportPodcast?->getUuid(),
]);
if (! $this->callbackService->isSuccess($payload)) {
$this->logger->warning(self::LOG_PREFIX . ' Error creating report', $payload);
return response()->json(['status' => 'ok']);
}
// If one-off, send the report immediately, if not leave it for the scheduler (automated-reports:send)
if ($report->getReport()->getFrequency() === AutomatedReportsService::FREQUENCY_ONE_OFF) {
// send the primary report
$this->dispatcher->dispatch(new SendReportJob($reportUuid));
// send the podcast report if it set and generated
if ($reportPodcast && $reportPodcast->getStatus() === AutomatedReportResult::STATUS_GENERATED) {
$this->dispatcher->dispatch(new SendReportJob(reportUuid: $reportPodcast->getUuid()));
}
}
// Track Datadog metrics for automated reports
$automatedReport = $report->getReport();
$this->callbackService->pushToDatadog($automatedReport, $report);
if ($reportPodcast) {
$this->callbackService->pushToDatadog($automatedReport, $reportPodcast);
}
$this->eventDispatcher->dispatch(new AutomatedReportGenerated($automatedReport, $report));
} catch (ModelNotFoundException $exception) {
$this->logger->error(self::LOG_PREFIX . ' Report not found', [
'uuid' => $reportUuid,
'error' => $exception->getMessage(),
]);
return response()->json(['status' => 'error', 'message' => 'Report not found'], status: 404);
} catch (Throwable $exception) {
$this->logger->error(self::LOG_PREFIX . ' Failed to update report status', [
'uuid' => $reportUuid,
'error' => $exception->getMessage(),
]);
return response()->json(['status' => 'error', 'message' => 'Failed to update report status'], status: 500);
}
return response()->json(['status' => 'ok']);
}
}
Project
Project...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"#11894 on JY-18909-automated-reports-ask-jiminny, menu","depth":5,"help_text":"Pull request #11894 exists for current branch JY-18909-automated-reports-ask-jiminny","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"AutomatedReportsCommandTest","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'AutomatedReportsCommandTest'","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'AutomatedReportsCommandTest'","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Execute","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Explain Plan","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Browse Query History","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"View Parameters","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Open Query Execution Settings…","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"In-Editor Results","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Tx: Auto","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Cancel Running Statements","depth":4,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Playground","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"jiminny","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"17","depth":4,"role_description":"text"},{"role":"AXStaticText","text":"15","depth":4,"role_description":"text"},{"role":"AXStaticText","text":"13","depth":4,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"SELECT * FROM teams WHERE id = 1;\n\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;\nSELECT * FROM crm_fields WHERE id = 2234;\nSELECT * FROM crm_field_values WHERE crm_field_id = 2234;\n\nselect * from crm_profiles where user_id = 143;\n\nselect * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO\nselect * from business_processes where crm_configuration_id = 39;\n# 01941000000H669AAC, 01941000000H66JAAS\n\nselect * from record_type_field_values\n where record_type_id IN (24);\n\nselect * from crm_field_values where id IN (2730);\n\nselect * from crm_configurations where id = 39;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce'; #1035\n\n\nselect * from users where team_id = 1; # 222 group 3\nSELECT * FROM activities WHERE user_id = 222 order by id desc;\nselect * from sidekick_settings where team_id = 1;\nselect * from teams where id = 1;\nselect * from team_features where team_id = 1;\n\nselect * from activities where crm_configuration_id = 2\nand provider = 'ms-teams' and id = 608765;\n\nSELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';\n\nselect * from sidekick_settings where team_id = 2;\n\nSELECT * FROM activities WHERE id = 608660;\nselect * from activity_summary_logs where activity_id = 608660;\nselect * from ai_prompts where transcription_id = 11214;\n\n# ********************************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;\n# id: 608818, crm: 59628809737\nSELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;\n# id: 608821, crm: 59632069252\nSELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,\nplaybook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,\nscheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at\nFROM activities a\njoin calendar_events ce on a.calendar_event_id = ce.id\nWHERE a.id IN (608818, 608821);\n\nselect * from users where team_id = 1;\nselect * from team_settings where team_id = 1;\nselect * from crm_profiles where crm_configuration_id = 39 order by user_id;\n\nselect * from team_features where team_id = 1;\n\nselect * from users where team_id = 2;\n\nSELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639\n# Preslava N. Ivanova, grou id 3\n\nSELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;\n\nselect * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';\n\nselect\n a.id,\n a.type,\n a.scheduled_start_time,\n a.actual_start_time,\n a.created_at,\n a.opportunity_id,\n a.status\nFROM activities a\nWHERE opportunity_id = 344\nand status IN ('completed', 'received', 'delivered')\nand (\n (a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))\n;\n\nSELECT * FROM users WHERE id = 222;\n\nSELECT * FROM crm_profiles WHERE user_id = 222;\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;\n\nselect * from group_deal_risk_types;\n\nselect * from opportunities where team_id = 1;\n\nSELECT * FROM opportunities WHERE id = 315;\nSELECT * FROM crm_field_data WHERE object_id = 315;\nselect * from crm_field_data where object_id = 260;\n\nselect * from generic_ai_prompts where subject_id = 315;\n\nselect * from teams; # 36, 21, 121, james.graham@bullhorn.jiminny.com\nSELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';\n\n# ************************************************************************************\nselect * from teams where id = 1;\nselect * from crm_configurations where id = 39;\nselect * from users where team_id = 1;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 1;\n# 1 - 00541000004281rAAA\n# 204 - 0052g000003freeAAA\n# 429 - 0052g000003qGOiAAM\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\nselect * from activities where type = 'softphone'\nand created_at > '2024-12-11 15:24:36' order by id desc;\n\nselect * from activity_providers where team_id = 1;\nselect * from activity_provider_users where activity_provider_id = 328;\n\nselect * from opportunities where crm_configuration_id = 39\nAND account_id = 178 AND is_closed = false\norder by created_at DESC;\n\nselect * from contacts where id = 3952;\nselect * from accounts where id = 178;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations where id = 21;\nselect * from users where team_id = 36;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 36;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 36\nand sa.provider = 'bullhorn';\n\nselect * from social_accounts where id = 348;\nUPDATE social_accounts SET\nprovider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',\nprovider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',\nexpires = 1733998131,\nstate = 'connected'\nWHERE id = 348;\n\n# ************************************************************************************\nselect * from teams where id = 31;\nselect * from crm_configurations where id = 18;\n\nselect * from users where team_id = 31; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 31;\n\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 31\nand sa.provider = 'close';\n\nselect * from contacts where crm_configuration_id = 18;\n\n# ********************** NEPTUNE **************************************************************\nselect * from teams;\nselect * from users where id IN (1030, 1035, 1052);\nselect * from crm_configurations;\n\nselect * from users where team_id = 65; # 257\nselect * from team_settings where team_id = 65; # 257\nselect * from invitations where team_id = 65; # 257\nselect * from users where email = 'integration-account@jiminny.com'; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 65;\n\nselect * from crm_configurations where id = 53;\nselect * from accounts where crm_configuration_id = 53 order by id desc;\nselect * from leads where crm_configuration_id = 53 order by id desc;\nselect * from contacts where crm_configuration_id = 53 order by id desc;\nselect * from opportunities where crm_configuration_id = 53 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 53 order by id desc;\nselect * from crm_fields where crm_configuration_id = 53 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 53 order by id desc;\nselect * from stages where crm_configuration_id = 53 order by id desc;\n\n\nselect * from crm_profiles where crm_configuration_id = 13;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\nand sa.provider = 'integration-app';\n\nselect * from contacts where crm_configuration_id = 13;\n\nselect * from social_accounts where sociable_id = 283;\n\nSELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';\n\nselect * from activity_providers where team_id = 65;\nSELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\n;\n\n# ***************************** STAGING ********************************************\nSELECT * FROM teams;\nSELECT * FROM teams WHERE id = 88;\nSELECT * FROM teams WHERE id = 89;\nselect * from team_settings where team_id = 89;\nSELECT * FROM users WHERE team_id = 89;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 89;\n\nselect * from users;\nSELECT * FROM social_accounts WHERE sociable_id = 1761;\nSELECT * FROM crm_configurations WHERE id = 70;\nselect * from accounts where crm_configuration_id = 70 order by id desc;\nselect * from leads where crm_configuration_id = 70 order by id desc;\nselect * from contacts where crm_configuration_id = 70 order by id desc;\nselect * from opportunities where crm_configuration_id = 70 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 70 order by id desc;\nselect * from crm_fields where crm_configuration_id = 70 order by id desc;\nselect * from crm_field_values where crm_field_id = 3536 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 70 order by id desc;\nselect * from stages where crm_configuration_id = 70 order by id desc;\nselect * from business_processes where crm_configuration_id = 70 order by id desc;\nselect * from business_process_stages where business_process_id = 34;\n\nselect * from contacts where id = 10468;\n\nselect * from crm_layouts where crm_configuration_id = 70;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;\nSELECT * FROM crm_fields WHERE id IN (3533,3534,3535);\n\nselect * from activities where crm_configuration_id = 70\nand (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;\n\nSELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;\nSELECT * FROM activities where crm_configuration_id = 69 ;\n\nSELECT * FROM users WHERE email LIKE '%jiminny_web_sa2@jiminny.com%';\nSELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;\nSELECT * FROM opportunities WHERE id = 385;\n\nselect * from participants p\njoin activities a on p.activity_id = a.id\nwhere a.crm_configuration_id = 70\nand (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);\nSELECT * FROM participants WHERE id = 1013638;\n\nselect * from teams where id = 90;\nselect * from users where team_id = 90;\nselect * from social_accounts where social_accounts.sociable_id IN (1960,1760);\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 71;\nselect * from invitations where team_id = 90;\n\nselect * from crm_configurations where id = 71;\nselect * from accounts where crm_configuration_id = 71 order by id desc;\nselect * from leads where crm_configuration_id = 71 order by id desc;\nselect * from contacts where crm_configuration_id = 71 order by id desc;\nselect * from opportunities where crm_configuration_id = 71 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 71 order by id desc;\nselect * from crm_fields where crm_configuration_id = 71 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 71 order by id desc;\nselect * from stages where crm_configuration_id = 71 order by id desc;\n\nselect * from users order by secondary_email desc;\nselect u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa\n join users u on sa.sociable_id = u.id\nwhere sa.provider = 'google' and u.email LIKE 'aneliya%';\n\nselect * from failed_jobs order by id desc;\n\nselect * from users where email = 'ben.allwright@learningpeople.co.uk' or secondary_email = 'ben.allwright@learningpeople.co.uk';\n\nselect * from teams;\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 39;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\n# ************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;\nSELECT * FROM crm_configurations WHERE id = 70;\n\nselect * from teams where id = 1;\nselect * from groups where team_id = 1;\nselect * from users where team_id = 1;\n\nselect o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o\njoin users u on o.user_id = u.id\njoin groups g on u.group_id = g.id\njoin role_user ru on u.id = ru.user_id\njoin roles r on ru.role_id = r.id\nwhere o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';\n\nselect * from role_user where user_id = 143;\nselect * from roles;\n\nselect * from role_user;\nselect * from groups where id = 9;\nselect * from scope_groups where group_id = 9;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations;\nSELECT * FROM social_accounts WHERE sociable_id = 121;\n\nhttps://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105\nhttps://crmsandbox.zoho.com/crm/\n\nhttps://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080\n https://crm.zoho.com/crm/\n org3469620\n\nSELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;\n\nselect * from users where email LIKE \"%mobile_automation_%\";\nselect * from social_accounts where sociable_id IN (2228);\nselect * from crm_profiles where user_id IN (2222,2223,2226,2227);\n\nselect * from teams order by id desc;\nSELECT * FROM users WHERE id = 2229;\nSELECT * FROM crm_profiles WHERE user_id = 2229;\nselect * from opportunities where crm_configuration_id = 88;\nselect * from crm_fields where crm_configuration_id = 88;\nselect * from crm_profiles where crm_configuration_id = 88;\n\nSELECT * FROM teams WHERE id = 1;\n\nSELECT * FROM users WHERE id = 143;\nSELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;\n\nhttps://app.staging.jiminny.com/ondemand?\n min_duration=1\n &\n only_recorded=1\n &\n user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e\n &\n sequence_number=2\n\n select * from users where team_id = 1 and email like '%stoyan%'\n\nselect * from coaching_feedbacks;\n\nselect * from teams;\nSELECT * FROM users WHERE team_id = 36;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from users where id = 143;\n\nSELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\n\nselect * from users where team_id = 2;\nselect * from activities where crm_configuration_id = 39\nand activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'\nAND user_id = 143\norder by id desc;\n\n# ************************************************************************************\nselect * from teams where id = 142; # 2312, 126\nselect * from team_settings;\nselect * from users where team_id = 142; # 21642\nSELECT * FROM social_accounts WHERE sociable_id = 21642;\nSELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;\nselect * from crm_profiles where id IN (93);\nselect * from invitations;\nselect * from team_features where team_id = 1;\n\nSELECT * FROM crm_configurations WHERE id = 126;\nselect * from accounts where crm_configuration_id = 126 order by id desc;\nselect * from leads where crm_configuration_id = 126 order by id desc;\nselect * from contacts where crm_configuration_id = 126 order by id desc;\nselect * from opportunities where crm_configuration_id = 126 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 126 order by id desc;\nselect * from crm_fields where crm_configuration_id = 126 # 11060\n# and type IN ('picklist', 'status')\n# and object_type = 'task'\norder by id desc;\n# 5731,5732,5733\nselect DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;\nselect * from crm_layouts where crm_configuration_id = 126 order by id desc;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);\nselect * from stages where crm_configuration_id = 126 order by id desc;\nselect * from business_processes where crm_configuration_id = 126 order by id desc;\nselect * from business_process_stages where business_process_id IN (76,75,74,73);\nselect * from playbooks where team_id = 142;\nselect * from playbook_layouts where playbook_id IN (108);\nSELECT * FROM playbook_categories WHERE playbook_id IN (108);\n\nselect * from teams where id = 130;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 2\nand sa.provider = 'hubspot';\n\nSELECT * FROM activities\n WHERE crm_configuration_id = 110;\n\nselect * from teams;\nselect * from crm_configurations;\n\nSELECT * FROM activities WHERE id = 628773;\nSELECT * FROM crm_profiles WHERE user_id = 1460;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from teams;\nselect ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id\njoin permission_role pr on pr.role_id = ru.role_id\n join permissions p on p.id = pr.permission_id\nwhere team_id = 495 and p.name IN ('dial');\n\nselect * from teams where id = 145;\nselect * from crm_configurations where id = 129;\nselect * from social_accounts where sociable_id = 2317;\nSELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;\n\nselect * from teams where id = 1;\nSELECT * FROM crm_layouts WHERE crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;\nSELECT * FROM crm_layout_entities WHERE id = 5507;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');\n\nselect * from teams;\nselect * from activities where crm_configuration_id = 14;\n\nSELECT * FROM social_accounts where provider = 'copper';\n\nselect * from activities where id = 628467;\nselect * from participants where activity_id = 628467;\n\nSELECT * FROM contacts WHERE id = 3969;\nSELECT * FROM accounts WHERE id = 177;\n\nSELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;\n\n# ********************* BH\nselect * from teams where id = 36;\nSELECT * FROM crm_configurations WHERE id = 21;\nselect * from activities where crm_configuration_id = 21 and id = 607901;\nselect * from activities where crm_configuration_id = 21;\n\nselect * roles;\nselect * from permissions;\nselect * from permission_role where permission_id = 226;\n\nselect * from migrations order by id desc;\n\n# mercury\n# neptune\n# earth\n\nselect * from teams;\nselect * from teams where id = 19;\nselect * from teams where id = 27;\nselect * from users where team_id = 27;\nSELECT * FROM crm_configurations WHERE id = 42;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from activities where id = 631461;\nSELECT * FROM crm_field_values WHERE crm_field_id = 180;\n\nselect * from teams where id = 2;\nSELECT * FROM social_accounts WHERE sociable_id = 89;\n\nSELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273\nselect * from activity_summary_logs where activity_id = 634273;\n\nselect * from sidekick_settings where team_id = 2;\n\nselect * from teams; # 2, 2\nSELECT * FROM crm_configurations WHERE team_id = 2; # 2\nselect * from team_features where team_id = 2;\nselect * from features;\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;\n\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from users where team_id = 1 and id IN (7160, 3248);\nselect * from migrations order by id desc;\n\nSELECT\n CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,\n u.email,\n sa.*,\n t.owner_id FROM social_accounts sa\nJOIN users u on u.id = sa.sociable_id\nJOIN teams t on t.id = u.team_id\nWHERE u.team_id = 1 and sa.provider = 'salesforce';\n\nselect * from teams where id = 1;\nselect * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;\nselect * from groups where id = 565;\nselect * from playbooks where team_id = 1;\nselect * from playbooks where id = 175;\nselect * from playbook_categories where playbook_id = 175;\nselect * from users where team_id = 1;\nselect * from users where id = 7160;\nselect * from crm_profiles where user_id = 7160;\nselect * from features;\nselect\n *\n# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,\n# crm_configuration_id, crm_provider_id, transcription_id, status\nfrom activities where crm_configuration_id = 1 and type = 'conference'\n# and crm_provider_id IS NOT NULL\nand provider != 'uploader' and actual_start_time IS NOT NULL\nORDER by id desc;\nselect * from activities where id = 54747783; # 00UO400000pCzojMAC\n\nselect p.id, p.activity_type, pc.id, pc.name\nFROM playbooks p\njoin playbook_categories pc on p.id = pc.playbook_id\nwhere p.team_id = 1 and p.activity_type = 'event';\n\nSELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';\nSELECT * FROM crm_field_values WHERE crm_field_id = 4;\n\nselect * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id\nwhere crm_configuration_id = 1 and pl.playbook_id = 175;\n\nselect * from teams;\nSELECT r.* FROM automated_reports r\njoin teams t on r.team_id = t.id\nWHERE r.frequency = 'daily'\n and r.status = 1\nAND t.status = 'active'\nAND (r.expires_at >= now() OR r.expires_at IS NULL);\n\nselect * from automated_report_results where report_id IN (18, 33);\n\nselect * from activity_searches where id = 10932;\nselect * from activity_search_filters where activity_search_id = 10932;\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from automated_report_results where report_id IN (36);","depth":4,"value":"SELECT * FROM teams WHERE id = 1;\n\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;\nSELECT * FROM crm_fields WHERE id = 2234;\nSELECT * FROM crm_field_values WHERE crm_field_id = 2234;\n\nselect * from crm_profiles where user_id = 143;\n\nselect * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO\nselect * from business_processes where crm_configuration_id = 39;\n# 01941000000H669AAC, 01941000000H66JAAS\n\nselect * from record_type_field_values\n where record_type_id IN (24);\n\nselect * from crm_field_values where id IN (2730);\n\nselect * from crm_configurations where id = 39;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce'; #1035\n\n\nselect * from users where team_id = 1; # 222 group 3\nSELECT * FROM activities WHERE user_id = 222 order by id desc;\nselect * from sidekick_settings where team_id = 1;\nselect * from teams where id = 1;\nselect * from team_features where team_id = 1;\n\nselect * from activities where crm_configuration_id = 2\nand provider = 'ms-teams' and id = 608765;\n\nSELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';\n\nselect * from sidekick_settings where team_id = 2;\n\nSELECT * FROM activities WHERE id = 608660;\nselect * from activity_summary_logs where activity_id = 608660;\nselect * from ai_prompts where transcription_id = 11214;\n\n# ********************************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;\n# id: 608818, crm: 59628809737\nSELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;\n# id: 608821, crm: 59632069252\nSELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,\nplaybook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,\nscheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at\nFROM activities a\njoin calendar_events ce on a.calendar_event_id = ce.id\nWHERE a.id IN (608818, 608821);\n\nselect * from users where team_id = 1;\nselect * from team_settings where team_id = 1;\nselect * from crm_profiles where crm_configuration_id = 39 order by user_id;\n\nselect * from team_features where team_id = 1;\n\nselect * from users where team_id = 2;\n\nSELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639\n# Preslava N. Ivanova, grou id 3\n\nSELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;\n\nselect * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';\n\nselect\n a.id,\n a.type,\n a.scheduled_start_time,\n a.actual_start_time,\n a.created_at,\n a.opportunity_id,\n a.status\nFROM activities a\nWHERE opportunity_id = 344\nand status IN ('completed', 'received', 'delivered')\nand (\n (a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))\n;\n\nSELECT * FROM users WHERE id = 222;\n\nSELECT * FROM crm_profiles WHERE user_id = 222;\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;\n\nselect * from group_deal_risk_types;\n\nselect * from opportunities where team_id = 1;\n\nSELECT * FROM opportunities WHERE id = 315;\nSELECT * FROM crm_field_data WHERE object_id = 315;\nselect * from crm_field_data where object_id = 260;\n\nselect * from generic_ai_prompts where subject_id = 315;\n\nselect * from teams; # 36, 21, 121, james.graham@bullhorn.jiminny.com\nSELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';\n\n# ************************************************************************************\nselect * from teams where id = 1;\nselect * from crm_configurations where id = 39;\nselect * from users where team_id = 1;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 1;\n# 1 - 00541000004281rAAA\n# 204 - 0052g000003freeAAA\n# 429 - 0052g000003qGOiAAM\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\nselect * from activities where type = 'softphone'\nand created_at > '2024-12-11 15:24:36' order by id desc;\n\nselect * from activity_providers where team_id = 1;\nselect * from activity_provider_users where activity_provider_id = 328;\n\nselect * from opportunities where crm_configuration_id = 39\nAND account_id = 178 AND is_closed = false\norder by created_at DESC;\n\nselect * from contacts where id = 3952;\nselect * from accounts where id = 178;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations where id = 21;\nselect * from users where team_id = 36;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 36;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 36\nand sa.provider = 'bullhorn';\n\nselect * from social_accounts where id = 348;\nUPDATE social_accounts SET\nprovider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',\nprovider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',\nexpires = 1733998131,\nstate = 'connected'\nWHERE id = 348;\n\n# ************************************************************************************\nselect * from teams where id = 31;\nselect * from crm_configurations where id = 18;\n\nselect * from users where team_id = 31; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 31;\n\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 31\nand sa.provider = 'close';\n\nselect * from contacts where crm_configuration_id = 18;\n\n# ********************** NEPTUNE **************************************************************\nselect * from teams;\nselect * from users where id IN (1030, 1035, 1052);\nselect * from crm_configurations;\n\nselect * from users where team_id = 65; # 257\nselect * from team_settings where team_id = 65; # 257\nselect * from invitations where team_id = 65; # 257\nselect * from users where email = 'integration-account@jiminny.com'; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 65;\n\nselect * from crm_configurations where id = 53;\nselect * from accounts where crm_configuration_id = 53 order by id desc;\nselect * from leads where crm_configuration_id = 53 order by id desc;\nselect * from contacts where crm_configuration_id = 53 order by id desc;\nselect * from opportunities where crm_configuration_id = 53 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 53 order by id desc;\nselect * from crm_fields where crm_configuration_id = 53 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 53 order by id desc;\nselect * from stages where crm_configuration_id = 53 order by id desc;\n\n\nselect * from crm_profiles where crm_configuration_id = 13;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\nand sa.provider = 'integration-app';\n\nselect * from contacts where crm_configuration_id = 13;\n\nselect * from social_accounts where sociable_id = 283;\n\nSELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';\n\nselect * from activity_providers where team_id = 65;\nSELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\n;\n\n# ***************************** STAGING ********************************************\nSELECT * FROM teams;\nSELECT * FROM teams WHERE id = 88;\nSELECT * FROM teams WHERE id = 89;\nselect * from team_settings where team_id = 89;\nSELECT * FROM users WHERE team_id = 89;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 89;\n\nselect * from users;\nSELECT * FROM social_accounts WHERE sociable_id = 1761;\nSELECT * FROM crm_configurations WHERE id = 70;\nselect * from accounts where crm_configuration_id = 70 order by id desc;\nselect * from leads where crm_configuration_id = 70 order by id desc;\nselect * from contacts where crm_configuration_id = 70 order by id desc;\nselect * from opportunities where crm_configuration_id = 70 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 70 order by id desc;\nselect * from crm_fields where crm_configuration_id = 70 order by id desc;\nselect * from crm_field_values where crm_field_id = 3536 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 70 order by id desc;\nselect * from stages where crm_configuration_id = 70 order by id desc;\nselect * from business_processes where crm_configuration_id = 70 order by id desc;\nselect * from business_process_stages where business_process_id = 34;\n\nselect * from contacts where id = 10468;\n\nselect * from crm_layouts where crm_configuration_id = 70;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;\nSELECT * FROM crm_fields WHERE id IN (3533,3534,3535);\n\nselect * from activities where crm_configuration_id = 70\nand (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;\n\nSELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;\nSELECT * FROM activities where crm_configuration_id = 69 ;\n\nSELECT * FROM users WHERE email LIKE '%jiminny_web_sa2@jiminny.com%';\nSELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;\nSELECT * FROM opportunities WHERE id = 385;\n\nselect * from participants p\njoin activities a on p.activity_id = a.id\nwhere a.crm_configuration_id = 70\nand (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);\nSELECT * FROM participants WHERE id = 1013638;\n\nselect * from teams where id = 90;\nselect * from users where team_id = 90;\nselect * from social_accounts where social_accounts.sociable_id IN (1960,1760);\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 71;\nselect * from invitations where team_id = 90;\n\nselect * from crm_configurations where id = 71;\nselect * from accounts where crm_configuration_id = 71 order by id desc;\nselect * from leads where crm_configuration_id = 71 order by id desc;\nselect * from contacts where crm_configuration_id = 71 order by id desc;\nselect * from opportunities where crm_configuration_id = 71 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 71 order by id desc;\nselect * from crm_fields where crm_configuration_id = 71 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 71 order by id desc;\nselect * from stages where crm_configuration_id = 71 order by id desc;\n\nselect * from users order by secondary_email desc;\nselect u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa\n join users u on sa.sociable_id = u.id\nwhere sa.provider = 'google' and u.email LIKE 'aneliya%';\n\nselect * from failed_jobs order by id desc;\n\nselect * from users where email = 'ben.allwright@learningpeople.co.uk' or secondary_email = 'ben.allwright@learningpeople.co.uk';\n\nselect * from teams;\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 39;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\n# ************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;\nSELECT * FROM crm_configurations WHERE id = 70;\n\nselect * from teams where id = 1;\nselect * from groups where team_id = 1;\nselect * from users where team_id = 1;\n\nselect o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o\njoin users u on o.user_id = u.id\njoin groups g on u.group_id = g.id\njoin role_user ru on u.id = ru.user_id\njoin roles r on ru.role_id = r.id\nwhere o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';\n\nselect * from role_user where user_id = 143;\nselect * from roles;\n\nselect * from role_user;\nselect * from groups where id = 9;\nselect * from scope_groups where group_id = 9;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations;\nSELECT * FROM social_accounts WHERE sociable_id = 121;\n\nhttps://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105\nhttps://crmsandbox.zoho.com/crm/\n\nhttps://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080\n https://crm.zoho.com/crm/\n org3469620\n\nSELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;\n\nselect * from users where email LIKE \"%mobile_automation_%\";\nselect * from social_accounts where sociable_id IN (2228);\nselect * from crm_profiles where user_id IN (2222,2223,2226,2227);\n\nselect * from teams order by id desc;\nSELECT * FROM users WHERE id = 2229;\nSELECT * FROM crm_profiles WHERE user_id = 2229;\nselect * from opportunities where crm_configuration_id = 88;\nselect * from crm_fields where crm_configuration_id = 88;\nselect * from crm_profiles where crm_configuration_id = 88;\n\nSELECT * FROM teams WHERE id = 1;\n\nSELECT * FROM users WHERE id = 143;\nSELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;\n\nhttps://app.staging.jiminny.com/ondemand?\n min_duration=1\n &\n only_recorded=1\n &\n user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e\n &\n sequence_number=2\n\n select * from users where team_id = 1 and email like '%stoyan%'\n\nselect * from coaching_feedbacks;\n\nselect * from teams;\nSELECT * FROM users WHERE team_id = 36;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from users where id = 143;\n\nSELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\n\nselect * from users where team_id = 2;\nselect * from activities where crm_configuration_id = 39\nand activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'\nAND user_id = 143\norder by id desc;\n\n# ************************************************************************************\nselect * from teams where id = 142; # 2312, 126\nselect * from team_settings;\nselect * from users where team_id = 142; # 21642\nSELECT * FROM social_accounts WHERE sociable_id = 21642;\nSELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;\nselect * from crm_profiles where id IN (93);\nselect * from invitations;\nselect * from team_features where team_id = 1;\n\nSELECT * FROM crm_configurations WHERE id = 126;\nselect * from accounts where crm_configuration_id = 126 order by id desc;\nselect * from leads where crm_configuration_id = 126 order by id desc;\nselect * from contacts where crm_configuration_id = 126 order by id desc;\nselect * from opportunities where crm_configuration_id = 126 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 126 order by id desc;\nselect * from crm_fields where crm_configuration_id = 126 # 11060\n# and type IN ('picklist', 'status')\n# and object_type = 'task'\norder by id desc;\n# 5731,5732,5733\nselect DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;\nselect * from crm_layouts where crm_configuration_id = 126 order by id desc;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);\nselect * from stages where crm_configuration_id = 126 order by id desc;\nselect * from business_processes where crm_configuration_id = 126 order by id desc;\nselect * from business_process_stages where business_process_id IN (76,75,74,73);\nselect * from playbooks where team_id = 142;\nselect * from playbook_layouts where playbook_id IN (108);\nSELECT * FROM playbook_categories WHERE playbook_id IN (108);\n\nselect * from teams where id = 130;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 2\nand sa.provider = 'hubspot';\n\nSELECT * FROM activities\n WHERE crm_configuration_id = 110;\n\nselect * from teams;\nselect * from crm_configurations;\n\nSELECT * FROM activities WHERE id = 628773;\nSELECT * FROM crm_profiles WHERE user_id = 1460;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from teams;\nselect ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id\njoin permission_role pr on pr.role_id = ru.role_id\n join permissions p on p.id = pr.permission_id\nwhere team_id = 495 and p.name IN ('dial');\n\nselect * from teams where id = 145;\nselect * from crm_configurations where id = 129;\nselect * from social_accounts where sociable_id = 2317;\nSELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;\n\nselect * from teams where id = 1;\nSELECT * FROM crm_layouts WHERE crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;\nSELECT * FROM crm_layout_entities WHERE id = 5507;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');\n\nselect * from teams;\nselect * from activities where crm_configuration_id = 14;\n\nSELECT * FROM social_accounts where provider = 'copper';\n\nselect * from activities where id = 628467;\nselect * from participants where activity_id = 628467;\n\nSELECT * FROM contacts WHERE id = 3969;\nSELECT * FROM accounts WHERE id = 177;\n\nSELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;\n\n# ********************* BH\nselect * from teams where id = 36;\nSELECT * FROM crm_configurations WHERE id = 21;\nselect * from activities where crm_configuration_id = 21 and id = 607901;\nselect * from activities where crm_configuration_id = 21;\n\nselect * roles;\nselect * from permissions;\nselect * from permission_role where permission_id = 226;\n\nselect * from migrations order by id desc;\n\n# mercury\n# neptune\n# earth\n\nselect * from teams;\nselect * from teams where id = 19;\nselect * from teams where id = 27;\nselect * from users where team_id = 27;\nSELECT * FROM crm_configurations WHERE id = 42;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from activities where id = 631461;\nSELECT * FROM crm_field_values WHERE crm_field_id = 180;\n\nselect * from teams where id = 2;\nSELECT * FROM social_accounts WHERE sociable_id = 89;\n\nSELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273\nselect * from activity_summary_logs where activity_id = 634273;\n\nselect * from sidekick_settings where team_id = 2;\n\nselect * from teams; # 2, 2\nSELECT * FROM crm_configurations WHERE team_id = 2; # 2\nselect * from team_features where team_id = 2;\nselect * from features;\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;\n\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from users where team_id = 1 and id IN (7160, 3248);\nselect * from migrations order by id desc;\n\nSELECT\n CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,\n u.email,\n sa.*,\n t.owner_id FROM social_accounts sa\nJOIN users u on u.id = sa.sociable_id\nJOIN teams t on t.id = u.team_id\nWHERE u.team_id = 1 and sa.provider = 'salesforce';\n\nselect * from teams where id = 1;\nselect * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;\nselect * from groups where id = 565;\nselect * from playbooks where team_id = 1;\nselect * from playbooks where id = 175;\nselect * from playbook_categories where playbook_id = 175;\nselect * from users where team_id = 1;\nselect * from users where id = 7160;\nselect * from crm_profiles where user_id = 7160;\nselect * from features;\nselect\n *\n# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,\n# crm_configuration_id, crm_provider_id, transcription_id, status\nfrom activities where crm_configuration_id = 1 and type = 'conference'\n# and crm_provider_id IS NOT NULL\nand provider != 'uploader' and actual_start_time IS NOT NULL\nORDER by id desc;\nselect * from activities where id = 54747783; # 00UO400000pCzojMAC\n\nselect p.id, p.activity_type, pc.id, pc.name\nFROM playbooks p\njoin playbook_categories pc on p.id = pc.playbook_id\nwhere p.team_id = 1 and p.activity_type = 'event';\n\nSELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';\nSELECT * FROM crm_field_values WHERE crm_field_id = 4;\n\nselect * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id\nwhere crm_configuration_id = 1 and pl.playbook_id = 175;\n\nselect * from teams;\nSELECT r.* FROM automated_reports r\njoin teams t on r.team_id = t.id\nWHERE r.frequency = 'daily'\n and r.status = 1\nAND t.status = 'active'\nAND (r.expires_at >= now() OR r.expires_at IS NULL);\n\nselect * from automated_report_results where report_id IN (18, 33);\n\nselect * from activity_searches where id = 10932;\nselect * from activity_search_filters where activity_search_id = 10932;\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from automated_report_results where report_id IN (36);","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"3","depth":4,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\ndeclare(strict_types=1);\n\nnamespace Jiminny\\Http\\Controllers\\Webhook;\n\nuse Carbon\\Carbon;\nuse Illuminate\\Contracts\\Bus\\Dispatcher as BusDispatcher;\nuse Illuminate\\Contracts\\Events\\Dispatcher as EventDispatcher;\nuse Illuminate\\Http\\JsonResponse;\nuse Illuminate\\Http\\Request;\nuse Jiminny\\Events\\AutomatedReports\\AutomatedReportGenerated;\nuse Jiminny\\Exceptions\\ModelNotFoundException;\nuse Jiminny\\Http\\Controllers\\AbstractController;\nuse Jiminny\\Jobs\\AutomatedReports\\SendReportJob;\nuse Jiminny\\Models\\AutomatedReportResult;\nuse Jiminny\\Services\\Kiosk\\AutomatedReports\\AutomatedReportsCallbackService;\nuse Jiminny\\Services\\Kiosk\\AutomatedReports\\AutomatedReportsService;\nuse Psr\\Log\\LoggerInterface;\nuse Throwable;\n\nclass ReportController extends AbstractController\n{\n /**\n * Log prefix for all log messages\n */\n private const string LOG_PREFIX = '[Report Ready]';\n\n public function __construct(\n private readonly AutomatedReportsService $automatedReportsService,\n private readonly BusDispatcher $dispatcher,\n private readonly LoggerInterface $logger,\n private readonly AutomatedReportsCallbackService $callbackService,\n private readonly EventDispatcher $eventDispatcher,\n ) {\n }\n\n public function ready(Request $request): JsonResponse\n {\n $payload = $request->all();\n $now = Carbon::now();\n\n $this->logger->info(self::LOG_PREFIX . ' Webhook received', [\n 'payload' => $payload,\n ]);\n\n // validate\n $reportUuid = $this->callbackService->getResultUuid($payload);\n if (empty($reportUuid)) {\n return response()->json(['status' => 'error', 'message' => 'Request ID is empty'], status: 400);\n }\n\n try {\n $report = $this->automatedReportsService->getReportResult($reportUuid);\n\n // validate\n if ($this->callbackService->isProcessed($report)) {\n $this->logger->warning(self::LOG_PREFIX . ' Report has been already processed', [\n 'uuid' => $reportUuid,\n 'currentStatus' => $report->getStatusLabel(),\n ]);\n\n return response()->json(['status' => 'already_processed']);\n }\n\n // always try to get a child podcast cause report configuration cannot be trusted\n $reportPodcast = $this->automatedReportsService->findChildResult(\n result: $report,\n type: AutomatedReportsService::MEDIA_TYPE_PODCAST\n );\n\n // update results\n $report->update([\n 'status' => $this->callbackService->getPrimaryStatus($report, $payload),\n 'response' => $payload,\n 'generated_at' => $now,\n ]);\n // if a podcast is set, update it\n $reportPodcast?->update([\n 'status' => $this->callbackService->getPodcastStatus($payload),\n 'response' => $payload,\n 'generated_at' => $now,\n ]);\n\n $this->logger->info(self::LOG_PREFIX . ' Report has been processed', [\n 'uuid' => $reportUuid,\n 'child_uuid' => $reportPodcast?->getUuid(),\n ]);\n\n if (! $this->callbackService->isSuccess($payload)) {\n $this->logger->warning(self::LOG_PREFIX . ' Error creating report', $payload);\n\n return response()->json(['status' => 'ok']);\n }\n\n // If one-off, send the report immediately, if not leave it for the scheduler (automated-reports:send)\n if ($report->getReport()->getFrequency() === AutomatedReportsService::FREQUENCY_ONE_OFF) {\n // send the primary report\n $this->dispatcher->dispatch(new SendReportJob($reportUuid));\n\n // send the podcast report if it set and generated\n if ($reportPodcast && $reportPodcast->getStatus() === AutomatedReportResult::STATUS_GENERATED) {\n $this->dispatcher->dispatch(new SendReportJob(reportUuid: $reportPodcast->getUuid()));\n }\n }\n\n // Track Datadog metrics for automated reports\n $automatedReport = $report->getReport();\n $this->callbackService->pushToDatadog($automatedReport, $report);\n\n if ($reportPodcast) {\n $this->callbackService->pushToDatadog($automatedReport, $reportPodcast);\n }\n\n $this->eventDispatcher->dispatch(new AutomatedReportGenerated($automatedReport, $report));\n } catch (ModelNotFoundException $exception) {\n $this->logger->error(self::LOG_PREFIX . ' Report not found', [\n 'uuid' => $reportUuid,\n 'error' => $exception->getMessage(),\n ]);\n\n return response()->json(['status' => 'error', 'message' => 'Report not found'], status: 404);\n } catch (Throwable $exception) {\n $this->logger->error(self::LOG_PREFIX . ' Failed to update report status', [\n 'uuid' => $reportUuid,\n 'error' => $exception->getMessage(),\n ]);\n\n return response()->json(['status' => 'error', 'message' => 'Failed to update report status'], status: 500);\n }\n\n return response()->json(['status' => 'ok']);\n }\n}","depth":4,"value":"<?php\n\ndeclare(strict_types=1);\n\nnamespace Jiminny\\Http\\Controllers\\Webhook;\n\nuse Carbon\\Carbon;\nuse Illuminate\\Contracts\\Bus\\Dispatcher as BusDispatcher;\nuse Illuminate\\Contracts\\Events\\Dispatcher as EventDispatcher;\nuse Illuminate\\Http\\JsonResponse;\nuse Illuminate\\Http\\Request;\nuse Jiminny\\Events\\AutomatedReports\\AutomatedReportGenerated;\nuse Jiminny\\Exceptions\\ModelNotFoundException;\nuse Jiminny\\Http\\Controllers\\AbstractController;\nuse Jiminny\\Jobs\\AutomatedReports\\SendReportJob;\nuse Jiminny\\Models\\AutomatedReportResult;\nuse Jiminny\\Services\\Kiosk\\AutomatedReports\\AutomatedReportsCallbackService;\nuse Jiminny\\Services\\Kiosk\\AutomatedReports\\AutomatedReportsService;\nuse Psr\\Log\\LoggerInterface;\nuse Throwable;\n\nclass ReportController extends AbstractController\n{\n /**\n * Log prefix for all log messages\n */\n private const string LOG_PREFIX = '[Report Ready]';\n\n public function __construct(\n private readonly AutomatedReportsService $automatedReportsService,\n private readonly BusDispatcher $dispatcher,\n private readonly LoggerInterface $logger,\n private readonly AutomatedReportsCallbackService $callbackService,\n private readonly EventDispatcher $eventDispatcher,\n ) {\n }\n\n public function ready(Request $request): JsonResponse\n {\n $payload = $request->all();\n $now = Carbon::now();\n\n $this->logger->info(self::LOG_PREFIX . ' Webhook received', [\n 'payload' => $payload,\n ]);\n\n // validate\n $reportUuid = $this->callbackService->getResultUuid($payload);\n if (empty($reportUuid)) {\n return response()->json(['status' => 'error', 'message' => 'Request ID is empty'], status: 400);\n }\n\n try {\n $report = $this->automatedReportsService->getReportResult($reportUuid);\n\n // validate\n if ($this->callbackService->isProcessed($report)) {\n $this->logger->warning(self::LOG_PREFIX . ' Report has been already processed', [\n 'uuid' => $reportUuid,\n 'currentStatus' => $report->getStatusLabel(),\n ]);\n\n return response()->json(['status' => 'already_processed']);\n }\n\n // always try to get a child podcast cause report configuration cannot be trusted\n $reportPodcast = $this->automatedReportsService->findChildResult(\n result: $report,\n type: AutomatedReportsService::MEDIA_TYPE_PODCAST\n );\n\n // update results\n $report->update([\n 'status' => $this->callbackService->getPrimaryStatus($report, $payload),\n 'response' => $payload,\n 'generated_at' => $now,\n ]);\n // if a podcast is set, update it\n $reportPodcast?->update([\n 'status' => $this->callbackService->getPodcastStatus($payload),\n 'response' => $payload,\n 'generated_at' => $now,\n ]);\n\n $this->logger->info(self::LOG_PREFIX . ' Report has been processed', [\n 'uuid' => $reportUuid,\n 'child_uuid' => $reportPodcast?->getUuid(),\n ]);\n\n if (! $this->callbackService->isSuccess($payload)) {\n $this->logger->warning(self::LOG_PREFIX . ' Error creating report', $payload);\n\n return response()->json(['status' => 'ok']);\n }\n\n // If one-off, send the report immediately, if not leave it for the scheduler (automated-reports:send)\n if ($report->getReport()->getFrequency() === AutomatedReportsService::FREQUENCY_ONE_OFF) {\n // send the primary report\n $this->dispatcher->dispatch(new SendReportJob($reportUuid));\n\n // send the podcast report if it set and generated\n if ($reportPodcast && $reportPodcast->getStatus() === AutomatedReportResult::STATUS_GENERATED) {\n $this->dispatcher->dispatch(new SendReportJob(reportUuid: $reportPodcast->getUuid()));\n }\n }\n\n // Track Datadog metrics for automated reports\n $automatedReport = $report->getReport();\n $this->callbackService->pushToDatadog($automatedReport, $report);\n\n if ($reportPodcast) {\n $this->callbackService->pushToDatadog($automatedReport, $reportPodcast);\n }\n\n $this->eventDispatcher->dispatch(new AutomatedReportGenerated($automatedReport, $report));\n } catch (ModelNotFoundException $exception) {\n $this->logger->error(self::LOG_PREFIX . ' Report not found', [\n 'uuid' => $reportUuid,\n 'error' => $exception->getMessage(),\n ]);\n\n return response()->json(['status' => 'error', 'message' => 'Report not found'], status: 404);\n } catch (Throwable $exception) {\n $this->logger->error(self::LOG_PREFIX . ' Failed to update report status', [\n 'uuid' => $reportUuid,\n 'error' => $exception->getMessage(),\n ]);\n\n return response()->json(['status' => 'error', 'message' => 'Failed to update report status'], status: 500);\n }\n\n return response()->json(['status' => 'ok']);\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Project","depth":3,"role_description":"text"},{"role":"AXButton","text":"Project","depth":3,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
314051777442821655
|
6686649160176153677
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error
Next Highlighted Error
SELECT * FROM teams WHERE id = 1;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;
SELECT * FROM crm_fields WHERE id = 2234;
SELECT * FROM crm_field_values WHERE crm_field_id = 2234;
select * from crm_profiles where user_id = 143;
select * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO
select * from business_processes where crm_configuration_id = 39;
# 01941000000H669AAC, 01941000000H66JAAS
select * from record_type_field_values
where record_type_id IN (24);
select * from crm_field_values where id IN (2730);
select * from crm_configurations where id = 39;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce'; #1035
select * from users where team_id = 1; # 222 group 3
SELECT * FROM activities WHERE user_id = 222 order by id desc;
select * from sidekick_settings where team_id = 1;
select * from teams where id = 1;
select * from team_features where team_id = 1;
select * from activities where crm_configuration_id = 2
and provider = 'ms-teams' and id = 608765;
SELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';
select * from sidekick_settings where team_id = 2;
SELECT * FROM activities WHERE id = 608660;
select * from activity_summary_logs where activity_id = 608660;
select * from ai_prompts where transcription_id = 11214;
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;
# id: 608818, crm: 59628809737
SELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;
# id: 608821, crm: 59632069252
SELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,
playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,
scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at
FROM activities a
join calendar_events ce on a.calendar_event_id = ce.id
WHERE a.id IN (608818, 608821);
select * from users where team_id = 1;
select * from team_settings where team_id = 1;
select * from crm_profiles where crm_configuration_id = 39 order by user_id;
select * from team_features where team_id = 1;
select * from users where team_id = 2;
SELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639
# Preslava N. Ivanova, grou id 3
SELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;
select * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';
select
a.id,
a.type,
a.scheduled_start_time,
a.actual_start_time,
a.created_at,
a.opportunity_id,
a.status
FROM activities a
WHERE opportunity_id = 344
and status IN ('completed', 'received', 'delivered')
and (
(a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))
;
SELECT * FROM users WHERE id = 222;
SELECT * FROM crm_profiles WHERE user_id = 222;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;
select * from group_deal_risk_types;
select * from opportunities where team_id = 1;
SELECT * FROM opportunities WHERE id = 315;
SELECT * FROM crm_field_data WHERE object_id = 315;
select * from crm_field_data where object_id = 260;
select * from generic_ai_prompts where subject_id = 315;
select * from teams; # 36, 21, 121, [EMAIL]
SELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';
# [PASSWORD_DOTS]
select * from teams where id = 1;
select * from crm_configurations where id = 39;
select * from users where team_id = 1;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 1;
# 1 - 00541000004281rAAA
# 204 - 0052g000003freeAAA
# 429 - 0052g000003qGOiAAM
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
select * from activities where type = 'softphone'
and created_at > '2024-12-11 15:24:36' order by id desc;
select * from activity_providers where team_id = 1;
select * from activity_provider_users where activity_provider_id = 328;
select * from opportunities where crm_configuration_id = 39
AND account_id = 178 AND is_closed = false
order by created_at DESC;
select * from contacts where id = 3952;
select * from accounts where id = 178;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations where id = 21;
select * from users where team_id = 36;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 36
and sa.provider = 'bullhorn';
select * from social_accounts where id = 348;
UPDATE social_accounts SET
provider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',
provider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',
expires = 1733998131,
state = 'connected'
WHERE id = 348;
# [PASSWORD_DOTS]
select * from teams where id = 31;
select * from crm_configurations where id = 18;
select * from users where team_id = 31; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 31;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 31
and sa.provider = 'close';
select * from contacts where crm_configuration_id = 18;
# [PASSWORD_DOTS] NEPTUNE [PASSWORD_DOTS]
select * from teams;
select * from users where id IN (1030, 1035, 1052);
select * from crm_configurations;
select * from users where team_id = 65; # 257
select * from team_settings where team_id = 65; # 257
select * from invitations where team_id = 65; # 257
select * from users where email = '[EMAIL]'; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 65;
select * from crm_configurations where id = 53;
select * from accounts where crm_configuration_id = 53 order by id desc;
select * from leads where crm_configuration_id = 53 order by id desc;
select * from contacts where crm_configuration_id = 53 order by id desc;
select * from opportunities where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 53 order by id desc;
select * from crm_fields where crm_configuration_id = 53 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 53 order by id desc;
select * from stages where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 13;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
and sa.provider = 'integration-app';
select * from contacts where crm_configuration_id = 13;
select * from social_accounts where sociable_id = 283;
SELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';
select * from activity_providers where team_id = 65;
SELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
;
# [PASSWORD_DOTS] STAGING [PASSWORD_DOTS]
SELECT * FROM teams;
SELECT * FROM teams WHERE id = 88;
SELECT * FROM teams WHERE id = 89;
select * from team_settings where team_id = 89;
SELECT * FROM users WHERE team_id = 89;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 89;
select * from users;
SELECT * FROM social_accounts WHERE sociable_id = 1761;
SELECT * FROM crm_configurations WHERE id = 70;
select * from accounts where crm_configuration_id = 70 order by id desc;
select * from leads where crm_configuration_id = 70 order by id desc;
select * from contacts where crm_configuration_id = 70 order by id desc;
select * from opportunities where crm_configuration_id = 70 order by id desc;
select * from crm_profiles where crm_configuration_id = 70 order by id desc;
select * from crm_fields where crm_configuration_id = 70 order by id desc;
select * from crm_field_values where crm_field_id = 3536 order by id desc;
select * from crm_layouts where crm_configuration_id = 70 order by id desc;
select * from stages where crm_configuration_id = 70 order by id desc;
select * from business_processes where crm_configuration_id = 70 order by id desc;
select * from business_process_stages where business_process_id = 34;
select * from contacts where id = 10468;
select * from crm_layouts where crm_configuration_id = 70;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;
SELECT * FROM crm_fields WHERE id IN (3533,3534,3535);
select * from activities where crm_configuration_id = 70
and (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;
SELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;
SELECT * FROM activities where crm_configuration_id = 69 ;
SELECT * FROM users WHERE email LIKE '%[EMAIL]%';
SELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;
SELECT * FROM opportunities WHERE id = 385;
select * from participants p
join activities a on p.activity_id = a.id
where a.crm_configuration_id = 70
and (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);
SELECT * FROM participants WHERE id = 1013638;
select * from teams where id = 90;
select * from users where team_id = 90;
select * from social_accounts where social_accounts.sociable_id IN (1960,1760);
SELECT * FROM crm_profiles WHERE crm_configuration_id = 71;
select * from invitations where team_id = 90;
select * from crm_configurations where id = 71;
select * from accounts where crm_configuration_id = 71 order by id desc;
select * from leads where crm_configuration_id = 71 order by id desc;
select * from contacts where crm_configuration_id = 71 order by id desc;
select * from opportunities where crm_configuration_id = 71 order by id desc;
select * from crm_profiles where crm_configuration_id = 71 order by id desc;
select * from crm_fields where crm_configuration_id = 71 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 71 order by id desc;
select * from stages where crm_configuration_id = 71 order by id desc;
select * from users order by secondary_email desc;
select u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa
join users u on sa.sociable_id = u.id
where sa.provider = 'google' and u.email LIKE 'aneliya%';
select * from failed_jobs order by id desc;
select * from users where email = '[EMAIL]' or secondary_email = '[EMAIL]';
select * from teams;
SELECT * FROM crm_profiles WHERE crm_configuration_id = 39;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;
SELECT * FROM crm_configurations WHERE id = 70;
select * from teams where id = 1;
select * from groups where team_id = 1;
select * from users where team_id = 1;
select o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o
join users u on o.user_id = u.id
join groups g on u.group_id = g.id
join role_user ru on u.id = ru.user_id
join roles r on ru.role_id = r.id
where o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';
select * from role_user where user_id = 143;
select * from roles;
select * from role_user;
select * from groups where id = 9;
select * from scope_groups where group_id = 9;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations;
SELECT * FROM social_accounts WHERE sociable_id = 121;
https://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105
https://crmsandbox.zoho.com/crm/
https://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080
https://crm.zoho.com/crm/
org3469620
SELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;
select * from users where email LIKE "%mobile_automation_%";
select * from social_accounts where sociable_id IN (2228);
select * from crm_profiles where user_id IN (2222,2223,2226,2227);
select * from teams order by id desc;
SELECT * FROM users WHERE id = 2229;
SELECT * FROM crm_profiles WHERE user_id = 2229;
select * from opportunities where crm_configuration_id = 88;
select * from crm_fields where crm_configuration_id = 88;
select * from crm_profiles where crm_configuration_id = 88;
SELECT * FROM teams WHERE id = 1;
SELECT * FROM users WHERE id = 143;
SELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;
https://app.staging.jiminny.com/ondemand?
min_duration=1
&
only_recorded=1
&
user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e
&
sequence_number=2
select * from users where team_id = 1 and email like '%stoyan%'
select * from coaching_feedbacks;
select * from teams;
SELECT * FROM users WHERE team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from users where id = 143;
SELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
select * from users where team_id = 2;
select * from activities where crm_configuration_id = 39
and activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'
AND user_id = 143
order by id desc;
# [PASSWORD_DOTS]
select * from teams where id = 142; # 2312, 126
select * from team_settings;
select * from users where team_id = 142; # 21642
SELECT * FROM social_accounts WHERE sociable_id = 21642;
SELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;
select * from crm_profiles where id IN (93);
select * from invitations;
select * from team_features where team_id = 1;
SELECT * FROM crm_configurations WHERE id = 126;
select * from accounts where crm_configuration_id = 126 order by id desc;
select * from leads where crm_configuration_id = 126 order by id desc;
select * from contacts where crm_configuration_id = 126 order by id desc;
select * from opportunities where crm_configuration_id = 126 order by id desc;
select * from crm_profiles where crm_configuration_id = 126 order by id desc;
select * from crm_fields where crm_configuration_id = 126 # 11060
# and type IN ('picklist', 'status')
# and object_type = 'task'
order by id desc;
# 5731,5732,5733
select DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;
select * from crm_layouts where crm_configuration_id = 126 order by id desc;
SELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);
select * from stages where crm_configuration_id = 126 order by id desc;
select * from business_processes where crm_configuration_id = 126 order by id desc;
select * from business_process_stages where business_process_id IN (76,75,74,73);
select * from playbooks where team_id = 142;
select * from playbook_layouts where playbook_id IN (108);
SELECT * FROM playbook_categories WHERE playbook_id IN (108);
select * from teams where id = 130;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 2
and sa.provider = 'hubspot';
SELECT * FROM activities
WHERE crm_configuration_id = 110;
select * from teams;
select * from crm_configurations;
SELECT * FROM activities WHERE id = 628773;
SELECT * FROM crm_profiles WHERE user_id = 1460;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from teams;
select ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id
join permission_role pr on pr.role_id = ru.role_id
join permissions p on p.id = pr.permission_id
where team_id = 495 and p.name IN ('dial');
select * from teams where id = 145;
select * from crm_configurations where id = 129;
select * from social_accounts where sociable_id = 2317;
SELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;
select * from teams where id = 1;
SELECT * FROM crm_layouts WHERE crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;
SELECT * FROM crm_layout_entities WHERE id = 5507;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');
select * from teams;
select * from activities where crm_configuration_id = 14;
SELECT * FROM social_accounts where provider = 'copper';
select * from activities where id = 628467;
select * from participants where activity_id = 628467;
SELECT * FROM contacts WHERE id = 3969;
SELECT * FROM accounts WHERE id = 177;
SELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;
# [PASSWORD_DOTS] BH
select * from teams where id = 36;
SELECT * FROM crm_configurations WHERE id = 21;
select * from activities where crm_configuration_id = 21 and id = 607901;
select * from activities where crm_configuration_id = 21;
select * roles;
select * from permissions;
select * from permission_role where permission_id = 226;
select * from migrations order by id desc;
# mercury
# neptune
# earth
select * from teams;
select * from teams where id = 19;
select * from teams where id = 27;
select * from users where team_id = 27;
SELECT * FROM crm_configurations WHERE id = 42;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from activities where id = 631461;
SELECT * FROM crm_field_values WHERE crm_field_id = 180;
select * from teams where id = 2;
SELECT * FROM social_accounts WHERE sociable_id = 89;
SELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273
select * from activity_summary_logs where activity_id = 634273;
select * from sidekick_settings where team_id = 2;
select * from teams; # 2, 2
SELECT * FROM crm_configurations WHERE team_id = 2; # 2
select * from team_features where team_id = 2;
select * from features;
SELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';
SELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from users where team_id = 1 and id IN (7160, 3248);
select * from migrations order by id desc;
SELECT
CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,
u.email,
sa.*,
t.owner_id FROM social_accounts sa
JOIN users u on u.id = sa.sociable_id
JOIN teams t on t.id = u.team_id
WHERE u.team_id = 1 and sa.provider = 'salesforce';
select * from teams where id = 1;
select * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;
select * from groups where id = 565;
select * from playbooks where team_id = 1;
select * from playbooks where id = 175;
select * from playbook_categories where playbook_id = 175;
select * from users where team_id = 1;
select * from users where id = 7160;
select * from crm_profiles where user_id = 7160;
select * from features;
select
*
# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,
# crm_configuration_id, crm_provider_id, transcription_id, status
from activities where crm_configuration_id = 1 and type = 'conference'
# and crm_provider_id IS NOT NULL
and provider != 'uploader' and actual_start_time IS NOT NULL
ORDER by id desc;
select * from activities where id = 54747783; # 00UO400000pCzojMAC
select p.id, p.activity_type, pc.id, pc.name
FROM playbooks p
join playbook_categories pc on p.id = pc.playbook_id
where p.team_id = 1 and p.activity_type = 'event';
SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';
SELECT * FROM crm_field_values WHERE crm_field_id = 4;
select * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id
where crm_configuration_id = 1 and pl.playbook_id = 175;
select * from teams;
SELECT r.* FROM automated_reports r
join teams t on r.team_id = t.id
WHERE r.frequency = 'daily'
and r.status = 1
AND t.status = 'active'
AND (r.expires_at >= now() OR r.expires_at IS NULL);
select * from automated_report_results where report_id IN (18, 33);
select * from activity_searches where id = 10932;
select * from activity_search_filters where activity_search_id = 10932;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from automated_report_results where report_id IN (36);
Sync Changes
Hide This Notification
Code changed:
Hide
3
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Http\Controllers\Webhook;
use Carbon\Carbon;
use Illuminate\Contracts\Bus\Dispatcher as BusDispatcher;
use Illuminate\Contracts\Events\Dispatcher as EventDispatcher;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Exceptions\ModelNotFoundException;
use Jiminny\Http\Controllers\AbstractController;
use Jiminny\Jobs\AutomatedReports\SendReportJob;
use Jiminny\Models\AutomatedReportResult;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsCallbackService;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Psr\Log\LoggerInterface;
use Throwable;
class ReportController extends AbstractController
{
/**
* Log prefix for all log messages
*/
private const string LOG_PREFIX = '[Report Ready]';
public function __construct(
private readonly AutomatedReportsService $automatedReportsService,
private readonly BusDispatcher $dispatcher,
private readonly LoggerInterface $logger,
private readonly AutomatedReportsCallbackService $callbackService,
private readonly EventDispatcher $eventDispatcher,
) {
}
public function ready(Request $request): JsonResponse
{
$payload = $request->all();
$now = Carbon::now();
$this->logger->info(self::LOG_PREFIX . ' Webhook received', [
'payload' => $payload,
]);
// validate
$reportUuid = $this->callbackService->getResultUuid($payload);
if (empty($reportUuid)) {
return response()->json(['status' => 'error', 'message' => 'Request ID is empty'], status: 400);
}
try {
$report = $this->automatedReportsService->getReportResult($reportUuid);
// validate
if ($this->callbackService->isProcessed($report)) {
$this->logger->warning(self::LOG_PREFIX . ' Report has been already processed', [
'uuid' => $reportUuid,
'currentStatus' => $report->getStatusLabel(),
]);
return response()->json(['status' => 'already_processed']);
}
// always try to get a child podcast cause report configuration cannot be trusted
$reportPodcast = $this->automatedReportsService->findChildResult(
result: $report,
type: AutomatedReportsService::MEDIA_TYPE_PODCAST
);
// update results
$report->update([
'status' => $this->callbackService->getPrimaryStatus($report, $payload),
'response' => $payload,
'generated_at' => $now,
]);
// if a podcast is set, update it
$reportPodcast?->update([
'status' => $this->callbackService->getPodcastStatus($payload),
'response' => $payload,
'generated_at' => $now,
]);
$this->logger->info(self::LOG_PREFIX . ' Report has been processed', [
'uuid' => $reportUuid,
'child_uuid' => $reportPodcast?->getUuid(),
]);
if (! $this->callbackService->isSuccess($payload)) {
$this->logger->warning(self::LOG_PREFIX . ' Error creating report', $payload);
return response()->json(['status' => 'ok']);
}
// If one-off, send the report immediately, if not leave it for the scheduler (automated-reports:send)
if ($report->getReport()->getFrequency() === AutomatedReportsService::FREQUENCY_ONE_OFF) {
// send the primary report
$this->dispatcher->dispatch(new SendReportJob($reportUuid));
// send the podcast report if it set and generated
if ($reportPodcast && $reportPodcast->getStatus() === AutomatedReportResult::STATUS_GENERATED) {
$this->dispatcher->dispatch(new SendReportJob(reportUuid: $reportPodcast->getUuid()));
}
}
// Track Datadog metrics for automated reports
$automatedReport = $report->getReport();
$this->callbackService->pushToDatadog($automatedReport, $report);
if ($reportPodcast) {
$this->callbackService->pushToDatadog($automatedReport, $reportPodcast);
}
$this->eventDispatcher->dispatch(new AutomatedReportGenerated($automatedReport, $report));
} catch (ModelNotFoundException $exception) {
$this->logger->error(self::LOG_PREFIX . ' Report not found', [
'uuid' => $reportUuid,
'error' => $exception->getMessage(),
]);
return response()->json(['status' => 'error', 'message' => 'Report not found'], status: 404);
} catch (Throwable $exception) {
$this->logger->error(self::LOG_PREFIX . ' Failed to update report status', [
'uuid' => $reportUuid,
'error' => $exception->getMessage(),
]);
return response()->json(['status' => 'error', 'message' => 'Failed to update report status'], status: 500);
}
return response()->json(['status' => 'ok']);
}
}
Project
Project...
|
12783
|
|
12786
|
275
|
12
|
2026-04-14T11:39:08.117690+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166748117_m2.jpg...
|
PhpStorm
|
faVsco.js – ReportController.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error
Next Highlighted Error
SELECT * FROM teams WHERE id = 1;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;
SELECT * FROM crm_fields WHERE id = 2234;
SELECT * FROM crm_field_values WHERE crm_field_id = 2234;
select * from crm_profiles where user_id = 143;
select * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO
select * from business_processes where crm_configuration_id = 39;
# 01941000000H669AAC, 01941000000H66JAAS
select * from record_type_field_values
where record_type_id IN (24);
select * from crm_field_values where id IN (2730);
select * from crm_configurations where id = 39;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce'; #1035
select * from users where team_id = 1; # 222 group 3
SELECT * FROM activities WHERE user_id = 222 order by id desc;
select * from sidekick_settings where team_id = 1;
select * from teams where id = 1;
select * from team_features where team_id = 1;
select * from activities where crm_configuration_id = 2
and provider = 'ms-teams' and id = 608765;
SELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';
select * from sidekick_settings where team_id = 2;
SELECT * FROM activities WHERE id = 608660;
select * from activity_summary_logs where activity_id = 608660;
select * from ai_prompts where transcription_id = 11214;
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;
# id: 608818, crm: 59628809737
SELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;
# id: 608821, crm: 59632069252
SELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,
playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,
scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at
FROM activities a
join calendar_events ce on a.calendar_event_id = ce.id
WHERE a.id IN (608818, 608821);
select * from users where team_id = 1;
select * from team_settings where team_id = 1;
select * from crm_profiles where crm_configuration_id = 39 order by user_id;
select * from team_features where team_id = 1;
select * from users where team_id = 2;
SELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639
# Preslava N. Ivanova, grou id 3
SELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;
select * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';
select
a.id,
a.type,
a.scheduled_start_time,
a.actual_start_time,
a.created_at,
a.opportunity_id,
a.status
FROM activities a
WHERE opportunity_id = 344
and status IN ('completed', 'received', 'delivered')
and (
(a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))
;
SELECT * FROM users WHERE id = 222;
SELECT * FROM crm_profiles WHERE user_id = 222;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;
select * from group_deal_risk_types;
select * from opportunities where team_id = 1;
SELECT * FROM opportunities WHERE id = 315;
SELECT * FROM crm_field_data WHERE object_id = 315;
select * from crm_field_data where object_id = 260;
select * from generic_ai_prompts where subject_id = 315;
select * from teams; # 36, 21, 121, [EMAIL]
SELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';
# [PASSWORD_DOTS]
select * from teams where id = 1;
select * from crm_configurations where id = 39;
select * from users where team_id = 1;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 1;
# 1 - 00541000004281rAAA
# 204 - 0052g000003freeAAA
# 429 - 0052g000003qGOiAAM
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
select * from activities where type = 'softphone'
and created_at > '2024-12-11 15:24:36' order by id desc;
select * from activity_providers where team_id = 1;
select * from activity_provider_users where activity_provider_id = 328;
select * from opportunities where crm_configuration_id = 39
AND account_id = 178 AND is_closed = false
order by created_at DESC;
select * from contacts where id = 3952;
select * from accounts where id = 178;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations where id = 21;
select * from users where team_id = 36;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 36
and sa.provider = 'bullhorn';
select * from social_accounts where id = 348;
UPDATE social_accounts SET
provider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',
provider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',
expires = 1733998131,
state = 'connected'
WHERE id = 348;
# [PASSWORD_DOTS]
select * from teams where id = 31;
select * from crm_configurations where id = 18;
select * from users where team_id = 31; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 31;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 31
and sa.provider = 'close';
select * from contacts where crm_configuration_id = 18;
# [PASSWORD_DOTS] NEPTUNE [PASSWORD_DOTS]
select * from teams;
select * from users where id IN (1030, 1035, 1052);
select * from crm_configurations;
select * from users where team_id = 65; # 257
select * from team_settings where team_id = 65; # 257
select * from invitations where team_id = 65; # 257
select * from users where email = '[EMAIL]'; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 65;
select * from crm_configurations where id = 53;
select * from accounts where crm_configuration_id = 53 order by id desc;
select * from leads where crm_configuration_id = 53 order by id desc;
select * from contacts where crm_configuration_id = 53 order by id desc;
select * from opportunities where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 53 order by id desc;
select * from crm_fields where crm_configuration_id = 53 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 53 order by id desc;
select * from stages where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 13;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
and sa.provider = 'integration-app';
select * from contacts where crm_configuration_id = 13;
select * from social_accounts where sociable_id = 283;
SELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';
select * from activity_providers where team_id = 65;
SELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
;
# [PASSWORD_DOTS] STAGING [PASSWORD_DOTS]
SELECT * FROM teams;
SELECT * FROM teams WHERE id = 88;
SELECT * FROM teams WHERE id = 89;
select * from team_settings where team_id = 89;
SELECT * FROM users WHERE team_id = 89;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 89;
select * from users;
SELECT * FROM social_accounts WHERE sociable_id = 1761;
SELECT * FROM crm_configurations WHERE id = 70;
select * from accounts where crm_configuration_id = 70 order by id desc;
select * from leads where crm_configuration_id = 70 order by id desc;
select * from contacts where crm_configuration_id = 70 order by id desc;
select * from opportunities where crm_configuration_id = 70 order by id desc;
select * from crm_profiles where crm_configuration_id = 70 order by id desc;
select * from crm_fields where crm_configuration_id = 70 order by id desc;
select * from crm_field_values where crm_field_id = 3536 order by id desc;
select * from crm_layouts where crm_configuration_id = 70 order by id desc;
select * from stages where crm_configuration_id = 70 order by id desc;
select * from business_processes where crm_configuration_id = 70 order by id desc;
select * from business_process_stages where business_process_id = 34;
select * from contacts where id = 10468;
select * from crm_layouts where crm_configuration_id = 70;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;
SELECT * FROM crm_fields WHERE id IN (3533,3534,3535);
select * from activities where crm_configuration_id = 70
and (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;
SELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;
SELECT * FROM activities where crm_configuration_id = 69 ;
SELECT * FROM users WHERE email LIKE '%[EMAIL]%';
SELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;
SELECT * FROM opportunities WHERE id = 385;
select * from participants p
join activities a on p.activity_id = a.id
where a.crm_configuration_id = 70
and (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);
SELECT * FROM participants WHERE id = 1013638;
select * from teams where id = 90;
select * from users where team_id = 90;
select * from social_accounts where social_accounts.sociable_id IN (1960,1760);
SELECT * FROM crm_profiles WHERE crm_configuration_id = 71;
select * from invitations where team_id = 90;
select * from crm_configurations where id = 71;
select * from accounts where crm_configuration_id = 71 order by id desc;
select * from leads where crm_configuration_id = 71 order by id desc;
select * from contacts where crm_configuration_id = 71 order by id desc;
select * from opportunities where crm_configuration_id = 71 order by id desc;
select * from crm_profiles where crm_configuration_id = 71 order by id desc;
select * from crm_fields where crm_configuration_id = 71 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 71 order by id desc;
select * from stages where crm_configuration_id = 71 order by id desc;
select * from users order by secondary_email desc;
select u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa
join users u on sa.sociable_id = u.id
where sa.provider = 'google' and u.email LIKE 'aneliya%';
select * from failed_jobs order by id desc;
select * from users where email = '[EMAIL]' or secondary_email = '[EMAIL]';
select * from teams;
SELECT * FROM crm_profiles WHERE crm_configuration_id = 39;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;
SELECT * FROM crm_configurations WHERE id = 70;
select * from teams where id = 1;
select * from groups where team_id = 1;
select * from users where team_id = 1;
select o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o
join users u on o.user_id = u.id
join groups g on u.group_id = g.id
join role_user ru on u.id = ru.user_id
join roles r on ru.role_id = r.id
where o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';
select * from role_user where user_id = 143;
select * from roles;
select * from role_user;
select * from groups where id = 9;
select * from scope_groups where group_id = 9;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations;
SELECT * FROM social_accounts WHERE sociable_id = 121;
https://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105
https://crmsandbox.zoho.com/crm/
https://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080
https://crm.zoho.com/crm/
org3469620
SELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;
select * from users where email LIKE "%mobile_automation_%";
select * from social_accounts where sociable_id IN (2228);
select * from crm_profiles where user_id IN (2222,2223,2226,2227);
select * from teams order by id desc;
SELECT * FROM users WHERE id = 2229;
SELECT * FROM crm_profiles WHERE user_id = 2229;
select * from opportunities where crm_configuration_id = 88;
select * from crm_fields where crm_configuration_id = 88;
select * from crm_profiles where crm_configuration_id = 88;
SELECT * FROM teams WHERE id = 1;
SELECT * FROM users WHERE id = 143;
SELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;
https://app.staging.jiminny.com/ondemand?
min_duration=1
&
only_recorded=1
&
user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e
&
sequence_number=2
select * from users where team_id = 1 and email like '%stoyan%'
select * from coaching_feedbacks;
select * from teams;
SELECT * FROM users WHERE team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from users where id = 143;
SELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
select * from users where team_id = 2;
select * from activities where crm_configuration_id = 39
and activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'
AND user_id = 143
order by id desc;
# [PASSWORD_DOTS]
select * from teams where id = 142; # 2312, 126
select * from team_settings;
select * from users where team_id = 142; # 21642
SELECT * FROM social_accounts WHERE sociable_id = 21642;
SELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;
select * from crm_profiles where id IN (93);
select * from invitations;
select * from team_features where team_id = 1;
SELECT * FROM crm_configurations WHERE id = 126;
select * from accounts where crm_configuration_id = 126 order by id desc;
select * from leads where crm_configuration_id = 126 order by id desc;
select * from contacts where crm_configuration_id = 126 order by id desc;
select * from opportunities where crm_configuration_id = 126 order by id desc;
select * from crm_profiles where crm_configuration_id = 126 order by id desc;
select * from crm_fields where crm_configuration_id = 126 # 11060
# and type IN ('picklist', 'status')
# and object_type = 'task'
order by id desc;
# 5731,5732,5733
select DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;
select * from crm_layouts where crm_configuration_id = 126 order by id desc;
SELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);
select * from stages where crm_configuration_id = 126 order by id desc;
select * from business_processes where crm_configuration_id = 126 order by id desc;
select * from business_process_stages where business_process_id IN (76,75,74,73);
select * from playbooks where team_id = 142;
select * from playbook_layouts where playbook_id IN (108);
SELECT * FROM playbook_categories WHERE playbook_id IN (108);
select * from teams where id = 130;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 2
and sa.provider = 'hubspot';
SELECT * FROM activities
WHERE crm_configuration_id = 110;
select * from teams;
select * from crm_configurations;
SELECT * FROM activities WHERE id = 628773;
SELECT * FROM crm_profiles WHERE user_id = 1460;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from teams;
select ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id
join permission_role pr on pr.role_id = ru.role_id
join permissions p on p.id = pr.permission_id
where team_id = 495 and p.name IN ('dial');
select * from teams where id = 145;
select * from crm_configurations where id = 129;
select * from social_accounts where sociable_id = 2317;
SELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;
select * from teams where id = 1;
SELECT * FROM crm_layouts WHERE crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;
SELECT * FROM crm_layout_entities WHERE id = 5507;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');
select * from teams;
select * from activities where crm_configuration_id = 14;
SELECT * FROM social_accounts where provider = 'copper';
select * from activities where id = 628467;
select * from participants where activity_id = 628467;
SELECT * FROM contacts WHERE id = 3969;
SELECT * FROM accounts WHERE id = 177;
SELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;
# [PASSWORD_DOTS] BH
select * from teams where id = 36;
SELECT * FROM crm_configurations WHERE id = 21;
select * from activities where crm_configuration_id = 21 and id = 607901;
select * from activities where crm_configuration_id = 21;
select * roles;
select * from permissions;
select * from permission_role where permission_id = 226;
select * from migrations order by id desc;
# mercury
# neptune
# earth
select * from teams;
select * from teams where id = 19;
select * from teams where id = 27;
select * from users where team_id = 27;
SELECT * FROM crm_configurations WHERE id = 42;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from activities where id = 631461;
SELECT * FROM crm_field_values WHERE crm_field_id = 180;
select * from teams where id = 2;
SELECT * FROM social_accounts WHERE sociable_id = 89;
SELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273
select * from activity_summary_logs where activity_id = 634273;
select * from sidekick_settings where team_id = 2;
select * from teams; # 2, 2
SELECT * FROM crm_configurations WHERE team_id = 2; # 2
select * from team_features where team_id = 2;
select * from features;
SELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';
SELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from users where team_id = 1 and id IN (7160, 3248);
select * from migrations order by id desc;
SELECT
CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,
u.email,
sa.*,
t.owner_id FROM social_accounts sa
JOIN users u on u.id = sa.sociable_id
JOIN teams t on t.id = u.team_id
WHERE u.team_id = 1 and sa.provider = 'salesforce';
select * from teams where id = 1;
select * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;
select * from groups where id = 565;
select * from playbooks where team_id = 1;
select * from playbooks where id = 175;
select * from playbook_categories where playbook_id = 175;
select * from users where team_id = 1;
select * from users where id = 7160;
select * from crm_profiles where user_id = 7160;
select * from features;
select
*
# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,
# crm_configuration_id, crm_provider_id, transcription_id, status
from activities where crm_configuration_id = 1 and type = 'conference'
# and crm_provider_id IS NOT NULL
and provider != 'uploader' and actual_start_time IS NOT NULL
ORDER by id desc;
select * from activities where id = 54747783; # 00UO400000pCzojMAC
select p.id, p.activity_type, pc.id, pc.name
FROM playbooks p
join playbook_categories pc on p.id = pc.playbook_id
where p.team_id = 1 and p.activity_type = 'event';
SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';
SELECT * FROM crm_field_values WHERE crm_field_id = 4;
select * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id
where crm_configuration_id = 1 and pl.playbook_id = 175;
select * from teams;
SELECT r.* FROM automated_reports r
join teams t on r.team_id = t.id
WHERE r.frequency = 'daily'
and r.status = 1
AND t.status = 'active'
AND (r.expires_at >= now() OR r.expires_at IS NULL);
select * from automated_report_results where report_id IN (18, 33);
select * from activity_searches where id = 10932;
select * from activity_search_filters where activity_search_id = 10932;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from automated_report_results where report_id IN (36);
Sync Changes
Hide This Notification
Code changed:
Hide
3
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Http\Controllers\Webhook;
use Carbon\Carbon;
use Illuminate\Contracts\Bus\Dispatcher as BusDispatcher;
use Illuminate\Contracts\Events\Dispatcher as EventDispatcher;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Exceptions\ModelNotFoundException;
use Jiminny\Http\Controllers\AbstractController;
use Jiminny\Jobs\AutomatedReports\SendReportJob;
use Jiminny\Models\AutomatedReportResult;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsCallbackService;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Psr\Log\LoggerInterface;
use Throwable;
class ReportController extends AbstractController
{
/**
* Log prefix for all log messages
*/
private const string LOG_PREFIX = '[Report Ready]';
public function __construct(
private readonly AutomatedReportsService $automatedReportsService,
private readonly BusDispatcher $dispatcher,
private readonly LoggerInterface $logger,
private readonly AutomatedReportsCallbackService $callbackService,
private readonly EventDispatcher $eventDispatcher,
) {
}
public function ready(Request $request): JsonResponse
{
$payload = $request->all();
$now = Carbon::now();
$this->logger->info(self::LOG_PREFIX . ' Webhook received', [
'payload' => $payload,
]);
// validate
$reportUuid = $this->callbackService->getResultUuid($payload);
if (empty($reportUuid)) {
return response()->json(['status' => 'error', 'message' => 'Request ID is empty'], status: 400);
}
try {
$report = $this->automatedReportsService->getReportResult($reportUuid);
// validate
if ($this->callbackService->isProcessed($report)) {
$this->logger->warning(self::LOG_PREFIX . ' Report has been already processed', [
'uuid' => $reportUuid,
'currentStatus' => $report->getStatusLabel(),
]);
return response()->json(['status' => 'already_processed']);
}
// always try to get a child podcast cause report configuration cannot be trusted
$reportPodcast = $this->automatedReportsService->findChildResult(
result: $report,
type: AutomatedReportsService::MEDIA_TYPE_PODCAST
);
// update results
$report->update([
'status' => $this->callbackService->getPrimaryStatus($report, $payload),
'response' => $payload,
'generated_at' => $now,
]);
// if a podcast is set, update it
$reportPodcast?->update([
'status' => $this->callbackService->getPodcastStatus($payload),
'response' => $payload,
'generated_at' => $now,
]);
$this->logger->info(self::LOG_PREFIX . ' Report has been processed', [
'uuid' => $reportUuid,
'child_uuid' => $reportPodcast?->getUuid(),
]);
if (! $this->callbackService->isSuccess($payload)) {
$this->logger->warning(self::LOG_PREFIX . ' Error creating report', $payload);
return response()->json(['status' => 'ok']);
}
// If one-off, send the report immediately, if not leave it for the scheduler (automated-reports:send)
if ($report->getReport()->getFrequency() === AutomatedReportsService::FREQUENCY_ONE_OFF) {
// send the primary report
$this->dispatcher->dispatch(new SendReportJob($reportUuid));
// send the podcast report if it set and generated
if ($reportPodcast && $reportPodcast->getStatus() === AutomatedReportResult::STATUS_GENERATED) {
$this->dispatcher->dispatch(new SendReportJob(reportUuid: $reportPodcast->getUuid()));
}
}
// Track Datadog metrics for automated reports
$automatedReport = $report->getReport();
$this->callbackService->pushToDatadog($automatedReport, $report);
if ($reportPodcast) {
$this->callbackService->pushToDatadog($automatedReport, $reportPodcast);
}
$this->eventDispatcher->dispatch(new AutomatedReportGenerated($automatedReport, $report));
} catch (ModelNotFoundException $exception) {
$this->logger->error(self::LOG_PREFIX . ' Report not found', [
'uuid' => $reportUuid,
'error' => $exception->getMessage(),
]);
return response()->json(['status' => 'error', 'message' => 'Report not found'], status: 404);
} catch (Throwable $exception) {
$this->logger->error(self::LOG_PREFIX . ' Failed to update report status', [
'uuid' => $reportUuid,
'error' => $exception->getMessage(),
]);
return response()->json(['status' => 'error', 'message' => 'Failed to update report status'], status: 500);
}
return response()->json(['status' => 'ok']);
}
}
Project
Project
New File or Directory…...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.03046875,"top":0.017361112,"width":0.0453125,"height":0.022222223},"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"#11894 on JY-18909-automated-reports-ask-jiminny, menu","depth":5,"bounds":{"left":0.07578125,"top":0.017361112,"width":0.14257812,"height":0.022222223},"help_text":"Pull request #11894 exists for current branch JY-18909-automated-reports-ask-jiminny","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.78515625,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"AutomatedReportsCommandTest","depth":6,"bounds":{"left":0.803125,"top":0.017361112,"width":0.09765625,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'AutomatedReportsCommandTest'","depth":6,"bounds":{"left":0.9007813,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'AutomatedReportsCommandTest'","depth":6,"bounds":{"left":0.9140625,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9273437,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96015626,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9734375,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9867188,"top":0.017361112,"width":0.013281226,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Execute","depth":4,"bounds":{"left":0.46132812,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Explain Plan","depth":4,"bounds":{"left":0.47148436,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Browse Query History","depth":4,"bounds":{"left":0.484375,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"View Parameters","depth":4,"bounds":{"left":0.49453124,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Open Query Execution Settings…","depth":4,"bounds":{"left":0.5046875,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"In-Editor Results","depth":4,"bounds":{"left":0.5175781,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Tx: Auto","depth":4,"bounds":{"left":0.53046876,"top":0.08611111,"width":0.028515626,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Cancel Running Statements","depth":4,"bounds":{"left":0.56171876,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Playground","depth":4,"bounds":{"left":0.5746094,"top":0.08611111,"width":0.034765624,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"jiminny","depth":4,"bounds":{"left":0.67929685,"top":0.08611111,"width":0.033203125,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.049609374,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"17","depth":4,"bounds":{"left":0.65703124,"top":0.10763889,"width":0.0109375,"height":0.013194445},"role_description":"text"},{"role":"AXStaticText","text":"15","depth":4,"bounds":{"left":0.6703125,"top":0.10763889,"width":0.011328125,"height":0.013194445},"role_description":"text"},{"role":"AXStaticText","text":"13","depth":4,"bounds":{"left":0.6839844,"top":0.10763889,"width":0.011328125,"height":0.013194445},"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.6972656,"top":0.10625,"width":0.00859375,"height":0.015972223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.70585936,"top":0.10625,"width":0.008203125,"height":0.015972223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"SELECT * FROM teams WHERE id = 1;\n\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;\nSELECT * FROM crm_fields WHERE id = 2234;\nSELECT * FROM crm_field_values WHERE crm_field_id = 2234;\n\nselect * from crm_profiles where user_id = 143;\n\nselect * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO\nselect * from business_processes where crm_configuration_id = 39;\n# 01941000000H669AAC, 01941000000H66JAAS\n\nselect * from record_type_field_values\n where record_type_id IN (24);\n\nselect * from crm_field_values where id IN (2730);\n\nselect * from crm_configurations where id = 39;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce'; #1035\n\n\nselect * from users where team_id = 1; # 222 group 3\nSELECT * FROM activities WHERE user_id = 222 order by id desc;\nselect * from sidekick_settings where team_id = 1;\nselect * from teams where id = 1;\nselect * from team_features where team_id = 1;\n\nselect * from activities where crm_configuration_id = 2\nand provider = 'ms-teams' and id = 608765;\n\nSELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';\n\nselect * from sidekick_settings where team_id = 2;\n\nSELECT * FROM activities WHERE id = 608660;\nselect * from activity_summary_logs where activity_id = 608660;\nselect * from ai_prompts where transcription_id = 11214;\n\n# ********************************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;\n# id: 608818, crm: 59628809737\nSELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;\n# id: 608821, crm: 59632069252\nSELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,\nplaybook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,\nscheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at\nFROM activities a\njoin calendar_events ce on a.calendar_event_id = ce.id\nWHERE a.id IN (608818, 608821);\n\nselect * from users where team_id = 1;\nselect * from team_settings where team_id = 1;\nselect * from crm_profiles where crm_configuration_id = 39 order by user_id;\n\nselect * from team_features where team_id = 1;\n\nselect * from users where team_id = 2;\n\nSELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639\n# Preslava N. Ivanova, grou id 3\n\nSELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;\n\nselect * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';\n\nselect\n a.id,\n a.type,\n a.scheduled_start_time,\n a.actual_start_time,\n a.created_at,\n a.opportunity_id,\n a.status\nFROM activities a\nWHERE opportunity_id = 344\nand status IN ('completed', 'received', 'delivered')\nand (\n (a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))\n;\n\nSELECT * FROM users WHERE id = 222;\n\nSELECT * FROM crm_profiles WHERE user_id = 222;\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;\n\nselect * from group_deal_risk_types;\n\nselect * from opportunities where team_id = 1;\n\nSELECT * FROM opportunities WHERE id = 315;\nSELECT * FROM crm_field_data WHERE object_id = 315;\nselect * from crm_field_data where object_id = 260;\n\nselect * from generic_ai_prompts where subject_id = 315;\n\nselect * from teams; # 36, 21, 121, james.graham@bullhorn.jiminny.com\nSELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';\n\n# ************************************************************************************\nselect * from teams where id = 1;\nselect * from crm_configurations where id = 39;\nselect * from users where team_id = 1;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 1;\n# 1 - 00541000004281rAAA\n# 204 - 0052g000003freeAAA\n# 429 - 0052g000003qGOiAAM\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\nselect * from activities where type = 'softphone'\nand created_at > '2024-12-11 15:24:36' order by id desc;\n\nselect * from activity_providers where team_id = 1;\nselect * from activity_provider_users where activity_provider_id = 328;\n\nselect * from opportunities where crm_configuration_id = 39\nAND account_id = 178 AND is_closed = false\norder by created_at DESC;\n\nselect * from contacts where id = 3952;\nselect * from accounts where id = 178;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations where id = 21;\nselect * from users where team_id = 36;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 36;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 36\nand sa.provider = 'bullhorn';\n\nselect * from social_accounts where id = 348;\nUPDATE social_accounts SET\nprovider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',\nprovider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',\nexpires = 1733998131,\nstate = 'connected'\nWHERE id = 348;\n\n# ************************************************************************************\nselect * from teams where id = 31;\nselect * from crm_configurations where id = 18;\n\nselect * from users where team_id = 31; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 31;\n\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 31\nand sa.provider = 'close';\n\nselect * from contacts where crm_configuration_id = 18;\n\n# ********************** NEPTUNE **************************************************************\nselect * from teams;\nselect * from users where id IN (1030, 1035, 1052);\nselect * from crm_configurations;\n\nselect * from users where team_id = 65; # 257\nselect * from team_settings where team_id = 65; # 257\nselect * from invitations where team_id = 65; # 257\nselect * from users where email = 'integration-account@jiminny.com'; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 65;\n\nselect * from crm_configurations where id = 53;\nselect * from accounts where crm_configuration_id = 53 order by id desc;\nselect * from leads where crm_configuration_id = 53 order by id desc;\nselect * from contacts where crm_configuration_id = 53 order by id desc;\nselect * from opportunities where crm_configuration_id = 53 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 53 order by id desc;\nselect * from crm_fields where crm_configuration_id = 53 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 53 order by id desc;\nselect * from stages where crm_configuration_id = 53 order by id desc;\n\n\nselect * from crm_profiles where crm_configuration_id = 13;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\nand sa.provider = 'integration-app';\n\nselect * from contacts where crm_configuration_id = 13;\n\nselect * from social_accounts where sociable_id = 283;\n\nSELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';\n\nselect * from activity_providers where team_id = 65;\nSELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\n;\n\n# ***************************** STAGING ********************************************\nSELECT * FROM teams;\nSELECT * FROM teams WHERE id = 88;\nSELECT * FROM teams WHERE id = 89;\nselect * from team_settings where team_id = 89;\nSELECT * FROM users WHERE team_id = 89;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 89;\n\nselect * from users;\nSELECT * FROM social_accounts WHERE sociable_id = 1761;\nSELECT * FROM crm_configurations WHERE id = 70;\nselect * from accounts where crm_configuration_id = 70 order by id desc;\nselect * from leads where crm_configuration_id = 70 order by id desc;\nselect * from contacts where crm_configuration_id = 70 order by id desc;\nselect * from opportunities where crm_configuration_id = 70 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 70 order by id desc;\nselect * from crm_fields where crm_configuration_id = 70 order by id desc;\nselect * from crm_field_values where crm_field_id = 3536 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 70 order by id desc;\nselect * from stages where crm_configuration_id = 70 order by id desc;\nselect * from business_processes where crm_configuration_id = 70 order by id desc;\nselect * from business_process_stages where business_process_id = 34;\n\nselect * from contacts where id = 10468;\n\nselect * from crm_layouts where crm_configuration_id = 70;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;\nSELECT * FROM crm_fields WHERE id IN (3533,3534,3535);\n\nselect * from activities where crm_configuration_id = 70\nand (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;\n\nSELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;\nSELECT * FROM activities where crm_configuration_id = 69 ;\n\nSELECT * FROM users WHERE email LIKE '%jiminny_web_sa2@jiminny.com%';\nSELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;\nSELECT * FROM opportunities WHERE id = 385;\n\nselect * from participants p\njoin activities a on p.activity_id = a.id\nwhere a.crm_configuration_id = 70\nand (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);\nSELECT * FROM participants WHERE id = 1013638;\n\nselect * from teams where id = 90;\nselect * from users where team_id = 90;\nselect * from social_accounts where social_accounts.sociable_id IN (1960,1760);\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 71;\nselect * from invitations where team_id = 90;\n\nselect * from crm_configurations where id = 71;\nselect * from accounts where crm_configuration_id = 71 order by id desc;\nselect * from leads where crm_configuration_id = 71 order by id desc;\nselect * from contacts where crm_configuration_id = 71 order by id desc;\nselect * from opportunities where crm_configuration_id = 71 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 71 order by id desc;\nselect * from crm_fields where crm_configuration_id = 71 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 71 order by id desc;\nselect * from stages where crm_configuration_id = 71 order by id desc;\n\nselect * from users order by secondary_email desc;\nselect u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa\n join users u on sa.sociable_id = u.id\nwhere sa.provider = 'google' and u.email LIKE 'aneliya%';\n\nselect * from failed_jobs order by id desc;\n\nselect * from users where email = 'ben.allwright@learningpeople.co.uk' or secondary_email = 'ben.allwright@learningpeople.co.uk';\n\nselect * from teams;\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 39;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\n# ************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;\nSELECT * FROM crm_configurations WHERE id = 70;\n\nselect * from teams where id = 1;\nselect * from groups where team_id = 1;\nselect * from users where team_id = 1;\n\nselect o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o\njoin users u on o.user_id = u.id\njoin groups g on u.group_id = g.id\njoin role_user ru on u.id = ru.user_id\njoin roles r on ru.role_id = r.id\nwhere o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';\n\nselect * from role_user where user_id = 143;\nselect * from roles;\n\nselect * from role_user;\nselect * from groups where id = 9;\nselect * from scope_groups where group_id = 9;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations;\nSELECT * FROM social_accounts WHERE sociable_id = 121;\n\nhttps://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105\nhttps://crmsandbox.zoho.com/crm/\n\nhttps://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080\n https://crm.zoho.com/crm/\n org3469620\n\nSELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;\n\nselect * from users where email LIKE \"%mobile_automation_%\";\nselect * from social_accounts where sociable_id IN (2228);\nselect * from crm_profiles where user_id IN (2222,2223,2226,2227);\n\nselect * from teams order by id desc;\nSELECT * FROM users WHERE id = 2229;\nSELECT * FROM crm_profiles WHERE user_id = 2229;\nselect * from opportunities where crm_configuration_id = 88;\nselect * from crm_fields where crm_configuration_id = 88;\nselect * from crm_profiles where crm_configuration_id = 88;\n\nSELECT * FROM teams WHERE id = 1;\n\nSELECT * FROM users WHERE id = 143;\nSELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;\n\nhttps://app.staging.jiminny.com/ondemand?\n min_duration=1\n &\n only_recorded=1\n &\n user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e\n &\n sequence_number=2\n\n select * from users where team_id = 1 and email like '%stoyan%'\n\nselect * from coaching_feedbacks;\n\nselect * from teams;\nSELECT * FROM users WHERE team_id = 36;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from users where id = 143;\n\nSELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\n\nselect * from users where team_id = 2;\nselect * from activities where crm_configuration_id = 39\nand activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'\nAND user_id = 143\norder by id desc;\n\n# ************************************************************************************\nselect * from teams where id = 142; # 2312, 126\nselect * from team_settings;\nselect * from users where team_id = 142; # 21642\nSELECT * FROM social_accounts WHERE sociable_id = 21642;\nSELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;\nselect * from crm_profiles where id IN (93);\nselect * from invitations;\nselect * from team_features where team_id = 1;\n\nSELECT * FROM crm_configurations WHERE id = 126;\nselect * from accounts where crm_configuration_id = 126 order by id desc;\nselect * from leads where crm_configuration_id = 126 order by id desc;\nselect * from contacts where crm_configuration_id = 126 order by id desc;\nselect * from opportunities where crm_configuration_id = 126 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 126 order by id desc;\nselect * from crm_fields where crm_configuration_id = 126 # 11060\n# and type IN ('picklist', 'status')\n# and object_type = 'task'\norder by id desc;\n# 5731,5732,5733\nselect DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;\nselect * from crm_layouts where crm_configuration_id = 126 order by id desc;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);\nselect * from stages where crm_configuration_id = 126 order by id desc;\nselect * from business_processes where crm_configuration_id = 126 order by id desc;\nselect * from business_process_stages where business_process_id IN (76,75,74,73);\nselect * from playbooks where team_id = 142;\nselect * from playbook_layouts where playbook_id IN (108);\nSELECT * FROM playbook_categories WHERE playbook_id IN (108);\n\nselect * from teams where id = 130;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 2\nand sa.provider = 'hubspot';\n\nSELECT * FROM activities\n WHERE crm_configuration_id = 110;\n\nselect * from teams;\nselect * from crm_configurations;\n\nSELECT * FROM activities WHERE id = 628773;\nSELECT * FROM crm_profiles WHERE user_id = 1460;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from teams;\nselect ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id\njoin permission_role pr on pr.role_id = ru.role_id\n join permissions p on p.id = pr.permission_id\nwhere team_id = 495 and p.name IN ('dial');\n\nselect * from teams where id = 145;\nselect * from crm_configurations where id = 129;\nselect * from social_accounts where sociable_id = 2317;\nSELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;\n\nselect * from teams where id = 1;\nSELECT * FROM crm_layouts WHERE crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;\nSELECT * FROM crm_layout_entities WHERE id = 5507;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');\n\nselect * from teams;\nselect * from activities where crm_configuration_id = 14;\n\nSELECT * FROM social_accounts where provider = 'copper';\n\nselect * from activities where id = 628467;\nselect * from participants where activity_id = 628467;\n\nSELECT * FROM contacts WHERE id = 3969;\nSELECT * FROM accounts WHERE id = 177;\n\nSELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;\n\n# ********************* BH\nselect * from teams where id = 36;\nSELECT * FROM crm_configurations WHERE id = 21;\nselect * from activities where crm_configuration_id = 21 and id = 607901;\nselect * from activities where crm_configuration_id = 21;\n\nselect * roles;\nselect * from permissions;\nselect * from permission_role where permission_id = 226;\n\nselect * from migrations order by id desc;\n\n# mercury\n# neptune\n# earth\n\nselect * from teams;\nselect * from teams where id = 19;\nselect * from teams where id = 27;\nselect * from users where team_id = 27;\nSELECT * FROM crm_configurations WHERE id = 42;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from activities where id = 631461;\nSELECT * FROM crm_field_values WHERE crm_field_id = 180;\n\nselect * from teams where id = 2;\nSELECT * FROM social_accounts WHERE sociable_id = 89;\n\nSELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273\nselect * from activity_summary_logs where activity_id = 634273;\n\nselect * from sidekick_settings where team_id = 2;\n\nselect * from teams; # 2, 2\nSELECT * FROM crm_configurations WHERE team_id = 2; # 2\nselect * from team_features where team_id = 2;\nselect * from features;\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;\n\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from users where team_id = 1 and id IN (7160, 3248);\nselect * from migrations order by id desc;\n\nSELECT\n CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,\n u.email,\n sa.*,\n t.owner_id FROM social_accounts sa\nJOIN users u on u.id = sa.sociable_id\nJOIN teams t on t.id = u.team_id\nWHERE u.team_id = 1 and sa.provider = 'salesforce';\n\nselect * from teams where id = 1;\nselect * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;\nselect * from groups where id = 565;\nselect * from playbooks where team_id = 1;\nselect * from playbooks where id = 175;\nselect * from playbook_categories where playbook_id = 175;\nselect * from users where team_id = 1;\nselect * from users where id = 7160;\nselect * from crm_profiles where user_id = 7160;\nselect * from features;\nselect\n *\n# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,\n# crm_configuration_id, crm_provider_id, transcription_id, status\nfrom activities where crm_configuration_id = 1 and type = 'conference'\n# and crm_provider_id IS NOT NULL\nand provider != 'uploader' and actual_start_time IS NOT NULL\nORDER by id desc;\nselect * from activities where id = 54747783; # 00UO400000pCzojMAC\n\nselect p.id, p.activity_type, pc.id, pc.name\nFROM playbooks p\njoin playbook_categories pc on p.id = pc.playbook_id\nwhere p.team_id = 1 and p.activity_type = 'event';\n\nSELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';\nSELECT * FROM crm_field_values WHERE crm_field_id = 4;\n\nselect * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id\nwhere crm_configuration_id = 1 and pl.playbook_id = 175;\n\nselect * from teams;\nSELECT r.* FROM automated_reports r\njoin teams t on r.team_id = t.id\nWHERE r.frequency = 'daily'\n and r.status = 1\nAND t.status = 'active'\nAND (r.expires_at >= now() OR r.expires_at IS NULL);\n\nselect * from automated_report_results where report_id IN (18, 33);\n\nselect * from activity_searches where id = 10932;\nselect * from activity_search_filters where activity_search_id = 10932;\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from automated_report_results where report_id IN (36);","depth":4,"value":"SELECT * FROM teams WHERE id = 1;\n\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;\nSELECT * FROM crm_fields WHERE id = 2234;\nSELECT * FROM crm_field_values WHERE crm_field_id = 2234;\n\nselect * from crm_profiles where user_id = 143;\n\nselect * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO\nselect * from business_processes where crm_configuration_id = 39;\n# 01941000000H669AAC, 01941000000H66JAAS\n\nselect * from record_type_field_values\n where record_type_id IN (24);\n\nselect * from crm_field_values where id IN (2730);\n\nselect * from crm_configurations where id = 39;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce'; #1035\n\n\nselect * from users where team_id = 1; # 222 group 3\nSELECT * FROM activities WHERE user_id = 222 order by id desc;\nselect * from sidekick_settings where team_id = 1;\nselect * from teams where id = 1;\nselect * from team_features where team_id = 1;\n\nselect * from activities where crm_configuration_id = 2\nand provider = 'ms-teams' and id = 608765;\n\nSELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';\n\nselect * from sidekick_settings where team_id = 2;\n\nSELECT * FROM activities WHERE id = 608660;\nselect * from activity_summary_logs where activity_id = 608660;\nselect * from ai_prompts where transcription_id = 11214;\n\n# ********************************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;\n# id: 608818, crm: 59628809737\nSELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;\n# id: 608821, crm: 59632069252\nSELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,\nplaybook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,\nscheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at\nFROM activities a\njoin calendar_events ce on a.calendar_event_id = ce.id\nWHERE a.id IN (608818, 608821);\n\nselect * from users where team_id = 1;\nselect * from team_settings where team_id = 1;\nselect * from crm_profiles where crm_configuration_id = 39 order by user_id;\n\nselect * from team_features where team_id = 1;\n\nselect * from users where team_id = 2;\n\nSELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639\n# Preslava N. Ivanova, grou id 3\n\nSELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;\n\nselect * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';\n\nselect\n a.id,\n a.type,\n a.scheduled_start_time,\n a.actual_start_time,\n a.created_at,\n a.opportunity_id,\n a.status\nFROM activities a\nWHERE opportunity_id = 344\nand status IN ('completed', 'received', 'delivered')\nand (\n (a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))\n;\n\nSELECT * FROM users WHERE id = 222;\n\nSELECT * FROM crm_profiles WHERE user_id = 222;\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;\n\nselect * from group_deal_risk_types;\n\nselect * from opportunities where team_id = 1;\n\nSELECT * FROM opportunities WHERE id = 315;\nSELECT * FROM crm_field_data WHERE object_id = 315;\nselect * from crm_field_data where object_id = 260;\n\nselect * from generic_ai_prompts where subject_id = 315;\n\nselect * from teams; # 36, 21, 121, james.graham@bullhorn.jiminny.com\nSELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';\n\n# ************************************************************************************\nselect * from teams where id = 1;\nselect * from crm_configurations where id = 39;\nselect * from users where team_id = 1;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 1;\n# 1 - 00541000004281rAAA\n# 204 - 0052g000003freeAAA\n# 429 - 0052g000003qGOiAAM\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\nselect * from activities where type = 'softphone'\nand created_at > '2024-12-11 15:24:36' order by id desc;\n\nselect * from activity_providers where team_id = 1;\nselect * from activity_provider_users where activity_provider_id = 328;\n\nselect * from opportunities where crm_configuration_id = 39\nAND account_id = 178 AND is_closed = false\norder by created_at DESC;\n\nselect * from contacts where id = 3952;\nselect * from accounts where id = 178;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations where id = 21;\nselect * from users where team_id = 36;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 36;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 36\nand sa.provider = 'bullhorn';\n\nselect * from social_accounts where id = 348;\nUPDATE social_accounts SET\nprovider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',\nprovider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',\nexpires = 1733998131,\nstate = 'connected'\nWHERE id = 348;\n\n# ************************************************************************************\nselect * from teams where id = 31;\nselect * from crm_configurations where id = 18;\n\nselect * from users where team_id = 31; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 31;\n\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 31\nand sa.provider = 'close';\n\nselect * from contacts where crm_configuration_id = 18;\n\n# ********************** NEPTUNE **************************************************************\nselect * from teams;\nselect * from users where id IN (1030, 1035, 1052);\nselect * from crm_configurations;\n\nselect * from users where team_id = 65; # 257\nselect * from team_settings where team_id = 65; # 257\nselect * from invitations where team_id = 65; # 257\nselect * from users where email = 'integration-account@jiminny.com'; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 65;\n\nselect * from crm_configurations where id = 53;\nselect * from accounts where crm_configuration_id = 53 order by id desc;\nselect * from leads where crm_configuration_id = 53 order by id desc;\nselect * from contacts where crm_configuration_id = 53 order by id desc;\nselect * from opportunities where crm_configuration_id = 53 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 53 order by id desc;\nselect * from crm_fields where crm_configuration_id = 53 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 53 order by id desc;\nselect * from stages where crm_configuration_id = 53 order by id desc;\n\n\nselect * from crm_profiles where crm_configuration_id = 13;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\nand sa.provider = 'integration-app';\n\nselect * from contacts where crm_configuration_id = 13;\n\nselect * from social_accounts where sociable_id = 283;\n\nSELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';\n\nselect * from activity_providers where team_id = 65;\nSELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\n;\n\n# ***************************** STAGING ********************************************\nSELECT * FROM teams;\nSELECT * FROM teams WHERE id = 88;\nSELECT * FROM teams WHERE id = 89;\nselect * from team_settings where team_id = 89;\nSELECT * FROM users WHERE team_id = 89;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 89;\n\nselect * from users;\nSELECT * FROM social_accounts WHERE sociable_id = 1761;\nSELECT * FROM crm_configurations WHERE id = 70;\nselect * from accounts where crm_configuration_id = 70 order by id desc;\nselect * from leads where crm_configuration_id = 70 order by id desc;\nselect * from contacts where crm_configuration_id = 70 order by id desc;\nselect * from opportunities where crm_configuration_id = 70 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 70 order by id desc;\nselect * from crm_fields where crm_configuration_id = 70 order by id desc;\nselect * from crm_field_values where crm_field_id = 3536 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 70 order by id desc;\nselect * from stages where crm_configuration_id = 70 order by id desc;\nselect * from business_processes where crm_configuration_id = 70 order by id desc;\nselect * from business_process_stages where business_process_id = 34;\n\nselect * from contacts where id = 10468;\n\nselect * from crm_layouts where crm_configuration_id = 70;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;\nSELECT * FROM crm_fields WHERE id IN (3533,3534,3535);\n\nselect * from activities where crm_configuration_id = 70\nand (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;\n\nSELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;\nSELECT * FROM activities where crm_configuration_id = 69 ;\n\nSELECT * FROM users WHERE email LIKE '%jiminny_web_sa2@jiminny.com%';\nSELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;\nSELECT * FROM opportunities WHERE id = 385;\n\nselect * from participants p\njoin activities a on p.activity_id = a.id\nwhere a.crm_configuration_id = 70\nand (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);\nSELECT * FROM participants WHERE id = 1013638;\n\nselect * from teams where id = 90;\nselect * from users where team_id = 90;\nselect * from social_accounts where social_accounts.sociable_id IN (1960,1760);\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 71;\nselect * from invitations where team_id = 90;\n\nselect * from crm_configurations where id = 71;\nselect * from accounts where crm_configuration_id = 71 order by id desc;\nselect * from leads where crm_configuration_id = 71 order by id desc;\nselect * from contacts where crm_configuration_id = 71 order by id desc;\nselect * from opportunities where crm_configuration_id = 71 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 71 order by id desc;\nselect * from crm_fields where crm_configuration_id = 71 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 71 order by id desc;\nselect * from stages where crm_configuration_id = 71 order by id desc;\n\nselect * from users order by secondary_email desc;\nselect u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa\n join users u on sa.sociable_id = u.id\nwhere sa.provider = 'google' and u.email LIKE 'aneliya%';\n\nselect * from failed_jobs order by id desc;\n\nselect * from users where email = 'ben.allwright@learningpeople.co.uk' or secondary_email = 'ben.allwright@learningpeople.co.uk';\n\nselect * from teams;\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 39;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\n# ************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;\nSELECT * FROM crm_configurations WHERE id = 70;\n\nselect * from teams where id = 1;\nselect * from groups where team_id = 1;\nselect * from users where team_id = 1;\n\nselect o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o\njoin users u on o.user_id = u.id\njoin groups g on u.group_id = g.id\njoin role_user ru on u.id = ru.user_id\njoin roles r on ru.role_id = r.id\nwhere o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';\n\nselect * from role_user where user_id = 143;\nselect * from roles;\n\nselect * from role_user;\nselect * from groups where id = 9;\nselect * from scope_groups where group_id = 9;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations;\nSELECT * FROM social_accounts WHERE sociable_id = 121;\n\nhttps://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105\nhttps://crmsandbox.zoho.com/crm/\n\nhttps://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080\n https://crm.zoho.com/crm/\n org3469620\n\nSELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;\n\nselect * from users where email LIKE \"%mobile_automation_%\";\nselect * from social_accounts where sociable_id IN (2228);\nselect * from crm_profiles where user_id IN (2222,2223,2226,2227);\n\nselect * from teams order by id desc;\nSELECT * FROM users WHERE id = 2229;\nSELECT * FROM crm_profiles WHERE user_id = 2229;\nselect * from opportunities where crm_configuration_id = 88;\nselect * from crm_fields where crm_configuration_id = 88;\nselect * from crm_profiles where crm_configuration_id = 88;\n\nSELECT * FROM teams WHERE id = 1;\n\nSELECT * FROM users WHERE id = 143;\nSELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;\n\nhttps://app.staging.jiminny.com/ondemand?\n min_duration=1\n &\n only_recorded=1\n &\n user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e\n &\n sequence_number=2\n\n select * from users where team_id = 1 and email like '%stoyan%'\n\nselect * from coaching_feedbacks;\n\nselect * from teams;\nSELECT * FROM users WHERE team_id = 36;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from users where id = 143;\n\nSELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\n\nselect * from users where team_id = 2;\nselect * from activities where crm_configuration_id = 39\nand activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'\nAND user_id = 143\norder by id desc;\n\n# ************************************************************************************\nselect * from teams where id = 142; # 2312, 126\nselect * from team_settings;\nselect * from users where team_id = 142; # 21642\nSELECT * FROM social_accounts WHERE sociable_id = 21642;\nSELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;\nselect * from crm_profiles where id IN (93);\nselect * from invitations;\nselect * from team_features where team_id = 1;\n\nSELECT * FROM crm_configurations WHERE id = 126;\nselect * from accounts where crm_configuration_id = 126 order by id desc;\nselect * from leads where crm_configuration_id = 126 order by id desc;\nselect * from contacts where crm_configuration_id = 126 order by id desc;\nselect * from opportunities where crm_configuration_id = 126 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 126 order by id desc;\nselect * from crm_fields where crm_configuration_id = 126 # 11060\n# and type IN ('picklist', 'status')\n# and object_type = 'task'\norder by id desc;\n# 5731,5732,5733\nselect DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;\nselect * from crm_layouts where crm_configuration_id = 126 order by id desc;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);\nselect * from stages where crm_configuration_id = 126 order by id desc;\nselect * from business_processes where crm_configuration_id = 126 order by id desc;\nselect * from business_process_stages where business_process_id IN (76,75,74,73);\nselect * from playbooks where team_id = 142;\nselect * from playbook_layouts where playbook_id IN (108);\nSELECT * FROM playbook_categories WHERE playbook_id IN (108);\n\nselect * from teams where id = 130;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 2\nand sa.provider = 'hubspot';\n\nSELECT * FROM activities\n WHERE crm_configuration_id = 110;\n\nselect * from teams;\nselect * from crm_configurations;\n\nSELECT * FROM activities WHERE id = 628773;\nSELECT * FROM crm_profiles WHERE user_id = 1460;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from teams;\nselect ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id\njoin permission_role pr on pr.role_id = ru.role_id\n join permissions p on p.id = pr.permission_id\nwhere team_id = 495 and p.name IN ('dial');\n\nselect * from teams where id = 145;\nselect * from crm_configurations where id = 129;\nselect * from social_accounts where sociable_id = 2317;\nSELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;\n\nselect * from teams where id = 1;\nSELECT * FROM crm_layouts WHERE crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;\nSELECT * FROM crm_layout_entities WHERE id = 5507;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');\n\nselect * from teams;\nselect * from activities where crm_configuration_id = 14;\n\nSELECT * FROM social_accounts where provider = 'copper';\n\nselect * from activities where id = 628467;\nselect * from participants where activity_id = 628467;\n\nSELECT * FROM contacts WHERE id = 3969;\nSELECT * FROM accounts WHERE id = 177;\n\nSELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;\n\n# ********************* BH\nselect * from teams where id = 36;\nSELECT * FROM crm_configurations WHERE id = 21;\nselect * from activities where crm_configuration_id = 21 and id = 607901;\nselect * from activities where crm_configuration_id = 21;\n\nselect * roles;\nselect * from permissions;\nselect * from permission_role where permission_id = 226;\n\nselect * from migrations order by id desc;\n\n# mercury\n# neptune\n# earth\n\nselect * from teams;\nselect * from teams where id = 19;\nselect * from teams where id = 27;\nselect * from users where team_id = 27;\nSELECT * FROM crm_configurations WHERE id = 42;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from activities where id = 631461;\nSELECT * FROM crm_field_values WHERE crm_field_id = 180;\n\nselect * from teams where id = 2;\nSELECT * FROM social_accounts WHERE sociable_id = 89;\n\nSELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273\nselect * from activity_summary_logs where activity_id = 634273;\n\nselect * from sidekick_settings where team_id = 2;\n\nselect * from teams; # 2, 2\nSELECT * FROM crm_configurations WHERE team_id = 2; # 2\nselect * from team_features where team_id = 2;\nselect * from features;\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;\n\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from users where team_id = 1 and id IN (7160, 3248);\nselect * from migrations order by id desc;\n\nSELECT\n CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,\n u.email,\n sa.*,\n t.owner_id FROM social_accounts sa\nJOIN users u on u.id = sa.sociable_id\nJOIN teams t on t.id = u.team_id\nWHERE u.team_id = 1 and sa.provider = 'salesforce';\n\nselect * from teams where id = 1;\nselect * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;\nselect * from groups where id = 565;\nselect * from playbooks where team_id = 1;\nselect * from playbooks where id = 175;\nselect * from playbook_categories where playbook_id = 175;\nselect * from users where team_id = 1;\nselect * from users where id = 7160;\nselect * from crm_profiles where user_id = 7160;\nselect * from features;\nselect\n *\n# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,\n# crm_configuration_id, crm_provider_id, transcription_id, status\nfrom activities where crm_configuration_id = 1 and type = 'conference'\n# and crm_provider_id IS NOT NULL\nand provider != 'uploader' and actual_start_time IS NOT NULL\nORDER by id desc;\nselect * from activities where id = 54747783; # 00UO400000pCzojMAC\n\nselect p.id, p.activity_type, pc.id, pc.name\nFROM playbooks p\njoin playbook_categories pc on p.id = pc.playbook_id\nwhere p.team_id = 1 and p.activity_type = 'event';\n\nSELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';\nSELECT * FROM crm_field_values WHERE crm_field_id = 4;\n\nselect * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id\nwhere crm_configuration_id = 1 and pl.playbook_id = 175;\n\nselect * from teams;\nSELECT r.* FROM automated_reports r\njoin teams t on r.team_id = t.id\nWHERE r.frequency = 'daily'\n and r.status = 1\nAND t.status = 'active'\nAND (r.expires_at >= now() OR r.expires_at IS NULL);\n\nselect * from automated_report_results where report_id IN (18, 33);\n\nselect * from activity_searches where id = 10932;\nselect * from activity_search_filters where activity_search_id = 10932;\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from automated_report_results where report_id IN (36);","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.049609374,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"3","depth":4,"bounds":{"left":0.43125,"top":0.1736111,"width":0.009375,"height":0.013194445},"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.44257814,"top":0.17222223,"width":0.00859375,"height":0.015972223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.45117188,"top":0.17222223,"width":0.008203125,"height":0.015972223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\ndeclare(strict_types=1);\n\nnamespace Jiminny\\Http\\Controllers\\Webhook;\n\nuse Carbon\\Carbon;\nuse Illuminate\\Contracts\\Bus\\Dispatcher as BusDispatcher;\nuse Illuminate\\Contracts\\Events\\Dispatcher as EventDispatcher;\nuse Illuminate\\Http\\JsonResponse;\nuse Illuminate\\Http\\Request;\nuse Jiminny\\Events\\AutomatedReports\\AutomatedReportGenerated;\nuse Jiminny\\Exceptions\\ModelNotFoundException;\nuse Jiminny\\Http\\Controllers\\AbstractController;\nuse Jiminny\\Jobs\\AutomatedReports\\SendReportJob;\nuse Jiminny\\Models\\AutomatedReportResult;\nuse Jiminny\\Services\\Kiosk\\AutomatedReports\\AutomatedReportsCallbackService;\nuse Jiminny\\Services\\Kiosk\\AutomatedReports\\AutomatedReportsService;\nuse Psr\\Log\\LoggerInterface;\nuse Throwable;\n\nclass ReportController extends AbstractController\n{\n /**\n * Log prefix for all log messages\n */\n private const string LOG_PREFIX = '[Report Ready]';\n\n public function __construct(\n private readonly AutomatedReportsService $automatedReportsService,\n private readonly BusDispatcher $dispatcher,\n private readonly LoggerInterface $logger,\n private readonly AutomatedReportsCallbackService $callbackService,\n private readonly EventDispatcher $eventDispatcher,\n ) {\n }\n\n public function ready(Request $request): JsonResponse\n {\n $payload = $request->all();\n $now = Carbon::now();\n\n $this->logger->info(self::LOG_PREFIX . ' Webhook received', [\n 'payload' => $payload,\n ]);\n\n // validate\n $reportUuid = $this->callbackService->getResultUuid($payload);\n if (empty($reportUuid)) {\n return response()->json(['status' => 'error', 'message' => 'Request ID is empty'], status: 400);\n }\n\n try {\n $report = $this->automatedReportsService->getReportResult($reportUuid);\n\n // validate\n if ($this->callbackService->isProcessed($report)) {\n $this->logger->warning(self::LOG_PREFIX . ' Report has been already processed', [\n 'uuid' => $reportUuid,\n 'currentStatus' => $report->getStatusLabel(),\n ]);\n\n return response()->json(['status' => 'already_processed']);\n }\n\n // always try to get a child podcast cause report configuration cannot be trusted\n $reportPodcast = $this->automatedReportsService->findChildResult(\n result: $report,\n type: AutomatedReportsService::MEDIA_TYPE_PODCAST\n );\n\n // update results\n $report->update([\n 'status' => $this->callbackService->getPrimaryStatus($report, $payload),\n 'response' => $payload,\n 'generated_at' => $now,\n ]);\n // if a podcast is set, update it\n $reportPodcast?->update([\n 'status' => $this->callbackService->getPodcastStatus($payload),\n 'response' => $payload,\n 'generated_at' => $now,\n ]);\n\n $this->logger->info(self::LOG_PREFIX . ' Report has been processed', [\n 'uuid' => $reportUuid,\n 'child_uuid' => $reportPodcast?->getUuid(),\n ]);\n\n if (! $this->callbackService->isSuccess($payload)) {\n $this->logger->warning(self::LOG_PREFIX . ' Error creating report', $payload);\n\n return response()->json(['status' => 'ok']);\n }\n\n // If one-off, send the report immediately, if not leave it for the scheduler (automated-reports:send)\n if ($report->getReport()->getFrequency() === AutomatedReportsService::FREQUENCY_ONE_OFF) {\n // send the primary report\n $this->dispatcher->dispatch(new SendReportJob($reportUuid));\n\n // send the podcast report if it set and generated\n if ($reportPodcast && $reportPodcast->getStatus() === AutomatedReportResult::STATUS_GENERATED) {\n $this->dispatcher->dispatch(new SendReportJob(reportUuid: $reportPodcast->getUuid()));\n }\n }\n\n // Track Datadog metrics for automated reports\n $automatedReport = $report->getReport();\n $this->callbackService->pushToDatadog($automatedReport, $report);\n\n if ($reportPodcast) {\n $this->callbackService->pushToDatadog($automatedReport, $reportPodcast);\n }\n\n $this->eventDispatcher->dispatch(new AutomatedReportGenerated($automatedReport, $report));\n } catch (ModelNotFoundException $exception) {\n $this->logger->error(self::LOG_PREFIX . ' Report not found', [\n 'uuid' => $reportUuid,\n 'error' => $exception->getMessage(),\n ]);\n\n return response()->json(['status' => 'error', 'message' => 'Report not found'], status: 404);\n } catch (Throwable $exception) {\n $this->logger->error(self::LOG_PREFIX . ' Failed to update report status', [\n 'uuid' => $reportUuid,\n 'error' => $exception->getMessage(),\n ]);\n\n return response()->json(['status' => 'error', 'message' => 'Failed to update report status'], status: 500);\n }\n\n return response()->json(['status' => 'ok']);\n }\n}","depth":4,"value":"<?php\n\ndeclare(strict_types=1);\n\nnamespace Jiminny\\Http\\Controllers\\Webhook;\n\nuse Carbon\\Carbon;\nuse Illuminate\\Contracts\\Bus\\Dispatcher as BusDispatcher;\nuse Illuminate\\Contracts\\Events\\Dispatcher as EventDispatcher;\nuse Illuminate\\Http\\JsonResponse;\nuse Illuminate\\Http\\Request;\nuse Jiminny\\Events\\AutomatedReports\\AutomatedReportGenerated;\nuse Jiminny\\Exceptions\\ModelNotFoundException;\nuse Jiminny\\Http\\Controllers\\AbstractController;\nuse Jiminny\\Jobs\\AutomatedReports\\SendReportJob;\nuse Jiminny\\Models\\AutomatedReportResult;\nuse Jiminny\\Services\\Kiosk\\AutomatedReports\\AutomatedReportsCallbackService;\nuse Jiminny\\Services\\Kiosk\\AutomatedReports\\AutomatedReportsService;\nuse Psr\\Log\\LoggerInterface;\nuse Throwable;\n\nclass ReportController extends AbstractController\n{\n /**\n * Log prefix for all log messages\n */\n private const string LOG_PREFIX = '[Report Ready]';\n\n public function __construct(\n private readonly AutomatedReportsService $automatedReportsService,\n private readonly BusDispatcher $dispatcher,\n private readonly LoggerInterface $logger,\n private readonly AutomatedReportsCallbackService $callbackService,\n private readonly EventDispatcher $eventDispatcher,\n ) {\n }\n\n public function ready(Request $request): JsonResponse\n {\n $payload = $request->all();\n $now = Carbon::now();\n\n $this->logger->info(self::LOG_PREFIX . ' Webhook received', [\n 'payload' => $payload,\n ]);\n\n // validate\n $reportUuid = $this->callbackService->getResultUuid($payload);\n if (empty($reportUuid)) {\n return response()->json(['status' => 'error', 'message' => 'Request ID is empty'], status: 400);\n }\n\n try {\n $report = $this->automatedReportsService->getReportResult($reportUuid);\n\n // validate\n if ($this->callbackService->isProcessed($report)) {\n $this->logger->warning(self::LOG_PREFIX . ' Report has been already processed', [\n 'uuid' => $reportUuid,\n 'currentStatus' => $report->getStatusLabel(),\n ]);\n\n return response()->json(['status' => 'already_processed']);\n }\n\n // always try to get a child podcast cause report configuration cannot be trusted\n $reportPodcast = $this->automatedReportsService->findChildResult(\n result: $report,\n type: AutomatedReportsService::MEDIA_TYPE_PODCAST\n );\n\n // update results\n $report->update([\n 'status' => $this->callbackService->getPrimaryStatus($report, $payload),\n 'response' => $payload,\n 'generated_at' => $now,\n ]);\n // if a podcast is set, update it\n $reportPodcast?->update([\n 'status' => $this->callbackService->getPodcastStatus($payload),\n 'response' => $payload,\n 'generated_at' => $now,\n ]);\n\n $this->logger->info(self::LOG_PREFIX . ' Report has been processed', [\n 'uuid' => $reportUuid,\n 'child_uuid' => $reportPodcast?->getUuid(),\n ]);\n\n if (! $this->callbackService->isSuccess($payload)) {\n $this->logger->warning(self::LOG_PREFIX . ' Error creating report', $payload);\n\n return response()->json(['status' => 'ok']);\n }\n\n // If one-off, send the report immediately, if not leave it for the scheduler (automated-reports:send)\n if ($report->getReport()->getFrequency() === AutomatedReportsService::FREQUENCY_ONE_OFF) {\n // send the primary report\n $this->dispatcher->dispatch(new SendReportJob($reportUuid));\n\n // send the podcast report if it set and generated\n if ($reportPodcast && $reportPodcast->getStatus() === AutomatedReportResult::STATUS_GENERATED) {\n $this->dispatcher->dispatch(new SendReportJob(reportUuid: $reportPodcast->getUuid()));\n }\n }\n\n // Track Datadog metrics for automated reports\n $automatedReport = $report->getReport();\n $this->callbackService->pushToDatadog($automatedReport, $report);\n\n if ($reportPodcast) {\n $this->callbackService->pushToDatadog($automatedReport, $reportPodcast);\n }\n\n $this->eventDispatcher->dispatch(new AutomatedReportGenerated($automatedReport, $report));\n } catch (ModelNotFoundException $exception) {\n $this->logger->error(self::LOG_PREFIX . ' Report not found', [\n 'uuid' => $reportUuid,\n 'error' => $exception->getMessage(),\n ]);\n\n return response()->json(['status' => 'error', 'message' => 'Report not found'], status: 404);\n } catch (Throwable $exception) {\n $this->logger->error(self::LOG_PREFIX . ' Failed to update report status', [\n 'uuid' => $reportUuid,\n 'error' => $exception->getMessage(),\n ]);\n\n return response()->json(['status' => 'error', 'message' => 'Failed to update report status'], status: 500);\n }\n\n return response()->json(['status' => 'ok']);\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Project","depth":3,"role_description":"text"},{"role":"AXButton","text":"Project","depth":3,"bounds":{"left":0.0140625,"top":0.041666668,"width":0.028515626,"height":0.021527778},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"New File or Directory…","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
7895878970581586799
|
6686649160176153677
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error
Next Highlighted Error
SELECT * FROM teams WHERE id = 1;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;
SELECT * FROM crm_fields WHERE id = 2234;
SELECT * FROM crm_field_values WHERE crm_field_id = 2234;
select * from crm_profiles where user_id = 143;
select * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO
select * from business_processes where crm_configuration_id = 39;
# 01941000000H669AAC, 01941000000H66JAAS
select * from record_type_field_values
where record_type_id IN (24);
select * from crm_field_values where id IN (2730);
select * from crm_configurations where id = 39;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce'; #1035
select * from users where team_id = 1; # 222 group 3
SELECT * FROM activities WHERE user_id = 222 order by id desc;
select * from sidekick_settings where team_id = 1;
select * from teams where id = 1;
select * from team_features where team_id = 1;
select * from activities where crm_configuration_id = 2
and provider = 'ms-teams' and id = 608765;
SELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';
select * from sidekick_settings where team_id = 2;
SELECT * FROM activities WHERE id = 608660;
select * from activity_summary_logs where activity_id = 608660;
select * from ai_prompts where transcription_id = 11214;
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;
# id: 608818, crm: 59628809737
SELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;
# id: 608821, crm: 59632069252
SELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,
playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,
scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at
FROM activities a
join calendar_events ce on a.calendar_event_id = ce.id
WHERE a.id IN (608818, 608821);
select * from users where team_id = 1;
select * from team_settings where team_id = 1;
select * from crm_profiles where crm_configuration_id = 39 order by user_id;
select * from team_features where team_id = 1;
select * from users where team_id = 2;
SELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639
# Preslava N. Ivanova, grou id 3
SELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;
select * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';
select
a.id,
a.type,
a.scheduled_start_time,
a.actual_start_time,
a.created_at,
a.opportunity_id,
a.status
FROM activities a
WHERE opportunity_id = 344
and status IN ('completed', 'received', 'delivered')
and (
(a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))
;
SELECT * FROM users WHERE id = 222;
SELECT * FROM crm_profiles WHERE user_id = 222;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;
select * from group_deal_risk_types;
select * from opportunities where team_id = 1;
SELECT * FROM opportunities WHERE id = 315;
SELECT * FROM crm_field_data WHERE object_id = 315;
select * from crm_field_data where object_id = 260;
select * from generic_ai_prompts where subject_id = 315;
select * from teams; # 36, 21, 121, [EMAIL]
SELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';
# [PASSWORD_DOTS]
select * from teams where id = 1;
select * from crm_configurations where id = 39;
select * from users where team_id = 1;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 1;
# 1 - 00541000004281rAAA
# 204 - 0052g000003freeAAA
# 429 - 0052g000003qGOiAAM
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
select * from activities where type = 'softphone'
and created_at > '2024-12-11 15:24:36' order by id desc;
select * from activity_providers where team_id = 1;
select * from activity_provider_users where activity_provider_id = 328;
select * from opportunities where crm_configuration_id = 39
AND account_id = 178 AND is_closed = false
order by created_at DESC;
select * from contacts where id = 3952;
select * from accounts where id = 178;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations where id = 21;
select * from users where team_id = 36;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 36
and sa.provider = 'bullhorn';
select * from social_accounts where id = 348;
UPDATE social_accounts SET
provider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',
provider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',
expires = 1733998131,
state = 'connected'
WHERE id = 348;
# [PASSWORD_DOTS]
select * from teams where id = 31;
select * from crm_configurations where id = 18;
select * from users where team_id = 31; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 31;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 31
and sa.provider = 'close';
select * from contacts where crm_configuration_id = 18;
# [PASSWORD_DOTS] NEPTUNE [PASSWORD_DOTS]
select * from teams;
select * from users where id IN (1030, 1035, 1052);
select * from crm_configurations;
select * from users where team_id = 65; # 257
select * from team_settings where team_id = 65; # 257
select * from invitations where team_id = 65; # 257
select * from users where email = '[EMAIL]'; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 65;
select * from crm_configurations where id = 53;
select * from accounts where crm_configuration_id = 53 order by id desc;
select * from leads where crm_configuration_id = 53 order by id desc;
select * from contacts where crm_configuration_id = 53 order by id desc;
select * from opportunities where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 53 order by id desc;
select * from crm_fields where crm_configuration_id = 53 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 53 order by id desc;
select * from stages where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 13;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
and sa.provider = 'integration-app';
select * from contacts where crm_configuration_id = 13;
select * from social_accounts where sociable_id = 283;
SELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';
select * from activity_providers where team_id = 65;
SELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
;
# [PASSWORD_DOTS] STAGING [PASSWORD_DOTS]
SELECT * FROM teams;
SELECT * FROM teams WHERE id = 88;
SELECT * FROM teams WHERE id = 89;
select * from team_settings where team_id = 89;
SELECT * FROM users WHERE team_id = 89;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 89;
select * from users;
SELECT * FROM social_accounts WHERE sociable_id = 1761;
SELECT * FROM crm_configurations WHERE id = 70;
select * from accounts where crm_configuration_id = 70 order by id desc;
select * from leads where crm_configuration_id = 70 order by id desc;
select * from contacts where crm_configuration_id = 70 order by id desc;
select * from opportunities where crm_configuration_id = 70 order by id desc;
select * from crm_profiles where crm_configuration_id = 70 order by id desc;
select * from crm_fields where crm_configuration_id = 70 order by id desc;
select * from crm_field_values where crm_field_id = 3536 order by id desc;
select * from crm_layouts where crm_configuration_id = 70 order by id desc;
select * from stages where crm_configuration_id = 70 order by id desc;
select * from business_processes where crm_configuration_id = 70 order by id desc;
select * from business_process_stages where business_process_id = 34;
select * from contacts where id = 10468;
select * from crm_layouts where crm_configuration_id = 70;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;
SELECT * FROM crm_fields WHERE id IN (3533,3534,3535);
select * from activities where crm_configuration_id = 70
and (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;
SELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;
SELECT * FROM activities where crm_configuration_id = 69 ;
SELECT * FROM users WHERE email LIKE '%[EMAIL]%';
SELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;
SELECT * FROM opportunities WHERE id = 385;
select * from participants p
join activities a on p.activity_id = a.id
where a.crm_configuration_id = 70
and (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);
SELECT * FROM participants WHERE id = 1013638;
select * from teams where id = 90;
select * from users where team_id = 90;
select * from social_accounts where social_accounts.sociable_id IN (1960,1760);
SELECT * FROM crm_profiles WHERE crm_configuration_id = 71;
select * from invitations where team_id = 90;
select * from crm_configurations where id = 71;
select * from accounts where crm_configuration_id = 71 order by id desc;
select * from leads where crm_configuration_id = 71 order by id desc;
select * from contacts where crm_configuration_id = 71 order by id desc;
select * from opportunities where crm_configuration_id = 71 order by id desc;
select * from crm_profiles where crm_configuration_id = 71 order by id desc;
select * from crm_fields where crm_configuration_id = 71 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 71 order by id desc;
select * from stages where crm_configuration_id = 71 order by id desc;
select * from users order by secondary_email desc;
select u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa
join users u on sa.sociable_id = u.id
where sa.provider = 'google' and u.email LIKE 'aneliya%';
select * from failed_jobs order by id desc;
select * from users where email = '[EMAIL]' or secondary_email = '[EMAIL]';
select * from teams;
SELECT * FROM crm_profiles WHERE crm_configuration_id = 39;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;
SELECT * FROM crm_configurations WHERE id = 70;
select * from teams where id = 1;
select * from groups where team_id = 1;
select * from users where team_id = 1;
select o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o
join users u on o.user_id = u.id
join groups g on u.group_id = g.id
join role_user ru on u.id = ru.user_id
join roles r on ru.role_id = r.id
where o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';
select * from role_user where user_id = 143;
select * from roles;
select * from role_user;
select * from groups where id = 9;
select * from scope_groups where group_id = 9;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations;
SELECT * FROM social_accounts WHERE sociable_id = 121;
https://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105
https://crmsandbox.zoho.com/crm/
https://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080
https://crm.zoho.com/crm/
org3469620
SELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;
select * from users where email LIKE "%mobile_automation_%";
select * from social_accounts where sociable_id IN (2228);
select * from crm_profiles where user_id IN (2222,2223,2226,2227);
select * from teams order by id desc;
SELECT * FROM users WHERE id = 2229;
SELECT * FROM crm_profiles WHERE user_id = 2229;
select * from opportunities where crm_configuration_id = 88;
select * from crm_fields where crm_configuration_id = 88;
select * from crm_profiles where crm_configuration_id = 88;
SELECT * FROM teams WHERE id = 1;
SELECT * FROM users WHERE id = 143;
SELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;
https://app.staging.jiminny.com/ondemand?
min_duration=1
&
only_recorded=1
&
user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e
&
sequence_number=2
select * from users where team_id = 1 and email like '%stoyan%'
select * from coaching_feedbacks;
select * from teams;
SELECT * FROM users WHERE team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from users where id = 143;
SELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
select * from users where team_id = 2;
select * from activities where crm_configuration_id = 39
and activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'
AND user_id = 143
order by id desc;
# [PASSWORD_DOTS]
select * from teams where id = 142; # 2312, 126
select * from team_settings;
select * from users where team_id = 142; # 21642
SELECT * FROM social_accounts WHERE sociable_id = 21642;
SELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;
select * from crm_profiles where id IN (93);
select * from invitations;
select * from team_features where team_id = 1;
SELECT * FROM crm_configurations WHERE id = 126;
select * from accounts where crm_configuration_id = 126 order by id desc;
select * from leads where crm_configuration_id = 126 order by id desc;
select * from contacts where crm_configuration_id = 126 order by id desc;
select * from opportunities where crm_configuration_id = 126 order by id desc;
select * from crm_profiles where crm_configuration_id = 126 order by id desc;
select * from crm_fields where crm_configuration_id = 126 # 11060
# and type IN ('picklist', 'status')
# and object_type = 'task'
order by id desc;
# 5731,5732,5733
select DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;
select * from crm_layouts where crm_configuration_id = 126 order by id desc;
SELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);
select * from stages where crm_configuration_id = 126 order by id desc;
select * from business_processes where crm_configuration_id = 126 order by id desc;
select * from business_process_stages where business_process_id IN (76,75,74,73);
select * from playbooks where team_id = 142;
select * from playbook_layouts where playbook_id IN (108);
SELECT * FROM playbook_categories WHERE playbook_id IN (108);
select * from teams where id = 130;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 2
and sa.provider = 'hubspot';
SELECT * FROM activities
WHERE crm_configuration_id = 110;
select * from teams;
select * from crm_configurations;
SELECT * FROM activities WHERE id = 628773;
SELECT * FROM crm_profiles WHERE user_id = 1460;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from teams;
select ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id
join permission_role pr on pr.role_id = ru.role_id
join permissions p on p.id = pr.permission_id
where team_id = 495 and p.name IN ('dial');
select * from teams where id = 145;
select * from crm_configurations where id = 129;
select * from social_accounts where sociable_id = 2317;
SELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;
select * from teams where id = 1;
SELECT * FROM crm_layouts WHERE crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;
SELECT * FROM crm_layout_entities WHERE id = 5507;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');
select * from teams;
select * from activities where crm_configuration_id = 14;
SELECT * FROM social_accounts where provider = 'copper';
select * from activities where id = 628467;
select * from participants where activity_id = 628467;
SELECT * FROM contacts WHERE id = 3969;
SELECT * FROM accounts WHERE id = 177;
SELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;
# [PASSWORD_DOTS] BH
select * from teams where id = 36;
SELECT * FROM crm_configurations WHERE id = 21;
select * from activities where crm_configuration_id = 21 and id = 607901;
select * from activities where crm_configuration_id = 21;
select * roles;
select * from permissions;
select * from permission_role where permission_id = 226;
select * from migrations order by id desc;
# mercury
# neptune
# earth
select * from teams;
select * from teams where id = 19;
select * from teams where id = 27;
select * from users where team_id = 27;
SELECT * FROM crm_configurations WHERE id = 42;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from activities where id = 631461;
SELECT * FROM crm_field_values WHERE crm_field_id = 180;
select * from teams where id = 2;
SELECT * FROM social_accounts WHERE sociable_id = 89;
SELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273
select * from activity_summary_logs where activity_id = 634273;
select * from sidekick_settings where team_id = 2;
select * from teams; # 2, 2
SELECT * FROM crm_configurations WHERE team_id = 2; # 2
select * from team_features where team_id = 2;
select * from features;
SELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';
SELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from users where team_id = 1 and id IN (7160, 3248);
select * from migrations order by id desc;
SELECT
CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,
u.email,
sa.*,
t.owner_id FROM social_accounts sa
JOIN users u on u.id = sa.sociable_id
JOIN teams t on t.id = u.team_id
WHERE u.team_id = 1 and sa.provider = 'salesforce';
select * from teams where id = 1;
select * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;
select * from groups where id = 565;
select * from playbooks where team_id = 1;
select * from playbooks where id = 175;
select * from playbook_categories where playbook_id = 175;
select * from users where team_id = 1;
select * from users where id = 7160;
select * from crm_profiles where user_id = 7160;
select * from features;
select
*
# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,
# crm_configuration_id, crm_provider_id, transcription_id, status
from activities where crm_configuration_id = 1 and type = 'conference'
# and crm_provider_id IS NOT NULL
and provider != 'uploader' and actual_start_time IS NOT NULL
ORDER by id desc;
select * from activities where id = 54747783; # 00UO400000pCzojMAC
select p.id, p.activity_type, pc.id, pc.name
FROM playbooks p
join playbook_categories pc on p.id = pc.playbook_id
where p.team_id = 1 and p.activity_type = 'event';
SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';
SELECT * FROM crm_field_values WHERE crm_field_id = 4;
select * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id
where crm_configuration_id = 1 and pl.playbook_id = 175;
select * from teams;
SELECT r.* FROM automated_reports r
join teams t on r.team_id = t.id
WHERE r.frequency = 'daily'
and r.status = 1
AND t.status = 'active'
AND (r.expires_at >= now() OR r.expires_at IS NULL);
select * from automated_report_results where report_id IN (18, 33);
select * from activity_searches where id = 10932;
select * from activity_search_filters where activity_search_id = 10932;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from automated_report_results where report_id IN (36);
Sync Changes
Hide This Notification
Code changed:
Hide
3
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Http\Controllers\Webhook;
use Carbon\Carbon;
use Illuminate\Contracts\Bus\Dispatcher as BusDispatcher;
use Illuminate\Contracts\Events\Dispatcher as EventDispatcher;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Exceptions\ModelNotFoundException;
use Jiminny\Http\Controllers\AbstractController;
use Jiminny\Jobs\AutomatedReports\SendReportJob;
use Jiminny\Models\AutomatedReportResult;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsCallbackService;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Psr\Log\LoggerInterface;
use Throwable;
class ReportController extends AbstractController
{
/**
* Log prefix for all log messages
*/
private const string LOG_PREFIX = '[Report Ready]';
public function __construct(
private readonly AutomatedReportsService $automatedReportsService,
private readonly BusDispatcher $dispatcher,
private readonly LoggerInterface $logger,
private readonly AutomatedReportsCallbackService $callbackService,
private readonly EventDispatcher $eventDispatcher,
) {
}
public function ready(Request $request): JsonResponse
{
$payload = $request->all();
$now = Carbon::now();
$this->logger->info(self::LOG_PREFIX . ' Webhook received', [
'payload' => $payload,
]);
// validate
$reportUuid = $this->callbackService->getResultUuid($payload);
if (empty($reportUuid)) {
return response()->json(['status' => 'error', 'message' => 'Request ID is empty'], status: 400);
}
try {
$report = $this->automatedReportsService->getReportResult($reportUuid);
// validate
if ($this->callbackService->isProcessed($report)) {
$this->logger->warning(self::LOG_PREFIX . ' Report has been already processed', [
'uuid' => $reportUuid,
'currentStatus' => $report->getStatusLabel(),
]);
return response()->json(['status' => 'already_processed']);
}
// always try to get a child podcast cause report configuration cannot be trusted
$reportPodcast = $this->automatedReportsService->findChildResult(
result: $report,
type: AutomatedReportsService::MEDIA_TYPE_PODCAST
);
// update results
$report->update([
'status' => $this->callbackService->getPrimaryStatus($report, $payload),
'response' => $payload,
'generated_at' => $now,
]);
// if a podcast is set, update it
$reportPodcast?->update([
'status' => $this->callbackService->getPodcastStatus($payload),
'response' => $payload,
'generated_at' => $now,
]);
$this->logger->info(self::LOG_PREFIX . ' Report has been processed', [
'uuid' => $reportUuid,
'child_uuid' => $reportPodcast?->getUuid(),
]);
if (! $this->callbackService->isSuccess($payload)) {
$this->logger->warning(self::LOG_PREFIX . ' Error creating report', $payload);
return response()->json(['status' => 'ok']);
}
// If one-off, send the report immediately, if not leave it for the scheduler (automated-reports:send)
if ($report->getReport()->getFrequency() === AutomatedReportsService::FREQUENCY_ONE_OFF) {
// send the primary report
$this->dispatcher->dispatch(new SendReportJob($reportUuid));
// send the podcast report if it set and generated
if ($reportPodcast && $reportPodcast->getStatus() === AutomatedReportResult::STATUS_GENERATED) {
$this->dispatcher->dispatch(new SendReportJob(reportUuid: $reportPodcast->getUuid()));
}
}
// Track Datadog metrics for automated reports
$automatedReport = $report->getReport();
$this->callbackService->pushToDatadog($automatedReport, $report);
if ($reportPodcast) {
$this->callbackService->pushToDatadog($automatedReport, $reportPodcast);
}
$this->eventDispatcher->dispatch(new AutomatedReportGenerated($automatedReport, $report));
} catch (ModelNotFoundException $exception) {
$this->logger->error(self::LOG_PREFIX . ' Report not found', [
'uuid' => $reportUuid,
'error' => $exception->getMessage(),
]);
return response()->json(['status' => 'error', 'message' => 'Report not found'], status: 404);
} catch (Throwable $exception) {
$this->logger->error(self::LOG_PREFIX . ' Failed to update report status', [
'uuid' => $reportUuid,
'error' => $exception->getMessage(),
]);
return response()->json(['status' => 'error', 'message' => 'Failed to update report status'], status: 500);
}
return response()->json(['status' => 'ok']);
}
}
Project
Project
New File or Directory…...
|
12784
|
|
12787
|
274
|
20
|
2026-04-14T11:39:12.546968+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166752546_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER© 81DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 21 m100% 147ec2-user@ip-10-30-...ec2-user@ip-10-30-93-249:~-zsh-zsh86-zshO ₴7Tue 14 Apr 14:39:12181* Unable to acce...*- 88],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
-2397128144053376666
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER© 81DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 21 m100% 147ec2-user@ip-10-30-...ec2-user@ip-10-30-93-249:~-zsh-zsh86-zshO ₴7Tue 14 Apr 14:39:12181* Unable to acce...*- 88],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
|
12788
|
275
|
13
|
2026-04-14T11:39:12.535498+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166752535_m2.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
PhpStormProject vFileFV faVsco.js vViewNavigateCod PhpStormProject vFileFV faVsco.js vViewNavigateCodeLaravelRefactorToolsWindowHelp#11894 on JY-18909-automated-reports-ask-iminny ~© ReportController.php x© SendReportJob.phpC AutomatedReportsSendCommand.phgAutomatedReportsCommand.php© AddLayoutEntities.phpleam.onoC AutomatedReportsRepository.php= custom.logA HS_local [iminny@localhost]© TranscriptionSum© UploadController.© ActionItemsControlle© ActivityController.phC) AiCrmNotesControllec baseconrolerona(C) ClientTokenControlle© CrmController.php© DealLevelPromptsCc© DealRiskController.pl© InstantMeetingContr© LanguageController.|© LayoutManagementc© LiveFeedController.p© MeetingsController.p© MessageController.pC) MetadataController.r© MobileSettingsContr© MomentController.ptNudgeController.phpNumberAllocatorConOrganizationLicense:OrganizationMember© OrganizationRetentic© OrganizationRolesCc© OrganizationSyncCol© PartnerController.ph|(c) PhoneNumberContrc© PlaybackController.p© PlaylistController.phpScimController.phpSidekickController.ptSoftphoneController.© SsoController.php© SubscriptionControll© TeamAiAutomationC© TeamAiContextContiTeamController.php© TeamInsightsControl© TranscriptionControl(C) TranslationControlle©UserController.phpVocabularyController> Auth> CustomerApi|C Internal• KioskD SettingsTelephonyWeshook.> MHubspot> MIntearationAopSubsc© ActivityProviderCont© ActivityTranscription© BaseController.phpCalendarController.p© ReportController.php© SoftphoneWebhookC© AbstractController.phpconsole PROD) AutomatedReportsService.php) CreateActivityLoggedEvent.phpC AutomatedReportsCallbackService.php© ActivityLogged.phpRequestGenerateaskJiminnykeportJob.onpRequestGeneratekeporJob.ong520521E laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';Sa jiminny017 A15 Х13 A© AutomatedReportResult.phpAutomatecRenort.ohnclass ReportController extends AbstractControllerpublic function ready(Request $request): JsonResponse'response' => Spayload,'generated_at'= show,15241):529$this->logger->info(self::LOG_PREFIX . ' Report has been processed', [530'uuid' => $reportUvid,531'child_uvid' => $reportPodcast?->getUvid(),5321):533534if (! $this->callbackService->isSuccess($payload)) {535$this->logger->warning(self::LOG_PREFIXError creating report', $payload);155455 Arewurn resconsel»> sonu'starus' s> 'ok538539540// If one-off, send the report immediately, if not leave it for the scheduler (automated-reports:541if ($report->getReport()->getFrequency() === AutomatedReportsService::FREQUENCY_ONE_OFF) {542// send the primary report543$this->dispatcher->dispatch(new SendReportJob($reportUvid));54415451// send the podcast report if it set and generated1546if (SreportPodcast && $reportPodcast->getStatus() === AutomatedReportResult::STATUS_GENERATEDSthis-›dispatcher-›dispatch(new SendReporggob(reportUuid: $reportPodcast->getUuid()));select * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect * 1r0Igroupsnere t =oo.select * from playbooks where team_ id = 1:select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# 10, Uud, type, provider, playbook_category-1o, user_1a,leao o, contact* cri contouracionlorcirn orovoer 1oTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMAC1001011021031041051061071108109110111112113114115116117select p.id, p.activity_type, pc.id, pc.nameFROM playbooks pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':// Track Datadog metrics for automated reports$automatedReport = $report->getReport();$this->callbackService->pushToDatadog(SautomatedReport, $report);if ($reportPodcast) {$this->callbackService->pushToDatadog($automatedReport, $reportPodcast);1548549550551552553554555556557558SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1.n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;$this->eventDispatcher->dispatch(new AutomatedReportGenerated($automatedReport, $report));} Catch (ModelNotFoundException $exception) {$this->logger->error(self::LOG_PREFIX"keport not round,lUuo => "redorcuulor'error' => $exception->getMessage(),select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status = 'activelAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);119120121122123124125126127128129115011):return response()->json(['status' => 'error','message' => 'Report not found'], status: 404);} catch (Throwable $exception) {$this->logger-›error(self::LOG_PREFIX . ' Failed to update report status', ['vuid' = $reportUvid,'error' => $exception->getMessage(),[IBAN] v569570select * from automated_report_results where repontaig IN (18, 33);select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * fromautomated_report_results order by id desd;select * from automated_report_results where reRontaid IN (36);1):retur resconse» sonustarus "error,'message' = 'Failed to update report status'], staPushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)loblSupport Daily • in 21mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:39:12CascadeDebug Automated Rep+0 •rercnes Automaceakeporckesule recoras where.generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwSten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemail, so validRecipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILs# phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.O phpsnow = larbon::now searllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC)Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (884L)+ <> Code Claude Sonnet 4.6W Winasunt leamsg9:ouir-o( 4 spaces...
|
NULL
|
-2798655109410860964
|
NULL
|
click
|
ocr
|
NULL
|
PhpStormProject vFileFV faVsco.js vViewNavigateCod PhpStormProject vFileFV faVsco.js vViewNavigateCodeLaravelRefactorToolsWindowHelp#11894 on JY-18909-automated-reports-ask-iminny ~© ReportController.php x© SendReportJob.phpC AutomatedReportsSendCommand.phgAutomatedReportsCommand.php© AddLayoutEntities.phpleam.onoC AutomatedReportsRepository.php= custom.logA HS_local [iminny@localhost]© TranscriptionSum© UploadController.© ActionItemsControlle© ActivityController.phC) AiCrmNotesControllec baseconrolerona(C) ClientTokenControlle© CrmController.php© DealLevelPromptsCc© DealRiskController.pl© InstantMeetingContr© LanguageController.|© LayoutManagementc© LiveFeedController.p© MeetingsController.p© MessageController.pC) MetadataController.r© MobileSettingsContr© MomentController.ptNudgeController.phpNumberAllocatorConOrganizationLicense:OrganizationMember© OrganizationRetentic© OrganizationRolesCc© OrganizationSyncCol© PartnerController.ph|(c) PhoneNumberContrc© PlaybackController.p© PlaylistController.phpScimController.phpSidekickController.ptSoftphoneController.© SsoController.php© SubscriptionControll© TeamAiAutomationC© TeamAiContextContiTeamController.php© TeamInsightsControl© TranscriptionControl(C) TranslationControlle©UserController.phpVocabularyController> Auth> CustomerApi|C Internal• KioskD SettingsTelephonyWeshook.> MHubspot> MIntearationAopSubsc© ActivityProviderCont© ActivityTranscription© BaseController.phpCalendarController.p© ReportController.php© SoftphoneWebhookC© AbstractController.phpconsole PROD) AutomatedReportsService.php) CreateActivityLoggedEvent.phpC AutomatedReportsCallbackService.php© ActivityLogged.phpRequestGenerateaskJiminnykeportJob.onpRequestGeneratekeporJob.ong520521E laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';Sa jiminny017 A15 Х13 A© AutomatedReportResult.phpAutomatecRenort.ohnclass ReportController extends AbstractControllerpublic function ready(Request $request): JsonResponse'response' => Spayload,'generated_at'= show,15241):529$this->logger->info(self::LOG_PREFIX . ' Report has been processed', [530'uuid' => $reportUvid,531'child_uvid' => $reportPodcast?->getUvid(),5321):533534if (! $this->callbackService->isSuccess($payload)) {535$this->logger->warning(self::LOG_PREFIXError creating report', $payload);155455 Arewurn resconsel»> sonu'starus' s> 'ok538539540// If one-off, send the report immediately, if not leave it for the scheduler (automated-reports:541if ($report->getReport()->getFrequency() === AutomatedReportsService::FREQUENCY_ONE_OFF) {542// send the primary report543$this->dispatcher->dispatch(new SendReportJob($reportUvid));54415451// send the podcast report if it set and generated1546if (SreportPodcast && $reportPodcast->getStatus() === AutomatedReportResult::STATUS_GENERATEDSthis-›dispatcher-›dispatch(new SendReporggob(reportUuid: $reportPodcast->getUuid()));select * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect * 1r0Igroupsnere t =oo.select * from playbooks where team_ id = 1:select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# 10, Uud, type, provider, playbook_category-1o, user_1a,leao o, contact* cri contouracionlorcirn orovoer 1oTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMAC1001011021031041051061071108109110111112113114115116117select p.id, p.activity_type, pc.id, pc.nameFROM playbooks pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':// Track Datadog metrics for automated reports$automatedReport = $report->getReport();$this->callbackService->pushToDatadog(SautomatedReport, $report);if ($reportPodcast) {$this->callbackService->pushToDatadog($automatedReport, $reportPodcast);1548549550551552553554555556557558SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1.n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;$this->eventDispatcher->dispatch(new AutomatedReportGenerated($automatedReport, $report));} Catch (ModelNotFoundException $exception) {$this->logger->error(self::LOG_PREFIX"keport not round,lUuo => "redorcuulor'error' => $exception->getMessage(),select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status = 'activelAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);119120121122123124125126127128129115011):return response()->json(['status' => 'error','message' => 'Report not found'], status: 404);} catch (Throwable $exception) {$this->logger-›error(self::LOG_PREFIX . ' Failed to update report status', ['vuid' = $reportUvid,'error' => $exception->getMessage(),[IBAN] v569570select * from automated_report_results where repontaig IN (18, 33);select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * fromautomated_report_results order by id desd;select * from automated_report_results where reRontaid IN (36);1):retur resconse» sonustarus "error,'message' = 'Failed to update report status'], staPushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)loblSupport Daily • in 21mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:39:12CascadeDebug Automated Rep+0 •rercnes Automaceakeporckesule recoras where.generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwSten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemail, so validRecipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILs# phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.O phpsnow = larbon::now searllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC)Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (884L)+ <> Code Claude Sonnet 4.6W Winasunt leamsg9:ouir-o( 4 spaces...
|
NULL
|
|
12789
|
274
|
21
|
2026-04-14T11:39:14.799859+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166754799_m1.jpg...
|
PhpStorm
|
faVsco.js – ReportController.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error
Next Highlighted Error
SELECT * FROM teams WHERE id = 1;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;
SELECT * FROM crm_fields WHERE id = 2234;
SELECT * FROM crm_field_values WHERE crm_field_id = 2234;
select * from crm_profiles where user_id = 143;
select * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO
select * from business_processes where crm_configuration_id = 39;
# 01941000000H669AAC, 01941000000H66JAAS
select * from record_type_field_values
where record_type_id IN (24);
select * from crm_field_values where id IN (2730);
select * from crm_configurations where id = 39;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce'; #1035
select * from users where team_id = 1; # 222 group 3
SELECT * FROM activities WHERE user_id = 222 order by id desc;
select * from sidekick_settings where team_id = 1;
select * from teams where id = 1;
select * from team_features where team_id = 1;
select * from activities where crm_configuration_id = 2
and provider = 'ms-teams' and id = 608765;
SELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';
select * from sidekick_settings where team_id = 2;
SELECT * FROM activities WHERE id = 608660;
select * from activity_summary_logs where activity_id = 608660;
select * from ai_prompts where transcription_id = 11214;
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;
# id: 608818, crm: 59628809737
SELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;
# id: 608821, crm: 59632069252
SELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,
playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,
scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at
FROM activities a
join calendar_events ce on a.calendar_event_id = ce.id
WHERE a.id IN (608818, 608821);
select * from users where team_id = 1;
select * from team_settings where team_id = 1;
select * from crm_profiles where crm_configuration_id = 39 order by user_id;
select * from team_features where team_id = 1;
select * from users where team_id = 2;
SELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639
# Preslava N. Ivanova, grou id 3
SELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;
select * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';
select
a.id,
a.type,
a.scheduled_start_time,
a.actual_start_time,
a.created_at,
a.opportunity_id,
a.status
FROM activities a
WHERE opportunity_id = 344
and status IN ('completed', 'received', 'delivered')
and (
(a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))
;
SELECT * FROM users WHERE id = 222;
SELECT * FROM crm_profiles WHERE user_id = 222;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;
select * from group_deal_risk_types;
select * from opportunities where team_id = 1;
SELECT * FROM opportunities WHERE id = 315;
SELECT * FROM crm_field_data WHERE object_id = 315;
select * from crm_field_data where object_id = 260;
select * from generic_ai_prompts where subject_id = 315;
select * from teams; # 36, 21, 121, [EMAIL]
SELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';
# [PASSWORD_DOTS]
select * from teams where id = 1;
select * from crm_configurations where id = 39;
select * from users where team_id = 1;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 1;
# 1 - 00541000004281rAAA
# 204 - 0052g000003freeAAA
# 429 - 0052g000003qGOiAAM
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
select * from activities where type = 'softphone'
and created_at > '2024-12-11 15:24:36' order by id desc;
select * from activity_providers where team_id = 1;
select * from activity_provider_users where activity_provider_id = 328;
select * from opportunities where crm_configuration_id = 39
AND account_id = 178 AND is_closed = false
order by created_at DESC;
select * from contacts where id = 3952;
select * from accounts where id = 178;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations where id = 21;
select * from users where team_id = 36;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 36
and sa.provider = 'bullhorn';
select * from social_accounts where id = 348;
UPDATE social_accounts SET
provider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',
provider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',
expires = 1733998131,
state = 'connected'
WHERE id = 348;
# [PASSWORD_DOTS]
select * from teams where id = 31;
select * from crm_configurations where id = 18;
select * from users where team_id = 31; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 31;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 31
and sa.provider = 'close';
select * from contacts where crm_configuration_id = 18;
# [PASSWORD_DOTS] NEPTUNE [PASSWORD_DOTS]
select * from teams;
select * from users where id IN (1030, 1035, 1052);
select * from crm_configurations;
select * from users where team_id = 65; # 257
select * from team_settings where team_id = 65; # 257
select * from invitations where team_id = 65; # 257
select * from users where email = '[EMAIL]'; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 65;
select * from crm_configurations where id = 53;
select * from accounts where crm_configuration_id = 53 order by id desc;
select * from leads where crm_configuration_id = 53 order by id desc;
select * from contacts where crm_configuration_id = 53 order by id desc;
select * from opportunities where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 53 order by id desc;
select * from crm_fields where crm_configuration_id = 53 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 53 order by id desc;
select * from stages where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 13;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
and sa.provider = 'integration-app';
select * from contacts where crm_configuration_id = 13;
select * from social_accounts where sociable_id = 283;
SELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';
select * from activity_providers where team_id = 65;
SELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
;
# [PASSWORD_DOTS] STAGING [PASSWORD_DOTS]
SELECT * FROM teams;
SELECT * FROM teams WHERE id = 88;
SELECT * FROM teams WHERE id = 89;
select * from team_settings where team_id = 89;
SELECT * FROM users WHERE team_id = 89;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 89;
select * from users;
SELECT * FROM social_accounts WHERE sociable_id = 1761;
SELECT * FROM crm_configurations WHERE id = 70;
select * from accounts where crm_configuration_id = 70 order by id desc;
select * from leads where crm_configuration_id = 70 order by id desc;
select * from contacts where crm_configuration_id = 70 order by id desc;
select * from opportunities where crm_configuration_id = 70 order by id desc;
select * from crm_profiles where crm_configuration_id = 70 order by id desc;
select * from crm_fields where crm_configuration_id = 70 order by id desc;
select * from crm_field_values where crm_field_id = 3536 order by id desc;
select * from crm_layouts where crm_configuration_id = 70 order by id desc;
select * from stages where crm_configuration_id = 70 order by id desc;
select * from business_processes where crm_configuration_id = 70 order by id desc;
select * from business_process_stages where business_process_id = 34;
select * from contacts where id = 10468;
select * from crm_layouts where crm_configuration_id = 70;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;
SELECT * FROM crm_fields WHERE id IN (3533,3534,3535);
select * from activities where crm_configuration_id = 70
and (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;
SELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;
SELECT * FROM activities where crm_configuration_id = 69 ;
SELECT * FROM users WHERE email LIKE '%[EMAIL]%';
SELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;
SELECT * FROM opportunities WHERE id = 385;
select * from participants p
join activities a on p.activity_id = a.id
where a.crm_configuration_id = 70
and (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);
SELECT * FROM participants WHERE id = 1013638;
select * from teams where id = 90;
select * from users where team_id = 90;
select * from social_accounts where social_accounts.sociable_id IN (1960,1760);
SELECT * FROM crm_profiles WHERE crm_configuration_id = 71;
select * from invitations where team_id = 90;
select * from crm_configurations where id = 71;
select * from accounts where crm_configuration_id = 71 order by id desc;
select * from leads where crm_configuration_id = 71 order by id desc;
select * from contacts where crm_configuration_id = 71 order by id desc;
select * from opportunities where crm_configuration_id = 71 order by id desc;
select * from crm_profiles where crm_configuration_id = 71 order by id desc;
select * from crm_fields where crm_configuration_id = 71 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 71 order by id desc;
select * from stages where crm_configuration_id = 71 order by id desc;
select * from users order by secondary_email desc;
select u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa
join users u on sa.sociable_id = u.id
where sa.provider = 'google' and u.email LIKE 'aneliya%';
select * from failed_jobs order by id desc;
select * from users where email = '[EMAIL]' or secondary_email = '[EMAIL]';
select * from teams;
SELECT * FROM crm_profiles WHERE crm_configuration_id = 39;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;
SELECT * FROM crm_configurations WHERE id = 70;
select * from teams where id = 1;
select * from groups where team_id = 1;
select * from users where team_id = 1;
select o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o
join users u on o.user_id = u.id
join groups g on u.group_id = g.id
join role_user ru on u.id = ru.user_id
join roles r on ru.role_id = r.id
where o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';
select * from role_user where user_id = 143;
select * from roles;
select * from role_user;
select * from groups where id = 9;
select * from scope_groups where group_id = 9;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations;
SELECT * FROM social_accounts WHERE sociable_id = 121;
https://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105
https://crmsandbox.zoho.com/crm/
https://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080
https://crm.zoho.com/crm/
org3469620
SELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;
select * from users where email LIKE "%mobile_automation_%";
select * from social_accounts where sociable_id IN (2228);
select * from crm_profiles where user_id IN (2222,2223,2226,2227);
select * from teams order by id desc;
SELECT * FROM users WHERE id = 2229;
SELECT * FROM crm_profiles WHERE user_id = 2229;
select * from opportunities where crm_configuration_id = 88;
select * from crm_fields where crm_configuration_id = 88;
select * from crm_profiles where crm_configuration_id = 88;
SELECT * FROM teams WHERE id = 1;
SELECT * FROM users WHERE id = 143;
SELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;
https://app.staging.jiminny.com/ondemand?
min_duration=1
&
only_recorded=1
&
user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e
&
sequence_number=2
select * from users where team_id = 1 and email like '%stoyan%'
select * from coaching_feedbacks;
select * from teams;
SELECT * FROM users WHERE team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from users where id = 143;
SELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
select * from users where team_id = 2;
select * from activities where crm_configuration_id = 39
and activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'
AND user_id = 143
order by id desc;
# [PASSWORD_DOTS]
select * from teams where id = 142; # 2312, 126
select * from team_settings;
select * from users where team_id = 142; # 21642
SELECT * FROM social_accounts WHERE sociable_id = 21642;
SELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;
select * from crm_profiles where id IN (93);
select * from invitations;
select * from team_features where team_id = 1;
SELECT * FROM crm_configurations WHERE id = 126;
select * from accounts where crm_configuration_id = 126 order by id desc;
select * from leads where crm_configuration_id = 126 order by id desc;
select * from contacts where crm_configuration_id = 126 order by id desc;
select * from opportunities where crm_configuration_id = 126 order by id desc;
select * from crm_profiles where crm_configuration_id = 126 order by id desc;
select * from crm_fields where crm_configuration_id = 126 # 11060
# and type IN ('picklist', 'status')
# and object_type = 'task'
order by id desc;
# 5731,5732,5733
select DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;
select * from crm_layouts where crm_configuration_id = 126 order by id desc;
SELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);
select * from stages where crm_configuration_id = 126 order by id desc;
select * from business_processes where crm_configuration_id = 126 order by id desc;
select * from business_process_stages where business_process_id IN (76,75,74,73);
select * from playbooks where team_id = 142;
select * from playbook_layouts where playbook_id IN (108);
SELECT * FROM playbook_categories WHERE playbook_id IN (108);
select * from teams where id = 130;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 2
and sa.provider = 'hubspot';
SELECT * FROM activities
WHERE crm_configuration_id = 110;
select * from teams;
select * from crm_configurations;
SELECT * FROM activities WHERE id = 628773;
SELECT * FROM crm_profiles WHERE user_id = 1460;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from teams;
select ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id
join permission_role pr on pr.role_id = ru.role_id
join permissions p on p.id = pr.permission_id
where team_id = 495 and p.name IN ('dial');
select * from teams where id = 145;
select * from crm_configurations where id = 129;
select * from social_accounts where sociable_id = 2317;
SELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;
select * from teams where id = 1;
SELECT * FROM crm_layouts WHERE crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;
SELECT * FROM crm_layout_entities WHERE id = 5507;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');
select * from teams;
select * from activities where crm_configuration_id = 14;
SELECT * FROM social_accounts where provider = 'copper';
select * from activities where id = 628467;
select * from participants where activity_id = 628467;
SELECT * FROM contacts WHERE id = 3969;
SELECT * FROM accounts WHERE id = 177;
SELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;
# [PASSWORD_DOTS] BH
select * from teams where id = 36;
SELECT * FROM crm_configurations WHERE id = 21;
select * from activities where crm_configuration_id = 21 and id = 607901;
select * from activities where crm_configuration_id = 21;
select * roles;
select * from permissions;
select * from permission_role where permission_id = 226;
select * from migrations order by id desc;
# mercury
# neptune
# earth
select * from teams;
select * from teams where id = 19;
select * from teams where id = 27;
select * from users where team_id = 27;
SELECT * FROM crm_configurations WHERE id = 42;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from activities where id = 631461;
SELECT * FROM crm_field_values WHERE crm_field_id = 180;
select * from teams where id = 2;
SELECT * FROM social_accounts WHERE sociable_id = 89;
SELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273
select * from activity_summary_logs where activity_id = 634273;
select * from sidekick_settings where team_id = 2;
select * from teams; # 2, 2
SELECT * FROM crm_configurations WHERE team_id = 2; # 2
select * from team_features where team_id = 2;
select * from features;
SELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';
SELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from users where team_id = 1 and id IN (7160, 3248);
select * from migrations order by id desc;
SELECT
CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,
u.email,
sa.*,
t.owner_id FROM social_accounts sa
JOIN users u on u.id = sa.sociable_id
JOIN teams t on t.id = u.team_id
WHERE u.team_id = 1 and sa.provider = 'salesforce';
select * from teams where id = 1;
select * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;
select * from groups where id = 565;
select * from playbooks where team_id = 1;
select * from playbooks where id = 175;
select * from playbook_categories where playbook_id = 175;
select * from users where team_id = 1;
select * from users where id = 7160;
select * from crm_profiles where user_id = 7160;
select * from features;
select
*
# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,
# crm_configuration_id, crm_provider_id, transcription_id, status
from activities where crm_configuration_id = 1 and type = 'conference'
# and crm_provider_id IS NOT NULL
and provider != 'uploader' and actual_start_time IS NOT NULL
ORDER by id desc;
select * from activities where id = 54747783; # 00UO400000pCzojMAC
select p.id, p.activity_type, pc.id, pc.name
FROM playbooks p
join playbook_categories pc on p.id = pc.playbook_id
where p.team_id = 1 and p.activity_type = 'event';
SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';
SELECT * FROM crm_field_values WHERE crm_field_id = 4;
select * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id
where crm_configuration_id = 1 and pl.playbook_id = 175;
select * from teams;
SELECT r.* FROM automated_reports r
join teams t on r.team_id = t.id
WHERE r.frequency = 'daily'
and r.status = 1
AND t.status = 'active'
AND (r.expires_at >= now() OR r.expires_at IS NULL);
select * from automated_report_results where report_id IN (18, 33);
select * from activity_searches where id = 10932;
select * from activity_search_filters where activity_search_id = 10932;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from automated_report_results where report_id IN (36);
Sync Changes
Hide This Notification
Code changed:
Hide
3
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Http\Controllers\Webhook;
use Carbon\Carbon;
use Illuminate\Contracts\Bus\Dispatcher as BusDispatcher;
use Illuminate\Contracts\Events\Dispatcher as EventDispatcher;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Exceptions\ModelNotFoundException;
use Jiminny\Http\Controllers\AbstractController;
use Jiminny\Jobs\AutomatedReports\SendReportJob;
use Jiminny\Models\AutomatedReportResult;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsCallbackService;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Psr\Log\LoggerInterface;
use Throwable;
class ReportController extends AbstractController
{
/**
* Log prefix for all log messages
*/
private const string LOG_PREFIX = '[Report Ready]';
public function __construct(
private readonly AutomatedReportsService $automatedReportsService,
private readonly BusDispatcher $dispatcher,
private readonly LoggerInterface $logger,
private readonly AutomatedReportsCallbackService $callbackService,
private readonly EventDispatcher $eventDispatcher,
) {
}
public function ready(Request $request): JsonResponse
{
$payload = $request->all();
$now = Carbon::now();
$this->logger->info(self::LOG_PREFIX . ' Webhook received', [
'payload' => $payload,
]);
// validate
$reportUuid = $this->callbackService->getResultUuid($payload);
if (empty($reportUuid)) {
return response()->json(['status' => 'error', 'message' => 'Request ID is empty'], status: 400);
}
try {
$report = $this->automatedReportsService->getReportResult($reportUuid);
// validate
if ($this->callbackService->isProcessed($report)) {
$this->logger->warning(self::LOG_PREFIX . ' Report has been already processed', [
'uuid' => $reportUuid,
'currentStatus' => $report->getStatusLabel(),
]);
return response()->json(['status' => 'already_processed']);
}
// always try to get a child podcast cause report configuration cannot be trusted
$reportPodcast = $this->automatedReportsService->findChildResult(
result: $report,
type: AutomatedReportsService::MEDIA_TYPE_PODCAST
);
// update results
$report->update([
'status' => $this->callbackService->getPrimaryStatus($report, $payload),
'response' => $payload,
'generated_at' => $now,
]);
// if a podcast is set, update it
$reportPodcast?->update([
'status' => $this->callbackService->getPodcastStatus($payload),
'response' => $payload,
'generated_at' => $now,
]);
$this->logger->info(self::LOG_PREFIX . ' Report has been processed', [
'uuid' => $reportUuid,
'child_uuid' => $reportPodcast?->getUuid(),
]);
if (! $this->callbackService->isSuccess($payload)) {
$this->logger->warning(self::LOG_PREFIX . ' Error creating report', $payload);
return response()->json(['status' => 'ok']);
}
// If one-off, send the report immediately, if not leave it for the scheduler (automated-reports:send)
if ($report->getReport()->getFrequency() === AutomatedReportsService::FREQUENCY_ONE_OFF) {
// send the primary report
$this->dispatcher->dispatch(new SendReportJob($reportUuid));
// send the podcast report if it set and generated
if ($reportPodcast && $reportPodcast->getStatus() === AutomatedReportResult::STATUS_GENERATED) {
$this->dispatcher->dispatch(new SendReportJob(reportUuid: $reportPodcast->getUuid()));
}
}
// Track Datadog metrics for automated reports
$automatedReport = $report->getReport();
$this->callbackService->pushToDatadog($automatedReport, $report);
if ($reportPodcast) {
$this->callbackService->pushToDatadog($automatedReport, $reportPodcast);
}
$this->eventDispatcher->dispatch(new AutomatedReportGenerated($automatedReport, $report));
} catch (ModelNotFoundException $exception) {
$this->logger->error(self::LOG_PREFIX . ' Report not found', [
'uuid' => $reportUuid,
'error' => $exception->getMessage(),
]);
return response()->json(['status' => 'error', 'message' => 'Report not found'], status: 404);
} catch (Throwable $exception) {
$this->logger->error(self::LOG_PREFIX . ' Failed to update report status', [
'uuid' => $reportUuid,
'error' => $exception->getMessage(),
]);
return response()->json(['status' => 'error', 'message' => 'Failed to update report status'], status: 500);
}
return response()->json(['status' => 'ok']);
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"#11894 on JY-18909-automated-reports-ask-jiminny, menu","depth":5,"help_text":"Pull request #11894 exists for current branch JY-18909-automated-reports-ask-jiminny","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"AutomatedReportsCommandTest","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'AutomatedReportsCommandTest'","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'AutomatedReportsCommandTest'","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Execute","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Explain Plan","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Browse Query History","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"View Parameters","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Open Query Execution Settings…","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"In-Editor Results","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Tx: Auto","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Cancel Running Statements","depth":4,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Playground","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"jiminny","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"17","depth":4,"role_description":"text"},{"role":"AXStaticText","text":"15","depth":4,"role_description":"text"},{"role":"AXStaticText","text":"13","depth":4,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"SELECT * FROM teams WHERE id = 1;\n\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;\nSELECT * FROM crm_fields WHERE id = 2234;\nSELECT * FROM crm_field_values WHERE crm_field_id = 2234;\n\nselect * from crm_profiles where user_id = 143;\n\nselect * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO\nselect * from business_processes where crm_configuration_id = 39;\n# 01941000000H669AAC, 01941000000H66JAAS\n\nselect * from record_type_field_values\n where record_type_id IN (24);\n\nselect * from crm_field_values where id IN (2730);\n\nselect * from crm_configurations where id = 39;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce'; #1035\n\n\nselect * from users where team_id = 1; # 222 group 3\nSELECT * FROM activities WHERE user_id = 222 order by id desc;\nselect * from sidekick_settings where team_id = 1;\nselect * from teams where id = 1;\nselect * from team_features where team_id = 1;\n\nselect * from activities where crm_configuration_id = 2\nand provider = 'ms-teams' and id = 608765;\n\nSELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';\n\nselect * from sidekick_settings where team_id = 2;\n\nSELECT * FROM activities WHERE id = 608660;\nselect * from activity_summary_logs where activity_id = 608660;\nselect * from ai_prompts where transcription_id = 11214;\n\n# ********************************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;\n# id: 608818, crm: 59628809737\nSELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;\n# id: 608821, crm: 59632069252\nSELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,\nplaybook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,\nscheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at\nFROM activities a\njoin calendar_events ce on a.calendar_event_id = ce.id\nWHERE a.id IN (608818, 608821);\n\nselect * from users where team_id = 1;\nselect * from team_settings where team_id = 1;\nselect * from crm_profiles where crm_configuration_id = 39 order by user_id;\n\nselect * from team_features where team_id = 1;\n\nselect * from users where team_id = 2;\n\nSELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639\n# Preslava N. Ivanova, grou id 3\n\nSELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;\n\nselect * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';\n\nselect\n a.id,\n a.type,\n a.scheduled_start_time,\n a.actual_start_time,\n a.created_at,\n a.opportunity_id,\n a.status\nFROM activities a\nWHERE opportunity_id = 344\nand status IN ('completed', 'received', 'delivered')\nand (\n (a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))\n;\n\nSELECT * FROM users WHERE id = 222;\n\nSELECT * FROM crm_profiles WHERE user_id = 222;\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;\n\nselect * from group_deal_risk_types;\n\nselect * from opportunities where team_id = 1;\n\nSELECT * FROM opportunities WHERE id = 315;\nSELECT * FROM crm_field_data WHERE object_id = 315;\nselect * from crm_field_data where object_id = 260;\n\nselect * from generic_ai_prompts where subject_id = 315;\n\nselect * from teams; # 36, 21, 121, james.graham@bullhorn.jiminny.com\nSELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';\n\n# ************************************************************************************\nselect * from teams where id = 1;\nselect * from crm_configurations where id = 39;\nselect * from users where team_id = 1;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 1;\n# 1 - 00541000004281rAAA\n# 204 - 0052g000003freeAAA\n# 429 - 0052g000003qGOiAAM\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\nselect * from activities where type = 'softphone'\nand created_at > '2024-12-11 15:24:36' order by id desc;\n\nselect * from activity_providers where team_id = 1;\nselect * from activity_provider_users where activity_provider_id = 328;\n\nselect * from opportunities where crm_configuration_id = 39\nAND account_id = 178 AND is_closed = false\norder by created_at DESC;\n\nselect * from contacts where id = 3952;\nselect * from accounts where id = 178;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations where id = 21;\nselect * from users where team_id = 36;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 36;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 36\nand sa.provider = 'bullhorn';\n\nselect * from social_accounts where id = 348;\nUPDATE social_accounts SET\nprovider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',\nprovider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',\nexpires = 1733998131,\nstate = 'connected'\nWHERE id = 348;\n\n# ************************************************************************************\nselect * from teams where id = 31;\nselect * from crm_configurations where id = 18;\n\nselect * from users where team_id = 31; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 31;\n\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 31\nand sa.provider = 'close';\n\nselect * from contacts where crm_configuration_id = 18;\n\n# ********************** NEPTUNE **************************************************************\nselect * from teams;\nselect * from users where id IN (1030, 1035, 1052);\nselect * from crm_configurations;\n\nselect * from users where team_id = 65; # 257\nselect * from team_settings where team_id = 65; # 257\nselect * from invitations where team_id = 65; # 257\nselect * from users where email = 'integration-account@jiminny.com'; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 65;\n\nselect * from crm_configurations where id = 53;\nselect * from accounts where crm_configuration_id = 53 order by id desc;\nselect * from leads where crm_configuration_id = 53 order by id desc;\nselect * from contacts where crm_configuration_id = 53 order by id desc;\nselect * from opportunities where crm_configuration_id = 53 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 53 order by id desc;\nselect * from crm_fields where crm_configuration_id = 53 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 53 order by id desc;\nselect * from stages where crm_configuration_id = 53 order by id desc;\n\n\nselect * from crm_profiles where crm_configuration_id = 13;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\nand sa.provider = 'integration-app';\n\nselect * from contacts where crm_configuration_id = 13;\n\nselect * from social_accounts where sociable_id = 283;\n\nSELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';\n\nselect * from activity_providers where team_id = 65;\nSELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\n;\n\n# ***************************** STAGING ********************************************\nSELECT * FROM teams;\nSELECT * FROM teams WHERE id = 88;\nSELECT * FROM teams WHERE id = 89;\nselect * from team_settings where team_id = 89;\nSELECT * FROM users WHERE team_id = 89;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 89;\n\nselect * from users;\nSELECT * FROM social_accounts WHERE sociable_id = 1761;\nSELECT * FROM crm_configurations WHERE id = 70;\nselect * from accounts where crm_configuration_id = 70 order by id desc;\nselect * from leads where crm_configuration_id = 70 order by id desc;\nselect * from contacts where crm_configuration_id = 70 order by id desc;\nselect * from opportunities where crm_configuration_id = 70 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 70 order by id desc;\nselect * from crm_fields where crm_configuration_id = 70 order by id desc;\nselect * from crm_field_values where crm_field_id = 3536 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 70 order by id desc;\nselect * from stages where crm_configuration_id = 70 order by id desc;\nselect * from business_processes where crm_configuration_id = 70 order by id desc;\nselect * from business_process_stages where business_process_id = 34;\n\nselect * from contacts where id = 10468;\n\nselect * from crm_layouts where crm_configuration_id = 70;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;\nSELECT * FROM crm_fields WHERE id IN (3533,3534,3535);\n\nselect * from activities where crm_configuration_id = 70\nand (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;\n\nSELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;\nSELECT * FROM activities where crm_configuration_id = 69 ;\n\nSELECT * FROM users WHERE email LIKE '%jiminny_web_sa2@jiminny.com%';\nSELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;\nSELECT * FROM opportunities WHERE id = 385;\n\nselect * from participants p\njoin activities a on p.activity_id = a.id\nwhere a.crm_configuration_id = 70\nand (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);\nSELECT * FROM participants WHERE id = 1013638;\n\nselect * from teams where id = 90;\nselect * from users where team_id = 90;\nselect * from social_accounts where social_accounts.sociable_id IN (1960,1760);\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 71;\nselect * from invitations where team_id = 90;\n\nselect * from crm_configurations where id = 71;\nselect * from accounts where crm_configuration_id = 71 order by id desc;\nselect * from leads where crm_configuration_id = 71 order by id desc;\nselect * from contacts where crm_configuration_id = 71 order by id desc;\nselect * from opportunities where crm_configuration_id = 71 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 71 order by id desc;\nselect * from crm_fields where crm_configuration_id = 71 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 71 order by id desc;\nselect * from stages where crm_configuration_id = 71 order by id desc;\n\nselect * from users order by secondary_email desc;\nselect u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa\n join users u on sa.sociable_id = u.id\nwhere sa.provider = 'google' and u.email LIKE 'aneliya%';\n\nselect * from failed_jobs order by id desc;\n\nselect * from users where email = 'ben.allwright@learningpeople.co.uk' or secondary_email = 'ben.allwright@learningpeople.co.uk';\n\nselect * from teams;\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 39;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\n# ************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;\nSELECT * FROM crm_configurations WHERE id = 70;\n\nselect * from teams where id = 1;\nselect * from groups where team_id = 1;\nselect * from users where team_id = 1;\n\nselect o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o\njoin users u on o.user_id = u.id\njoin groups g on u.group_id = g.id\njoin role_user ru on u.id = ru.user_id\njoin roles r on ru.role_id = r.id\nwhere o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';\n\nselect * from role_user where user_id = 143;\nselect * from roles;\n\nselect * from role_user;\nselect * from groups where id = 9;\nselect * from scope_groups where group_id = 9;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations;\nSELECT * FROM social_accounts WHERE sociable_id = 121;\n\nhttps://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105\nhttps://crmsandbox.zoho.com/crm/\n\nhttps://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080\n https://crm.zoho.com/crm/\n org3469620\n\nSELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;\n\nselect * from users where email LIKE \"%mobile_automation_%\";\nselect * from social_accounts where sociable_id IN (2228);\nselect * from crm_profiles where user_id IN (2222,2223,2226,2227);\n\nselect * from teams order by id desc;\nSELECT * FROM users WHERE id = 2229;\nSELECT * FROM crm_profiles WHERE user_id = 2229;\nselect * from opportunities where crm_configuration_id = 88;\nselect * from crm_fields where crm_configuration_id = 88;\nselect * from crm_profiles where crm_configuration_id = 88;\n\nSELECT * FROM teams WHERE id = 1;\n\nSELECT * FROM users WHERE id = 143;\nSELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;\n\nhttps://app.staging.jiminny.com/ondemand?\n min_duration=1\n &\n only_recorded=1\n &\n user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e\n &\n sequence_number=2\n\n select * from users where team_id = 1 and email like '%stoyan%'\n\nselect * from coaching_feedbacks;\n\nselect * from teams;\nSELECT * FROM users WHERE team_id = 36;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from users where id = 143;\n\nSELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\n\nselect * from users where team_id = 2;\nselect * from activities where crm_configuration_id = 39\nand activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'\nAND user_id = 143\norder by id desc;\n\n# ************************************************************************************\nselect * from teams where id = 142; # 2312, 126\nselect * from team_settings;\nselect * from users where team_id = 142; # 21642\nSELECT * FROM social_accounts WHERE sociable_id = 21642;\nSELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;\nselect * from crm_profiles where id IN (93);\nselect * from invitations;\nselect * from team_features where team_id = 1;\n\nSELECT * FROM crm_configurations WHERE id = 126;\nselect * from accounts where crm_configuration_id = 126 order by id desc;\nselect * from leads where crm_configuration_id = 126 order by id desc;\nselect * from contacts where crm_configuration_id = 126 order by id desc;\nselect * from opportunities where crm_configuration_id = 126 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 126 order by id desc;\nselect * from crm_fields where crm_configuration_id = 126 # 11060\n# and type IN ('picklist', 'status')\n# and object_type = 'task'\norder by id desc;\n# 5731,5732,5733\nselect DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;\nselect * from crm_layouts where crm_configuration_id = 126 order by id desc;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);\nselect * from stages where crm_configuration_id = 126 order by id desc;\nselect * from business_processes where crm_configuration_id = 126 order by id desc;\nselect * from business_process_stages where business_process_id IN (76,75,74,73);\nselect * from playbooks where team_id = 142;\nselect * from playbook_layouts where playbook_id IN (108);\nSELECT * FROM playbook_categories WHERE playbook_id IN (108);\n\nselect * from teams where id = 130;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 2\nand sa.provider = 'hubspot';\n\nSELECT * FROM activities\n WHERE crm_configuration_id = 110;\n\nselect * from teams;\nselect * from crm_configurations;\n\nSELECT * FROM activities WHERE id = 628773;\nSELECT * FROM crm_profiles WHERE user_id = 1460;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from teams;\nselect ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id\njoin permission_role pr on pr.role_id = ru.role_id\n join permissions p on p.id = pr.permission_id\nwhere team_id = 495 and p.name IN ('dial');\n\nselect * from teams where id = 145;\nselect * from crm_configurations where id = 129;\nselect * from social_accounts where sociable_id = 2317;\nSELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;\n\nselect * from teams where id = 1;\nSELECT * FROM crm_layouts WHERE crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;\nSELECT * FROM crm_layout_entities WHERE id = 5507;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');\n\nselect * from teams;\nselect * from activities where crm_configuration_id = 14;\n\nSELECT * FROM social_accounts where provider = 'copper';\n\nselect * from activities where id = 628467;\nselect * from participants where activity_id = 628467;\n\nSELECT * FROM contacts WHERE id = 3969;\nSELECT * FROM accounts WHERE id = 177;\n\nSELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;\n\n# ********************* BH\nselect * from teams where id = 36;\nSELECT * FROM crm_configurations WHERE id = 21;\nselect * from activities where crm_configuration_id = 21 and id = 607901;\nselect * from activities where crm_configuration_id = 21;\n\nselect * roles;\nselect * from permissions;\nselect * from permission_role where permission_id = 226;\n\nselect * from migrations order by id desc;\n\n# mercury\n# neptune\n# earth\n\nselect * from teams;\nselect * from teams where id = 19;\nselect * from teams where id = 27;\nselect * from users where team_id = 27;\nSELECT * FROM crm_configurations WHERE id = 42;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from activities where id = 631461;\nSELECT * FROM crm_field_values WHERE crm_field_id = 180;\n\nselect * from teams where id = 2;\nSELECT * FROM social_accounts WHERE sociable_id = 89;\n\nSELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273\nselect * from activity_summary_logs where activity_id = 634273;\n\nselect * from sidekick_settings where team_id = 2;\n\nselect * from teams; # 2, 2\nSELECT * FROM crm_configurations WHERE team_id = 2; # 2\nselect * from team_features where team_id = 2;\nselect * from features;\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;\n\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from users where team_id = 1 and id IN (7160, 3248);\nselect * from migrations order by id desc;\n\nSELECT\n CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,\n u.email,\n sa.*,\n t.owner_id FROM social_accounts sa\nJOIN users u on u.id = sa.sociable_id\nJOIN teams t on t.id = u.team_id\nWHERE u.team_id = 1 and sa.provider = 'salesforce';\n\nselect * from teams where id = 1;\nselect * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;\nselect * from groups where id = 565;\nselect * from playbooks where team_id = 1;\nselect * from playbooks where id = 175;\nselect * from playbook_categories where playbook_id = 175;\nselect * from users where team_id = 1;\nselect * from users where id = 7160;\nselect * from crm_profiles where user_id = 7160;\nselect * from features;\nselect\n *\n# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,\n# crm_configuration_id, crm_provider_id, transcription_id, status\nfrom activities where crm_configuration_id = 1 and type = 'conference'\n# and crm_provider_id IS NOT NULL\nand provider != 'uploader' and actual_start_time IS NOT NULL\nORDER by id desc;\nselect * from activities where id = 54747783; # 00UO400000pCzojMAC\n\nselect p.id, p.activity_type, pc.id, pc.name\nFROM playbooks p\njoin playbook_categories pc on p.id = pc.playbook_id\nwhere p.team_id = 1 and p.activity_type = 'event';\n\nSELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';\nSELECT * FROM crm_field_values WHERE crm_field_id = 4;\n\nselect * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id\nwhere crm_configuration_id = 1 and pl.playbook_id = 175;\n\nselect * from teams;\nSELECT r.* FROM automated_reports r\njoin teams t on r.team_id = t.id\nWHERE r.frequency = 'daily'\n and r.status = 1\nAND t.status = 'active'\nAND (r.expires_at >= now() OR r.expires_at IS NULL);\n\nselect * from automated_report_results where report_id IN (18, 33);\n\nselect * from activity_searches where id = 10932;\nselect * from activity_search_filters where activity_search_id = 10932;\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from automated_report_results where report_id IN (36);","depth":4,"value":"SELECT * FROM teams WHERE id = 1;\n\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;\nSELECT * FROM crm_fields WHERE id = 2234;\nSELECT * FROM crm_field_values WHERE crm_field_id = 2234;\n\nselect * from crm_profiles where user_id = 143;\n\nselect * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO\nselect * from business_processes where crm_configuration_id = 39;\n# 01941000000H669AAC, 01941000000H66JAAS\n\nselect * from record_type_field_values\n where record_type_id IN (24);\n\nselect * from crm_field_values where id IN (2730);\n\nselect * from crm_configurations where id = 39;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce'; #1035\n\n\nselect * from users where team_id = 1; # 222 group 3\nSELECT * FROM activities WHERE user_id = 222 order by id desc;\nselect * from sidekick_settings where team_id = 1;\nselect * from teams where id = 1;\nselect * from team_features where team_id = 1;\n\nselect * from activities where crm_configuration_id = 2\nand provider = 'ms-teams' and id = 608765;\n\nSELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';\n\nselect * from sidekick_settings where team_id = 2;\n\nSELECT * FROM activities WHERE id = 608660;\nselect * from activity_summary_logs where activity_id = 608660;\nselect * from ai_prompts where transcription_id = 11214;\n\n# ********************************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;\n# id: 608818, crm: 59628809737\nSELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;\n# id: 608821, crm: 59632069252\nSELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,\nplaybook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,\nscheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at\nFROM activities a\njoin calendar_events ce on a.calendar_event_id = ce.id\nWHERE a.id IN (608818, 608821);\n\nselect * from users where team_id = 1;\nselect * from team_settings where team_id = 1;\nselect * from crm_profiles where crm_configuration_id = 39 order by user_id;\n\nselect * from team_features where team_id = 1;\n\nselect * from users where team_id = 2;\n\nSELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639\n# Preslava N. Ivanova, grou id 3\n\nSELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;\n\nselect * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';\n\nselect\n a.id,\n a.type,\n a.scheduled_start_time,\n a.actual_start_time,\n a.created_at,\n a.opportunity_id,\n a.status\nFROM activities a\nWHERE opportunity_id = 344\nand status IN ('completed', 'received', 'delivered')\nand (\n (a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))\n;\n\nSELECT * FROM users WHERE id = 222;\n\nSELECT * FROM crm_profiles WHERE user_id = 222;\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;\n\nselect * from group_deal_risk_types;\n\nselect * from opportunities where team_id = 1;\n\nSELECT * FROM opportunities WHERE id = 315;\nSELECT * FROM crm_field_data WHERE object_id = 315;\nselect * from crm_field_data where object_id = 260;\n\nselect * from generic_ai_prompts where subject_id = 315;\n\nselect * from teams; # 36, 21, 121, james.graham@bullhorn.jiminny.com\nSELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';\n\n# ************************************************************************************\nselect * from teams where id = 1;\nselect * from crm_configurations where id = 39;\nselect * from users where team_id = 1;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 1;\n# 1 - 00541000004281rAAA\n# 204 - 0052g000003freeAAA\n# 429 - 0052g000003qGOiAAM\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\nselect * from activities where type = 'softphone'\nand created_at > '2024-12-11 15:24:36' order by id desc;\n\nselect * from activity_providers where team_id = 1;\nselect * from activity_provider_users where activity_provider_id = 328;\n\nselect * from opportunities where crm_configuration_id = 39\nAND account_id = 178 AND is_closed = false\norder by created_at DESC;\n\nselect * from contacts where id = 3952;\nselect * from accounts where id = 178;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations where id = 21;\nselect * from users where team_id = 36;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 36;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 36\nand sa.provider = 'bullhorn';\n\nselect * from social_accounts where id = 348;\nUPDATE social_accounts SET\nprovider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',\nprovider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',\nexpires = 1733998131,\nstate = 'connected'\nWHERE id = 348;\n\n# ************************************************************************************\nselect * from teams where id = 31;\nselect * from crm_configurations where id = 18;\n\nselect * from users where team_id = 31; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 31;\n\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 31\nand sa.provider = 'close';\n\nselect * from contacts where crm_configuration_id = 18;\n\n# ********************** NEPTUNE **************************************************************\nselect * from teams;\nselect * from users where id IN (1030, 1035, 1052);\nselect * from crm_configurations;\n\nselect * from users where team_id = 65; # 257\nselect * from team_settings where team_id = 65; # 257\nselect * from invitations where team_id = 65; # 257\nselect * from users where email = 'integration-account@jiminny.com'; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 65;\n\nselect * from crm_configurations where id = 53;\nselect * from accounts where crm_configuration_id = 53 order by id desc;\nselect * from leads where crm_configuration_id = 53 order by id desc;\nselect * from contacts where crm_configuration_id = 53 order by id desc;\nselect * from opportunities where crm_configuration_id = 53 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 53 order by id desc;\nselect * from crm_fields where crm_configuration_id = 53 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 53 order by id desc;\nselect * from stages where crm_configuration_id = 53 order by id desc;\n\n\nselect * from crm_profiles where crm_configuration_id = 13;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\nand sa.provider = 'integration-app';\n\nselect * from contacts where crm_configuration_id = 13;\n\nselect * from social_accounts where sociable_id = 283;\n\nSELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';\n\nselect * from activity_providers where team_id = 65;\nSELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\n;\n\n# ***************************** STAGING ********************************************\nSELECT * FROM teams;\nSELECT * FROM teams WHERE id = 88;\nSELECT * FROM teams WHERE id = 89;\nselect * from team_settings where team_id = 89;\nSELECT * FROM users WHERE team_id = 89;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 89;\n\nselect * from users;\nSELECT * FROM social_accounts WHERE sociable_id = 1761;\nSELECT * FROM crm_configurations WHERE id = 70;\nselect * from accounts where crm_configuration_id = 70 order by id desc;\nselect * from leads where crm_configuration_id = 70 order by id desc;\nselect * from contacts where crm_configuration_id = 70 order by id desc;\nselect * from opportunities where crm_configuration_id = 70 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 70 order by id desc;\nselect * from crm_fields where crm_configuration_id = 70 order by id desc;\nselect * from crm_field_values where crm_field_id = 3536 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 70 order by id desc;\nselect * from stages where crm_configuration_id = 70 order by id desc;\nselect * from business_processes where crm_configuration_id = 70 order by id desc;\nselect * from business_process_stages where business_process_id = 34;\n\nselect * from contacts where id = 10468;\n\nselect * from crm_layouts where crm_configuration_id = 70;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;\nSELECT * FROM crm_fields WHERE id IN (3533,3534,3535);\n\nselect * from activities where crm_configuration_id = 70\nand (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;\n\nSELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;\nSELECT * FROM activities where crm_configuration_id = 69 ;\n\nSELECT * FROM users WHERE email LIKE '%jiminny_web_sa2@jiminny.com%';\nSELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;\nSELECT * FROM opportunities WHERE id = 385;\n\nselect * from participants p\njoin activities a on p.activity_id = a.id\nwhere a.crm_configuration_id = 70\nand (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);\nSELECT * FROM participants WHERE id = 1013638;\n\nselect * from teams where id = 90;\nselect * from users where team_id = 90;\nselect * from social_accounts where social_accounts.sociable_id IN (1960,1760);\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 71;\nselect * from invitations where team_id = 90;\n\nselect * from crm_configurations where id = 71;\nselect * from accounts where crm_configuration_id = 71 order by id desc;\nselect * from leads where crm_configuration_id = 71 order by id desc;\nselect * from contacts where crm_configuration_id = 71 order by id desc;\nselect * from opportunities where crm_configuration_id = 71 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 71 order by id desc;\nselect * from crm_fields where crm_configuration_id = 71 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 71 order by id desc;\nselect * from stages where crm_configuration_id = 71 order by id desc;\n\nselect * from users order by secondary_email desc;\nselect u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa\n join users u on sa.sociable_id = u.id\nwhere sa.provider = 'google' and u.email LIKE 'aneliya%';\n\nselect * from failed_jobs order by id desc;\n\nselect * from users where email = 'ben.allwright@learningpeople.co.uk' or secondary_email = 'ben.allwright@learningpeople.co.uk';\n\nselect * from teams;\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 39;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\n# ************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;\nSELECT * FROM crm_configurations WHERE id = 70;\n\nselect * from teams where id = 1;\nselect * from groups where team_id = 1;\nselect * from users where team_id = 1;\n\nselect o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o\njoin users u on o.user_id = u.id\njoin groups g on u.group_id = g.id\njoin role_user ru on u.id = ru.user_id\njoin roles r on ru.role_id = r.id\nwhere o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';\n\nselect * from role_user where user_id = 143;\nselect * from roles;\n\nselect * from role_user;\nselect * from groups where id = 9;\nselect * from scope_groups where group_id = 9;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations;\nSELECT * FROM social_accounts WHERE sociable_id = 121;\n\nhttps://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105\nhttps://crmsandbox.zoho.com/crm/\n\nhttps://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080\n https://crm.zoho.com/crm/\n org3469620\n\nSELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;\n\nselect * from users where email LIKE \"%mobile_automation_%\";\nselect * from social_accounts where sociable_id IN (2228);\nselect * from crm_profiles where user_id IN (2222,2223,2226,2227);\n\nselect * from teams order by id desc;\nSELECT * FROM users WHERE id = 2229;\nSELECT * FROM crm_profiles WHERE user_id = 2229;\nselect * from opportunities where crm_configuration_id = 88;\nselect * from crm_fields where crm_configuration_id = 88;\nselect * from crm_profiles where crm_configuration_id = 88;\n\nSELECT * FROM teams WHERE id = 1;\n\nSELECT * FROM users WHERE id = 143;\nSELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;\n\nhttps://app.staging.jiminny.com/ondemand?\n min_duration=1\n &\n only_recorded=1\n &\n user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e\n &\n sequence_number=2\n\n select * from users where team_id = 1 and email like '%stoyan%'\n\nselect * from coaching_feedbacks;\n\nselect * from teams;\nSELECT * FROM users WHERE team_id = 36;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from users where id = 143;\n\nSELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\n\nselect * from users where team_id = 2;\nselect * from activities where crm_configuration_id = 39\nand activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'\nAND user_id = 143\norder by id desc;\n\n# ************************************************************************************\nselect * from teams where id = 142; # 2312, 126\nselect * from team_settings;\nselect * from users where team_id = 142; # 21642\nSELECT * FROM social_accounts WHERE sociable_id = 21642;\nSELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;\nselect * from crm_profiles where id IN (93);\nselect * from invitations;\nselect * from team_features where team_id = 1;\n\nSELECT * FROM crm_configurations WHERE id = 126;\nselect * from accounts where crm_configuration_id = 126 order by id desc;\nselect * from leads where crm_configuration_id = 126 order by id desc;\nselect * from contacts where crm_configuration_id = 126 order by id desc;\nselect * from opportunities where crm_configuration_id = 126 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 126 order by id desc;\nselect * from crm_fields where crm_configuration_id = 126 # 11060\n# and type IN ('picklist', 'status')\n# and object_type = 'task'\norder by id desc;\n# 5731,5732,5733\nselect DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;\nselect * from crm_layouts where crm_configuration_id = 126 order by id desc;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);\nselect * from stages where crm_configuration_id = 126 order by id desc;\nselect * from business_processes where crm_configuration_id = 126 order by id desc;\nselect * from business_process_stages where business_process_id IN (76,75,74,73);\nselect * from playbooks where team_id = 142;\nselect * from playbook_layouts where playbook_id IN (108);\nSELECT * FROM playbook_categories WHERE playbook_id IN (108);\n\nselect * from teams where id = 130;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 2\nand sa.provider = 'hubspot';\n\nSELECT * FROM activities\n WHERE crm_configuration_id = 110;\n\nselect * from teams;\nselect * from crm_configurations;\n\nSELECT * FROM activities WHERE id = 628773;\nSELECT * FROM crm_profiles WHERE user_id = 1460;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from teams;\nselect ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id\njoin permission_role pr on pr.role_id = ru.role_id\n join permissions p on p.id = pr.permission_id\nwhere team_id = 495 and p.name IN ('dial');\n\nselect * from teams where id = 145;\nselect * from crm_configurations where id = 129;\nselect * from social_accounts where sociable_id = 2317;\nSELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;\n\nselect * from teams where id = 1;\nSELECT * FROM crm_layouts WHERE crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;\nSELECT * FROM crm_layout_entities WHERE id = 5507;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');\n\nselect * from teams;\nselect * from activities where crm_configuration_id = 14;\n\nSELECT * FROM social_accounts where provider = 'copper';\n\nselect * from activities where id = 628467;\nselect * from participants where activity_id = 628467;\n\nSELECT * FROM contacts WHERE id = 3969;\nSELECT * FROM accounts WHERE id = 177;\n\nSELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;\n\n# ********************* BH\nselect * from teams where id = 36;\nSELECT * FROM crm_configurations WHERE id = 21;\nselect * from activities where crm_configuration_id = 21 and id = 607901;\nselect * from activities where crm_configuration_id = 21;\n\nselect * roles;\nselect * from permissions;\nselect * from permission_role where permission_id = 226;\n\nselect * from migrations order by id desc;\n\n# mercury\n# neptune\n# earth\n\nselect * from teams;\nselect * from teams where id = 19;\nselect * from teams where id = 27;\nselect * from users where team_id = 27;\nSELECT * FROM crm_configurations WHERE id = 42;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from activities where id = 631461;\nSELECT * FROM crm_field_values WHERE crm_field_id = 180;\n\nselect * from teams where id = 2;\nSELECT * FROM social_accounts WHERE sociable_id = 89;\n\nSELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273\nselect * from activity_summary_logs where activity_id = 634273;\n\nselect * from sidekick_settings where team_id = 2;\n\nselect * from teams; # 2, 2\nSELECT * FROM crm_configurations WHERE team_id = 2; # 2\nselect * from team_features where team_id = 2;\nselect * from features;\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;\n\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from users where team_id = 1 and id IN (7160, 3248);\nselect * from migrations order by id desc;\n\nSELECT\n CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,\n u.email,\n sa.*,\n t.owner_id FROM social_accounts sa\nJOIN users u on u.id = sa.sociable_id\nJOIN teams t on t.id = u.team_id\nWHERE u.team_id = 1 and sa.provider = 'salesforce';\n\nselect * from teams where id = 1;\nselect * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;\nselect * from groups where id = 565;\nselect * from playbooks where team_id = 1;\nselect * from playbooks where id = 175;\nselect * from playbook_categories where playbook_id = 175;\nselect * from users where team_id = 1;\nselect * from users where id = 7160;\nselect * from crm_profiles where user_id = 7160;\nselect * from features;\nselect\n *\n# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,\n# crm_configuration_id, crm_provider_id, transcription_id, status\nfrom activities where crm_configuration_id = 1 and type = 'conference'\n# and crm_provider_id IS NOT NULL\nand provider != 'uploader' and actual_start_time IS NOT NULL\nORDER by id desc;\nselect * from activities where id = 54747783; # 00UO400000pCzojMAC\n\nselect p.id, p.activity_type, pc.id, pc.name\nFROM playbooks p\njoin playbook_categories pc on p.id = pc.playbook_id\nwhere p.team_id = 1 and p.activity_type = 'event';\n\nSELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';\nSELECT * FROM crm_field_values WHERE crm_field_id = 4;\n\nselect * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id\nwhere crm_configuration_id = 1 and pl.playbook_id = 175;\n\nselect * from teams;\nSELECT r.* FROM automated_reports r\njoin teams t on r.team_id = t.id\nWHERE r.frequency = 'daily'\n and r.status = 1\nAND t.status = 'active'\nAND (r.expires_at >= now() OR r.expires_at IS NULL);\n\nselect * from automated_report_results where report_id IN (18, 33);\n\nselect * from activity_searches where id = 10932;\nselect * from activity_search_filters where activity_search_id = 10932;\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from automated_report_results where report_id IN (36);","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"3","depth":4,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\ndeclare(strict_types=1);\n\nnamespace Jiminny\\Http\\Controllers\\Webhook;\n\nuse Carbon\\Carbon;\nuse Illuminate\\Contracts\\Bus\\Dispatcher as BusDispatcher;\nuse Illuminate\\Contracts\\Events\\Dispatcher as EventDispatcher;\nuse Illuminate\\Http\\JsonResponse;\nuse Illuminate\\Http\\Request;\nuse Jiminny\\Events\\AutomatedReports\\AutomatedReportGenerated;\nuse Jiminny\\Exceptions\\ModelNotFoundException;\nuse Jiminny\\Http\\Controllers\\AbstractController;\nuse Jiminny\\Jobs\\AutomatedReports\\SendReportJob;\nuse Jiminny\\Models\\AutomatedReportResult;\nuse Jiminny\\Services\\Kiosk\\AutomatedReports\\AutomatedReportsCallbackService;\nuse Jiminny\\Services\\Kiosk\\AutomatedReports\\AutomatedReportsService;\nuse Psr\\Log\\LoggerInterface;\nuse Throwable;\n\nclass ReportController extends AbstractController\n{\n /**\n * Log prefix for all log messages\n */\n private const string LOG_PREFIX = '[Report Ready]';\n\n public function __construct(\n private readonly AutomatedReportsService $automatedReportsService,\n private readonly BusDispatcher $dispatcher,\n private readonly LoggerInterface $logger,\n private readonly AutomatedReportsCallbackService $callbackService,\n private readonly EventDispatcher $eventDispatcher,\n ) {\n }\n\n public function ready(Request $request): JsonResponse\n {\n $payload = $request->all();\n $now = Carbon::now();\n\n $this->logger->info(self::LOG_PREFIX . ' Webhook received', [\n 'payload' => $payload,\n ]);\n\n // validate\n $reportUuid = $this->callbackService->getResultUuid($payload);\n if (empty($reportUuid)) {\n return response()->json(['status' => 'error', 'message' => 'Request ID is empty'], status: 400);\n }\n\n try {\n $report = $this->automatedReportsService->getReportResult($reportUuid);\n\n // validate\n if ($this->callbackService->isProcessed($report)) {\n $this->logger->warning(self::LOG_PREFIX . ' Report has been already processed', [\n 'uuid' => $reportUuid,\n 'currentStatus' => $report->getStatusLabel(),\n ]);\n\n return response()->json(['status' => 'already_processed']);\n }\n\n // always try to get a child podcast cause report configuration cannot be trusted\n $reportPodcast = $this->automatedReportsService->findChildResult(\n result: $report,\n type: AutomatedReportsService::MEDIA_TYPE_PODCAST\n );\n\n // update results\n $report->update([\n 'status' => $this->callbackService->getPrimaryStatus($report, $payload),\n 'response' => $payload,\n 'generated_at' => $now,\n ]);\n // if a podcast is set, update it\n $reportPodcast?->update([\n 'status' => $this->callbackService->getPodcastStatus($payload),\n 'response' => $payload,\n 'generated_at' => $now,\n ]);\n\n $this->logger->info(self::LOG_PREFIX . ' Report has been processed', [\n 'uuid' => $reportUuid,\n 'child_uuid' => $reportPodcast?->getUuid(),\n ]);\n\n if (! $this->callbackService->isSuccess($payload)) {\n $this->logger->warning(self::LOG_PREFIX . ' Error creating report', $payload);\n\n return response()->json(['status' => 'ok']);\n }\n\n // If one-off, send the report immediately, if not leave it for the scheduler (automated-reports:send)\n if ($report->getReport()->getFrequency() === AutomatedReportsService::FREQUENCY_ONE_OFF) {\n // send the primary report\n $this->dispatcher->dispatch(new SendReportJob($reportUuid));\n\n // send the podcast report if it set and generated\n if ($reportPodcast && $reportPodcast->getStatus() === AutomatedReportResult::STATUS_GENERATED) {\n $this->dispatcher->dispatch(new SendReportJob(reportUuid: $reportPodcast->getUuid()));\n }\n }\n\n // Track Datadog metrics for automated reports\n $automatedReport = $report->getReport();\n $this->callbackService->pushToDatadog($automatedReport, $report);\n\n if ($reportPodcast) {\n $this->callbackService->pushToDatadog($automatedReport, $reportPodcast);\n }\n\n $this->eventDispatcher->dispatch(new AutomatedReportGenerated($automatedReport, $report));\n } catch (ModelNotFoundException $exception) {\n $this->logger->error(self::LOG_PREFIX . ' Report not found', [\n 'uuid' => $reportUuid,\n 'error' => $exception->getMessage(),\n ]);\n\n return response()->json(['status' => 'error', 'message' => 'Report not found'], status: 404);\n } catch (Throwable $exception) {\n $this->logger->error(self::LOG_PREFIX . ' Failed to update report status', [\n 'uuid' => $reportUuid,\n 'error' => $exception->getMessage(),\n ]);\n\n return response()->json(['status' => 'error', 'message' => 'Failed to update report status'], status: 500);\n }\n\n return response()->json(['status' => 'ok']);\n }\n}","depth":4,"value":"<?php\n\ndeclare(strict_types=1);\n\nnamespace Jiminny\\Http\\Controllers\\Webhook;\n\nuse Carbon\\Carbon;\nuse Illuminate\\Contracts\\Bus\\Dispatcher as BusDispatcher;\nuse Illuminate\\Contracts\\Events\\Dispatcher as EventDispatcher;\nuse Illuminate\\Http\\JsonResponse;\nuse Illuminate\\Http\\Request;\nuse Jiminny\\Events\\AutomatedReports\\AutomatedReportGenerated;\nuse Jiminny\\Exceptions\\ModelNotFoundException;\nuse Jiminny\\Http\\Controllers\\AbstractController;\nuse Jiminny\\Jobs\\AutomatedReports\\SendReportJob;\nuse Jiminny\\Models\\AutomatedReportResult;\nuse Jiminny\\Services\\Kiosk\\AutomatedReports\\AutomatedReportsCallbackService;\nuse Jiminny\\Services\\Kiosk\\AutomatedReports\\AutomatedReportsService;\nuse Psr\\Log\\LoggerInterface;\nuse Throwable;\n\nclass ReportController extends AbstractController\n{\n /**\n * Log prefix for all log messages\n */\n private const string LOG_PREFIX = '[Report Ready]';\n\n public function __construct(\n private readonly AutomatedReportsService $automatedReportsService,\n private readonly BusDispatcher $dispatcher,\n private readonly LoggerInterface $logger,\n private readonly AutomatedReportsCallbackService $callbackService,\n private readonly EventDispatcher $eventDispatcher,\n ) {\n }\n\n public function ready(Request $request): JsonResponse\n {\n $payload = $request->all();\n $now = Carbon::now();\n\n $this->logger->info(self::LOG_PREFIX . ' Webhook received', [\n 'payload' => $payload,\n ]);\n\n // validate\n $reportUuid = $this->callbackService->getResultUuid($payload);\n if (empty($reportUuid)) {\n return response()->json(['status' => 'error', 'message' => 'Request ID is empty'], status: 400);\n }\n\n try {\n $report = $this->automatedReportsService->getReportResult($reportUuid);\n\n // validate\n if ($this->callbackService->isProcessed($report)) {\n $this->logger->warning(self::LOG_PREFIX . ' Report has been already processed', [\n 'uuid' => $reportUuid,\n 'currentStatus' => $report->getStatusLabel(),\n ]);\n\n return response()->json(['status' => 'already_processed']);\n }\n\n // always try to get a child podcast cause report configuration cannot be trusted\n $reportPodcast = $this->automatedReportsService->findChildResult(\n result: $report,\n type: AutomatedReportsService::MEDIA_TYPE_PODCAST\n );\n\n // update results\n $report->update([\n 'status' => $this->callbackService->getPrimaryStatus($report, $payload),\n 'response' => $payload,\n 'generated_at' => $now,\n ]);\n // if a podcast is set, update it\n $reportPodcast?->update([\n 'status' => $this->callbackService->getPodcastStatus($payload),\n 'response' => $payload,\n 'generated_at' => $now,\n ]);\n\n $this->logger->info(self::LOG_PREFIX . ' Report has been processed', [\n 'uuid' => $reportUuid,\n 'child_uuid' => $reportPodcast?->getUuid(),\n ]);\n\n if (! $this->callbackService->isSuccess($payload)) {\n $this->logger->warning(self::LOG_PREFIX . ' Error creating report', $payload);\n\n return response()->json(['status' => 'ok']);\n }\n\n // If one-off, send the report immediately, if not leave it for the scheduler (automated-reports:send)\n if ($report->getReport()->getFrequency() === AutomatedReportsService::FREQUENCY_ONE_OFF) {\n // send the primary report\n $this->dispatcher->dispatch(new SendReportJob($reportUuid));\n\n // send the podcast report if it set and generated\n if ($reportPodcast && $reportPodcast->getStatus() === AutomatedReportResult::STATUS_GENERATED) {\n $this->dispatcher->dispatch(new SendReportJob(reportUuid: $reportPodcast->getUuid()));\n }\n }\n\n // Track Datadog metrics for automated reports\n $automatedReport = $report->getReport();\n $this->callbackService->pushToDatadog($automatedReport, $report);\n\n if ($reportPodcast) {\n $this->callbackService->pushToDatadog($automatedReport, $reportPodcast);\n }\n\n $this->eventDispatcher->dispatch(new AutomatedReportGenerated($automatedReport, $report));\n } catch (ModelNotFoundException $exception) {\n $this->logger->error(self::LOG_PREFIX . ' Report not found', [\n 'uuid' => $reportUuid,\n 'error' => $exception->getMessage(),\n ]);\n\n return response()->json(['status' => 'error', 'message' => 'Report not found'], status: 404);\n } catch (Throwable $exception) {\n $this->logger->error(self::LOG_PREFIX . ' Failed to update report status', [\n 'uuid' => $reportUuid,\n 'error' => $exception->getMessage(),\n ]);\n\n return response()->json(['status' => 'error', 'message' => 'Failed to update report status'], status: 500);\n }\n\n return response()->json(['status' => 'ok']);\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Project","depth":3,"role_description":"text"},{"role":"AXButton","text":"Project","depth":3,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"New File or Directory…","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Expand Selected","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Collapse All","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Options","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-6777848179700675870
|
6686649160176153677
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error
Next Highlighted Error
SELECT * FROM teams WHERE id = 1;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;
SELECT * FROM crm_fields WHERE id = 2234;
SELECT * FROM crm_field_values WHERE crm_field_id = 2234;
select * from crm_profiles where user_id = 143;
select * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO
select * from business_processes where crm_configuration_id = 39;
# 01941000000H669AAC, 01941000000H66JAAS
select * from record_type_field_values
where record_type_id IN (24);
select * from crm_field_values where id IN (2730);
select * from crm_configurations where id = 39;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce'; #1035
select * from users where team_id = 1; # 222 group 3
SELECT * FROM activities WHERE user_id = 222 order by id desc;
select * from sidekick_settings where team_id = 1;
select * from teams where id = 1;
select * from team_features where team_id = 1;
select * from activities where crm_configuration_id = 2
and provider = 'ms-teams' and id = 608765;
SELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';
select * from sidekick_settings where team_id = 2;
SELECT * FROM activities WHERE id = 608660;
select * from activity_summary_logs where activity_id = 608660;
select * from ai_prompts where transcription_id = 11214;
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;
# id: 608818, crm: 59628809737
SELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;
# id: 608821, crm: 59632069252
SELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,
playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,
scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at
FROM activities a
join calendar_events ce on a.calendar_event_id = ce.id
WHERE a.id IN (608818, 608821);
select * from users where team_id = 1;
select * from team_settings where team_id = 1;
select * from crm_profiles where crm_configuration_id = 39 order by user_id;
select * from team_features where team_id = 1;
select * from users where team_id = 2;
SELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639
# Preslava N. Ivanova, grou id 3
SELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;
select * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';
select
a.id,
a.type,
a.scheduled_start_time,
a.actual_start_time,
a.created_at,
a.opportunity_id,
a.status
FROM activities a
WHERE opportunity_id = 344
and status IN ('completed', 'received', 'delivered')
and (
(a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))
;
SELECT * FROM users WHERE id = 222;
SELECT * FROM crm_profiles WHERE user_id = 222;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;
select * from group_deal_risk_types;
select * from opportunities where team_id = 1;
SELECT * FROM opportunities WHERE id = 315;
SELECT * FROM crm_field_data WHERE object_id = 315;
select * from crm_field_data where object_id = 260;
select * from generic_ai_prompts where subject_id = 315;
select * from teams; # 36, 21, 121, [EMAIL]
SELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';
# [PASSWORD_DOTS]
select * from teams where id = 1;
select * from crm_configurations where id = 39;
select * from users where team_id = 1;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 1;
# 1 - 00541000004281rAAA
# 204 - 0052g000003freeAAA
# 429 - 0052g000003qGOiAAM
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
select * from activities where type = 'softphone'
and created_at > '2024-12-11 15:24:36' order by id desc;
select * from activity_providers where team_id = 1;
select * from activity_provider_users where activity_provider_id = 328;
select * from opportunities where crm_configuration_id = 39
AND account_id = 178 AND is_closed = false
order by created_at DESC;
select * from contacts where id = 3952;
select * from accounts where id = 178;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations where id = 21;
select * from users where team_id = 36;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 36
and sa.provider = 'bullhorn';
select * from social_accounts where id = 348;
UPDATE social_accounts SET
provider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',
provider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',
expires = 1733998131,
state = 'connected'
WHERE id = 348;
# [PASSWORD_DOTS]
select * from teams where id = 31;
select * from crm_configurations where id = 18;
select * from users where team_id = 31; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 31;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 31
and sa.provider = 'close';
select * from contacts where crm_configuration_id = 18;
# [PASSWORD_DOTS] NEPTUNE [PASSWORD_DOTS]
select * from teams;
select * from users where id IN (1030, 1035, 1052);
select * from crm_configurations;
select * from users where team_id = 65; # 257
select * from team_settings where team_id = 65; # 257
select * from invitations where team_id = 65; # 257
select * from users where email = '[EMAIL]'; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 65;
select * from crm_configurations where id = 53;
select * from accounts where crm_configuration_id = 53 order by id desc;
select * from leads where crm_configuration_id = 53 order by id desc;
select * from contacts where crm_configuration_id = 53 order by id desc;
select * from opportunities where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 53 order by id desc;
select * from crm_fields where crm_configuration_id = 53 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 53 order by id desc;
select * from stages where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 13;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
and sa.provider = 'integration-app';
select * from contacts where crm_configuration_id = 13;
select * from social_accounts where sociable_id = 283;
SELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';
select * from activity_providers where team_id = 65;
SELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
;
# [PASSWORD_DOTS] STAGING [PASSWORD_DOTS]
SELECT * FROM teams;
SELECT * FROM teams WHERE id = 88;
SELECT * FROM teams WHERE id = 89;
select * from team_settings where team_id = 89;
SELECT * FROM users WHERE team_id = 89;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 89;
select * from users;
SELECT * FROM social_accounts WHERE sociable_id = 1761;
SELECT * FROM crm_configurations WHERE id = 70;
select * from accounts where crm_configuration_id = 70 order by id desc;
select * from leads where crm_configuration_id = 70 order by id desc;
select * from contacts where crm_configuration_id = 70 order by id desc;
select * from opportunities where crm_configuration_id = 70 order by id desc;
select * from crm_profiles where crm_configuration_id = 70 order by id desc;
select * from crm_fields where crm_configuration_id = 70 order by id desc;
select * from crm_field_values where crm_field_id = 3536 order by id desc;
select * from crm_layouts where crm_configuration_id = 70 order by id desc;
select * from stages where crm_configuration_id = 70 order by id desc;
select * from business_processes where crm_configuration_id = 70 order by id desc;
select * from business_process_stages where business_process_id = 34;
select * from contacts where id = 10468;
select * from crm_layouts where crm_configuration_id = 70;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;
SELECT * FROM crm_fields WHERE id IN (3533,3534,3535);
select * from activities where crm_configuration_id = 70
and (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;
SELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;
SELECT * FROM activities where crm_configuration_id = 69 ;
SELECT * FROM users WHERE email LIKE '%[EMAIL]%';
SELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;
SELECT * FROM opportunities WHERE id = 385;
select * from participants p
join activities a on p.activity_id = a.id
where a.crm_configuration_id = 70
and (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);
SELECT * FROM participants WHERE id = 1013638;
select * from teams where id = 90;
select * from users where team_id = 90;
select * from social_accounts where social_accounts.sociable_id IN (1960,1760);
SELECT * FROM crm_profiles WHERE crm_configuration_id = 71;
select * from invitations where team_id = 90;
select * from crm_configurations where id = 71;
select * from accounts where crm_configuration_id = 71 order by id desc;
select * from leads where crm_configuration_id = 71 order by id desc;
select * from contacts where crm_configuration_id = 71 order by id desc;
select * from opportunities where crm_configuration_id = 71 order by id desc;
select * from crm_profiles where crm_configuration_id = 71 order by id desc;
select * from crm_fields where crm_configuration_id = 71 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 71 order by id desc;
select * from stages where crm_configuration_id = 71 order by id desc;
select * from users order by secondary_email desc;
select u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa
join users u on sa.sociable_id = u.id
where sa.provider = 'google' and u.email LIKE 'aneliya%';
select * from failed_jobs order by id desc;
select * from users where email = '[EMAIL]' or secondary_email = '[EMAIL]';
select * from teams;
SELECT * FROM crm_profiles WHERE crm_configuration_id = 39;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;
SELECT * FROM crm_configurations WHERE id = 70;
select * from teams where id = 1;
select * from groups where team_id = 1;
select * from users where team_id = 1;
select o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o
join users u on o.user_id = u.id
join groups g on u.group_id = g.id
join role_user ru on u.id = ru.user_id
join roles r on ru.role_id = r.id
where o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';
select * from role_user where user_id = 143;
select * from roles;
select * from role_user;
select * from groups where id = 9;
select * from scope_groups where group_id = 9;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations;
SELECT * FROM social_accounts WHERE sociable_id = 121;
https://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105
https://crmsandbox.zoho.com/crm/
https://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080
https://crm.zoho.com/crm/
org3469620
SELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;
select * from users where email LIKE "%mobile_automation_%";
select * from social_accounts where sociable_id IN (2228);
select * from crm_profiles where user_id IN (2222,2223,2226,2227);
select * from teams order by id desc;
SELECT * FROM users WHERE id = 2229;
SELECT * FROM crm_profiles WHERE user_id = 2229;
select * from opportunities where crm_configuration_id = 88;
select * from crm_fields where crm_configuration_id = 88;
select * from crm_profiles where crm_configuration_id = 88;
SELECT * FROM teams WHERE id = 1;
SELECT * FROM users WHERE id = 143;
SELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;
https://app.staging.jiminny.com/ondemand?
min_duration=1
&
only_recorded=1
&
user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e
&
sequence_number=2
select * from users where team_id = 1 and email like '%stoyan%'
select * from coaching_feedbacks;
select * from teams;
SELECT * FROM users WHERE team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from users where id = 143;
SELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
select * from users where team_id = 2;
select * from activities where crm_configuration_id = 39
and activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'
AND user_id = 143
order by id desc;
# [PASSWORD_DOTS]
select * from teams where id = 142; # 2312, 126
select * from team_settings;
select * from users where team_id = 142; # 21642
SELECT * FROM social_accounts WHERE sociable_id = 21642;
SELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;
select * from crm_profiles where id IN (93);
select * from invitations;
select * from team_features where team_id = 1;
SELECT * FROM crm_configurations WHERE id = 126;
select * from accounts where crm_configuration_id = 126 order by id desc;
select * from leads where crm_configuration_id = 126 order by id desc;
select * from contacts where crm_configuration_id = 126 order by id desc;
select * from opportunities where crm_configuration_id = 126 order by id desc;
select * from crm_profiles where crm_configuration_id = 126 order by id desc;
select * from crm_fields where crm_configuration_id = 126 # 11060
# and type IN ('picklist', 'status')
# and object_type = 'task'
order by id desc;
# 5731,5732,5733
select DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;
select * from crm_layouts where crm_configuration_id = 126 order by id desc;
SELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);
select * from stages where crm_configuration_id = 126 order by id desc;
select * from business_processes where crm_configuration_id = 126 order by id desc;
select * from business_process_stages where business_process_id IN (76,75,74,73);
select * from playbooks where team_id = 142;
select * from playbook_layouts where playbook_id IN (108);
SELECT * FROM playbook_categories WHERE playbook_id IN (108);
select * from teams where id = 130;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 2
and sa.provider = 'hubspot';
SELECT * FROM activities
WHERE crm_configuration_id = 110;
select * from teams;
select * from crm_configurations;
SELECT * FROM activities WHERE id = 628773;
SELECT * FROM crm_profiles WHERE user_id = 1460;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from teams;
select ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id
join permission_role pr on pr.role_id = ru.role_id
join permissions p on p.id = pr.permission_id
where team_id = 495 and p.name IN ('dial');
select * from teams where id = 145;
select * from crm_configurations where id = 129;
select * from social_accounts where sociable_id = 2317;
SELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;
select * from teams where id = 1;
SELECT * FROM crm_layouts WHERE crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;
SELECT * FROM crm_layout_entities WHERE id = 5507;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');
select * from teams;
select * from activities where crm_configuration_id = 14;
SELECT * FROM social_accounts where provider = 'copper';
select * from activities where id = 628467;
select * from participants where activity_id = 628467;
SELECT * FROM contacts WHERE id = 3969;
SELECT * FROM accounts WHERE id = 177;
SELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;
# [PASSWORD_DOTS] BH
select * from teams where id = 36;
SELECT * FROM crm_configurations WHERE id = 21;
select * from activities where crm_configuration_id = 21 and id = 607901;
select * from activities where crm_configuration_id = 21;
select * roles;
select * from permissions;
select * from permission_role where permission_id = 226;
select * from migrations order by id desc;
# mercury
# neptune
# earth
select * from teams;
select * from teams where id = 19;
select * from teams where id = 27;
select * from users where team_id = 27;
SELECT * FROM crm_configurations WHERE id = 42;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from activities where id = 631461;
SELECT * FROM crm_field_values WHERE crm_field_id = 180;
select * from teams where id = 2;
SELECT * FROM social_accounts WHERE sociable_id = 89;
SELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273
select * from activity_summary_logs where activity_id = 634273;
select * from sidekick_settings where team_id = 2;
select * from teams; # 2, 2
SELECT * FROM crm_configurations WHERE team_id = 2; # 2
select * from team_features where team_id = 2;
select * from features;
SELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';
SELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from users where team_id = 1 and id IN (7160, 3248);
select * from migrations order by id desc;
SELECT
CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,
u.email,
sa.*,
t.owner_id FROM social_accounts sa
JOIN users u on u.id = sa.sociable_id
JOIN teams t on t.id = u.team_id
WHERE u.team_id = 1 and sa.provider = 'salesforce';
select * from teams where id = 1;
select * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;
select * from groups where id = 565;
select * from playbooks where team_id = 1;
select * from playbooks where id = 175;
select * from playbook_categories where playbook_id = 175;
select * from users where team_id = 1;
select * from users where id = 7160;
select * from crm_profiles where user_id = 7160;
select * from features;
select
*
# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,
# crm_configuration_id, crm_provider_id, transcription_id, status
from activities where crm_configuration_id = 1 and type = 'conference'
# and crm_provider_id IS NOT NULL
and provider != 'uploader' and actual_start_time IS NOT NULL
ORDER by id desc;
select * from activities where id = 54747783; # 00UO400000pCzojMAC
select p.id, p.activity_type, pc.id, pc.name
FROM playbooks p
join playbook_categories pc on p.id = pc.playbook_id
where p.team_id = 1 and p.activity_type = 'event';
SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';
SELECT * FROM crm_field_values WHERE crm_field_id = 4;
select * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id
where crm_configuration_id = 1 and pl.playbook_id = 175;
select * from teams;
SELECT r.* FROM automated_reports r
join teams t on r.team_id = t.id
WHERE r.frequency = 'daily'
and r.status = 1
AND t.status = 'active'
AND (r.expires_at >= now() OR r.expires_at IS NULL);
select * from automated_report_results where report_id IN (18, 33);
select * from activity_searches where id = 10932;
select * from activity_search_filters where activity_search_id = 10932;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from automated_report_results where report_id IN (36);
Sync Changes
Hide This Notification
Code changed:
Hide
3
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Http\Controllers\Webhook;
use Carbon\Carbon;
use Illuminate\Contracts\Bus\Dispatcher as BusDispatcher;
use Illuminate\Contracts\Events\Dispatcher as EventDispatcher;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Exceptions\ModelNotFoundException;
use Jiminny\Http\Controllers\AbstractController;
use Jiminny\Jobs\AutomatedReports\SendReportJob;
use Jiminny\Models\AutomatedReportResult;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsCallbackService;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Psr\Log\LoggerInterface;
use Throwable;
class ReportController extends AbstractController
{
/**
* Log prefix for all log messages
*/
private const string LOG_PREFIX = '[Report Ready]';
public function __construct(
private readonly AutomatedReportsService $automatedReportsService,
private readonly BusDispatcher $dispatcher,
private readonly LoggerInterface $logger,
private readonly AutomatedReportsCallbackService $callbackService,
private readonly EventDispatcher $eventDispatcher,
) {
}
public function ready(Request $request): JsonResponse
{
$payload = $request->all();
$now = Carbon::now();
$this->logger->info(self::LOG_PREFIX . ' Webhook received', [
'payload' => $payload,
]);
// validate
$reportUuid = $this->callbackService->getResultUuid($payload);
if (empty($reportUuid)) {
return response()->json(['status' => 'error', 'message' => 'Request ID is empty'], status: 400);
}
try {
$report = $this->automatedReportsService->getReportResult($reportUuid);
// validate
if ($this->callbackService->isProcessed($report)) {
$this->logger->warning(self::LOG_PREFIX . ' Report has been already processed', [
'uuid' => $reportUuid,
'currentStatus' => $report->getStatusLabel(),
]);
return response()->json(['status' => 'already_processed']);
}
// always try to get a child podcast cause report configuration cannot be trusted
$reportPodcast = $this->automatedReportsService->findChildResult(
result: $report,
type: AutomatedReportsService::MEDIA_TYPE_PODCAST
);
// update results
$report->update([
'status' => $this->callbackService->getPrimaryStatus($report, $payload),
'response' => $payload,
'generated_at' => $now,
]);
// if a podcast is set, update it
$reportPodcast?->update([
'status' => $this->callbackService->getPodcastStatus($payload),
'response' => $payload,
'generated_at' => $now,
]);
$this->logger->info(self::LOG_PREFIX . ' Report has been processed', [
'uuid' => $reportUuid,
'child_uuid' => $reportPodcast?->getUuid(),
]);
if (! $this->callbackService->isSuccess($payload)) {
$this->logger->warning(self::LOG_PREFIX . ' Error creating report', $payload);
return response()->json(['status' => 'ok']);
}
// If one-off, send the report immediately, if not leave it for the scheduler (automated-reports:send)
if ($report->getReport()->getFrequency() === AutomatedReportsService::FREQUENCY_ONE_OFF) {
// send the primary report
$this->dispatcher->dispatch(new SendReportJob($reportUuid));
// send the podcast report if it set and generated
if ($reportPodcast && $reportPodcast->getStatus() === AutomatedReportResult::STATUS_GENERATED) {
$this->dispatcher->dispatch(new SendReportJob(reportUuid: $reportPodcast->getUuid()));
}
}
// Track Datadog metrics for automated reports
$automatedReport = $report->getReport();
$this->callbackService->pushToDatadog($automatedReport, $report);
if ($reportPodcast) {
$this->callbackService->pushToDatadog($automatedReport, $reportPodcast);
}
$this->eventDispatcher->dispatch(new AutomatedReportGenerated($automatedReport, $report));
} catch (ModelNotFoundException $exception) {
$this->logger->error(self::LOG_PREFIX . ' Report not found', [
'uuid' => $reportUuid,
'error' => $exception->getMessage(),
]);
return response()->json(['status' => 'error', 'message' => 'Report not found'], status: 404);
} catch (Throwable $exception) {
$this->logger->error(self::LOG_PREFIX . ' Failed to update report status', [
'uuid' => $reportUuid,
'error' => $exception->getMessage(),
]);
return response()->json(['status' => 'error', 'message' => 'Failed to update report status'], status: 500);
}
return response()->json(['status' => 'ok']);
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
12787
|
|
12790
|
274
|
22
|
2026-04-14T11:39:18.658901+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166758658_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER0 881DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 21 m100% 147ec2-user@ip-10-30-...ec2-user@ip-10-30-93-249:~-zsh-zsh86-zshO 87Tue 14 Apr 14:39:18181* Unable to acce...*8],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
-3988486006040956298
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER0 881DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 21 m100% 147ec2-user@ip-10-30-...ec2-user@ip-10-30-93-249:~-zsh-zsh86-zshO 87Tue 14 Apr 14:39:18181* Unable to acce...*8],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
|
12791
|
275
|
14
|
2026-04-14T11:39:18.646089+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166758646_m2.jpg...
|
PhpStorm
|
faVsco.js – SendReportJob.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.03046875,"top":0.017361112,"width":0.0453125,"height":0.022222223},"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"#11894 on JY-18909-automated-reports-ask-jiminny, menu","depth":5,"bounds":{"left":0.07578125,"top":0.017361112,"width":0.14257812,"height":0.022222223},"help_text":"Pull request #11894 exists for current branch JY-18909-automated-reports-ask-jiminny","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.78515625,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"AutomatedReportsCommandTest","depth":6,"bounds":{"left":0.803125,"top":0.017361112,"width":0.09765625,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'AutomatedReportsCommandTest'","depth":6,"bounds":{"left":0.9007813,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'AutomatedReportsCommandTest'","depth":6,"bounds":{"left":0.9140625,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9273437,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96015626,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-6229830146645597650
|
-8059191214744026816
|
click
|
hybrid
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
PhpStormFileEditFV faVsco.js vViewNavigateCodeLaravelRefactor#11894 on JY-18909-automated-reports-ask-iminny ~ToolsWindowHelpProject v• Auth• CustomerApiD InternalI KloSkSettings_lelepnonyD Webhook> Hubspot> _ IntegrationAppSubsc© ActivityProviderCont© ActivityTranscription© BaseController.php© CalendarController.p© ReportController.php© SoftphoneWebhookC© AbstractController.php(1 CommentContextintena(C) Conferences@[EMAIL]© FrontendController.phpG FrontendControllerTrait© GeocodingController.ph© HealthCheckController./LiveCoachController.ph|© MissingTeamController.© MobileController.php© NotificationController.plc NottctonrovceronPlaybackController.phpPlaylistController.php© PusherController.phpSlackController.phpSupportController.php© TeamSetupController.pt© UserAutomatedReportsi© WelcomeController.php→ Micclleware> D Requests> M Resources> M Responses> D Serializers> Transformers© Kernel.php€ PlaylistTrackResourceTrait€ ValidateCrmConnectionRer› D Integrations•linteractions> Activity> M AiAutomationM AiReports> D Audiov _ AutomatedReports© RequestGenerateAskJin© RequestGenerateRepor© SendReportJob.php© SendReportMailJob.php> C Calendar© ReportController.phpC AutomatedReportsSendCommand.phg) AutomatedReportsService.php© SendReportJob.php x© AutomatedReportsCommand.php X© AddLayoutEntities.php© Team.phpCreateHeldActivityEvent.php© TrackProviderInstalledEvent.php© ActivityLogged.phpC RequestGenerateAskJiminnyReportJob.phpC AutomatedReportsRepository.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpclass SendReportJob implements ShouldQueue, ShouldBeUnique* Ovar int5760788182public int $tries = 2;* The maximum number of seconds the job should be allowed to run.* Ovar intpublic int $timeout = 120;* Create a new iob instance.* @param string $reportUuid The UUID of the report to send*/4 usaoespublic function L_construct(private readonly string $reportUvid)$this->onQueue( queue:Constants: :QUEUE_ANALYTICS_LOW):public function handle(LoggerInterface $logger,Joousoarcherinvertace "oou1spatcher.Aurolareoreoori soeruce naurolateorerortsoervce): void &try {$report = $automatedReportsService->getReportResult($this->reportUvid);} catch (Throwable $e) {$logger->error(self::LOG_PREFIXError getting report result','vuid' => $this->reportUuid,'exception' = $e->getMessage(),1):thnow $e;$logger->info(self::LOG_PREFIX .' Processing report', l'vvid' => $this->reportUvid,'status' => $report->getStatusLabel(),D);$s3Path = $automatedReportsService->getMediaPath($report);// Verify the file exists in S3if (! Storage::disk( name: 'client-data-cloud')->exists($s3Path)) {$logger->error(self::LOG_PREFIX' Report file not found in S3', ["Uuo s nuse>reooriuuror's3Path' => $s3Path,1):ny // View pull request (today 13:29)520521522v 525= custom.logE laravel.logconsole PRODA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';A HS_local [iminny@localhost]1525152652752852953053153253353453555 A155000%5405415425435445455461548549550-5515525535545555561558SO1563564565566567568 V569570Sa jiminny v017 A15 Х13 Aselect * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect * TroIgroupsnere t =oo.select * from playbooks where team_ id = 1:select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vuid, type, provider, playbook_category_id, user_id,leao o, contact* cri contouracion or cirillorovtoer 110rTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCzojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1..n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status = 'activelAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);select * from automated_report_results where repontaig IN (18, 33);select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where repontaid IN (36);514loblSupport Daily • in 21mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:39:18CascadeDebug Automated Rep+0 .rercnes Automaceakeporckesule recoras where.generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwSten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemail, so validRecipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILsD phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.0 phpsnow = larbon::now searllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (884L)+ <> Code Claude Sonnet 4.6Winasun leams51:2uir-o( 4 spaces...
|
12788
|
|
12792
|
274
|
23
|
2026-04-14T11:39:21.822968+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166761822_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER© 81DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 21 m100% 147ec2-user@ip-10-30-...ec2-user@ip-10-30-93-249:~-zsh-zsh86-zshO ₴7Tue 14 Apr 14:39:21181* Unable to acce...*- 88],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
-7442872666548648140
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER© 81DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 21 m100% 147ec2-user@ip-10-30-...ec2-user@ip-10-30-93-249:~-zsh-zsh86-zshO ₴7Tue 14 Apr 14:39:21181* Unable to acce...*- 88],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
12790
|
|
12793
|
275
|
15
|
2026-04-14T11:39:21.792383+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166761792_m2.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
PhpStormFileFditViewNavigateCodeLaravelRefactonToo PhpStormFileFditViewNavigateCodeLaravelRefactonToolsWindowHelpFV faVsco.js v#11894 on JY-18909-automated-reports-ask-iminny ~Project vProphetAiv → Reports(C AutomatedReportsC(C) AutomatedReportsRe(C) AutomatedReportsS© CreateMockAsKJimirC DeleteReportcomma© GenerateMarketingR©leam.phpC Usage.phpM Slack→ Teams→ Tracks_ TranscriptionD TwilioD Users_ Vocabulary_ 40om© coachingeedbacksupcg command.phpcreateDatabaseusers.pc Daraoase oecountoiC DeleteOldAiCrmNotesC(©) DeleteS3LeftoversCom|DevPostmanCommand./C DiarizeViaAiParticipantk(©) EncryptTokensCommar(©) EngagementStatsReger© FeatureFlagsHelper.php© FixCrossTenantlssues.pC) FlushRolesPermissions((C) GeneratelnternalWebho(C) GroupSetDefaultLanquaC) HelperTruncateCoachin(©) HubspotJournalPollingC(©) HubspotWebhookServic(©) ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gcJiminnvcacheclearcom(c) minnv Deouacommanc(C) JiminnvSetEncrvotedTcC) JiminnvTokenInfoComm(C) MakeSlackLiveCoachinc(C) ManageScimForTeam.o(©) MarkBranchForEnvironn(C) MuteOrganizerChannel.(C) PhpApm.php(C PropagateCoachingFee(©) PurgeConterences.php(©) PurgeSoftDeletedOppol© PurgeSyncBatchesCom(C) RecalculateDealRisksCdC) RemoveDeleteMarkersd(C) RemoveExpiredNudaes(C) RemoveUnusedParticio:C ResetElasticSearch.php(C) RestoreActivityCrmProv(C) RestoreActivityTypeCor(©) ReportController.phpC SendReportJob.php X(©) AutomatedReportsCommand.php X= custom.loc= laravel.logc SF liminny@localhost« HS_local [EMAIL]) AutomatedReportsRepository.phpAutomatedReportsService.php© CreateHeldActivityEvent.phpe) TrackProvidernstallled-vent.onoconsole PROD4 console [EU1L console [STAGING]Tx: Auto vFlaycroundvC ActivityLogged.php520C RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong15211© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportscommand extends commandv 0J 523115/11581391401411421431441451146|147148114915015115215315415515715815916016116211661167168169170171172173117417517611771178117918015251private function getReportByTdstring SreportId): Collection154527Sreport = $this->reportRepository->findById0rUuid($reportid):528529if (Sreport === nulb) 1530sthis->Logger->warning(self::LOG_PREFIX .• Report not found for --report-1d',L'reportid531sthis->warn( string: "Report not found: isreportia");return collecto);153253515.54115531554if @ Sreport->getStatuso)Sthis->logger->warning(self::LOG PREFTX . ' Report is inactive. processina anvwav manuali'reportid' => Sreportid.''reportluid' => $report->getluido.55 AI);sthis->warn( string: 'Report 1s 1nactive - processing anyway (manual override).')*$team = $report->getTeam():if ($team->getStatus() !== Team::STATUS_ACTIVE) {$this->logger->warning(self::LOG_PREFIX .'reportId' => SreportId.'reportluid' => Sreport-›getUuido.'teamId' => $report->getTeamId(),'teamStatus' => $team->getStatus(),1):5395405415421543154415451154615471548549550551552$this->warn( string: "Team #$report-›getleamidOr is not active - processing anyway (manua]553554if (Srenort->isFxpiredO) {55515561$this->logger->warning(self::LOG_PREFIX . ' Report is expired, processing anyway (manual'reportId' => SreportId.'reportluid' => Sreport-›getUuido.1558'expiresAt' => Sreport->getExpiresAtO?->toDateStringo.I):$this->warn( string: 'Report is expired (expires_at:" • Sreport->getexpiresAt(?->toDateSti562563$this->info( string: self::LOG_PREFIX . ' Automated report found' . $report->getCustomName()):564156515661return collect(lsreport5675o8 M15701572Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)t.owner_1d FROM soc1al_accounts saliminny017 A 15 V13 ^JolN users u on u.1d = sa.soclable_1dJOIN teams tI.n<->I: on t.1d = u.team_1dWHERE U.team_1d = 1 and sa.provider = salestorce :select * tron reans where 1o =15select x tron groups g Juin playbooks p1..n<->1: on a.plavbook id = p.id wiselect * 1r0Iorouosnere t =oo.select * from playbooks where team_ id = 1:select * from playbooks where id = 175:select * from playbook categories where playbook 1d = 175:select * from users where team_1d = 1:select * from users where 1d = 7160;select * from crm_profiles where user_1d = 7160*select * trom reatures,select# 10, Uud, type, provider, playbook_category-1o, user_1a,leao o, contact* cri conmouracionorcirn orovoer LorTranscrrocion orSTaTUSfrom activities where crm_confiquration id = 1 and type ='conference'# and crm_ provider id IS NOT NULLand provider != 'uploader' and actual start time IS NOT NULLORDER by id desc;select * from activities where 1d = 54/47783; # 0000400000pCZOJMACselect p.1d, p.activity_type, pc.1d, pc.nameFRUM playdooks pjoin playpook_categories pe"->l.n: on p.1d = pc.playbook_1dwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm fields WHERE crm confiquration id = 1 and obiect tvoe = "SELECT * FROM crm_ field values WHERE crm_ field id = 4select * from crm_layouts cl join playbook layouts pl1<->1..n: on cl.id = pwhere crm_configuration_1d = 1 and pl.playbooK_1d = 175:select * from teams:SELECI r.* FRUn aucomaced_reporus rjoin ceams t on r.ueam 10 = t.10WHERE r.trequency = "dally"and f.stauus-AND t.status = 'activelAND (r.expires at >= now OR r.expires at IS NULD):select * from automated_report_results where report.id IN (18, 33);select * from activity_searches where 1d = 10952;select * from activity_search_filters where activity_search_1d = 10932:select * from automated_reports order by 1d desc;select * tromautomated_report_results order by id desc;select * from automated_report_results where report id IN (36);lobl: Support Daily • in 21 m100% [47]Tue 14 Apr 14:39:21AutomatedRenortsCommandTestCascadeDebug Automated Reprercnes Automaceakeporckesule recoras where.generated at is NOT NULLsent at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.Sten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemall, so validRecipients is not emotv.vStep 3: shouldSendReporto — hisls whEkEllraiLs# phppublic const int SENT REPORT AT HOURS = 5;The logic picks the earliest timezone (highest UTC oftset = most ahead of UTC). For GMT+s, the offset is +10800 seconds.t then checks.•phosnow = larbon::nowsearllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;11 is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIfit's not 5:00 AM right now in GMT+3, it falls through to hasPassedSchedu ledTime() :® phppublic tunction hasPassedscheduledlimetrlarbonintertace sgeneratedAt, string stimezone): boounis checks.generatedAt < 65:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.wny Nothing is sentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven vou're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:scheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtUtc.lt(scheduledTimeUtc) istalse→ hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (&+L+ <> Code Claude Sonnet 4.6w145:10uir-oia 4 spaces...
|
NULL
|
688475168542822369
|
NULL
|
click
|
ocr
|
NULL
|
PhpStormFileFditViewNavigateCodeLaravelRefactonToo PhpStormFileFditViewNavigateCodeLaravelRefactonToolsWindowHelpFV faVsco.js v#11894 on JY-18909-automated-reports-ask-iminny ~Project vProphetAiv → Reports(C AutomatedReportsC(C) AutomatedReportsRe(C) AutomatedReportsS© CreateMockAsKJimirC DeleteReportcomma© GenerateMarketingR©leam.phpC Usage.phpM Slack→ Teams→ Tracks_ TranscriptionD TwilioD Users_ Vocabulary_ 40om© coachingeedbacksupcg command.phpcreateDatabaseusers.pc Daraoase oecountoiC DeleteOldAiCrmNotesC(©) DeleteS3LeftoversCom|DevPostmanCommand./C DiarizeViaAiParticipantk(©) EncryptTokensCommar(©) EngagementStatsReger© FeatureFlagsHelper.php© FixCrossTenantlssues.pC) FlushRolesPermissions((C) GeneratelnternalWebho(C) GroupSetDefaultLanquaC) HelperTruncateCoachin(©) HubspotJournalPollingC(©) HubspotWebhookServic(©) ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gcJiminnvcacheclearcom(c) minnv Deouacommanc(C) JiminnvSetEncrvotedTcC) JiminnvTokenInfoComm(C) MakeSlackLiveCoachinc(C) ManageScimForTeam.o(©) MarkBranchForEnvironn(C) MuteOrganizerChannel.(C) PhpApm.php(C PropagateCoachingFee(©) PurgeConterences.php(©) PurgeSoftDeletedOppol© PurgeSyncBatchesCom(C) RecalculateDealRisksCdC) RemoveDeleteMarkersd(C) RemoveExpiredNudaes(C) RemoveUnusedParticio:C ResetElasticSearch.php(C) RestoreActivityCrmProv(C) RestoreActivityTypeCor(©) ReportController.phpC SendReportJob.php X(©) AutomatedReportsCommand.php X= custom.loc= laravel.logc SF liminny@localhost« HS_local [EMAIL]) AutomatedReportsRepository.phpAutomatedReportsService.php© CreateHeldActivityEvent.phpe) TrackProvidernstallled-vent.onoconsole PROD4 console [EU1L console [STAGING]Tx: Auto vFlaycroundvC ActivityLogged.php520C RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong15211© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportscommand extends commandv 0J 523115/11581391401411421431441451146|147148114915015115215315415515715815916016116211661167168169170171172173117417517611771178117918015251private function getReportByTdstring SreportId): Collection154527Sreport = $this->reportRepository->findById0rUuid($reportid):528529if (Sreport === nulb) 1530sthis->Logger->warning(self::LOG_PREFIX .• Report not found for --report-1d',L'reportid531sthis->warn( string: "Report not found: isreportia");return collecto);153253515.54115531554if @ Sreport->getStatuso)Sthis->logger->warning(self::LOG PREFTX . ' Report is inactive. processina anvwav manuali'reportid' => Sreportid.''reportluid' => $report->getluido.55 AI);sthis->warn( string: 'Report 1s 1nactive - processing anyway (manual override).')*$team = $report->getTeam():if ($team->getStatus() !== Team::STATUS_ACTIVE) {$this->logger->warning(self::LOG_PREFIX .'reportId' => SreportId.'reportluid' => Sreport-›getUuido.'teamId' => $report->getTeamId(),'teamStatus' => $team->getStatus(),1):5395405415421543154415451154615471548549550551552$this->warn( string: "Team #$report-›getleamidOr is not active - processing anyway (manua]553554if (Srenort->isFxpiredO) {55515561$this->logger->warning(self::LOG_PREFIX . ' Report is expired, processing anyway (manual'reportId' => SreportId.'reportluid' => Sreport-›getUuido.1558'expiresAt' => Sreport->getExpiresAtO?->toDateStringo.I):$this->warn( string: 'Report is expired (expires_at:" • Sreport->getexpiresAt(?->toDateSti562563$this->info( string: self::LOG_PREFIX . ' Automated report found' . $report->getCustomName()):564156515661return collect(lsreport5675o8 M15701572Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)t.owner_1d FROM soc1al_accounts saliminny017 A 15 V13 ^JolN users u on u.1d = sa.soclable_1dJOIN teams tI.n<->I: on t.1d = u.team_1dWHERE U.team_1d = 1 and sa.provider = salestorce :select * tron reans where 1o =15select x tron groups g Juin playbooks p1..n<->1: on a.plavbook id = p.id wiselect * 1r0Iorouosnere t =oo.select * from playbooks where team_ id = 1:select * from playbooks where id = 175:select * from playbook categories where playbook 1d = 175:select * from users where team_1d = 1:select * from users where 1d = 7160;select * from crm_profiles where user_1d = 7160*select * trom reatures,select# 10, Uud, type, provider, playbook_category-1o, user_1a,leao o, contact* cri conmouracionorcirn orovoer LorTranscrrocion orSTaTUSfrom activities where crm_confiquration id = 1 and type ='conference'# and crm_ provider id IS NOT NULLand provider != 'uploader' and actual start time IS NOT NULLORDER by id desc;select * from activities where 1d = 54/47783; # 0000400000pCZOJMACselect p.1d, p.activity_type, pc.1d, pc.nameFRUM playdooks pjoin playpook_categories pe"->l.n: on p.1d = pc.playbook_1dwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm fields WHERE crm confiquration id = 1 and obiect tvoe = "SELECT * FROM crm_ field values WHERE crm_ field id = 4select * from crm_layouts cl join playbook layouts pl1<->1..n: on cl.id = pwhere crm_configuration_1d = 1 and pl.playbooK_1d = 175:select * from teams:SELECI r.* FRUn aucomaced_reporus rjoin ceams t on r.ueam 10 = t.10WHERE r.trequency = "dally"and f.stauus-AND t.status = 'activelAND (r.expires at >= now OR r.expires at IS NULD):select * from automated_report_results where report.id IN (18, 33);select * from activity_searches where 1d = 10952;select * from activity_search_filters where activity_search_1d = 10932:select * from automated_reports order by 1d desc;select * tromautomated_report_results order by id desc;select * from automated_report_results where report id IN (36);lobl: Support Daily • in 21 m100% [47]Tue 14 Apr 14:39:21AutomatedRenortsCommandTestCascadeDebug Automated Reprercnes Automaceakeporckesule recoras where.generated at is NOT NULLsent at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.Sten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemall, so validRecipients is not emotv.vStep 3: shouldSendReporto — hisls whEkEllraiLs# phppublic const int SENT REPORT AT HOURS = 5;The logic picks the earliest timezone (highest UTC oftset = most ahead of UTC). For GMT+s, the offset is +10800 seconds.t then checks.•phosnow = larbon::nowsearllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;11 is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIfit's not 5:00 AM right now in GMT+3, it falls through to hasPassedSchedu ledTime() :® phppublic tunction hasPassedscheduledlimetrlarbonintertace sgeneratedAt, string stimezone): boounis checks.generatedAt < 65:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.wny Nothing is sentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven vou're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:scheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtUtc.lt(scheduledTimeUtc) istalse→ hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (&+L+ <> Code Claude Sonnet 4.6w145:10uir-oia 4 spaces...
|
NULL
|
|
12794
|
274
|
24
|
2026-04-14T11:39:23.870233+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166763870_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER• ₴1DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 21 m100% 147Tue 14 Apr 14:39:23181ec2-user@ip-10-30-...ec2-user@ip-10-30-93-249:~-zsh-zsh86-zshO ₴7* Unable to acce...],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
8621591996731581149
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER• ₴1DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 21 m100% 147Tue 14 Apr 14:39:23181ec2-user@ip-10-30-...ec2-user@ip-10-30-93-249:~-zsh-zsh86-zshO ₴7* Unable to acce...],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
|
12795
|
274
|
25
|
2026-04-14T11:39:28.840084+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166768840_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER© 81DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 21 m100% 147ec2-user@ip-10-30-...ec2-user@ip-10-30-93-249:~-zsh-zsh86-zshO 87Tue 14 Apr 14:39:28181* Unable to acce...€ 888],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
-8469518220389476256
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER© 81DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 21 m100% 147ec2-user@ip-10-30-...ec2-user@ip-10-30-93-249:~-zsh-zsh86-zshO 87Tue 14 Apr 14:39:28181* Unable to acce...€ 888],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
12794
|
|
12796
|
275
|
16
|
2026-04-14T11:39:28.835783+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166768835_m2.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
PhpStormProject vFileFV faVsco.js vEditViewNavigat PhpStormProject vFileFV faVsco.js vEditViewNavigateCodeLaravelRefactorTools#11894 on JY-18909-automated-reports-ask-iminny ~WindowHelp© AutomatedReportsCi© AutomatedReportsRr© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpIsackM TeamsD TracksD TranscriptionD TwilioO UsersVocabularyD Zoom© CoachingFeedbacksUpr© Command.php© CreateDatabaseUsers.p(e) Database aoecount.oic DelereoeAcimnorescc Deleress eroverscom® DevPostmanCommand./© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantlssues.p© FlushRolesPermissionsC© GeneratelnternalWebho© GroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.phpImportUsersFromCsvFil© IterateUsersCommand.fc.liminnveacheclearcom(©) JiminnyDebugCommanc(©) JiminnySetEncryptedTo(C) .JiminnvTokeninfoComm© MakeSlackLiveCoachins© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesComi© RecalculateDealRisksCo(C) RemoveDeleteMarkersd(c) Remove-XoiredNuddes© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCor© SeedActivities.php© SyncActivity.php© ReportController.php© SendReportJob.phpAutomatedReportsCommand.php© AutomatedReportsSendCommand.phpAadLayoutchutles.onc leam.ongC) AutomatedReportsRepository.php= custom.logconsole PROD© AutomatedReportsService.phpTrackProviderInstalledEvent.php© ActivityLogged.php•Automareakeporscallbackservice.ongC RequestGenerateAskJiminnyReportJob.php© AutomatedReportResult.phpe AutomatedRenort.onnclass AutomatedReportsSendCommand extends CommandRequestGeneratekeporJob.ong521522= laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';A HS_local [iminny@localhost]Sa jiminny v017 A15 Х13 A25 Ct32 Ct35 Ct3941445556C&889988*ne nome one stendrure of tne console commond.*ovar scringprotected $signature = 'automated-reports:send';/*** The console command description.* Ovar string52415251154015275285295305315325335345351554protected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,private readonly AutomatedReportsRepository $reportRepository,private readonly AutomatedReportsService $automatedReportsService,private readonly BusDispatcher $dispatcher,parent::__construct();/*** Execute the console command.* Qreturn intpublic function handle(): int155000%54054154254354454554654715481547550551552553554555556foreach (SrenortResults as SrevortResult) {1558/** Ovar AutomatedReportResult $reportResult */$validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->g560if ($this->automatedReportsService->shouldSen|dReport($validRecipients, $reportResult->get$561$this->logger->info(self::LOG_PREFIX'Dispatching job',1);$this->dispatcher->dispatch(new SendReportJob($reportResult->getUuid()));562563564565566567568 V569570571572select * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect x Tolgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vvid, type, provider, playbook_category_id, user_id,leao o, contact* cri conmouracionorcirn orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks Pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1..n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status ='active'AND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);select * from automated_report_results where repontaig IN (18, 33);return CommandALias: : SUCCESS;select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where repontaid IN (36);Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)loblSupport Daily • in 21mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:39:28CascadeDebug Automated Rep+0 •rercnes Automaceakeporckesule recoras where.generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwSten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemail, so validRecipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILsD phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.0 phpsnow = larbon::nowsearllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerumns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (884L)+ <> Code Claude Sonnet 4.6Winasun leams50:00uir-o( 4 spaces...
|
NULL
|
1016612370763958503
|
NULL
|
click
|
ocr
|
NULL
|
PhpStormProject vFileFV faVsco.js vEditViewNavigat PhpStormProject vFileFV faVsco.js vEditViewNavigateCodeLaravelRefactorTools#11894 on JY-18909-automated-reports-ask-iminny ~WindowHelp© AutomatedReportsCi© AutomatedReportsRr© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpIsackM TeamsD TracksD TranscriptionD TwilioO UsersVocabularyD Zoom© CoachingFeedbacksUpr© Command.php© CreateDatabaseUsers.p(e) Database aoecount.oic DelereoeAcimnorescc Deleress eroverscom® DevPostmanCommand./© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantlssues.p© FlushRolesPermissionsC© GeneratelnternalWebho© GroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.phpImportUsersFromCsvFil© IterateUsersCommand.fc.liminnveacheclearcom(©) JiminnyDebugCommanc(©) JiminnySetEncryptedTo(C) .JiminnvTokeninfoComm© MakeSlackLiveCoachins© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesComi© RecalculateDealRisksCo(C) RemoveDeleteMarkersd(c) Remove-XoiredNuddes© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCor© SeedActivities.php© SyncActivity.php© ReportController.php© SendReportJob.phpAutomatedReportsCommand.php© AutomatedReportsSendCommand.phpAadLayoutchutles.onc leam.ongC) AutomatedReportsRepository.php= custom.logconsole PROD© AutomatedReportsService.phpTrackProviderInstalledEvent.php© ActivityLogged.php•Automareakeporscallbackservice.ongC RequestGenerateAskJiminnyReportJob.php© AutomatedReportResult.phpe AutomatedRenort.onnclass AutomatedReportsSendCommand extends CommandRequestGeneratekeporJob.ong521522= laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';A HS_local [iminny@localhost]Sa jiminny v017 A15 Х13 A25 Ct32 Ct35 Ct3941445556C&889988*ne nome one stendrure of tne console commond.*ovar scringprotected $signature = 'automated-reports:send';/*** The console command description.* Ovar string52415251154015275285295305315325335345351554protected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,private readonly AutomatedReportsRepository $reportRepository,private readonly AutomatedReportsService $automatedReportsService,private readonly BusDispatcher $dispatcher,parent::__construct();/*** Execute the console command.* Qreturn intpublic function handle(): int155000%54054154254354454554654715481547550551552553554555556foreach (SrenortResults as SrevortResult) {1558/** Ovar AutomatedReportResult $reportResult */$validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->g560if ($this->automatedReportsService->shouldSen|dReport($validRecipients, $reportResult->get$561$this->logger->info(self::LOG_PREFIX'Dispatching job',1);$this->dispatcher->dispatch(new SendReportJob($reportResult->getUuid()));562563564565566567568 V569570571572select * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect x Tolgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vvid, type, provider, playbook_category_id, user_id,leao o, contact* cri conmouracionorcirn orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks Pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1..n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status ='active'AND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);select * from automated_report_results where repontaig IN (18, 33);return CommandALias: : SUCCESS;select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where repontaid IN (36);Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)loblSupport Daily • in 21mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:39:28CascadeDebug Automated Rep+0 •rercnes Automaceakeporckesule recoras where.generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwSten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemail, so validRecipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILsD phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.0 phpsnow = larbon::nowsearllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerumns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (884L)+ <> Code Claude Sonnet 4.6Winasun leams50:00uir-o( 4 spaces...
|
12793
|
|
12797
|
274
|
26
|
2026-04-14T11:39:40.453207+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166780453_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER© *1DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 21 m100% 147Tue 14 Apr 14:39:40181ec2-user@ip-10-30-...ec2-user@ip-10-30-93-249:~-zsh-zsh86-zshO 87* Unable to acce... →- *8],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
-9203216271302934042
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKE iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER© *1DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "["users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 21 m100% 147Tue 14 Apr 14:39:40181ec2-user@ip-10-30-...ec2-user@ip-10-30-93-249:~-zsh-zsh86-zshO 87* Unable to acce... →- *8],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
NULL
|
|
12798
|
275
|
17
|
2026-04-14T11:39:40.416894+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166780416_m2.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
PhpStormProject vFileFV faVsco.js vEditViewNavigat PhpStormProject vFileFV faVsco.js vEditViewNavigateCodeLaravelRefactorToolsWindowHelp#11894 on JY-18909-automated-reports-ask-iminny ~© AutomatedReportsCi© AutomatedReportsRr© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpIsackM TeamsD TracksD TranscriptionD TwilioO UsersVocabularyD Zoom© CoachingFeedbacksUpr© Command.php© CreateDatabaseUsers.pDatabaseTableCount.ptc DeleredoAcimnorescc Deleress eroverscom(C DevPostmanCommand.© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantlssues.p© FlushRolesPermissionsC© GeneratelnternalWebhoGroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.phpImportUsersFromCsvFil© IterateUsersCommand.fc.liminnveacheclearcom(©) JiminnyDebugCommanc(©) JiminnySetEncryptedTo(C) .JiminnvTokeninfoComm© MakeSlackLiveCoachins© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesComi© RecalculateDealRisksCo(C) RemoveDeleteMarkersd© RemoveExpiredNudgesi© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCor© SeedActivities.php© SyncActivity.php© ReportController.php© SendReportJob.php© AutomatedReport&.ommand.php x© AutomatedReportsSendCommand.phpAadLayoutchutles.onc leam.ong= custom.logC) AutomatedReportsRepository.phpconsole PROD© AutomatedReportsService.phpTrackProviderInstalledEvent.php© ActivityLogged.php•Automareakeporscallbackservice.ongC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportsSendCommand extends Command521522= laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';A HS_local [iminny@localhost]Sa jiminny v017 A15 Х13 A25 Ct32 Ct3941444554*ne nome one stendrure of tne console commond.*ovar scringprotected $signature = 'automated-reports:send';/*** The console command description.* Ovar string52415251154015275285295305315325335345351554protected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,private readonly AutomatedReportsRepository $reportRepository,private readonly AutomatedReportsService $automatedReportsService,private readonly BusDispatcher $dispatcher,parent::__construct();* Execute the console command.* Qreturn intpublic function handle(): int155000%54054154254354454554654715481547550551552553554555556foreach (SrenortResults as SrevortResult) {1558/** Ovar AutomatedReportResult $reportResult */$validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->g560if ($this->automatedReportsService->shouldSendReport($validRecipients, $reportResult->getG561$this->logger->info(self::LOG_PREFIXDispatching job',5621);563$this->dispatcher->dispatch(new SendReportJob($reportResult->getUuid()));select * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect * TroIgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vuid, type, provider, playbook_category_id, user_id,leao o, contact* cri conmouracionorcirn orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks Pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl 1<->1.n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status ='activeAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);select * from automated_report_results where repontaig IN (18, 33);Cascade & TI568 Vreturn CommandALias: : SUCCESS;select * from activity_searches where id = 10932;om activity_search_filters where activity_search_id = 10932;Command 981om automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where repontaid IN (36);571572Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)loblSupport Daily • in 21mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:39:40CascadeDebug Automated Rep+0 •rercnes Automaceakeporckesule recoras where.generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwSten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemail, so validRecipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILsD phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.0 phpsnow = larbon::nowsearllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerumns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (84L)+ <> Code Claude Sonnet 4.6winasun leams61:1/ 3 charsuir-o( 4 spaces...
|
NULL
|
8931583717566048959
|
NULL
|
click
|
ocr
|
NULL
|
PhpStormProject vFileFV faVsco.js vEditViewNavigat PhpStormProject vFileFV faVsco.js vEditViewNavigateCodeLaravelRefactorToolsWindowHelp#11894 on JY-18909-automated-reports-ask-iminny ~© AutomatedReportsCi© AutomatedReportsRr© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpIsackM TeamsD TracksD TranscriptionD TwilioO UsersVocabularyD Zoom© CoachingFeedbacksUpr© Command.php© CreateDatabaseUsers.pDatabaseTableCount.ptc DeleredoAcimnorescc Deleress eroverscom(C DevPostmanCommand.© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantlssues.p© FlushRolesPermissionsC© GeneratelnternalWebhoGroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.phpImportUsersFromCsvFil© IterateUsersCommand.fc.liminnveacheclearcom(©) JiminnyDebugCommanc(©) JiminnySetEncryptedTo(C) .JiminnvTokeninfoComm© MakeSlackLiveCoachins© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesComi© RecalculateDealRisksCo(C) RemoveDeleteMarkersd© RemoveExpiredNudgesi© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCor© SeedActivities.php© SyncActivity.php© ReportController.php© SendReportJob.php© AutomatedReport&.ommand.php x© AutomatedReportsSendCommand.phpAadLayoutchutles.onc leam.ong= custom.logC) AutomatedReportsRepository.phpconsole PROD© AutomatedReportsService.phpTrackProviderInstalledEvent.php© ActivityLogged.php•Automareakeporscallbackservice.ongC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportsSendCommand extends Command521522= laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';A HS_local [iminny@localhost]Sa jiminny v017 A15 Х13 A25 Ct32 Ct3941444554*ne nome one stendrure of tne console commond.*ovar scringprotected $signature = 'automated-reports:send';/*** The console command description.* Ovar string52415251154015275285295305315325335345351554protected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,private readonly AutomatedReportsRepository $reportRepository,private readonly AutomatedReportsService $automatedReportsService,private readonly BusDispatcher $dispatcher,parent::__construct();* Execute the console command.* Qreturn intpublic function handle(): int155000%54054154254354454554654715481547550551552553554555556foreach (SrenortResults as SrevortResult) {1558/** Ovar AutomatedReportResult $reportResult */$validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->g560if ($this->automatedReportsService->shouldSendReport($validRecipients, $reportResult->getG561$this->logger->info(self::LOG_PREFIXDispatching job',5621);563$this->dispatcher->dispatch(new SendReportJob($reportResult->getUuid()));select * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect * TroIgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vuid, type, provider, playbook_category_id, user_id,leao o, contact* cri conmouracionorcirn orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks Pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl 1<->1.n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status ='activeAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);select * from automated_report_results where repontaig IN (18, 33);Cascade & TI568 Vreturn CommandALias: : SUCCESS;select * from activity_searches where id = 10932;om activity_search_filters where activity_search_id = 10932;Command 981om automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where repontaid IN (36);571572Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)loblSupport Daily • in 21mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:39:40CascadeDebug Automated Rep+0 •rercnes Automaceakeporckesule recoras where.generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwSten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemail, so validRecipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILsD phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.0 phpsnow = larbon::nowsearllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerumns Talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (84L)+ <> Code Claude Sonnet 4.6winasun leams61:1/ 3 charsuir-o( 4 spaces...
|
NULL
|
|
12799
|
275
|
18
|
2026-04-14T11:39:55.522242+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166795522_m2.jpg...
|
PhpStorm
|
faVsco.js – AutomatedReportsSendCommand.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error
Next Highlighted Error
SELECT * FROM teams WHERE id = 1;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;
SELECT * FROM crm_fields WHERE id = 2234;
SELECT * FROM crm_field_values WHERE crm_field_id = 2234;
select * from crm_profiles where user_id = 143;
select * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO
select * from business_processes where crm_configuration_id = 39;
# 01941000000H669AAC, 01941000000H66JAAS
select * from record_type_field_values
where record_type_id IN (24);
select * from crm_field_values where id IN (2730);
select * from crm_configurations where id = 39;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce'; #1035
select * from users where team_id = 1; # 222 group 3
SELECT * FROM activities WHERE user_id = 222 order by id desc;
select * from sidekick_settings where team_id = 1;
select * from teams where id = 1;
select * from team_features where team_id = 1;
select * from activities where crm_configuration_id = 2
and provider = 'ms-teams' and id = 608765;
SELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';
select * from sidekick_settings where team_id = 2;
SELECT * FROM activities WHERE id = 608660;
select * from activity_summary_logs where activity_id = 608660;
select * from ai_prompts where transcription_id = 11214;
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;
# id: 608818, crm: 59628809737
SELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;
# id: 608821, crm: 59632069252
SELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,
playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,
scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at
FROM activities a
join calendar_events ce on a.calendar_event_id = ce.id
WHERE a.id IN (608818, 608821);
select * from users where team_id = 1;
select * from team_settings where team_id = 1;
select * from crm_profiles where crm_configuration_id = 39 order by user_id;
select * from team_features where team_id = 1;
select * from users where team_id = 2;
SELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639
# Preslava N. Ivanova, grou id 3
SELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;
select * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';
select
a.id,
a.type,
a.scheduled_start_time,
a.actual_start_time,
a.created_at,
a.opportunity_id,
a.status
FROM activities a
WHERE opportunity_id = 344
and status IN ('completed', 'received', 'delivered')
and (
(a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))
;
SELECT * FROM users WHERE id = 222;
SELECT * FROM crm_profiles WHERE user_id = 222;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;
select * from group_deal_risk_types;
select * from opportunities where team_id = 1;
SELECT * FROM opportunities WHERE id = 315;
SELECT * FROM crm_field_data WHERE object_id = 315;
select * from crm_field_data where object_id = 260;
select * from generic_ai_prompts where subject_id = 315;
select * from teams; # 36, 21, 121, [EMAIL]
SELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';
# [PASSWORD_DOTS]
select * from teams where id = 1;
select * from crm_configurations where id = 39;
select * from users where team_id = 1;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 1;
# 1 - 00541000004281rAAA
# 204 - 0052g000003freeAAA
# 429 - 0052g000003qGOiAAM
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
select * from activities where type = 'softphone'
and created_at > '2024-12-11 15:24:36' order by id desc;
select * from activity_providers where team_id = 1;
select * from activity_provider_users where activity_provider_id = 328;
select * from opportunities where crm_configuration_id = 39
AND account_id = 178 AND is_closed = false
order by created_at DESC;
select * from contacts where id = 3952;
select * from accounts where id = 178;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations where id = 21;
select * from users where team_id = 36;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 36
and sa.provider = 'bullhorn';
select * from social_accounts where id = 348;
UPDATE social_accounts SET
provider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',
provider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',
expires = 1733998131,
state = 'connected'
WHERE id = 348;
# [PASSWORD_DOTS]
select * from teams where id = 31;
select * from crm_configurations where id = 18;
select * from users where team_id = 31; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 31;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 31
and sa.provider = 'close';
select * from contacts where crm_configuration_id = 18;
# [PASSWORD_DOTS] NEPTUNE [PASSWORD_DOTS]
select * from teams;
select * from users where id IN (1030, 1035, 1052);
select * from crm_configurations;
select * from users where team_id = 65; # 257
select * from team_settings where team_id = 65; # 257
select * from invitations where team_id = 65; # 257
select * from users where email = '[EMAIL]'; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 65;
select * from crm_configurations where id = 53;
select * from accounts where crm_configuration_id = 53 order by id desc;
select * from leads where crm_configuration_id = 53 order by id desc;
select * from contacts where crm_configuration_id = 53 order by id desc;
select * from opportunities where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 53 order by id desc;
select * from crm_fields where crm_configuration_id = 53 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 53 order by id desc;
select * from stages where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 13;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
and sa.provider = 'integration-app';
select * from contacts where crm_configuration_id = 13;
select * from social_accounts where sociable_id = 283;
SELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';
select * from activity_providers where team_id = 65;
SELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
;
# [PASSWORD_DOTS] STAGING [PASSWORD_DOTS]
SELECT * FROM teams;
SELECT * FROM teams WHERE id = 88;
SELECT * FROM teams WHERE id = 89;
select * from team_settings where team_id = 89;
SELECT * FROM users WHERE team_id = 89;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 89;
select * from users;
SELECT * FROM social_accounts WHERE sociable_id = 1761;
SELECT * FROM crm_configurations WHERE id = 70;
select * from accounts where crm_configuration_id = 70 order by id desc;
select * from leads where crm_configuration_id = 70 order by id desc;
select * from contacts where crm_configuration_id = 70 order by id desc;
select * from opportunities where crm_configuration_id = 70 order by id desc;
select * from crm_profiles where crm_configuration_id = 70 order by id desc;
select * from crm_fields where crm_configuration_id = 70 order by id desc;
select * from crm_field_values where crm_field_id = 3536 order by id desc;
select * from crm_layouts where crm_configuration_id = 70 order by id desc;
select * from stages where crm_configuration_id = 70 order by id desc;
select * from business_processes where crm_configuration_id = 70 order by id desc;
select * from business_process_stages where business_process_id = 34;
select * from contacts where id = 10468;
select * from crm_layouts where crm_configuration_id = 70;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;
SELECT * FROM crm_fields WHERE id IN (3533,3534,3535);
select * from activities where crm_configuration_id = 70
and (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;
SELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;
SELECT * FROM activities where crm_configuration_id = 69 ;
SELECT * FROM users WHERE email LIKE '%[EMAIL]%';
SELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;
SELECT * FROM opportunities WHERE id = 385;
select * from participants p
join activities a on p.activity_id = a.id
where a.crm_configuration_id = 70
and (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);
SELECT * FROM participants WHERE id = 1013638;
select * from teams where id = 90;
select * from users where team_id = 90;
select * from social_accounts where social_accounts.sociable_id IN (1960,1760);
SELECT * FROM crm_profiles WHERE crm_configuration_id = 71;
select * from invitations where team_id = 90;
select * from crm_configurations where id = 71;
select * from accounts where crm_configuration_id = 71 order by id desc;
select * from leads where crm_configuration_id = 71 order by id desc;
select * from contacts where crm_configuration_id = 71 order by id desc;
select * from opportunities where crm_configuration_id = 71 order by id desc;
select * from crm_profiles where crm_configuration_id = 71 order by id desc;
select * from crm_fields where crm_configuration_id = 71 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 71 order by id desc;
select * from stages where crm_configuration_id = 71 order by id desc;
select * from users order by secondary_email desc;
select u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa
join users u on sa.sociable_id = u.id
where sa.provider = 'google' and u.email LIKE 'aneliya%';
select * from failed_jobs order by id desc;
select * from users where email = '[EMAIL]' or secondary_email = '[EMAIL]';
select * from teams;
SELECT * FROM crm_profiles WHERE crm_configuration_id = 39;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;
SELECT * FROM crm_configurations WHERE id = 70;
select * from teams where id = 1;
select * from groups where team_id = 1;
select * from users where team_id = 1;
select o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o
join users u on o.user_id = u.id
join groups g on u.group_id = g.id
join role_user ru on u.id = ru.user_id
join roles r on ru.role_id = r.id
where o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';
select * from role_user where user_id = 143;
select * from roles;
select * from role_user;
select * from groups where id = 9;
select * from scope_groups where group_id = 9;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations;
SELECT * FROM social_accounts WHERE sociable_id = 121;
[URL_WITH_CREDENTIALS] string
*/
protected $signature = 'automated-reports:send';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Sends automated reports based on user timezone';
public function __construct(
private readonly LoggerInterface $logger,
private readonly AutomatedReportsRepository $reportRepository,
private readonly AutomatedReportsService $automatedReportsService,
private readonly BusDispatcher $dispatcher,
) {
parent::__construct();
}
/**
* Execute the console command.
*
* @return int
*/
public function handle(): int
{
$reportResults = $this->reportRepository->getGeneratedNotSentResults();
foreach ($reportResults as $reportResult) {
/** @var AutomatedReportResult $reportResult */
$validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->getReport());
if ($this->automatedReportsService->shouldSendReport($validRecipients, $reportResult->getGeneratedAt())) {
$this->logger->info(self::LOG_PREFIX . ' Dispatching job', [
'uuid' => $reportResult->getUuid(),
]);
$this->dispatcher->dispatch(new SendReportJob($reportResult->getUuid()));
}
}
return CommandAlias::SUCCESS;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.03046875,"top":0.017361112,"width":0.0453125,"height":0.022222223},"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"#11894 on JY-18909-automated-reports-ask-jiminny, menu","depth":5,"bounds":{"left":0.07578125,"top":0.017361112,"width":0.14257812,"height":0.022222223},"help_text":"Pull request #11894 exists for current branch JY-18909-automated-reports-ask-jiminny","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.78515625,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"AutomatedReportsCommandTest","depth":6,"bounds":{"left":0.803125,"top":0.017361112,"width":0.09765625,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'AutomatedReportsCommandTest'","depth":6,"bounds":{"left":0.9007813,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'AutomatedReportsCommandTest'","depth":6,"bounds":{"left":0.9140625,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9273437,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96015626,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9734375,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9867188,"top":0.017361112,"width":0.013281226,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Execute","depth":4,"bounds":{"left":0.46132812,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Explain Plan","depth":4,"bounds":{"left":0.47148436,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Browse Query History","depth":4,"bounds":{"left":0.484375,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"View Parameters","depth":4,"bounds":{"left":0.49453124,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Open Query Execution Settings…","depth":4,"bounds":{"left":0.5046875,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"In-Editor Results","depth":4,"bounds":{"left":0.5175781,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Tx: Auto","depth":4,"bounds":{"left":0.53046876,"top":0.08611111,"width":0.028515626,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Cancel Running Statements","depth":4,"bounds":{"left":0.56171876,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Playground","depth":4,"bounds":{"left":0.5746094,"top":0.08611111,"width":0.034765624,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"jiminny","depth":4,"bounds":{"left":0.67929685,"top":0.08611111,"width":0.033203125,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.049609374,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"17","depth":4,"bounds":{"left":0.65703124,"top":0.10763889,"width":0.0109375,"height":0.013194445},"role_description":"text"},{"role":"AXStaticText","text":"15","depth":4,"bounds":{"left":0.6703125,"top":0.10763889,"width":0.011328125,"height":0.013194445},"role_description":"text"},{"role":"AXStaticText","text":"13","depth":4,"bounds":{"left":0.6839844,"top":0.10763889,"width":0.011328125,"height":0.013194445},"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.6972656,"top":0.10625,"width":0.00859375,"height":0.015972223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.70585936,"top":0.10625,"width":0.008203125,"height":0.015972223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"SELECT * FROM teams WHERE id = 1;\n\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;\nSELECT * FROM crm_fields WHERE id = 2234;\nSELECT * FROM crm_field_values WHERE crm_field_id = 2234;\n\nselect * from crm_profiles where user_id = 143;\n\nselect * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO\nselect * from business_processes where crm_configuration_id = 39;\n# 01941000000H669AAC, 01941000000H66JAAS\n\nselect * from record_type_field_values\n where record_type_id IN (24);\n\nselect * from crm_field_values where id IN (2730);\n\nselect * from crm_configurations where id = 39;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce'; #1035\n\n\nselect * from users where team_id = 1; # 222 group 3\nSELECT * FROM activities WHERE user_id = 222 order by id desc;\nselect * from sidekick_settings where team_id = 1;\nselect * from teams where id = 1;\nselect * from team_features where team_id = 1;\n\nselect * from activities where crm_configuration_id = 2\nand provider = 'ms-teams' and id = 608765;\n\nSELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';\n\nselect * from sidekick_settings where team_id = 2;\n\nSELECT * FROM activities WHERE id = 608660;\nselect * from activity_summary_logs where activity_id = 608660;\nselect * from ai_prompts where transcription_id = 11214;\n\n# ********************************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;\n# id: 608818, crm: 59628809737\nSELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;\n# id: 608821, crm: 59632069252\nSELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,\nplaybook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,\nscheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at\nFROM activities a\njoin calendar_events ce on a.calendar_event_id = ce.id\nWHERE a.id IN (608818, 608821);\n\nselect * from users where team_id = 1;\nselect * from team_settings where team_id = 1;\nselect * from crm_profiles where crm_configuration_id = 39 order by user_id;\n\nselect * from team_features where team_id = 1;\n\nselect * from users where team_id = 2;\n\nSELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639\n# Preslava N. Ivanova, grou id 3\n\nSELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;\n\nselect * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';\n\nselect\n a.id,\n a.type,\n a.scheduled_start_time,\n a.actual_start_time,\n a.created_at,\n a.opportunity_id,\n a.status\nFROM activities a\nWHERE opportunity_id = 344\nand status IN ('completed', 'received', 'delivered')\nand (\n (a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))\n;\n\nSELECT * FROM users WHERE id = 222;\n\nSELECT * FROM crm_profiles WHERE user_id = 222;\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;\n\nselect * from group_deal_risk_types;\n\nselect * from opportunities where team_id = 1;\n\nSELECT * FROM opportunities WHERE id = 315;\nSELECT * FROM crm_field_data WHERE object_id = 315;\nselect * from crm_field_data where object_id = 260;\n\nselect * from generic_ai_prompts where subject_id = 315;\n\nselect * from teams; # 36, 21, 121, james.graham@bullhorn.jiminny.com\nSELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';\n\n# ************************************************************************************\nselect * from teams where id = 1;\nselect * from crm_configurations where id = 39;\nselect * from users where team_id = 1;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 1;\n# 1 - 00541000004281rAAA\n# 204 - 0052g000003freeAAA\n# 429 - 0052g000003qGOiAAM\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\nselect * from activities where type = 'softphone'\nand created_at > '2024-12-11 15:24:36' order by id desc;\n\nselect * from activity_providers where team_id = 1;\nselect * from activity_provider_users where activity_provider_id = 328;\n\nselect * from opportunities where crm_configuration_id = 39\nAND account_id = 178 AND is_closed = false\norder by created_at DESC;\n\nselect * from contacts where id = 3952;\nselect * from accounts where id = 178;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations where id = 21;\nselect * from users where team_id = 36;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 36;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 36\nand sa.provider = 'bullhorn';\n\nselect * from social_accounts where id = 348;\nUPDATE social_accounts SET\nprovider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',\nprovider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',\nexpires = 1733998131,\nstate = 'connected'\nWHERE id = 348;\n\n# ************************************************************************************\nselect * from teams where id = 31;\nselect * from crm_configurations where id = 18;\n\nselect * from users where team_id = 31; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 31;\n\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 31\nand sa.provider = 'close';\n\nselect * from contacts where crm_configuration_id = 18;\n\n# ********************** NEPTUNE **************************************************************\nselect * from teams;\nselect * from users where id IN (1030, 1035, 1052);\nselect * from crm_configurations;\n\nselect * from users where team_id = 65; # 257\nselect * from team_settings where team_id = 65; # 257\nselect * from invitations where team_id = 65; # 257\nselect * from users where email = 'integration-account@jiminny.com'; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 65;\n\nselect * from crm_configurations where id = 53;\nselect * from accounts where crm_configuration_id = 53 order by id desc;\nselect * from leads where crm_configuration_id = 53 order by id desc;\nselect * from contacts where crm_configuration_id = 53 order by id desc;\nselect * from opportunities where crm_configuration_id = 53 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 53 order by id desc;\nselect * from crm_fields where crm_configuration_id = 53 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 53 order by id desc;\nselect * from stages where crm_configuration_id = 53 order by id desc;\n\n\nselect * from crm_profiles where crm_configuration_id = 13;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\nand sa.provider = 'integration-app';\n\nselect * from contacts where crm_configuration_id = 13;\n\nselect * from social_accounts where sociable_id = 283;\n\nSELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';\n\nselect * from activity_providers where team_id = 65;\nSELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\n;\n\n# ***************************** STAGING ********************************************\nSELECT * FROM teams;\nSELECT * FROM teams WHERE id = 88;\nSELECT * FROM teams WHERE id = 89;\nselect * from team_settings where team_id = 89;\nSELECT * FROM users WHERE team_id = 89;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 89;\n\nselect * from users;\nSELECT * FROM social_accounts WHERE sociable_id = 1761;\nSELECT * FROM crm_configurations WHERE id = 70;\nselect * from accounts where crm_configuration_id = 70 order by id desc;\nselect * from leads where crm_configuration_id = 70 order by id desc;\nselect * from contacts where crm_configuration_id = 70 order by id desc;\nselect * from opportunities where crm_configuration_id = 70 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 70 order by id desc;\nselect * from crm_fields where crm_configuration_id = 70 order by id desc;\nselect * from crm_field_values where crm_field_id = 3536 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 70 order by id desc;\nselect * from stages where crm_configuration_id = 70 order by id desc;\nselect * from business_processes where crm_configuration_id = 70 order by id desc;\nselect * from business_process_stages where business_process_id = 34;\n\nselect * from contacts where id = 10468;\n\nselect * from crm_layouts where crm_configuration_id = 70;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;\nSELECT * FROM crm_fields WHERE id IN (3533,3534,3535);\n\nselect * from activities where crm_configuration_id = 70\nand (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;\n\nSELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;\nSELECT * FROM activities where crm_configuration_id = 69 ;\n\nSELECT * FROM users WHERE email LIKE '%jiminny_web_sa2@jiminny.com%';\nSELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;\nSELECT * FROM opportunities WHERE id = 385;\n\nselect * from participants p\njoin activities a on p.activity_id = a.id\nwhere a.crm_configuration_id = 70\nand (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);\nSELECT * FROM participants WHERE id = 1013638;\n\nselect * from teams where id = 90;\nselect * from users where team_id = 90;\nselect * from social_accounts where social_accounts.sociable_id IN (1960,1760);\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 71;\nselect * from invitations where team_id = 90;\n\nselect * from crm_configurations where id = 71;\nselect * from accounts where crm_configuration_id = 71 order by id desc;\nselect * from leads where crm_configuration_id = 71 order by id desc;\nselect * from contacts where crm_configuration_id = 71 order by id desc;\nselect * from opportunities where crm_configuration_id = 71 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 71 order by id desc;\nselect * from crm_fields where crm_configuration_id = 71 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 71 order by id desc;\nselect * from stages where crm_configuration_id = 71 order by id desc;\n\nselect * from users order by secondary_email desc;\nselect u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa\n join users u on sa.sociable_id = u.id\nwhere sa.provider = 'google' and u.email LIKE 'aneliya%';\n\nselect * from failed_jobs order by id desc;\n\nselect * from users where email = 'ben.allwright@learningpeople.co.uk' or secondary_email = 'ben.allwright@learningpeople.co.uk';\n\nselect * from teams;\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 39;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\n# ************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;\nSELECT * FROM crm_configurations WHERE id = 70;\n\nselect * from teams where id = 1;\nselect * from groups where team_id = 1;\nselect * from users where team_id = 1;\n\nselect o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o\njoin users u on o.user_id = u.id\njoin groups g on u.group_id = g.id\njoin role_user ru on u.id = ru.user_id\njoin roles r on ru.role_id = r.id\nwhere o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';\n\nselect * from role_user where user_id = 143;\nselect * from roles;\n\nselect * from role_user;\nselect * from groups where id = 9;\nselect * from scope_groups where group_id = 9;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations;\nSELECT * FROM social_accounts WHERE sociable_id = 121;\n\nhttps://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105\nhttps://crmsandbox.zoho.com/crm/\n\nhttps://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080\n https://crm.zoho.com/crm/\n org3469620\n\nSELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;\n\nselect * from users where email LIKE \"%mobile_automation_%\";\nselect * from social_accounts where sociable_id IN (2228);\nselect * from crm_profiles where user_id IN (2222,2223,2226,2227);\n\nselect * from teams order by id desc;\nSELECT * FROM users WHERE id = 2229;\nSELECT * FROM crm_profiles WHERE user_id = 2229;\nselect * from opportunities where crm_configuration_id = 88;\nselect * from crm_fields where crm_configuration_id = 88;\nselect * from crm_profiles where crm_configuration_id = 88;\n\nSELECT * FROM teams WHERE id = 1;\n\nSELECT * FROM users WHERE id = 143;\nSELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;\n\nhttps://app.staging.jiminny.com/ondemand?\n min_duration=1\n &\n only_recorded=1\n &\n user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e\n &\n sequence_number=2\n\n select * from users where team_id = 1 and email like '%stoyan%'\n\nselect * from coaching_feedbacks;\n\nselect * from teams;\nSELECT * FROM users WHERE team_id = 36;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from users where id = 143;\n\nSELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\n\nselect * from users where team_id = 2;\nselect * from activities where crm_configuration_id = 39\nand activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'\nAND user_id = 143\norder by id desc;\n\n# ************************************************************************************\nselect * from teams where id = 142; # 2312, 126\nselect * from team_settings;\nselect * from users where team_id = 142; # 21642\nSELECT * FROM social_accounts WHERE sociable_id = 21642;\nSELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;\nselect * from crm_profiles where id IN (93);\nselect * from invitations;\nselect * from team_features where team_id = 1;\n\nSELECT * FROM crm_configurations WHERE id = 126;\nselect * from accounts where crm_configuration_id = 126 order by id desc;\nselect * from leads where crm_configuration_id = 126 order by id desc;\nselect * from contacts where crm_configuration_id = 126 order by id desc;\nselect * from opportunities where crm_configuration_id = 126 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 126 order by id desc;\nselect * from crm_fields where crm_configuration_id = 126 # 11060\n# and type IN ('picklist', 'status')\n# and object_type = 'task'\norder by id desc;\n# 5731,5732,5733\nselect DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;\nselect * from crm_layouts where crm_configuration_id = 126 order by id desc;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);\nselect * from stages where crm_configuration_id = 126 order by id desc;\nselect * from business_processes where crm_configuration_id = 126 order by id desc;\nselect * from business_process_stages where business_process_id IN (76,75,74,73);\nselect * from playbooks where team_id = 142;\nselect * from playbook_layouts where playbook_id IN (108);\nSELECT * FROM playbook_categories WHERE playbook_id IN (108);\n\nselect * from teams where id = 130;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 2\nand sa.provider = 'hubspot';\n\nSELECT * FROM activities\n WHERE crm_configuration_id = 110;\n\nselect * from teams;\nselect * from crm_configurations;\n\nSELECT * FROM activities WHERE id = 628773;\nSELECT * FROM crm_profiles WHERE user_id = 1460;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from teams;\nselect ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id\njoin permission_role pr on pr.role_id = ru.role_id\n join permissions p on p.id = pr.permission_id\nwhere team_id = 495 and p.name IN ('dial');\n\nselect * from teams where id = 145;\nselect * from crm_configurations where id = 129;\nselect * from social_accounts where sociable_id = 2317;\nSELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;\n\nselect * from teams where id = 1;\nSELECT * FROM crm_layouts WHERE crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;\nSELECT * FROM crm_layout_entities WHERE id = 5507;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');\n\nselect * from teams;\nselect * from activities where crm_configuration_id = 14;\n\nSELECT * FROM social_accounts where provider = 'copper';\n\nselect * from activities where id = 628467;\nselect * from participants where activity_id = 628467;\n\nSELECT * FROM contacts WHERE id = 3969;\nSELECT * FROM accounts WHERE id = 177;\n\nSELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;\n\n# ********************* BH\nselect * from teams where id = 36;\nSELECT * FROM crm_configurations WHERE id = 21;\nselect * from activities where crm_configuration_id = 21 and id = 607901;\nselect * from activities where crm_configuration_id = 21;\n\nselect * roles;\nselect * from permissions;\nselect * from permission_role where permission_id = 226;\n\nselect * from migrations order by id desc;\n\n# mercury\n# neptune\n# earth\n\nselect * from teams;\nselect * from teams where id = 19;\nselect * from teams where id = 27;\nselect * from users where team_id = 27;\nSELECT * FROM crm_configurations WHERE id = 42;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from activities where id = 631461;\nSELECT * FROM crm_field_values WHERE crm_field_id = 180;\n\nselect * from teams where id = 2;\nSELECT * FROM social_accounts WHERE sociable_id = 89;\n\nSELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273\nselect * from activity_summary_logs where activity_id = 634273;\n\nselect * from sidekick_settings where team_id = 2;\n\nselect * from teams; # 2, 2\nSELECT * FROM crm_configurations WHERE team_id = 2; # 2\nselect * from team_features where team_id = 2;\nselect * from features;\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;\n\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from users where team_id = 1 and id IN (7160, 3248);\nselect * from migrations order by id desc;\n\nSELECT\n CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,\n u.email,\n sa.*,\n t.owner_id FROM social_accounts sa\nJOIN users u on u.id = sa.sociable_id\nJOIN teams t on t.id = u.team_id\nWHERE u.team_id = 1 and sa.provider = 'salesforce';\n\nselect * from teams where id = 1;\nselect * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;\nselect * from groups where id = 565;\nselect * from playbooks where team_id = 1;\nselect * from playbooks where id = 175;\nselect * from playbook_categories where playbook_id = 175;\nselect * from users where team_id = 1;\nselect * from users where id = 7160;\nselect * from crm_profiles where user_id = 7160;\nselect * from features;\nselect\n *\n# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,\n# crm_configuration_id, crm_provider_id, transcription_id, status\nfrom activities where crm_configuration_id = 1 and type = 'conference'\n# and crm_provider_id IS NOT NULL\nand provider != 'uploader' and actual_start_time IS NOT NULL\nORDER by id desc;\nselect * from activities where id = 54747783; # 00UO400000pCzojMAC\n\nselect p.id, p.activity_type, pc.id, pc.name\nFROM playbooks p\njoin playbook_categories pc on p.id = pc.playbook_id\nwhere p.team_id = 1 and p.activity_type = 'event';\n\nSELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';\nSELECT * FROM crm_field_values WHERE crm_field_id = 4;\n\nselect * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id\nwhere crm_configuration_id = 1 and pl.playbook_id = 175;\n\nselect * from teams;\nSELECT r.* FROM automated_reports r\njoin teams t on r.team_id = t.id\nWHERE r.frequency = 'daily'\n and r.status = 1\nAND t.status = 'active'\nAND (r.expires_at >= now() OR r.expires_at IS NULL);\n\nselect * from automated_report_results where report_id IN (18, 33);\n\nselect * from activity_searches where id = 10932;\nselect * from activity_search_filters where activity_search_id = 10932;\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from automated_report_results where report_id IN (36);","depth":4,"value":"SELECT * FROM teams WHERE id = 1;\n\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;\nSELECT * FROM crm_fields WHERE id = 2234;\nSELECT * FROM crm_field_values WHERE crm_field_id = 2234;\n\nselect * from crm_profiles where user_id = 143;\n\nselect * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO\nselect * from business_processes where crm_configuration_id = 39;\n# 01941000000H669AAC, 01941000000H66JAAS\n\nselect * from record_type_field_values\n where record_type_id IN (24);\n\nselect * from crm_field_values where id IN (2730);\n\nselect * from crm_configurations where id = 39;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce'; #1035\n\n\nselect * from users where team_id = 1; # 222 group 3\nSELECT * FROM activities WHERE user_id = 222 order by id desc;\nselect * from sidekick_settings where team_id = 1;\nselect * from teams where id = 1;\nselect * from team_features where team_id = 1;\n\nselect * from activities where crm_configuration_id = 2\nand provider = 'ms-teams' and id = 608765;\n\nSELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';\n\nselect * from sidekick_settings where team_id = 2;\n\nSELECT * FROM activities WHERE id = 608660;\nselect * from activity_summary_logs where activity_id = 608660;\nselect * from ai_prompts where transcription_id = 11214;\n\n# ********************************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;\n# id: 608818, crm: 59628809737\nSELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;\n# id: 608821, crm: 59632069252\nSELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,\nplaybook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,\nscheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at\nFROM activities a\njoin calendar_events ce on a.calendar_event_id = ce.id\nWHERE a.id IN (608818, 608821);\n\nselect * from users where team_id = 1;\nselect * from team_settings where team_id = 1;\nselect * from crm_profiles where crm_configuration_id = 39 order by user_id;\n\nselect * from team_features where team_id = 1;\n\nselect * from users where team_id = 2;\n\nSELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639\n# Preslava N. Ivanova, grou id 3\n\nSELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;\n\nselect * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';\n\nselect\n a.id,\n a.type,\n a.scheduled_start_time,\n a.actual_start_time,\n a.created_at,\n a.opportunity_id,\n a.status\nFROM activities a\nWHERE opportunity_id = 344\nand status IN ('completed', 'received', 'delivered')\nand (\n (a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))\n;\n\nSELECT * FROM users WHERE id = 222;\n\nSELECT * FROM crm_profiles WHERE user_id = 222;\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;\n\nselect * from group_deal_risk_types;\n\nselect * from opportunities where team_id = 1;\n\nSELECT * FROM opportunities WHERE id = 315;\nSELECT * FROM crm_field_data WHERE object_id = 315;\nselect * from crm_field_data where object_id = 260;\n\nselect * from generic_ai_prompts where subject_id = 315;\n\nselect * from teams; # 36, 21, 121, james.graham@bullhorn.jiminny.com\nSELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';\n\n# ************************************************************************************\nselect * from teams where id = 1;\nselect * from crm_configurations where id = 39;\nselect * from users where team_id = 1;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 1;\n# 1 - 00541000004281rAAA\n# 204 - 0052g000003freeAAA\n# 429 - 0052g000003qGOiAAM\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\nselect * from activities where type = 'softphone'\nand created_at > '2024-12-11 15:24:36' order by id desc;\n\nselect * from activity_providers where team_id = 1;\nselect * from activity_provider_users where activity_provider_id = 328;\n\nselect * from opportunities where crm_configuration_id = 39\nAND account_id = 178 AND is_closed = false\norder by created_at DESC;\n\nselect * from contacts where id = 3952;\nselect * from accounts where id = 178;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations where id = 21;\nselect * from users where team_id = 36;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 36;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 36\nand sa.provider = 'bullhorn';\n\nselect * from social_accounts where id = 348;\nUPDATE social_accounts SET\nprovider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',\nprovider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',\nexpires = 1733998131,\nstate = 'connected'\nWHERE id = 348;\n\n# ************************************************************************************\nselect * from teams where id = 31;\nselect * from crm_configurations where id = 18;\n\nselect * from users where team_id = 31; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 31;\n\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 31\nand sa.provider = 'close';\n\nselect * from contacts where crm_configuration_id = 18;\n\n# ********************** NEPTUNE **************************************************************\nselect * from teams;\nselect * from users where id IN (1030, 1035, 1052);\nselect * from crm_configurations;\n\nselect * from users where team_id = 65; # 257\nselect * from team_settings where team_id = 65; # 257\nselect * from invitations where team_id = 65; # 257\nselect * from users where email = 'integration-account@jiminny.com'; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 65;\n\nselect * from crm_configurations where id = 53;\nselect * from accounts where crm_configuration_id = 53 order by id desc;\nselect * from leads where crm_configuration_id = 53 order by id desc;\nselect * from contacts where crm_configuration_id = 53 order by id desc;\nselect * from opportunities where crm_configuration_id = 53 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 53 order by id desc;\nselect * from crm_fields where crm_configuration_id = 53 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 53 order by id desc;\nselect * from stages where crm_configuration_id = 53 order by id desc;\n\n\nselect * from crm_profiles where crm_configuration_id = 13;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\nand sa.provider = 'integration-app';\n\nselect * from contacts where crm_configuration_id = 13;\n\nselect * from social_accounts where sociable_id = 283;\n\nSELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';\n\nselect * from activity_providers where team_id = 65;\nSELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\n;\n\n# ***************************** STAGING ********************************************\nSELECT * FROM teams;\nSELECT * FROM teams WHERE id = 88;\nSELECT * FROM teams WHERE id = 89;\nselect * from team_settings where team_id = 89;\nSELECT * FROM users WHERE team_id = 89;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 89;\n\nselect * from users;\nSELECT * FROM social_accounts WHERE sociable_id = 1761;\nSELECT * FROM crm_configurations WHERE id = 70;\nselect * from accounts where crm_configuration_id = 70 order by id desc;\nselect * from leads where crm_configuration_id = 70 order by id desc;\nselect * from contacts where crm_configuration_id = 70 order by id desc;\nselect * from opportunities where crm_configuration_id = 70 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 70 order by id desc;\nselect * from crm_fields where crm_configuration_id = 70 order by id desc;\nselect * from crm_field_values where crm_field_id = 3536 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 70 order by id desc;\nselect * from stages where crm_configuration_id = 70 order by id desc;\nselect * from business_processes where crm_configuration_id = 70 order by id desc;\nselect * from business_process_stages where business_process_id = 34;\n\nselect * from contacts where id = 10468;\n\nselect * from crm_layouts where crm_configuration_id = 70;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;\nSELECT * FROM crm_fields WHERE id IN (3533,3534,3535);\n\nselect * from activities where crm_configuration_id = 70\nand (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;\n\nSELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;\nSELECT * FROM activities where crm_configuration_id = 69 ;\n\nSELECT * FROM users WHERE email LIKE '%jiminny_web_sa2@jiminny.com%';\nSELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;\nSELECT * FROM opportunities WHERE id = 385;\n\nselect * from participants p\njoin activities a on p.activity_id = a.id\nwhere a.crm_configuration_id = 70\nand (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);\nSELECT * FROM participants WHERE id = 1013638;\n\nselect * from teams where id = 90;\nselect * from users where team_id = 90;\nselect * from social_accounts where social_accounts.sociable_id IN (1960,1760);\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 71;\nselect * from invitations where team_id = 90;\n\nselect * from crm_configurations where id = 71;\nselect * from accounts where crm_configuration_id = 71 order by id desc;\nselect * from leads where crm_configuration_id = 71 order by id desc;\nselect * from contacts where crm_configuration_id = 71 order by id desc;\nselect * from opportunities where crm_configuration_id = 71 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 71 order by id desc;\nselect * from crm_fields where crm_configuration_id = 71 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 71 order by id desc;\nselect * from stages where crm_configuration_id = 71 order by id desc;\n\nselect * from users order by secondary_email desc;\nselect u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa\n join users u on sa.sociable_id = u.id\nwhere sa.provider = 'google' and u.email LIKE 'aneliya%';\n\nselect * from failed_jobs order by id desc;\n\nselect * from users where email = 'ben.allwright@learningpeople.co.uk' or secondary_email = 'ben.allwright@learningpeople.co.uk';\n\nselect * from teams;\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 39;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\n# ************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;\nSELECT * FROM crm_configurations WHERE id = 70;\n\nselect * from teams where id = 1;\nselect * from groups where team_id = 1;\nselect * from users where team_id = 1;\n\nselect o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o\njoin users u on o.user_id = u.id\njoin groups g on u.group_id = g.id\njoin role_user ru on u.id = ru.user_id\njoin roles r on ru.role_id = r.id\nwhere o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';\n\nselect * from role_user where user_id = 143;\nselect * from roles;\n\nselect * from role_user;\nselect * from groups where id = 9;\nselect * from scope_groups where group_id = 9;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations;\nSELECT * FROM social_accounts WHERE sociable_id = 121;\n\nhttps://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105\nhttps://crmsandbox.zoho.com/crm/\n\nhttps://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080\n https://crm.zoho.com/crm/\n org3469620\n\nSELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;\n\nselect * from users where email LIKE \"%mobile_automation_%\";\nselect * from social_accounts where sociable_id IN (2228);\nselect * from crm_profiles where user_id IN (2222,2223,2226,2227);\n\nselect * from teams order by id desc;\nSELECT * FROM users WHERE id = 2229;\nSELECT * FROM crm_profiles WHERE user_id = 2229;\nselect * from opportunities where crm_configuration_id = 88;\nselect * from crm_fields where crm_configuration_id = 88;\nselect * from crm_profiles where crm_configuration_id = 88;\n\nSELECT * FROM teams WHERE id = 1;\n\nSELECT * FROM users WHERE id = 143;\nSELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;\n\nhttps://app.staging.jiminny.com/ondemand?\n min_duration=1\n &\n only_recorded=1\n &\n user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e\n &\n sequence_number=2\n\n select * from users where team_id = 1 and email like '%stoyan%'\n\nselect * from coaching_feedbacks;\n\nselect * from teams;\nSELECT * FROM users WHERE team_id = 36;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from users where id = 143;\n\nSELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\n\nselect * from users where team_id = 2;\nselect * from activities where crm_configuration_id = 39\nand activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'\nAND user_id = 143\norder by id desc;\n\n# ************************************************************************************\nselect * from teams where id = 142; # 2312, 126\nselect * from team_settings;\nselect * from users where team_id = 142; # 21642\nSELECT * FROM social_accounts WHERE sociable_id = 21642;\nSELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;\nselect * from crm_profiles where id IN (93);\nselect * from invitations;\nselect * from team_features where team_id = 1;\n\nSELECT * FROM crm_configurations WHERE id = 126;\nselect * from accounts where crm_configuration_id = 126 order by id desc;\nselect * from leads where crm_configuration_id = 126 order by id desc;\nselect * from contacts where crm_configuration_id = 126 order by id desc;\nselect * from opportunities where crm_configuration_id = 126 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 126 order by id desc;\nselect * from crm_fields where crm_configuration_id = 126 # 11060\n# and type IN ('picklist', 'status')\n# and object_type = 'task'\norder by id desc;\n# 5731,5732,5733\nselect DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;\nselect * from crm_layouts where crm_configuration_id = 126 order by id desc;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);\nselect * from stages where crm_configuration_id = 126 order by id desc;\nselect * from business_processes where crm_configuration_id = 126 order by id desc;\nselect * from business_process_stages where business_process_id IN (76,75,74,73);\nselect * from playbooks where team_id = 142;\nselect * from playbook_layouts where playbook_id IN (108);\nSELECT * FROM playbook_categories WHERE playbook_id IN (108);\n\nselect * from teams where id = 130;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 2\nand sa.provider = 'hubspot';\n\nSELECT * FROM activities\n WHERE crm_configuration_id = 110;\n\nselect * from teams;\nselect * from crm_configurations;\n\nSELECT * FROM activities WHERE id = 628773;\nSELECT * FROM crm_profiles WHERE user_id = 1460;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from teams;\nselect ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id\njoin permission_role pr on pr.role_id = ru.role_id\n join permissions p on p.id = pr.permission_id\nwhere team_id = 495 and p.name IN ('dial');\n\nselect * from teams where id = 145;\nselect * from crm_configurations where id = 129;\nselect * from social_accounts where sociable_id = 2317;\nSELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;\n\nselect * from teams where id = 1;\nSELECT * FROM crm_layouts WHERE crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;\nSELECT * FROM crm_layout_entities WHERE id = 5507;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');\n\nselect * from teams;\nselect * from activities where crm_configuration_id = 14;\n\nSELECT * FROM social_accounts where provider = 'copper';\n\nselect * from activities where id = 628467;\nselect * from participants where activity_id = 628467;\n\nSELECT * FROM contacts WHERE id = 3969;\nSELECT * FROM accounts WHERE id = 177;\n\nSELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;\n\n# ********************* BH\nselect * from teams where id = 36;\nSELECT * FROM crm_configurations WHERE id = 21;\nselect * from activities where crm_configuration_id = 21 and id = 607901;\nselect * from activities where crm_configuration_id = 21;\n\nselect * roles;\nselect * from permissions;\nselect * from permission_role where permission_id = 226;\n\nselect * from migrations order by id desc;\n\n# mercury\n# neptune\n# earth\n\nselect * from teams;\nselect * from teams where id = 19;\nselect * from teams where id = 27;\nselect * from users where team_id = 27;\nSELECT * FROM crm_configurations WHERE id = 42;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from activities where id = 631461;\nSELECT * FROM crm_field_values WHERE crm_field_id = 180;\n\nselect * from teams where id = 2;\nSELECT * FROM social_accounts WHERE sociable_id = 89;\n\nSELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273\nselect * from activity_summary_logs where activity_id = 634273;\n\nselect * from sidekick_settings where team_id = 2;\n\nselect * from teams; # 2, 2\nSELECT * FROM crm_configurations WHERE team_id = 2; # 2\nselect * from team_features where team_id = 2;\nselect * from features;\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;\n\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from users where team_id = 1 and id IN (7160, 3248);\nselect * from migrations order by id desc;\n\nSELECT\n CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,\n u.email,\n sa.*,\n t.owner_id FROM social_accounts sa\nJOIN users u on u.id = sa.sociable_id\nJOIN teams t on t.id = u.team_id\nWHERE u.team_id = 1 and sa.provider = 'salesforce';\n\nselect * from teams where id = 1;\nselect * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;\nselect * from groups where id = 565;\nselect * from playbooks where team_id = 1;\nselect * from playbooks where id = 175;\nselect * from playbook_categories where playbook_id = 175;\nselect * from users where team_id = 1;\nselect * from users where id = 7160;\nselect * from crm_profiles where user_id = 7160;\nselect * from features;\nselect\n *\n# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,\n# crm_configuration_id, crm_provider_id, transcription_id, status\nfrom activities where crm_configuration_id = 1 and type = 'conference'\n# and crm_provider_id IS NOT NULL\nand provider != 'uploader' and actual_start_time IS NOT NULL\nORDER by id desc;\nselect * from activities where id = 54747783; # 00UO400000pCzojMAC\n\nselect p.id, p.activity_type, pc.id, pc.name\nFROM playbooks p\njoin playbook_categories pc on p.id = pc.playbook_id\nwhere p.team_id = 1 and p.activity_type = 'event';\n\nSELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';\nSELECT * FROM crm_field_values WHERE crm_field_id = 4;\n\nselect * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id\nwhere crm_configuration_id = 1 and pl.playbook_id = 175;\n\nselect * from teams;\nSELECT r.* FROM automated_reports r\njoin teams t on r.team_id = t.id\nWHERE r.frequency = 'daily'\n and r.status = 1\nAND t.status = 'active'\nAND (r.expires_at >= now() OR r.expires_at IS NULL);\n\nselect * from automated_report_results where report_id IN (18, 33);\n\nselect * from activity_searches where id = 10932;\nselect * from activity_search_filters where activity_search_id = 10932;\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from automated_report_results where report_id IN (36);","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.049609374,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\ndeclare(strict_types=1);\n\nnamespace Jiminny\\Console\\Commands\\Reports;\n\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Contracts\\Bus\\Dispatcher as BusDispatcher;\nuse Jiminny\\Jobs\\AutomatedReports\\SendReportJob;\nuse Jiminny\\Models\\AutomatedReportResult;\nuse Jiminny\\Repositories\\AutomatedReportsRepository;\nuse Jiminny\\Services\\Kiosk\\AutomatedReports\\AutomatedReportsService;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Console\\Command\\Command as CommandAlias;\n\nclass AutomatedReportsSendCommand extends Command\n{\n private const string LOG_PREFIX = '[automated-reports:send]';\n\n /**\n * The name and signature of the console command.\n *\n * @var string\n */\n protected $signature = 'automated-reports:send';\n\n /**\n * The console command description.\n *\n * @var string\n */\n protected $description = 'Sends automated reports based on user timezone';\n\n\n public function __construct(\n private readonly LoggerInterface $logger,\n private readonly AutomatedReportsRepository $reportRepository,\n private readonly AutomatedReportsService $automatedReportsService,\n private readonly BusDispatcher $dispatcher,\n ) {\n parent::__construct();\n }\n\n /**\n * Execute the console command.\n *\n * @return int\n */\n public function handle(): int\n {\n $reportResults = $this->reportRepository->getGeneratedNotSentResults();\n\n foreach ($reportResults as $reportResult) {\n /** @var AutomatedReportResult $reportResult */\n $validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->getReport());\n if ($this->automatedReportsService->shouldSendReport($validRecipients, $reportResult->getGeneratedAt())) {\n $this->logger->info(self::LOG_PREFIX . ' Dispatching job', [\n 'uuid' => $reportResult->getUuid(),\n ]);\n\n $this->dispatcher->dispatch(new SendReportJob($reportResult->getUuid()));\n }\n }\n\n return CommandAlias::SUCCESS;\n }\n}","depth":4,"bounds":{"left":0.14921875,"top":0.018055556,"width":0.3683594,"height":0.98194444},"value":"<?php\n\ndeclare(strict_types=1);\n\nnamespace Jiminny\\Console\\Commands\\Reports;\n\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Contracts\\Bus\\Dispatcher as BusDispatcher;\nuse Jiminny\\Jobs\\AutomatedReports\\SendReportJob;\nuse Jiminny\\Models\\AutomatedReportResult;\nuse Jiminny\\Repositories\\AutomatedReportsRepository;\nuse Jiminny\\Services\\Kiosk\\AutomatedReports\\AutomatedReportsService;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Console\\Command\\Command as CommandAlias;\n\nclass AutomatedReportsSendCommand extends Command\n{\n private const string LOG_PREFIX = '[automated-reports:send]';\n\n /**\n * The name and signature of the console command.\n *\n * @var string\n */\n protected $signature = 'automated-reports:send';\n\n /**\n * The console command description.\n *\n * @var string\n */\n protected $description = 'Sends automated reports based on user timezone';\n\n\n public function __construct(\n private readonly LoggerInterface $logger,\n private readonly AutomatedReportsRepository $reportRepository,\n private readonly AutomatedReportsService $automatedReportsService,\n private readonly BusDispatcher $dispatcher,\n ) {\n parent::__construct();\n }\n\n /**\n * Execute the console command.\n *\n * @return int\n */\n public function handle(): int\n {\n $reportResults = $this->reportRepository->getGeneratedNotSentResults();\n\n foreach ($reportResults as $reportResult) {\n /** @var AutomatedReportResult $reportResult */\n $validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->getReport());\n if ($this->automatedReportsService->shouldSendReport($validRecipients, $reportResult->getGeneratedAt())) {\n $this->logger->info(self::LOG_PREFIX . ' Dispatching job', [\n 'uuid' => $reportResult->getUuid(),\n ]);\n\n $this->dispatcher->dispatch(new SendReportJob($reportResult->getUuid()));\n }\n }\n\n return CommandAlias::SUCCESS;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Project","depth":3,"role_description":"text"},{"role":"AXButton","text":"Project","depth":3,"bounds":{"left":0.0140625,"top":0.041666668,"width":0.028515626,"height":0.021527778},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"New File or Directory…","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Expand Selected","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Collapse All","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Options","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
5629951037509037441
|
6686649022737200205
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error
Next Highlighted Error
SELECT * FROM teams WHERE id = 1;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;
SELECT * FROM crm_fields WHERE id = 2234;
SELECT * FROM crm_field_values WHERE crm_field_id = 2234;
select * from crm_profiles where user_id = 143;
select * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO
select * from business_processes where crm_configuration_id = 39;
# 01941000000H669AAC, 01941000000H66JAAS
select * from record_type_field_values
where record_type_id IN (24);
select * from crm_field_values where id IN (2730);
select * from crm_configurations where id = 39;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce'; #1035
select * from users where team_id = 1; # 222 group 3
SELECT * FROM activities WHERE user_id = 222 order by id desc;
select * from sidekick_settings where team_id = 1;
select * from teams where id = 1;
select * from team_features where team_id = 1;
select * from activities where crm_configuration_id = 2
and provider = 'ms-teams' and id = 608765;
SELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';
select * from sidekick_settings where team_id = 2;
SELECT * FROM activities WHERE id = 608660;
select * from activity_summary_logs where activity_id = 608660;
select * from ai_prompts where transcription_id = 11214;
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;
# id: 608818, crm: 59628809737
SELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;
# id: 608821, crm: 59632069252
SELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,
playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,
scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at
FROM activities a
join calendar_events ce on a.calendar_event_id = ce.id
WHERE a.id IN (608818, 608821);
select * from users where team_id = 1;
select * from team_settings where team_id = 1;
select * from crm_profiles where crm_configuration_id = 39 order by user_id;
select * from team_features where team_id = 1;
select * from users where team_id = 2;
SELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639
# Preslava N. Ivanova, grou id 3
SELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;
select * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';
select
a.id,
a.type,
a.scheduled_start_time,
a.actual_start_time,
a.created_at,
a.opportunity_id,
a.status
FROM activities a
WHERE opportunity_id = 344
and status IN ('completed', 'received', 'delivered')
and (
(a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))
;
SELECT * FROM users WHERE id = 222;
SELECT * FROM crm_profiles WHERE user_id = 222;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;
select * from group_deal_risk_types;
select * from opportunities where team_id = 1;
SELECT * FROM opportunities WHERE id = 315;
SELECT * FROM crm_field_data WHERE object_id = 315;
select * from crm_field_data where object_id = 260;
select * from generic_ai_prompts where subject_id = 315;
select * from teams; # 36, 21, 121, [EMAIL]
SELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';
# [PASSWORD_DOTS]
select * from teams where id = 1;
select * from crm_configurations where id = 39;
select * from users where team_id = 1;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 1;
# 1 - 00541000004281rAAA
# 204 - 0052g000003freeAAA
# 429 - 0052g000003qGOiAAM
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
select * from activities where type = 'softphone'
and created_at > '2024-12-11 15:24:36' order by id desc;
select * from activity_providers where team_id = 1;
select * from activity_provider_users where activity_provider_id = 328;
select * from opportunities where crm_configuration_id = 39
AND account_id = 178 AND is_closed = false
order by created_at DESC;
select * from contacts where id = 3952;
select * from accounts where id = 178;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations where id = 21;
select * from users where team_id = 36;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 36
and sa.provider = 'bullhorn';
select * from social_accounts where id = 348;
UPDATE social_accounts SET
provider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',
provider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',
expires = 1733998131,
state = 'connected'
WHERE id = 348;
# [PASSWORD_DOTS]
select * from teams where id = 31;
select * from crm_configurations where id = 18;
select * from users where team_id = 31; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 31;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 31
and sa.provider = 'close';
select * from contacts where crm_configuration_id = 18;
# [PASSWORD_DOTS] NEPTUNE [PASSWORD_DOTS]
select * from teams;
select * from users where id IN (1030, 1035, 1052);
select * from crm_configurations;
select * from users where team_id = 65; # 257
select * from team_settings where team_id = 65; # 257
select * from invitations where team_id = 65; # 257
select * from users where email = '[EMAIL]'; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 65;
select * from crm_configurations where id = 53;
select * from accounts where crm_configuration_id = 53 order by id desc;
select * from leads where crm_configuration_id = 53 order by id desc;
select * from contacts where crm_configuration_id = 53 order by id desc;
select * from opportunities where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 53 order by id desc;
select * from crm_fields where crm_configuration_id = 53 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 53 order by id desc;
select * from stages where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 13;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
and sa.provider = 'integration-app';
select * from contacts where crm_configuration_id = 13;
select * from social_accounts where sociable_id = 283;
SELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';
select * from activity_providers where team_id = 65;
SELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
;
# [PASSWORD_DOTS] STAGING [PASSWORD_DOTS]
SELECT * FROM teams;
SELECT * FROM teams WHERE id = 88;
SELECT * FROM teams WHERE id = 89;
select * from team_settings where team_id = 89;
SELECT * FROM users WHERE team_id = 89;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 89;
select * from users;
SELECT * FROM social_accounts WHERE sociable_id = 1761;
SELECT * FROM crm_configurations WHERE id = 70;
select * from accounts where crm_configuration_id = 70 order by id desc;
select * from leads where crm_configuration_id = 70 order by id desc;
select * from contacts where crm_configuration_id = 70 order by id desc;
select * from opportunities where crm_configuration_id = 70 order by id desc;
select * from crm_profiles where crm_configuration_id = 70 order by id desc;
select * from crm_fields where crm_configuration_id = 70 order by id desc;
select * from crm_field_values where crm_field_id = 3536 order by id desc;
select * from crm_layouts where crm_configuration_id = 70 order by id desc;
select * from stages where crm_configuration_id = 70 order by id desc;
select * from business_processes where crm_configuration_id = 70 order by id desc;
select * from business_process_stages where business_process_id = 34;
select * from contacts where id = 10468;
select * from crm_layouts where crm_configuration_id = 70;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;
SELECT * FROM crm_fields WHERE id IN (3533,3534,3535);
select * from activities where crm_configuration_id = 70
and (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;
SELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;
SELECT * FROM activities where crm_configuration_id = 69 ;
SELECT * FROM users WHERE email LIKE '%[EMAIL]%';
SELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;
SELECT * FROM opportunities WHERE id = 385;
select * from participants p
join activities a on p.activity_id = a.id
where a.crm_configuration_id = 70
and (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);
SELECT * FROM participants WHERE id = 1013638;
select * from teams where id = 90;
select * from users where team_id = 90;
select * from social_accounts where social_accounts.sociable_id IN (1960,1760);
SELECT * FROM crm_profiles WHERE crm_configuration_id = 71;
select * from invitations where team_id = 90;
select * from crm_configurations where id = 71;
select * from accounts where crm_configuration_id = 71 order by id desc;
select * from leads where crm_configuration_id = 71 order by id desc;
select * from contacts where crm_configuration_id = 71 order by id desc;
select * from opportunities where crm_configuration_id = 71 order by id desc;
select * from crm_profiles where crm_configuration_id = 71 order by id desc;
select * from crm_fields where crm_configuration_id = 71 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 71 order by id desc;
select * from stages where crm_configuration_id = 71 order by id desc;
select * from users order by secondary_email desc;
select u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa
join users u on sa.sociable_id = u.id
where sa.provider = 'google' and u.email LIKE 'aneliya%';
select * from failed_jobs order by id desc;
select * from users where email = '[EMAIL]' or secondary_email = '[EMAIL]';
select * from teams;
SELECT * FROM crm_profiles WHERE crm_configuration_id = 39;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;
SELECT * FROM crm_configurations WHERE id = 70;
select * from teams where id = 1;
select * from groups where team_id = 1;
select * from users where team_id = 1;
select o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o
join users u on o.user_id = u.id
join groups g on u.group_id = g.id
join role_user ru on u.id = ru.user_id
join roles r on ru.role_id = r.id
where o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';
select * from role_user where user_id = 143;
select * from roles;
select * from role_user;
select * from groups where id = 9;
select * from scope_groups where group_id = 9;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations;
SELECT * FROM social_accounts WHERE sociable_id = 121;
[URL_WITH_CREDENTIALS] string
*/
protected $signature = 'automated-reports:send';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Sends automated reports based on user timezone';
public function __construct(
private readonly LoggerInterface $logger,
private readonly AutomatedReportsRepository $reportRepository,
private readonly AutomatedReportsService $automatedReportsService,
private readonly BusDispatcher $dispatcher,
) {
parent::__construct();
}
/**
* Execute the console command.
*
* @return int
*/
public function handle(): int
{
$reportResults = $this->reportRepository->getGeneratedNotSentResults();
foreach ($reportResults as $reportResult) {
/** @var AutomatedReportResult $reportResult */
$validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->getReport());
if ($this->automatedReportsService->shouldSendReport($validRecipients, $reportResult->getGeneratedAt())) {
$this->logger->info(self::LOG_PREFIX . ' Dispatching job', [
'uuid' => $reportResult->getUuid(),
]);
$this->dispatcher->dispatch(new SendReportJob($reportResult->getUuid()));
}
}
return CommandAlias::SUCCESS;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
12798
|
|
12800
|
274
|
27
|
2026-04-14T11:39:55.497876+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166795497_m1.jpg...
|
PhpStorm
|
faVsco.js – AutomatedReportsSendCommand.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"#11894 on JY-18909-automated-reports-ask-jiminny, menu","depth":5,"help_text":"Pull request #11894 exists for current branch JY-18909-automated-reports-ask-jiminny","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"AutomatedReportsCommandTest","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-1532191756259431066
|
-8629952099305930303
|
click
|
hybrid
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
iTerm2ShellEditViewSessionScriptsProfiles•• 0DOCKER© *1DEV (docker)282APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},WindowHelp(ahlSupport Daily - in 21 m100% 147ec2-user@ip-10-30-93-249:~ec2-user@ip-10-30-...-zsh-zsh86-zshO 87Tue 14 Apr 14:39:55181* Unable to acce...* *8],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|...
|
12797
|
|
12803
|
274
|
30
|
2026-04-14T11:40:08.397165+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166808397_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
SlackFileEditViewGoHistoryWindowHelpDOCKER0 81DEV SlackFileEditViewGoHistoryWindowHelpDOCKER0 81DEV (docker)882APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|*3ec2-userGec2-user@ip-10-30-...+EDHomeDMsActivityFilesLater.*•More(ahl• Support Daily • in 20 ml100% <47Tue 14 Apr 14:40:08Search Jiminny IncJiminny... vir scnicrol# infra-changes# jiminny-bg# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the_people_of jimi...• Direct messages€. Vasil Vasilev3 Aneliya Angelova, ...lo Steliyan Georgiev3Adelina Petrova, Ili...0. Adelina Petrova O. Galya Dimitrova *Rs Nikolay Nikolov "2 Galya Dimitrova, Ni...2 Galya Dimitrova, Ni...8. Nikolay Yankov::: AppsJira CloudToastGoogle Cale...# releases8 226 0• Messages• Files@ Bookmarks+1f99de0e313cToday ~8b256855f58e5bf1f5) - [JY-20571](https://jiminny.atlassian.net/browse/JY-20571): Panorama offline reports (#465)(steliyan-g)(8cf63ce)(https://github.com/jiminny/prophet/commit/8cf63cec5153b6e1320e84c67b03977ce6fe4c0c) - [JY-19982](https://jiminny.atlassian.net/browse/JY-19982): Allow multiple LLM evals with onecommand run (#464) (steliyan-g)NewCircleCl APP 2:15 PMNew commits deployed to Prophet Prod-EU:[Od2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - [JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (ilian-jiminny)New commits deployed to Prophet Prod-US:[0d2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (flian-jiminny)Message #releases+ Аа......
|
NULL
|
2973460419442606984
|
NULL
|
click
|
ocr
|
NULL
|
SlackFileEditViewGoHistoryWindowHelpDOCKER0 81DEV SlackFileEditViewGoHistoryWindowHelpDOCKER0 81DEV (docker)882APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|*3ec2-userGec2-user@ip-10-30-...+EDHomeDMsActivityFilesLater.*•More(ahl• Support Daily • in 20 ml100% <47Tue 14 Apr 14:40:08Search Jiminny IncJiminny... vir scnicrol# infra-changes# jiminny-bg# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the_people_of jimi...• Direct messages€. Vasil Vasilev3 Aneliya Angelova, ...lo Steliyan Georgiev3Adelina Petrova, Ili...0. Adelina Petrova O. Galya Dimitrova *Rs Nikolay Nikolov "2 Galya Dimitrova, Ni...2 Galya Dimitrova, Ni...8. Nikolay Yankov::: AppsJira CloudToastGoogle Cale...# releases8 226 0• Messages• Files@ Bookmarks+1f99de0e313cToday ~8b256855f58e5bf1f5) - [JY-20571](https://jiminny.atlassian.net/browse/JY-20571): Panorama offline reports (#465)(steliyan-g)(8cf63ce)(https://github.com/jiminny/prophet/commit/8cf63cec5153b6e1320e84c67b03977ce6fe4c0c) - [JY-19982](https://jiminny.atlassian.net/browse/JY-19982): Allow multiple LLM evals with onecommand run (#464) (steliyan-g)NewCircleCl APP 2:15 PMNew commits deployed to Prophet Prod-EU:[Od2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - [JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (ilian-jiminny)New commits deployed to Prophet Prod-US:[0d2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (flian-jiminny)Message #releases+ Аа......
|
NULL
|
|
12804
|
274
|
31
|
2026-04-14T11:40:10.808130+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166810808_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
SlackFileEditViewGoHistoryWindowHelpDOCKER3 281DEV SlackFileEditViewGoHistoryWindowHelpDOCKER3 281DEV (docker)882APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx"team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|*3ec2-userGec2-user@ip-10-30-...+EDHomeDMsActivityFilesLater.*•More+(ahl• Support Daily • in 20 ml100% <47Tue 14 Apr 14:40:10Search Jiminny IncJiminny... vir scnicrol# infra-changes# jiminny-bg# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the_people_of jimi...• Direct messages€. Vasil Vasilev3 Aneliya Angelova, ...lo Steliyan Georgiev3Adelina Petrova, Ili...0. Adelina Petrova O. Galya Dimitrova *Rs Nikolay Nikolov "2 Galya Dimitrova, Ni...2 Galya Dimitrova, Ni...P. Nikolay Yankov::: AppsJira CloudToastGoogle Cale...# releases8 226 0• Messages• Files@ Bookmarks+1f99de0e313cToday ~8b256855f58e5bf1f5) - [JY-20571](https://jiminny.atlassian.net/browse/JY-20571): Panorama offline reports (#465)(steliyan-g)(8cf63ce)(https://github.com/jiminny/prophet/commit/8cf63cec5153b6e1320e84c67b03977ce6fe4c0c) - [JY-19982](https://jiminny.atlassian.net/browse/JY-19982): Allow multiple LLM evals with onecommand run (#464) (steliyan-g)NewCircleCl APP 2:15 PMNew commits deployed to Prophet Prod-EU:[Od2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - [JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (ilian-jiminny)New commits deployed to Prophet Prod-US:[0d2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (flian-jiminny)Message #releases+ Аа......
|
NULL
|
-4262990894830121111
|
NULL
|
click
|
ocr
|
NULL
|
SlackFileEditViewGoHistoryWindowHelpDOCKER3 281DEV SlackFileEditViewGoHistoryWindowHelpDOCKER3 281DEV (docker)882APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx"team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|*3ec2-userGec2-user@ip-10-30-...+EDHomeDMsActivityFilesLater.*•More+(ahl• Support Daily • in 20 ml100% <47Tue 14 Apr 14:40:10Search Jiminny IncJiminny... vir scnicrol# infra-changes# jiminny-bg# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the_people_of jimi...• Direct messages€. Vasil Vasilev3 Aneliya Angelova, ...lo Steliyan Georgiev3Adelina Petrova, Ili...0. Adelina Petrova O. Galya Dimitrova *Rs Nikolay Nikolov "2 Galya Dimitrova, Ni...2 Galya Dimitrova, Ni...P. Nikolay Yankov::: AppsJira CloudToastGoogle Cale...# releases8 226 0• Messages• Files@ Bookmarks+1f99de0e313cToday ~8b256855f58e5bf1f5) - [JY-20571](https://jiminny.atlassian.net/browse/JY-20571): Panorama offline reports (#465)(steliyan-g)(8cf63ce)(https://github.com/jiminny/prophet/commit/8cf63cec5153b6e1320e84c67b03977ce6fe4c0c) - [JY-19982](https://jiminny.atlassian.net/browse/JY-19982): Allow multiple LLM evals with onecommand run (#464) (steliyan-g)NewCircleCl APP 2:15 PMNew commits deployed to Prophet Prod-EU:[Od2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - [JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (ilian-jiminny)New commits deployed to Prophet Prod-US:[0d2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (flian-jiminny)Message #releases+ Аа......
|
12803
|
|
12805
|
275
|
19
|
2026-04-14T11:40:10.808257+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166810808_m2.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
PhpStormFileEditViewProject vNavigateCodeLaravelRe PhpStormFileEditViewProject vNavigateCodeLaravelRefactorFVtavsco.isv#11894 on JY-18909-automated-reports-ask-iminny ~ToolsWindowHelpProphetAiv D Reports© AutomatedReportsCi© AutomatedReportsRe© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpD Slack• TeamsD TracksO TranscriptionO TwilioD UsersVocabularyDZoom© CoachingFeedbacksUpr© Command.phpcreateDatabaseusers.pc Daraoase oecountoi© DeleteOldAiCrmNotesC:© DeleteS3LeftoversComiDevPostmanCommand./© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantissues.p© FlushRolesPermissionsC© GeneratelnternalWebho• GroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gcJiminnvcacheclearcom(e) lminnv Deouacommanc© JiminnySetEncryptedTo(c) Jiminny okenintocomm© MakeSlackLiveCoaching© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesCom© RecalculateDealRisksCaC) RemoveDeleteMarkersd© RemoveExpiredNudgest© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCor© ReportController.php© SendReportJob.phpAutomatedReportsCommand.php© AutomatedReportsSendCommand.phpAadLayoutchuitles.onpc leam.ongC) AutomatedReportsRepository.php= custom.logconsole PROD© AutomatedReportsService.phpTrackProviderInstalledEvent.php© ActivityLogged.phpC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportsSendCommand extends Command521522E laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';A HS_local [iminny@localhost]Sa jiminny v017 A15 X 13 A2425 GT2832 Ct35 Ct363839404142* The name and signature of the console command.* Ovar stringprotected $signature ='automated-reports:send';* The console command description.x ovar sarino52415251154015275285295305315325335345351554protected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,private readonly AutomatedReportsRepository $reportRepository,private readonly BusDispatcher $dispatcher,parent::__construct();/*** Execute the console command.* @return intpublic function handle(): int$reportResults = $this->reportRepository->getGeneratedNotSentResults();155000%54054154254354454554654715481547550551552553554555556foreach ($reportResults as $reportResult) {1558/** @var AutomatedReportResult $reportResult */$validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->g560if ($this->automatedReportsService->shouldSendReport($vaLidRecipients, $reportResult->getG561$this->logger->info(self::LOG_PREFIX'Dispatching job',562563I):564565$this->dispatcher->dispatch(new SendReportJob($reportResult->getUuid()));566567568 v569return CommandAZias::SUCCESS;570571572select * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect * TroIgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vvid, type, provider, playbook_category_id, user_id,leao o, contact* cri contouracionlorcirn orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks Pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1..n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status = 'activelAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);select * from automated_report_results where repontaig IN (18, 33);select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where reRontaid IN (36);Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)Support Daily - in 20 mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:40:10CascadeDebug Automated Rep+0 •Fetches AutomatedReportResult records where:generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwSten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemail, so validRecipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILs# phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.0 phpsnow = larbon::nowsearllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC)Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurs talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (884L)+ <> Code Claude Sonnet 4.6winasun leamsuir-o( 4 spaces...
|
NULL
|
-4369171335426894713
|
NULL
|
click
|
ocr
|
NULL
|
PhpStormFileEditViewProject vNavigateCodeLaravelRe PhpStormFileEditViewProject vNavigateCodeLaravelRefactorFVtavsco.isv#11894 on JY-18909-automated-reports-ask-iminny ~ToolsWindowHelpProphetAiv D Reports© AutomatedReportsCi© AutomatedReportsRe© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpD Slack• TeamsD TracksO TranscriptionO TwilioD UsersVocabularyDZoom© CoachingFeedbacksUpr© Command.phpcreateDatabaseusers.pc Daraoase oecountoi© DeleteOldAiCrmNotesC:© DeleteS3LeftoversComiDevPostmanCommand./© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantissues.p© FlushRolesPermissionsC© GeneratelnternalWebho• GroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gcJiminnvcacheclearcom(e) lminnv Deouacommanc© JiminnySetEncryptedTo(c) Jiminny okenintocomm© MakeSlackLiveCoaching© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesCom© RecalculateDealRisksCaC) RemoveDeleteMarkersd© RemoveExpiredNudgest© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCor© ReportController.php© SendReportJob.phpAutomatedReportsCommand.php© AutomatedReportsSendCommand.phpAadLayoutchuitles.onpc leam.ongC) AutomatedReportsRepository.php= custom.logconsole PROD© AutomatedReportsService.phpTrackProviderInstalledEvent.php© ActivityLogged.phpC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportsSendCommand extends Command521522E laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';A HS_local [iminny@localhost]Sa jiminny v017 A15 X 13 A2425 GT2832 Ct35 Ct363839404142* The name and signature of the console command.* Ovar stringprotected $signature ='automated-reports:send';* The console command description.x ovar sarino52415251154015275285295305315325335345351554protected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,private readonly AutomatedReportsRepository $reportRepository,private readonly BusDispatcher $dispatcher,parent::__construct();/*** Execute the console command.* @return intpublic function handle(): int$reportResults = $this->reportRepository->getGeneratedNotSentResults();155000%54054154254354454554654715481547550551552553554555556foreach ($reportResults as $reportResult) {1558/** @var AutomatedReportResult $reportResult */$validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->g560if ($this->automatedReportsService->shouldSendReport($vaLidRecipients, $reportResult->getG561$this->logger->info(self::LOG_PREFIX'Dispatching job',562563I):564565$this->dispatcher->dispatch(new SendReportJob($reportResult->getUuid()));566567568 v569return CommandAZias::SUCCESS;570571572select * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect * TroIgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vvid, type, provider, playbook_category_id, user_id,leao o, contact* cri contouracionlorcirn orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks Pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1..n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status = 'activelAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);select * from automated_report_results where repontaig IN (18, 33);select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where reRontaid IN (36);Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)Support Daily - in 20 mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:40:10CascadeDebug Automated Rep+0 •Fetches AutomatedReportResult records where:generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwSten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemail, so validRecipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILs# phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.0 phpsnow = larbon::nowsearllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC)Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurs talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (884L)+ <> Code Claude Sonnet 4.6winasun leamsuir-o( 4 spaces...
|
NULL
|
|
12806
|
274
|
32
|
2026-04-14T11:40:13.614762+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166813614_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
SlackFileEditViewGoHistoryWindowHelpDOCKER981DEV ( SlackFileEditViewGoHistoryWindowHelpDOCKER981DEV (docker)882APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx"team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|*3ec2-userGec2-user@ip-10-30-...+EDHomeDMsActivityFilesLater.*•More+(ahl• Support Daily • in 20 ml100% <47Tue 14 Apr 14:40:13Search Jiminny IncJiminny... vir scnicrol# infra-changes# jiminny-bg# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the_people_of jimi...• Direct messages€. Vasil Vasilev3 Aneliya Angelova, ...lo Steliyan Georgiev3Adelina Petrova, Ili...0. Adelina Petrova O. Galya Dimitrova *Rs Nikolay Nikolov "2 Galya Dimitrova, Ni...2 Galya Dimitrova, Ni...P. Nikolay Yankov::: AppsJira CloudToastGoogle Cale...# releases8 226 0• Messages• Files@ Bookmarks+1f99de0e313cToday ~8b256855f58e5bf1f5) - [JY-20571](https://jiminny.atlassian.net/browse/JY-20571): Panorama offline reports (#465)(steliyan-g)(8cf63ce)(https://github.com/jiminny/prophet/commit/8cf63cec5153b6e1320e84c67b03977ce6fe4c0c) - [JY-19982](https://jiminny.atlassian.net/browse/JY-19982): Allow multiple LLM evals with onecommand run (#464) (steliyan-g)NewCircleCl APP 2:15 PMNew commits deployed to Prophet Prod-EU:[Od2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - [JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (ilian-jiminny)New commits deployed to Prophet Prod-US:[0d2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (flian-jiminny)Message #releases+ Аа......
|
NULL
|
3539597104413950871
|
NULL
|
click
|
ocr
|
NULL
|
SlackFileEditViewGoHistoryWindowHelpDOCKER981DEV ( SlackFileEditViewGoHistoryWindowHelpDOCKER981DEV (docker)882APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx"team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|*3ec2-userGec2-user@ip-10-30-...+EDHomeDMsActivityFilesLater.*•More+(ahl• Support Daily • in 20 ml100% <47Tue 14 Apr 14:40:13Search Jiminny IncJiminny... vir scnicrol# infra-changes# jiminny-bg# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the_people_of jimi...• Direct messages€. Vasil Vasilev3 Aneliya Angelova, ...lo Steliyan Georgiev3Adelina Petrova, Ili...0. Adelina Petrova O. Galya Dimitrova *Rs Nikolay Nikolov "2 Galya Dimitrova, Ni...2 Galya Dimitrova, Ni...P. Nikolay Yankov::: AppsJira CloudToastGoogle Cale...# releases8 226 0• Messages• Files@ Bookmarks+1f99de0e313cToday ~8b256855f58e5bf1f5) - [JY-20571](https://jiminny.atlassian.net/browse/JY-20571): Panorama offline reports (#465)(steliyan-g)(8cf63ce)(https://github.com/jiminny/prophet/commit/8cf63cec5153b6e1320e84c67b03977ce6fe4c0c) - [JY-19982](https://jiminny.atlassian.net/browse/JY-19982): Allow multiple LLM evals with onecommand run (#464) (steliyan-g)NewCircleCl APP 2:15 PMNew commits deployed to Prophet Prod-EU:[Od2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - [JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (ilian-jiminny)New commits deployed to Prophet Prod-US:[0d2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (flian-jiminny)Message #releases+ Аа......
|
NULL
|
|
12807
|
275
|
20
|
2026-04-14T11:40:13.611266+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166813611_m2.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
PhpStormFileEditViewNavigateCodeLaravelRefactorToo PhpStormFileEditViewNavigateCodeLaravelRefactorToolsWindowHelpFVtavsco.isv#11894 on JY-18909-automated-reports-ask-iminny ~Project vProphetAiv D Reports© AutomatedReportsCi© AutomatedReportsRe© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpD Slack• TeamsD TracksO TranscriptionO TwilioD UsersC Vocabulary@Zoom© CoachingFeedbacksUpr© Command.phpcreateDatabaseusers.pc Daraoase oecountoi© DeleteOldAiCrmNotesC:© DeleteS3LeftoversComiDevPostmanCommand./© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantissues.p© FlushRolesPermissionsC© GeneratelnternalWebho• GroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gcJiminnvcacheclearcom(e) lminnv Deouacommanc© JiminnySetEncryptedTo© JiminnyTokenInfoComn© MakeSlackLiveCoaching© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesCom© RecalculateDealRisksCaC) RemoveDeleteMarkersd© RemoveExpiredNudgest© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCor© ReportController.php© AutomatedReportsSendCommand.php© SendReportJob.phpAutomatedReportsCommand.phpAadLayoutchuitles.onp© Team.phpAutomatedReportsRepository.php© AutomatedReportsService.phpCreateHeldActivityEvent.php© TrackProviderInstalledEvent.php© UserPilotActivityListener.php© ActivityLogged.phpC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportsSendCommand extends Command/*** The name and signature of the console command.* Ovar string25 C• protected $signature = 'automated-reports:send';l28* The console command description.x ovar sarino32 Ctprotected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,3637383940private readonly BusDispatcher $dispatcher,42parent::__construct();/*** Execute the console command.* @return intpublic function handle(): intforeach ($reportResultsas $reportResult) {/** @var AutomatedReportResult $reportResult */'Dispatching job',I):61return CommandAZias::SUCCESS;Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)= custom.logA HS_local [iminny@localhost]console PROD521522152511540152752852953053153253353453515545405415425435445455461547154815475505515525535545555561558562563E laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';Sa jiminny v017 A15 X 13 Aselect * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect * TroIgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vvid, type, provider, playbook_category_id, user_id,leao o, contact* cri contouracionlorcirn orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCzojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks pjoin playbook_categories pc"->l.n: on p.1d = pc.playbook_1dwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1..n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status = 'activelAND (r.exRicesuat >= now() OR r.exeines.at IS NULL);select * from automated_report_results where repontaig IN (18, 33);565566567568 v569570571572select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where reRontaid IN (36);Support Daily - in 20 mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:40:13CascadeDebug Automated Rep+D ...Fetches AutomatedReportResult records where:generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwSten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemail, so validRecipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILs# phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.0 phpsnow = larbon::now searllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurs talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (884L)+ <> Code Claude Sonnet 4.6Winasun leams20:03uir-o( 4 spaces...
|
NULL
|
1695385774527295854
|
NULL
|
click
|
ocr
|
NULL
|
PhpStormFileEditViewNavigateCodeLaravelRefactorToo PhpStormFileEditViewNavigateCodeLaravelRefactorToolsWindowHelpFVtavsco.isv#11894 on JY-18909-automated-reports-ask-iminny ~Project vProphetAiv D Reports© AutomatedReportsCi© AutomatedReportsRe© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpD Slack• TeamsD TracksO TranscriptionO TwilioD UsersC Vocabulary@Zoom© CoachingFeedbacksUpr© Command.phpcreateDatabaseusers.pc Daraoase oecountoi© DeleteOldAiCrmNotesC:© DeleteS3LeftoversComiDevPostmanCommand./© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantissues.p© FlushRolesPermissionsC© GeneratelnternalWebho• GroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gcJiminnvcacheclearcom(e) lminnv Deouacommanc© JiminnySetEncryptedTo© JiminnyTokenInfoComn© MakeSlackLiveCoaching© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesCom© RecalculateDealRisksCaC) RemoveDeleteMarkersd© RemoveExpiredNudgest© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCor© ReportController.php© AutomatedReportsSendCommand.php© SendReportJob.phpAutomatedReportsCommand.phpAadLayoutchuitles.onp© Team.phpAutomatedReportsRepository.php© AutomatedReportsService.phpCreateHeldActivityEvent.php© TrackProviderInstalledEvent.php© UserPilotActivityListener.php© ActivityLogged.phpC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportsSendCommand extends Command/*** The name and signature of the console command.* Ovar string25 C• protected $signature = 'automated-reports:send';l28* The console command description.x ovar sarino32 Ctprotected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,3637383940private readonly BusDispatcher $dispatcher,42parent::__construct();/*** Execute the console command.* @return intpublic function handle(): intforeach ($reportResultsas $reportResult) {/** @var AutomatedReportResult $reportResult */'Dispatching job',I):61return CommandAZias::SUCCESS;Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)= custom.logA HS_local [iminny@localhost]console PROD521522152511540152752852953053153253353453515545405415425435445455461547154815475505515525535545555561558562563E laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';Sa jiminny v017 A15 X 13 Aselect * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect * TroIgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vvid, type, provider, playbook_category_id, user_id,leao o, contact* cri contouracionlorcirn orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type =' conference'# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCzojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks pjoin playbook_categories pc"->l.n: on p.1d = pc.playbook_1dwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1..n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status = 'activelAND (r.exRicesuat >= now() OR r.exeines.at IS NULL);select * from automated_report_results where repontaig IN (18, 33);565566567568 v569570571572select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where reRontaid IN (36);Support Daily - in 20 mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:40:13CascadeDebug Automated Rep+D ...Fetches AutomatedReportResult records where:generated at is NOT NULLsent_at is NULLstatus = STATUS_GENERATED• has a related reportYour 7 results pass this.VwSten 2: getValidRecipientlsersoFor each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients7 Includes creator. ror recular reoorts t eoes tnrouen detkeclolentusers . cltner way, tne creator nas anemail, so validRecipients is not empty. VStep 3: shouldSendReporto — Hisis whEkEllraILs# phppublic const int SENT_REPORT_AT_HOURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +10800 seconds.t then checks.0 phpsnow = larbon::now searllestlzcurrent cime in GMI+3$isScheduledTime = (int) $now->format('H') == 5;// is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTCIf it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime() :• phppublic tunction naspassedschedu ledlimerrlarbonintertace sgeneratedAt, string stimezone): booyunis checks.generatedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC.Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeurc, so nasrasseascheduleolime rerurs talse• OR the current time is betore 05:00 GMI+3→ nowltc Is NO > schedul edtimeltcGiven you're running this at 2:35 PM UTC+3 (14:35 local / 11:35 UTC), here's what happens:ScheduledTime = today at 05:00 GMT+3 = 02:00 UTCnow = 11:35 UTC → past scheduled time VgeneratedAt must be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtutc. lt(scheduledTimeUtc) is false → hasPassedScheduledTime returns false → nothing sends.In short: the report must have been generated before the scheduled send time (05:00 in the user'sTmezone rmlwas cenerarec aneroo0u cmito uwi ony de elcioe to senc omorrow ar0e0u cMilts,Ask anything (884L)+ <> Code Claude Sonnet 4.6Winasun leams20:03uir-o( 4 spaces...
|
12805
|
|
12812
|
274
|
35
|
2026-04-14T11:41:21.145890+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166881145_m1.jpg...
|
PhpStorm
|
faVsco.js – AutomatedReportsSendCommand.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error
Next Highlighted Error
SELECT * FROM teams WHERE id = 1;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;
SELECT * FROM crm_fields WHERE id = 2234;
SELECT * FROM crm_field_values WHERE crm_field_id = 2234;
select * from crm_profiles where user_id = 143;
select * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO
select * from business_processes where crm_configuration_id = 39;
# 01941000000H669AAC, 01941000000H66JAAS
select * from record_type_field_values
where record_type_id IN (24);
select * from crm_field_values where id IN (2730);
select * from crm_configurations where id = 39;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce'; #1035
select * from users where team_id = 1; # 222 group 3
SELECT * FROM activities WHERE user_id = 222 order by id desc;
select * from sidekick_settings where team_id = 1;
select * from teams where id = 1;
select * from team_features where team_id = 1;
select * from activities where crm_configuration_id = 2
and provider = 'ms-teams' and id = 608765;
SELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';
select * from sidekick_settings where team_id = 2;
SELECT * FROM activities WHERE id = 608660;
select * from activity_summary_logs where activity_id = 608660;
select * from ai_prompts where transcription_id = 11214;
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;
# id: 608818, crm: 59628809737
SELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;
# id: 608821, crm: 59632069252
SELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,
playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,
scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at
FROM activities a
join calendar_events ce on a.calendar_event_id = ce.id
WHERE a.id IN (608818, 608821);
select * from users where team_id = 1;
select * from team_settings where team_id = 1;
select * from crm_profiles where crm_configuration_id = 39 order by user_id;
select * from team_features where team_id = 1;
select * from users where team_id = 2;
SELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639
# Preslava N. Ivanova, grou id 3
SELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;
select * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';
select
a.id,
a.type,
a.scheduled_start_time,
a.actual_start_time,
a.created_at,
a.opportunity_id,
a.status
FROM activities a
WHERE opportunity_id = 344
and status IN ('completed', 'received', 'delivered')
and (
(a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))
;
SELECT * FROM users WHERE id = 222;
SELECT * FROM crm_profiles WHERE user_id = 222;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;
select * from group_deal_risk_types;
select * from opportunities where team_id = 1;
SELECT * FROM opportunities WHERE id = 315;
SELECT * FROM crm_field_data WHERE object_id = 315;
select * from crm_field_data where object_id = 260;
select * from generic_ai_prompts where subject_id = 315;
select * from teams; # 36, 21, 121, [EMAIL]
SELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';
# [PASSWORD_DOTS]
select * from teams where id = 1;
select * from crm_configurations where id = 39;
select * from users where team_id = 1;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 1;
# 1 - 00541000004281rAAA
# 204 - 0052g000003freeAAA
# 429 - 0052g000003qGOiAAM
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
select * from activities where type = 'softphone'
and created_at > '2024-12-11 15:24:36' order by id desc;
select * from activity_providers where team_id = 1;
select * from activity_provider_users where activity_provider_id = 328;
select * from opportunities where crm_configuration_id = 39
AND account_id = 178 AND is_closed = false
order by created_at DESC;
select * from contacts where id = 3952;
select * from accounts where id = 178;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations where id = 21;
select * from users where team_id = 36;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 36
and sa.provider = 'bullhorn';
select * from social_accounts where id = 348;
UPDATE social_accounts SET
provider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',
provider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',
expires = 1733998131,
state = 'connected'
WHERE id = 348;
# [PASSWORD_DOTS]
select * from teams where id = 31;
select * from crm_configurations where id = 18;
select * from users where team_id = 31; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 31;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 31
and sa.provider = 'close';
select * from contacts where crm_configuration_id = 18;
# [PASSWORD_DOTS] NEPTUNE [PASSWORD_DOTS]
select * from teams;
select * from users where id IN (1030, 1035, 1052);
select * from crm_configurations;
select * from users where team_id = 65; # 257
select * from team_settings where team_id = 65; # 257
select * from invitations where team_id = 65; # 257
select * from users where email = '[EMAIL]'; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 65;
select * from crm_configurations where id = 53;
select * from accounts where crm_configuration_id = 53 order by id desc;
select * from leads where crm_configuration_id = 53 order by id desc;
select * from contacts where crm_configuration_id = 53 order by id desc;
select * from opportunities where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 53 order by id desc;
select * from crm_fields where crm_configuration_id = 53 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 53 order by id desc;
select * from stages where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 13;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
and sa.provider = 'integration-app';
select * from contacts where crm_configuration_id = 13;
select * from social_accounts where sociable_id = 283;
SELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';
select * from activity_providers where team_id = 65;
SELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
;
# [PASSWORD_DOTS] STAGING [PASSWORD_DOTS]
SELECT * FROM teams;
SELECT * FROM teams WHERE id = 88;
SELECT * FROM teams WHERE id = 89;
select * from team_settings where team_id = 89;
SELECT * FROM users WHERE team_id = 89;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 89;
select * from users;
SELECT * FROM social_accounts WHERE sociable_id = 1761;
SELECT * FROM crm_configurations WHERE id = 70;
select * from accounts where crm_configuration_id = 70 order by id desc;
select * from leads where crm_configuration_id = 70 order by id desc;
select * from contacts where crm_configuration_id = 70 order by id desc;
select * from opportunities where crm_configuration_id = 70 order by id desc;
select * from crm_profiles where crm_configuration_id = 70 order by id desc;
select * from crm_fields where crm_configuration_id = 70 order by id desc;
select * from crm_field_values where crm_field_id = 3536 order by id desc;
select * from crm_layouts where crm_configuration_id = 70 order by id desc;
select * from stages where crm_configuration_id = 70 order by id desc;
select * from business_processes where crm_configuration_id = 70 order by id desc;
select * from business_process_stages where business_process_id = 34;
select * from contacts where id = 10468;
select * from crm_layouts where crm_configuration_id = 70;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;
SELECT * FROM crm_fields WHERE id IN (3533,3534,3535);
select * from activities where crm_configuration_id = 70
and (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;
SELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;
SELECT * FROM activities where crm_configuration_id = 69 ;
SELECT * FROM users WHERE email LIKE '%[EMAIL]%';
SELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;
SELECT * FROM opportunities WHERE id = 385;
select * from participants p
join activities a on p.activity_id = a.id
where a.crm_configuration_id = 70
and (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);
SELECT * FROM participants WHERE id = 1013638;
select * from teams where id = 90;
select * from users where team_id = 90;
select * from social_accounts where social_accounts.sociable_id IN (1960,1760);
SELECT * FROM crm_profiles WHERE crm_configuration_id = 71;
select * from invitations where team_id = 90;
select * from crm_configurations where id = 71;
select * from accounts where crm_configuration_id = 71 order by id desc;
select * from leads where crm_configuration_id = 71 order by id desc;
select * from contacts where crm_configuration_id = 71 order by id desc;
select * from opportunities where crm_configuration_id = 71 order by id desc;
select * from crm_profiles where crm_configuration_id = 71 order by id desc;
select * from crm_fields where crm_configuration_id = 71 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 71 order by id desc;
select * from stages where crm_configuration_id = 71 order by id desc;
select * from users order by secondary_email desc;
select u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa
join users u on sa.sociable_id = u.id
where sa.provider = 'google' and u.email LIKE 'aneliya%';
select * from failed_jobs order by id desc;
select * from users where email = '[EMAIL]' or secondary_email = '[EMAIL]';
select * from teams;
SELECT * FROM crm_profiles WHERE crm_configuration_id = 39;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;
SELECT * FROM crm_configurations WHERE id = 70;
select * from teams where id = 1;
select * from groups where team_id = 1;
select * from users where team_id = 1;
select o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o
join users u on o.user_id = u.id
join groups g on u.group_id = g.id
join role_user ru on u.id = ru.user_id
join roles r on ru.role_id = r.id
where o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';
select * from role_user where user_id = 143;
select * from roles;
select * from role_user;
select * from groups where id = 9;
select * from scope_groups where group_id = 9;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations;
SELECT * FROM social_accounts WHERE sociable_id = 121;
https://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105
https://crmsandbox.zoho.com/crm/
https://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080
https://crm.zoho.com/crm/
org3469620
SELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;
select * from users where email LIKE "%mobile_automation_%";
select * from social_accounts where sociable_id IN (2228);
select * from crm_profiles where user_id IN (2222,2223,2226,2227);
select * from teams order by id desc;
SELECT * FROM users WHERE id = 2229;
SELECT * FROM crm_profiles WHERE user_id = 2229;
select * from opportunities where crm_configuration_id = 88;
select * from crm_fields where crm_configuration_id = 88;
select * from crm_profiles where crm_configuration_id = 88;
SELECT * FROM teams WHERE id = 1;
SELECT * FROM users WHERE id = 143;
SELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;
https://app.staging.jiminny.com/ondemand?
min_duration=1
&
only_recorded=1
&
user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e
&
sequence_number=2
select * from users where team_id = 1 and email like '%stoyan%'
select * from coaching_feedbacks;
select * from teams;
SELECT * FROM users WHERE team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from users where id = 143;
SELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
select * from users where team_id = 2;
select * from activities where crm_configuration_id = 39
and activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'
AND user_id = 143
order by id desc;
# [PASSWORD_DOTS]
select * from teams where id = 142; # 2312, 126
select * from team_settings;
select * from users where team_id = 142; # 21642
SELECT * FROM social_accounts WHERE sociable_id = 21642;
SELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;
select * from crm_profiles where id IN (93);
select * from invitations;
select * from team_features where team_id = 1;
SELECT * FROM crm_configurations WHERE id = 126;
select * from accounts where crm_configuration_id = 126 order by id desc;
select * from leads where crm_configuration_id = 126 order by id desc;
select * from contacts where crm_configuration_id = 126 order by id desc;
select * from opportunities where crm_configuration_id = 126 order by id desc;
select * from crm_profiles where crm_configuration_id = 126 order by id desc;
select * from crm_fields where crm_configuration_id = 126 # 11060
# and type IN ('picklist', 'status')
# and object_type = 'task'
order by id desc;
# 5731,5732,5733
select DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;
select * from crm_layouts where crm_configuration_id = 126 order by id desc;
SELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);
select * from stages where crm_configuration_id = 126 order by id desc;
select * from business_processes where crm_configuration_id = 126 order by id desc;
select * from business_process_stages where business_process_id IN (76,75,74,73);
select * from playbooks where team_id = 142;
select * from playbook_layouts where playbook_id IN (108);
SELECT * FROM playbook_categories WHERE playbook_id IN (108);
select * from teams where id = 130;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 2
and sa.provider = 'hubspot';
SELECT * FROM activities
WHERE crm_configuration_id = 110;
select * from teams;
select * from crm_configurations;
SELECT * FROM activities WHERE id = 628773;
SELECT * FROM crm_profiles WHERE user_id = 1460;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from teams;
select ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id
join permission_role pr on pr.role_id = ru.role_id
join permissions p on p.id = pr.permission_id
where team_id = 495 and p.name IN ('dial');
select * from teams where id = 145;
select * from crm_configurations where id = 129;
select * from social_accounts where sociable_id = 2317;
SELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;
select * from teams where id = 1;
SELECT * FROM crm_layouts WHERE crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;
SELECT * FROM crm_layout_entities WHERE id = 5507;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');
select * from teams;
select * from activities where crm_configuration_id = 14;
SELECT * FROM social_accounts where provider = 'copper';
select * from activities where id = 628467;
select * from participants where activity_id = 628467;
SELECT * FROM contacts WHERE id = 3969;
SELECT * FROM accounts WHERE id = 177;
SELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;
# [PASSWORD_DOTS] BH
select * from teams where id = 36;
SELECT * FROM crm_configurations WHERE id = 21;
select * from activities where crm_configuration_id = 21 and id = 607901;
select * from activities where crm_configuration_id = 21;
select * roles;
select * from permissions;
select * from permission_role where permission_id = 226;
select * from migrations order by id desc;
# mercury
# neptune
# earth
select * from teams;
select * from teams where id = 19;
select * from teams where id = 27;
select * from users where team_id = 27;
SELECT * FROM crm_configurations WHERE id = 42;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from activities where id = 631461;
SELECT * FROM crm_field_values WHERE crm_field_id = 180;
select * from teams where id = 2;
SELECT * FROM social_accounts WHERE sociable_id = 89;
SELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273
select * from activity_summary_logs where activity_id = 634273;
select * from sidekick_settings where team_id = 2;
select * from teams; # 2, 2
SELECT * FROM crm_configurations WHERE team_id = 2; # 2
select * from team_features where team_id = 2;
select * from features;
SELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';
SELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from users where team_id = 1 and id IN (7160, 3248);
select * from migrations order by id desc;
SELECT
CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,
u.email,
sa.*,
t.owner_id FROM social_accounts sa
JOIN users u on u.id = sa.sociable_id
JOIN teams t on t.id = u.team_id
WHERE u.team_id = 1 and sa.provider = 'salesforce';
select * from teams where id = 1;
select * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;
select * from groups where id = 565;
select * from playbooks where team_id = 1;
select * from playbooks where id = 175;
select * from playbook_categories where playbook_id = 175;
select * from users where team_id = 1;
select * from users where id = 7160;
select * from crm_profiles where user_id = 7160;
select * from features;
select
*
# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,
# crm_configuration_id, crm_provider_id, transcription_id, status
from activities where crm_configuration_id = 1 and type = 'conference'
# and crm_provider_id IS NOT NULL
and provider != 'uploader' and actual_start_time IS NOT NULL
ORDER by id desc;
select * from activities where id = 54747783; # 00UO400000pCzojMAC
select p.id, p.activity_type, pc.id, pc.name
FROM playbooks p
join playbook_categories pc on p.id = pc.playbook_id
where p.team_id = 1 and p.activity_type = 'event';
SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';
SELECT * FROM crm_field_values WHERE crm_field_id = 4;
select * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id
where crm_configuration_id = 1 and pl.playbook_id = 175;
select * from teams;
SELECT r.* FROM automated_reports r
join teams t on r.team_id = t.id
WHERE r.frequency = 'daily'
and r.status = 1
AND t.status = 'active'
AND (r.expires_at >= now() OR r.expires_at IS NULL);
select * from automated_report_results where report_id IN (18, 33);
select * from activity_searches where id = 10932;
select * from activity_search_filters where activity_search_id = 10932;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from automated_report_results where report_id IN (36);...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"#11894 on JY-18909-automated-reports-ask-jiminny, menu","depth":5,"help_text":"Pull request #11894 exists for current branch JY-18909-automated-reports-ask-jiminny","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"AutomatedReportsCommandTest","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'AutomatedReportsCommandTest'","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'AutomatedReportsCommandTest'","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Execute","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Explain Plan","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Browse Query History","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"View Parameters","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Open Query Execution Settings…","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"In-Editor Results","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Tx: Auto","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Cancel Running Statements","depth":4,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Playground","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"jiminny","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"17","depth":4,"role_description":"text"},{"role":"AXStaticText","text":"15","depth":4,"role_description":"text"},{"role":"AXStaticText","text":"13","depth":4,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"SELECT * FROM teams WHERE id = 1;\n\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;\nSELECT * FROM crm_fields WHERE id = 2234;\nSELECT * FROM crm_field_values WHERE crm_field_id = 2234;\n\nselect * from crm_profiles where user_id = 143;\n\nselect * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO\nselect * from business_processes where crm_configuration_id = 39;\n# 01941000000H669AAC, 01941000000H66JAAS\n\nselect * from record_type_field_values\n where record_type_id IN (24);\n\nselect * from crm_field_values where id IN (2730);\n\nselect * from crm_configurations where id = 39;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce'; #1035\n\n\nselect * from users where team_id = 1; # 222 group 3\nSELECT * FROM activities WHERE user_id = 222 order by id desc;\nselect * from sidekick_settings where team_id = 1;\nselect * from teams where id = 1;\nselect * from team_features where team_id = 1;\n\nselect * from activities where crm_configuration_id = 2\nand provider = 'ms-teams' and id = 608765;\n\nSELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';\n\nselect * from sidekick_settings where team_id = 2;\n\nSELECT * FROM activities WHERE id = 608660;\nselect * from activity_summary_logs where activity_id = 608660;\nselect * from ai_prompts where transcription_id = 11214;\n\n# ********************************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;\n# id: 608818, crm: 59628809737\nSELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;\n# id: 608821, crm: 59632069252\nSELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,\nplaybook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,\nscheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at\nFROM activities a\njoin calendar_events ce on a.calendar_event_id = ce.id\nWHERE a.id IN (608818, 608821);\n\nselect * from users where team_id = 1;\nselect * from team_settings where team_id = 1;\nselect * from crm_profiles where crm_configuration_id = 39 order by user_id;\n\nselect * from team_features where team_id = 1;\n\nselect * from users where team_id = 2;\n\nSELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639\n# Preslava N. Ivanova, grou id 3\n\nSELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;\n\nselect * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';\n\nselect\n a.id,\n a.type,\n a.scheduled_start_time,\n a.actual_start_time,\n a.created_at,\n a.opportunity_id,\n a.status\nFROM activities a\nWHERE opportunity_id = 344\nand status IN ('completed', 'received', 'delivered')\nand (\n (a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))\n;\n\nSELECT * FROM users WHERE id = 222;\n\nSELECT * FROM crm_profiles WHERE user_id = 222;\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;\n\nselect * from group_deal_risk_types;\n\nselect * from opportunities where team_id = 1;\n\nSELECT * FROM opportunities WHERE id = 315;\nSELECT * FROM crm_field_data WHERE object_id = 315;\nselect * from crm_field_data where object_id = 260;\n\nselect * from generic_ai_prompts where subject_id = 315;\n\nselect * from teams; # 36, 21, 121, james.graham@bullhorn.jiminny.com\nSELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';\n\n# ************************************************************************************\nselect * from teams where id = 1;\nselect * from crm_configurations where id = 39;\nselect * from users where team_id = 1;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 1;\n# 1 - 00541000004281rAAA\n# 204 - 0052g000003freeAAA\n# 429 - 0052g000003qGOiAAM\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\nselect * from activities where type = 'softphone'\nand created_at > '2024-12-11 15:24:36' order by id desc;\n\nselect * from activity_providers where team_id = 1;\nselect * from activity_provider_users where activity_provider_id = 328;\n\nselect * from opportunities where crm_configuration_id = 39\nAND account_id = 178 AND is_closed = false\norder by created_at DESC;\n\nselect * from contacts where id = 3952;\nselect * from accounts where id = 178;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations where id = 21;\nselect * from users where team_id = 36;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 36;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 36\nand sa.provider = 'bullhorn';\n\nselect * from social_accounts where id = 348;\nUPDATE social_accounts SET\nprovider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',\nprovider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',\nexpires = 1733998131,\nstate = 'connected'\nWHERE id = 348;\n\n# ************************************************************************************\nselect * from teams where id = 31;\nselect * from crm_configurations where id = 18;\n\nselect * from users where team_id = 31; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 31;\n\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 31\nand sa.provider = 'close';\n\nselect * from contacts where crm_configuration_id = 18;\n\n# ********************** NEPTUNE **************************************************************\nselect * from teams;\nselect * from users where id IN (1030, 1035, 1052);\nselect * from crm_configurations;\n\nselect * from users where team_id = 65; # 257\nselect * from team_settings where team_id = 65; # 257\nselect * from invitations where team_id = 65; # 257\nselect * from users where email = 'integration-account@jiminny.com'; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 65;\n\nselect * from crm_configurations where id = 53;\nselect * from accounts where crm_configuration_id = 53 order by id desc;\nselect * from leads where crm_configuration_id = 53 order by id desc;\nselect * from contacts where crm_configuration_id = 53 order by id desc;\nselect * from opportunities where crm_configuration_id = 53 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 53 order by id desc;\nselect * from crm_fields where crm_configuration_id = 53 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 53 order by id desc;\nselect * from stages where crm_configuration_id = 53 order by id desc;\n\n\nselect * from crm_profiles where crm_configuration_id = 13;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\nand sa.provider = 'integration-app';\n\nselect * from contacts where crm_configuration_id = 13;\n\nselect * from social_accounts where sociable_id = 283;\n\nSELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';\n\nselect * from activity_providers where team_id = 65;\nSELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\n;\n\n# ***************************** STAGING ********************************************\nSELECT * FROM teams;\nSELECT * FROM teams WHERE id = 88;\nSELECT * FROM teams WHERE id = 89;\nselect * from team_settings where team_id = 89;\nSELECT * FROM users WHERE team_id = 89;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 89;\n\nselect * from users;\nSELECT * FROM social_accounts WHERE sociable_id = 1761;\nSELECT * FROM crm_configurations WHERE id = 70;\nselect * from accounts where crm_configuration_id = 70 order by id desc;\nselect * from leads where crm_configuration_id = 70 order by id desc;\nselect * from contacts where crm_configuration_id = 70 order by id desc;\nselect * from opportunities where crm_configuration_id = 70 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 70 order by id desc;\nselect * from crm_fields where crm_configuration_id = 70 order by id desc;\nselect * from crm_field_values where crm_field_id = 3536 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 70 order by id desc;\nselect * from stages where crm_configuration_id = 70 order by id desc;\nselect * from business_processes where crm_configuration_id = 70 order by id desc;\nselect * from business_process_stages where business_process_id = 34;\n\nselect * from contacts where id = 10468;\n\nselect * from crm_layouts where crm_configuration_id = 70;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;\nSELECT * FROM crm_fields WHERE id IN (3533,3534,3535);\n\nselect * from activities where crm_configuration_id = 70\nand (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;\n\nSELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;\nSELECT * FROM activities where crm_configuration_id = 69 ;\n\nSELECT * FROM users WHERE email LIKE '%jiminny_web_sa2@jiminny.com%';\nSELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;\nSELECT * FROM opportunities WHERE id = 385;\n\nselect * from participants p\njoin activities a on p.activity_id = a.id\nwhere a.crm_configuration_id = 70\nand (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);\nSELECT * FROM participants WHERE id = 1013638;\n\nselect * from teams where id = 90;\nselect * from users where team_id = 90;\nselect * from social_accounts where social_accounts.sociable_id IN (1960,1760);\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 71;\nselect * from invitations where team_id = 90;\n\nselect * from crm_configurations where id = 71;\nselect * from accounts where crm_configuration_id = 71 order by id desc;\nselect * from leads where crm_configuration_id = 71 order by id desc;\nselect * from contacts where crm_configuration_id = 71 order by id desc;\nselect * from opportunities where crm_configuration_id = 71 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 71 order by id desc;\nselect * from crm_fields where crm_configuration_id = 71 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 71 order by id desc;\nselect * from stages where crm_configuration_id = 71 order by id desc;\n\nselect * from users order by secondary_email desc;\nselect u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa\n join users u on sa.sociable_id = u.id\nwhere sa.provider = 'google' and u.email LIKE 'aneliya%';\n\nselect * from failed_jobs order by id desc;\n\nselect * from users where email = 'ben.allwright@learningpeople.co.uk' or secondary_email = 'ben.allwright@learningpeople.co.uk';\n\nselect * from teams;\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 39;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\n# ************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;\nSELECT * FROM crm_configurations WHERE id = 70;\n\nselect * from teams where id = 1;\nselect * from groups where team_id = 1;\nselect * from users where team_id = 1;\n\nselect o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o\njoin users u on o.user_id = u.id\njoin groups g on u.group_id = g.id\njoin role_user ru on u.id = ru.user_id\njoin roles r on ru.role_id = r.id\nwhere o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';\n\nselect * from role_user where user_id = 143;\nselect * from roles;\n\nselect * from role_user;\nselect * from groups where id = 9;\nselect * from scope_groups where group_id = 9;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations;\nSELECT * FROM social_accounts WHERE sociable_id = 121;\n\nhttps://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105\nhttps://crmsandbox.zoho.com/crm/\n\nhttps://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080\n https://crm.zoho.com/crm/\n org3469620\n\nSELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;\n\nselect * from users where email LIKE \"%mobile_automation_%\";\nselect * from social_accounts where sociable_id IN (2228);\nselect * from crm_profiles where user_id IN (2222,2223,2226,2227);\n\nselect * from teams order by id desc;\nSELECT * FROM users WHERE id = 2229;\nSELECT * FROM crm_profiles WHERE user_id = 2229;\nselect * from opportunities where crm_configuration_id = 88;\nselect * from crm_fields where crm_configuration_id = 88;\nselect * from crm_profiles where crm_configuration_id = 88;\n\nSELECT * FROM teams WHERE id = 1;\n\nSELECT * FROM users WHERE id = 143;\nSELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;\n\nhttps://app.staging.jiminny.com/ondemand?\n min_duration=1\n &\n only_recorded=1\n &\n user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e\n &\n sequence_number=2\n\n select * from users where team_id = 1 and email like '%stoyan%'\n\nselect * from coaching_feedbacks;\n\nselect * from teams;\nSELECT * FROM users WHERE team_id = 36;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from users where id = 143;\n\nSELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\n\nselect * from users where team_id = 2;\nselect * from activities where crm_configuration_id = 39\nand activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'\nAND user_id = 143\norder by id desc;\n\n# ************************************************************************************\nselect * from teams where id = 142; # 2312, 126\nselect * from team_settings;\nselect * from users where team_id = 142; # 21642\nSELECT * FROM social_accounts WHERE sociable_id = 21642;\nSELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;\nselect * from crm_profiles where id IN (93);\nselect * from invitations;\nselect * from team_features where team_id = 1;\n\nSELECT * FROM crm_configurations WHERE id = 126;\nselect * from accounts where crm_configuration_id = 126 order by id desc;\nselect * from leads where crm_configuration_id = 126 order by id desc;\nselect * from contacts where crm_configuration_id = 126 order by id desc;\nselect * from opportunities where crm_configuration_id = 126 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 126 order by id desc;\nselect * from crm_fields where crm_configuration_id = 126 # 11060\n# and type IN ('picklist', 'status')\n# and object_type = 'task'\norder by id desc;\n# 5731,5732,5733\nselect DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;\nselect * from crm_layouts where crm_configuration_id = 126 order by id desc;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);\nselect * from stages where crm_configuration_id = 126 order by id desc;\nselect * from business_processes where crm_configuration_id = 126 order by id desc;\nselect * from business_process_stages where business_process_id IN (76,75,74,73);\nselect * from playbooks where team_id = 142;\nselect * from playbook_layouts where playbook_id IN (108);\nSELECT * FROM playbook_categories WHERE playbook_id IN (108);\n\nselect * from teams where id = 130;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 2\nand sa.provider = 'hubspot';\n\nSELECT * FROM activities\n WHERE crm_configuration_id = 110;\n\nselect * from teams;\nselect * from crm_configurations;\n\nSELECT * FROM activities WHERE id = 628773;\nSELECT * FROM crm_profiles WHERE user_id = 1460;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from teams;\nselect ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id\njoin permission_role pr on pr.role_id = ru.role_id\n join permissions p on p.id = pr.permission_id\nwhere team_id = 495 and p.name IN ('dial');\n\nselect * from teams where id = 145;\nselect * from crm_configurations where id = 129;\nselect * from social_accounts where sociable_id = 2317;\nSELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;\n\nselect * from teams where id = 1;\nSELECT * FROM crm_layouts WHERE crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;\nSELECT * FROM crm_layout_entities WHERE id = 5507;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');\n\nselect * from teams;\nselect * from activities where crm_configuration_id = 14;\n\nSELECT * FROM social_accounts where provider = 'copper';\n\nselect * from activities where id = 628467;\nselect * from participants where activity_id = 628467;\n\nSELECT * FROM contacts WHERE id = 3969;\nSELECT * FROM accounts WHERE id = 177;\n\nSELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;\n\n# ********************* BH\nselect * from teams where id = 36;\nSELECT * FROM crm_configurations WHERE id = 21;\nselect * from activities where crm_configuration_id = 21 and id = 607901;\nselect * from activities where crm_configuration_id = 21;\n\nselect * roles;\nselect * from permissions;\nselect * from permission_role where permission_id = 226;\n\nselect * from migrations order by id desc;\n\n# mercury\n# neptune\n# earth\n\nselect * from teams;\nselect * from teams where id = 19;\nselect * from teams where id = 27;\nselect * from users where team_id = 27;\nSELECT * FROM crm_configurations WHERE id = 42;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from activities where id = 631461;\nSELECT * FROM crm_field_values WHERE crm_field_id = 180;\n\nselect * from teams where id = 2;\nSELECT * FROM social_accounts WHERE sociable_id = 89;\n\nSELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273\nselect * from activity_summary_logs where activity_id = 634273;\n\nselect * from sidekick_settings where team_id = 2;\n\nselect * from teams; # 2, 2\nSELECT * FROM crm_configurations WHERE team_id = 2; # 2\nselect * from team_features where team_id = 2;\nselect * from features;\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;\n\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from users where team_id = 1 and id IN (7160, 3248);\nselect * from migrations order by id desc;\n\nSELECT\n CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,\n u.email,\n sa.*,\n t.owner_id FROM social_accounts sa\nJOIN users u on u.id = sa.sociable_id\nJOIN teams t on t.id = u.team_id\nWHERE u.team_id = 1 and sa.provider = 'salesforce';\n\nselect * from teams where id = 1;\nselect * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;\nselect * from groups where id = 565;\nselect * from playbooks where team_id = 1;\nselect * from playbooks where id = 175;\nselect * from playbook_categories where playbook_id = 175;\nselect * from users where team_id = 1;\nselect * from users where id = 7160;\nselect * from crm_profiles where user_id = 7160;\nselect * from features;\nselect\n *\n# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,\n# crm_configuration_id, crm_provider_id, transcription_id, status\nfrom activities where crm_configuration_id = 1 and type = 'conference'\n# and crm_provider_id IS NOT NULL\nand provider != 'uploader' and actual_start_time IS NOT NULL\nORDER by id desc;\nselect * from activities where id = 54747783; # 00UO400000pCzojMAC\n\nselect p.id, p.activity_type, pc.id, pc.name\nFROM playbooks p\njoin playbook_categories pc on p.id = pc.playbook_id\nwhere p.team_id = 1 and p.activity_type = 'event';\n\nSELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';\nSELECT * FROM crm_field_values WHERE crm_field_id = 4;\n\nselect * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id\nwhere crm_configuration_id = 1 and pl.playbook_id = 175;\n\nselect * from teams;\nSELECT r.* FROM automated_reports r\njoin teams t on r.team_id = t.id\nWHERE r.frequency = 'daily'\n and r.status = 1\nAND t.status = 'active'\nAND (r.expires_at >= now() OR r.expires_at IS NULL);\n\nselect * from automated_report_results where report_id IN (18, 33);\n\nselect * from activity_searches where id = 10932;\nselect * from activity_search_filters where activity_search_id = 10932;\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from automated_report_results where report_id IN (36);","depth":4,"value":"SELECT * FROM teams WHERE id = 1;\n\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;\nSELECT * FROM crm_fields WHERE id = 2234;\nSELECT * FROM crm_field_values WHERE crm_field_id = 2234;\n\nselect * from crm_profiles where user_id = 143;\n\nselect * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO\nselect * from business_processes where crm_configuration_id = 39;\n# 01941000000H669AAC, 01941000000H66JAAS\n\nselect * from record_type_field_values\n where record_type_id IN (24);\n\nselect * from crm_field_values where id IN (2730);\n\nselect * from crm_configurations where id = 39;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce'; #1035\n\n\nselect * from users where team_id = 1; # 222 group 3\nSELECT * FROM activities WHERE user_id = 222 order by id desc;\nselect * from sidekick_settings where team_id = 1;\nselect * from teams where id = 1;\nselect * from team_features where team_id = 1;\n\nselect * from activities where crm_configuration_id = 2\nand provider = 'ms-teams' and id = 608765;\n\nSELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';\n\nselect * from sidekick_settings where team_id = 2;\n\nSELECT * FROM activities WHERE id = 608660;\nselect * from activity_summary_logs where activity_id = 608660;\nselect * from ai_prompts where transcription_id = 11214;\n\n# ********************************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;\n# id: 608818, crm: 59628809737\nSELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;\n# id: 608821, crm: 59632069252\nSELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,\nplaybook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,\nscheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at\nFROM activities a\njoin calendar_events ce on a.calendar_event_id = ce.id\nWHERE a.id IN (608818, 608821);\n\nselect * from users where team_id = 1;\nselect * from team_settings where team_id = 1;\nselect * from crm_profiles where crm_configuration_id = 39 order by user_id;\n\nselect * from team_features where team_id = 1;\n\nselect * from users where team_id = 2;\n\nSELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639\n# Preslava N. Ivanova, grou id 3\n\nSELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;\n\nselect * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';\n\nselect\n a.id,\n a.type,\n a.scheduled_start_time,\n a.actual_start_time,\n a.created_at,\n a.opportunity_id,\n a.status\nFROM activities a\nWHERE opportunity_id = 344\nand status IN ('completed', 'received', 'delivered')\nand (\n (a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))\n;\n\nSELECT * FROM users WHERE id = 222;\n\nSELECT * FROM crm_profiles WHERE user_id = 222;\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;\n\nselect * from group_deal_risk_types;\n\nselect * from opportunities where team_id = 1;\n\nSELECT * FROM opportunities WHERE id = 315;\nSELECT * FROM crm_field_data WHERE object_id = 315;\nselect * from crm_field_data where object_id = 260;\n\nselect * from generic_ai_prompts where subject_id = 315;\n\nselect * from teams; # 36, 21, 121, james.graham@bullhorn.jiminny.com\nSELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';\n\n# ************************************************************************************\nselect * from teams where id = 1;\nselect * from crm_configurations where id = 39;\nselect * from users where team_id = 1;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 1;\n# 1 - 00541000004281rAAA\n# 204 - 0052g000003freeAAA\n# 429 - 0052g000003qGOiAAM\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\nselect * from activities where type = 'softphone'\nand created_at > '2024-12-11 15:24:36' order by id desc;\n\nselect * from activity_providers where team_id = 1;\nselect * from activity_provider_users where activity_provider_id = 328;\n\nselect * from opportunities where crm_configuration_id = 39\nAND account_id = 178 AND is_closed = false\norder by created_at DESC;\n\nselect * from contacts where id = 3952;\nselect * from accounts where id = 178;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations where id = 21;\nselect * from users where team_id = 36;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 36;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 36\nand sa.provider = 'bullhorn';\n\nselect * from social_accounts where id = 348;\nUPDATE social_accounts SET\nprovider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',\nprovider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',\nexpires = 1733998131,\nstate = 'connected'\nWHERE id = 348;\n\n# ************************************************************************************\nselect * from teams where id = 31;\nselect * from crm_configurations where id = 18;\n\nselect * from users where team_id = 31; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 31;\n\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 31\nand sa.provider = 'close';\n\nselect * from contacts where crm_configuration_id = 18;\n\n# ********************** NEPTUNE **************************************************************\nselect * from teams;\nselect * from users where id IN (1030, 1035, 1052);\nselect * from crm_configurations;\n\nselect * from users where team_id = 65; # 257\nselect * from team_settings where team_id = 65; # 257\nselect * from invitations where team_id = 65; # 257\nselect * from users where email = 'integration-account@jiminny.com'; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 65;\n\nselect * from crm_configurations where id = 53;\nselect * from accounts where crm_configuration_id = 53 order by id desc;\nselect * from leads where crm_configuration_id = 53 order by id desc;\nselect * from contacts where crm_configuration_id = 53 order by id desc;\nselect * from opportunities where crm_configuration_id = 53 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 53 order by id desc;\nselect * from crm_fields where crm_configuration_id = 53 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 53 order by id desc;\nselect * from stages where crm_configuration_id = 53 order by id desc;\n\n\nselect * from crm_profiles where crm_configuration_id = 13;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\nand sa.provider = 'integration-app';\n\nselect * from contacts where crm_configuration_id = 13;\n\nselect * from social_accounts where sociable_id = 283;\n\nSELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';\n\nselect * from activity_providers where team_id = 65;\nSELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\n;\n\n# ***************************** STAGING ********************************************\nSELECT * FROM teams;\nSELECT * FROM teams WHERE id = 88;\nSELECT * FROM teams WHERE id = 89;\nselect * from team_settings where team_id = 89;\nSELECT * FROM users WHERE team_id = 89;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 89;\n\nselect * from users;\nSELECT * FROM social_accounts WHERE sociable_id = 1761;\nSELECT * FROM crm_configurations WHERE id = 70;\nselect * from accounts where crm_configuration_id = 70 order by id desc;\nselect * from leads where crm_configuration_id = 70 order by id desc;\nselect * from contacts where crm_configuration_id = 70 order by id desc;\nselect * from opportunities where crm_configuration_id = 70 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 70 order by id desc;\nselect * from crm_fields where crm_configuration_id = 70 order by id desc;\nselect * from crm_field_values where crm_field_id = 3536 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 70 order by id desc;\nselect * from stages where crm_configuration_id = 70 order by id desc;\nselect * from business_processes where crm_configuration_id = 70 order by id desc;\nselect * from business_process_stages where business_process_id = 34;\n\nselect * from contacts where id = 10468;\n\nselect * from crm_layouts where crm_configuration_id = 70;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;\nSELECT * FROM crm_fields WHERE id IN (3533,3534,3535);\n\nselect * from activities where crm_configuration_id = 70\nand (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;\n\nSELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;\nSELECT * FROM activities where crm_configuration_id = 69 ;\n\nSELECT * FROM users WHERE email LIKE '%jiminny_web_sa2@jiminny.com%';\nSELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;\nSELECT * FROM opportunities WHERE id = 385;\n\nselect * from participants p\njoin activities a on p.activity_id = a.id\nwhere a.crm_configuration_id = 70\nand (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);\nSELECT * FROM participants WHERE id = 1013638;\n\nselect * from teams where id = 90;\nselect * from users where team_id = 90;\nselect * from social_accounts where social_accounts.sociable_id IN (1960,1760);\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 71;\nselect * from invitations where team_id = 90;\n\nselect * from crm_configurations where id = 71;\nselect * from accounts where crm_configuration_id = 71 order by id desc;\nselect * from leads where crm_configuration_id = 71 order by id desc;\nselect * from contacts where crm_configuration_id = 71 order by id desc;\nselect * from opportunities where crm_configuration_id = 71 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 71 order by id desc;\nselect * from crm_fields where crm_configuration_id = 71 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 71 order by id desc;\nselect * from stages where crm_configuration_id = 71 order by id desc;\n\nselect * from users order by secondary_email desc;\nselect u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa\n join users u on sa.sociable_id = u.id\nwhere sa.provider = 'google' and u.email LIKE 'aneliya%';\n\nselect * from failed_jobs order by id desc;\n\nselect * from users where email = 'ben.allwright@learningpeople.co.uk' or secondary_email = 'ben.allwright@learningpeople.co.uk';\n\nselect * from teams;\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 39;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\n# ************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;\nSELECT * FROM crm_configurations WHERE id = 70;\n\nselect * from teams where id = 1;\nselect * from groups where team_id = 1;\nselect * from users where team_id = 1;\n\nselect o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o\njoin users u on o.user_id = u.id\njoin groups g on u.group_id = g.id\njoin role_user ru on u.id = ru.user_id\njoin roles r on ru.role_id = r.id\nwhere o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';\n\nselect * from role_user where user_id = 143;\nselect * from roles;\n\nselect * from role_user;\nselect * from groups where id = 9;\nselect * from scope_groups where group_id = 9;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations;\nSELECT * FROM social_accounts WHERE sociable_id = 121;\n\nhttps://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105\nhttps://crmsandbox.zoho.com/crm/\n\nhttps://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080\n https://crm.zoho.com/crm/\n org3469620\n\nSELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;\n\nselect * from users where email LIKE \"%mobile_automation_%\";\nselect * from social_accounts where sociable_id IN (2228);\nselect * from crm_profiles where user_id IN (2222,2223,2226,2227);\n\nselect * from teams order by id desc;\nSELECT * FROM users WHERE id = 2229;\nSELECT * FROM crm_profiles WHERE user_id = 2229;\nselect * from opportunities where crm_configuration_id = 88;\nselect * from crm_fields where crm_configuration_id = 88;\nselect * from crm_profiles where crm_configuration_id = 88;\n\nSELECT * FROM teams WHERE id = 1;\n\nSELECT * FROM users WHERE id = 143;\nSELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;\n\nhttps://app.staging.jiminny.com/ondemand?\n min_duration=1\n &\n only_recorded=1\n &\n user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e\n &\n sequence_number=2\n\n select * from users where team_id = 1 and email like '%stoyan%'\n\nselect * from coaching_feedbacks;\n\nselect * from teams;\nSELECT * FROM users WHERE team_id = 36;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from users where id = 143;\n\nSELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\n\nselect * from users where team_id = 2;\nselect * from activities where crm_configuration_id = 39\nand activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'\nAND user_id = 143\norder by id desc;\n\n# ************************************************************************************\nselect * from teams where id = 142; # 2312, 126\nselect * from team_settings;\nselect * from users where team_id = 142; # 21642\nSELECT * FROM social_accounts WHERE sociable_id = 21642;\nSELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;\nselect * from crm_profiles where id IN (93);\nselect * from invitations;\nselect * from team_features where team_id = 1;\n\nSELECT * FROM crm_configurations WHERE id = 126;\nselect * from accounts where crm_configuration_id = 126 order by id desc;\nselect * from leads where crm_configuration_id = 126 order by id desc;\nselect * from contacts where crm_configuration_id = 126 order by id desc;\nselect * from opportunities where crm_configuration_id = 126 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 126 order by id desc;\nselect * from crm_fields where crm_configuration_id = 126 # 11060\n# and type IN ('picklist', 'status')\n# and object_type = 'task'\norder by id desc;\n# 5731,5732,5733\nselect DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;\nselect * from crm_layouts where crm_configuration_id = 126 order by id desc;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);\nselect * from stages where crm_configuration_id = 126 order by id desc;\nselect * from business_processes where crm_configuration_id = 126 order by id desc;\nselect * from business_process_stages where business_process_id IN (76,75,74,73);\nselect * from playbooks where team_id = 142;\nselect * from playbook_layouts where playbook_id IN (108);\nSELECT * FROM playbook_categories WHERE playbook_id IN (108);\n\nselect * from teams where id = 130;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 2\nand sa.provider = 'hubspot';\n\nSELECT * FROM activities\n WHERE crm_configuration_id = 110;\n\nselect * from teams;\nselect * from crm_configurations;\n\nSELECT * FROM activities WHERE id = 628773;\nSELECT * FROM crm_profiles WHERE user_id = 1460;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from teams;\nselect ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id\njoin permission_role pr on pr.role_id = ru.role_id\n join permissions p on p.id = pr.permission_id\nwhere team_id = 495 and p.name IN ('dial');\n\nselect * from teams where id = 145;\nselect * from crm_configurations where id = 129;\nselect * from social_accounts where sociable_id = 2317;\nSELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;\n\nselect * from teams where id = 1;\nSELECT * FROM crm_layouts WHERE crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;\nSELECT * FROM crm_layout_entities WHERE id = 5507;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');\n\nselect * from teams;\nselect * from activities where crm_configuration_id = 14;\n\nSELECT * FROM social_accounts where provider = 'copper';\n\nselect * from activities where id = 628467;\nselect * from participants where activity_id = 628467;\n\nSELECT * FROM contacts WHERE id = 3969;\nSELECT * FROM accounts WHERE id = 177;\n\nSELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;\n\n# ********************* BH\nselect * from teams where id = 36;\nSELECT * FROM crm_configurations WHERE id = 21;\nselect * from activities where crm_configuration_id = 21 and id = 607901;\nselect * from activities where crm_configuration_id = 21;\n\nselect * roles;\nselect * from permissions;\nselect * from permission_role where permission_id = 226;\n\nselect * from migrations order by id desc;\n\n# mercury\n# neptune\n# earth\n\nselect * from teams;\nselect * from teams where id = 19;\nselect * from teams where id = 27;\nselect * from users where team_id = 27;\nSELECT * FROM crm_configurations WHERE id = 42;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from activities where id = 631461;\nSELECT * FROM crm_field_values WHERE crm_field_id = 180;\n\nselect * from teams where id = 2;\nSELECT * FROM social_accounts WHERE sociable_id = 89;\n\nSELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273\nselect * from activity_summary_logs where activity_id = 634273;\n\nselect * from sidekick_settings where team_id = 2;\n\nselect * from teams; # 2, 2\nSELECT * FROM crm_configurations WHERE team_id = 2; # 2\nselect * from team_features where team_id = 2;\nselect * from features;\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;\n\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from users where team_id = 1 and id IN (7160, 3248);\nselect * from migrations order by id desc;\n\nSELECT\n CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,\n u.email,\n sa.*,\n t.owner_id FROM social_accounts sa\nJOIN users u on u.id = sa.sociable_id\nJOIN teams t on t.id = u.team_id\nWHERE u.team_id = 1 and sa.provider = 'salesforce';\n\nselect * from teams where id = 1;\nselect * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;\nselect * from groups where id = 565;\nselect * from playbooks where team_id = 1;\nselect * from playbooks where id = 175;\nselect * from playbook_categories where playbook_id = 175;\nselect * from users where team_id = 1;\nselect * from users where id = 7160;\nselect * from crm_profiles where user_id = 7160;\nselect * from features;\nselect\n *\n# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,\n# crm_configuration_id, crm_provider_id, transcription_id, status\nfrom activities where crm_configuration_id = 1 and type = 'conference'\n# and crm_provider_id IS NOT NULL\nand provider != 'uploader' and actual_start_time IS NOT NULL\nORDER by id desc;\nselect * from activities where id = 54747783; # 00UO400000pCzojMAC\n\nselect p.id, p.activity_type, pc.id, pc.name\nFROM playbooks p\njoin playbook_categories pc on p.id = pc.playbook_id\nwhere p.team_id = 1 and p.activity_type = 'event';\n\nSELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';\nSELECT * FROM crm_field_values WHERE crm_field_id = 4;\n\nselect * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id\nwhere crm_configuration_id = 1 and pl.playbook_id = 175;\n\nselect * from teams;\nSELECT r.* FROM automated_reports r\njoin teams t on r.team_id = t.id\nWHERE r.frequency = 'daily'\n and r.status = 1\nAND t.status = 'active'\nAND (r.expires_at >= now() OR r.expires_at IS NULL);\n\nselect * from automated_report_results where report_id IN (18, 33);\n\nselect * from activity_searches where id = 10932;\nselect * from activity_search_filters where activity_search_id = 10932;\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from automated_report_results where report_id IN (36);","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-8846020925487298024
|
6686649022737200205
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error
Next Highlighted Error
SELECT * FROM teams WHERE id = 1;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;
SELECT * FROM crm_fields WHERE id = 2234;
SELECT * FROM crm_field_values WHERE crm_field_id = 2234;
select * from crm_profiles where user_id = 143;
select * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO
select * from business_processes where crm_configuration_id = 39;
# 01941000000H669AAC, 01941000000H66JAAS
select * from record_type_field_values
where record_type_id IN (24);
select * from crm_field_values where id IN (2730);
select * from crm_configurations where id = 39;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce'; #1035
select * from users where team_id = 1; # 222 group 3
SELECT * FROM activities WHERE user_id = 222 order by id desc;
select * from sidekick_settings where team_id = 1;
select * from teams where id = 1;
select * from team_features where team_id = 1;
select * from activities where crm_configuration_id = 2
and provider = 'ms-teams' and id = 608765;
SELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';
select * from sidekick_settings where team_id = 2;
SELECT * FROM activities WHERE id = 608660;
select * from activity_summary_logs where activity_id = 608660;
select * from ai_prompts where transcription_id = 11214;
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;
# id: 608818, crm: 59628809737
SELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;
# id: 608821, crm: 59632069252
SELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,
playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,
scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at
FROM activities a
join calendar_events ce on a.calendar_event_id = ce.id
WHERE a.id IN (608818, 608821);
select * from users where team_id = 1;
select * from team_settings where team_id = 1;
select * from crm_profiles where crm_configuration_id = 39 order by user_id;
select * from team_features where team_id = 1;
select * from users where team_id = 2;
SELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639
# Preslava N. Ivanova, grou id 3
SELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;
select * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';
select
a.id,
a.type,
a.scheduled_start_time,
a.actual_start_time,
a.created_at,
a.opportunity_id,
a.status
FROM activities a
WHERE opportunity_id = 344
and status IN ('completed', 'received', 'delivered')
and (
(a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))
;
SELECT * FROM users WHERE id = 222;
SELECT * FROM crm_profiles WHERE user_id = 222;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;
select * from group_deal_risk_types;
select * from opportunities where team_id = 1;
SELECT * FROM opportunities WHERE id = 315;
SELECT * FROM crm_field_data WHERE object_id = 315;
select * from crm_field_data where object_id = 260;
select * from generic_ai_prompts where subject_id = 315;
select * from teams; # 36, 21, 121, [EMAIL]
SELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';
# [PASSWORD_DOTS]
select * from teams where id = 1;
select * from crm_configurations where id = 39;
select * from users where team_id = 1;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 1;
# 1 - 00541000004281rAAA
# 204 - 0052g000003freeAAA
# 429 - 0052g000003qGOiAAM
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
select * from activities where type = 'softphone'
and created_at > '2024-12-11 15:24:36' order by id desc;
select * from activity_providers where team_id = 1;
select * from activity_provider_users where activity_provider_id = 328;
select * from opportunities where crm_configuration_id = 39
AND account_id = 178 AND is_closed = false
order by created_at DESC;
select * from contacts where id = 3952;
select * from accounts where id = 178;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations where id = 21;
select * from users where team_id = 36;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 36
and sa.provider = 'bullhorn';
select * from social_accounts where id = 348;
UPDATE social_accounts SET
provider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',
provider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',
expires = 1733998131,
state = 'connected'
WHERE id = 348;
# [PASSWORD_DOTS]
select * from teams where id = 31;
select * from crm_configurations where id = 18;
select * from users where team_id = 31; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 31;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 31
and sa.provider = 'close';
select * from contacts where crm_configuration_id = 18;
# [PASSWORD_DOTS] NEPTUNE [PASSWORD_DOTS]
select * from teams;
select * from users where id IN (1030, 1035, 1052);
select * from crm_configurations;
select * from users where team_id = 65; # 257
select * from team_settings where team_id = 65; # 257
select * from invitations where team_id = 65; # 257
select * from users where email = '[EMAIL]'; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 65;
select * from crm_configurations where id = 53;
select * from accounts where crm_configuration_id = 53 order by id desc;
select * from leads where crm_configuration_id = 53 order by id desc;
select * from contacts where crm_configuration_id = 53 order by id desc;
select * from opportunities where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 53 order by id desc;
select * from crm_fields where crm_configuration_id = 53 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 53 order by id desc;
select * from stages where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 13;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
and sa.provider = 'integration-app';
select * from contacts where crm_configuration_id = 13;
select * from social_accounts where sociable_id = 283;
SELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';
select * from activity_providers where team_id = 65;
SELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
;
# [PASSWORD_DOTS] STAGING [PASSWORD_DOTS]
SELECT * FROM teams;
SELECT * FROM teams WHERE id = 88;
SELECT * FROM teams WHERE id = 89;
select * from team_settings where team_id = 89;
SELECT * FROM users WHERE team_id = 89;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 89;
select * from users;
SELECT * FROM social_accounts WHERE sociable_id = 1761;
SELECT * FROM crm_configurations WHERE id = 70;
select * from accounts where crm_configuration_id = 70 order by id desc;
select * from leads where crm_configuration_id = 70 order by id desc;
select * from contacts where crm_configuration_id = 70 order by id desc;
select * from opportunities where crm_configuration_id = 70 order by id desc;
select * from crm_profiles where crm_configuration_id = 70 order by id desc;
select * from crm_fields where crm_configuration_id = 70 order by id desc;
select * from crm_field_values where crm_field_id = 3536 order by id desc;
select * from crm_layouts where crm_configuration_id = 70 order by id desc;
select * from stages where crm_configuration_id = 70 order by id desc;
select * from business_processes where crm_configuration_id = 70 order by id desc;
select * from business_process_stages where business_process_id = 34;
select * from contacts where id = 10468;
select * from crm_layouts where crm_configuration_id = 70;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;
SELECT * FROM crm_fields WHERE id IN (3533,3534,3535);
select * from activities where crm_configuration_id = 70
and (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;
SELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;
SELECT * FROM activities where crm_configuration_id = 69 ;
SELECT * FROM users WHERE email LIKE '%[EMAIL]%';
SELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;
SELECT * FROM opportunities WHERE id = 385;
select * from participants p
join activities a on p.activity_id = a.id
where a.crm_configuration_id = 70
and (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);
SELECT * FROM participants WHERE id = 1013638;
select * from teams where id = 90;
select * from users where team_id = 90;
select * from social_accounts where social_accounts.sociable_id IN (1960,1760);
SELECT * FROM crm_profiles WHERE crm_configuration_id = 71;
select * from invitations where team_id = 90;
select * from crm_configurations where id = 71;
select * from accounts where crm_configuration_id = 71 order by id desc;
select * from leads where crm_configuration_id = 71 order by id desc;
select * from contacts where crm_configuration_id = 71 order by id desc;
select * from opportunities where crm_configuration_id = 71 order by id desc;
select * from crm_profiles where crm_configuration_id = 71 order by id desc;
select * from crm_fields where crm_configuration_id = 71 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 71 order by id desc;
select * from stages where crm_configuration_id = 71 order by id desc;
select * from users order by secondary_email desc;
select u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa
join users u on sa.sociable_id = u.id
where sa.provider = 'google' and u.email LIKE 'aneliya%';
select * from failed_jobs order by id desc;
select * from users where email = '[EMAIL]' or secondary_email = '[EMAIL]';
select * from teams;
SELECT * FROM crm_profiles WHERE crm_configuration_id = 39;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;
SELECT * FROM crm_configurations WHERE id = 70;
select * from teams where id = 1;
select * from groups where team_id = 1;
select * from users where team_id = 1;
select o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o
join users u on o.user_id = u.id
join groups g on u.group_id = g.id
join role_user ru on u.id = ru.user_id
join roles r on ru.role_id = r.id
where o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';
select * from role_user where user_id = 143;
select * from roles;
select * from role_user;
select * from groups where id = 9;
select * from scope_groups where group_id = 9;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations;
SELECT * FROM social_accounts WHERE sociable_id = 121;
https://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105
https://crmsandbox.zoho.com/crm/
https://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080
https://crm.zoho.com/crm/
org3469620
SELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;
select * from users where email LIKE "%mobile_automation_%";
select * from social_accounts where sociable_id IN (2228);
select * from crm_profiles where user_id IN (2222,2223,2226,2227);
select * from teams order by id desc;
SELECT * FROM users WHERE id = 2229;
SELECT * FROM crm_profiles WHERE user_id = 2229;
select * from opportunities where crm_configuration_id = 88;
select * from crm_fields where crm_configuration_id = 88;
select * from crm_profiles where crm_configuration_id = 88;
SELECT * FROM teams WHERE id = 1;
SELECT * FROM users WHERE id = 143;
SELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;
https://app.staging.jiminny.com/ondemand?
min_duration=1
&
only_recorded=1
&
user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e
&
sequence_number=2
select * from users where team_id = 1 and email like '%stoyan%'
select * from coaching_feedbacks;
select * from teams;
SELECT * FROM users WHERE team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from users where id = 143;
SELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
select * from users where team_id = 2;
select * from activities where crm_configuration_id = 39
and activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'
AND user_id = 143
order by id desc;
# [PASSWORD_DOTS]
select * from teams where id = 142; # 2312, 126
select * from team_settings;
select * from users where team_id = 142; # 21642
SELECT * FROM social_accounts WHERE sociable_id = 21642;
SELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;
select * from crm_profiles where id IN (93);
select * from invitations;
select * from team_features where team_id = 1;
SELECT * FROM crm_configurations WHERE id = 126;
select * from accounts where crm_configuration_id = 126 order by id desc;
select * from leads where crm_configuration_id = 126 order by id desc;
select * from contacts where crm_configuration_id = 126 order by id desc;
select * from opportunities where crm_configuration_id = 126 order by id desc;
select * from crm_profiles where crm_configuration_id = 126 order by id desc;
select * from crm_fields where crm_configuration_id = 126 # 11060
# and type IN ('picklist', 'status')
# and object_type = 'task'
order by id desc;
# 5731,5732,5733
select DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;
select * from crm_layouts where crm_configuration_id = 126 order by id desc;
SELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);
select * from stages where crm_configuration_id = 126 order by id desc;
select * from business_processes where crm_configuration_id = 126 order by id desc;
select * from business_process_stages where business_process_id IN (76,75,74,73);
select * from playbooks where team_id = 142;
select * from playbook_layouts where playbook_id IN (108);
SELECT * FROM playbook_categories WHERE playbook_id IN (108);
select * from teams where id = 130;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 2
and sa.provider = 'hubspot';
SELECT * FROM activities
WHERE crm_configuration_id = 110;
select * from teams;
select * from crm_configurations;
SELECT * FROM activities WHERE id = 628773;
SELECT * FROM crm_profiles WHERE user_id = 1460;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from teams;
select ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id
join permission_role pr on pr.role_id = ru.role_id
join permissions p on p.id = pr.permission_id
where team_id = 495 and p.name IN ('dial');
select * from teams where id = 145;
select * from crm_configurations where id = 129;
select * from social_accounts where sociable_id = 2317;
SELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;
select * from teams where id = 1;
SELECT * FROM crm_layouts WHERE crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;
SELECT * FROM crm_layout_entities WHERE id = 5507;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');
select * from teams;
select * from activities where crm_configuration_id = 14;
SELECT * FROM social_accounts where provider = 'copper';
select * from activities where id = 628467;
select * from participants where activity_id = 628467;
SELECT * FROM contacts WHERE id = 3969;
SELECT * FROM accounts WHERE id = 177;
SELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;
# [PASSWORD_DOTS] BH
select * from teams where id = 36;
SELECT * FROM crm_configurations WHERE id = 21;
select * from activities where crm_configuration_id = 21 and id = 607901;
select * from activities where crm_configuration_id = 21;
select * roles;
select * from permissions;
select * from permission_role where permission_id = 226;
select * from migrations order by id desc;
# mercury
# neptune
# earth
select * from teams;
select * from teams where id = 19;
select * from teams where id = 27;
select * from users where team_id = 27;
SELECT * FROM crm_configurations WHERE id = 42;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from activities where id = 631461;
SELECT * FROM crm_field_values WHERE crm_field_id = 180;
select * from teams where id = 2;
SELECT * FROM social_accounts WHERE sociable_id = 89;
SELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273
select * from activity_summary_logs where activity_id = 634273;
select * from sidekick_settings where team_id = 2;
select * from teams; # 2, 2
SELECT * FROM crm_configurations WHERE team_id = 2; # 2
select * from team_features where team_id = 2;
select * from features;
SELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';
SELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from users where team_id = 1 and id IN (7160, 3248);
select * from migrations order by id desc;
SELECT
CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,
u.email,
sa.*,
t.owner_id FROM social_accounts sa
JOIN users u on u.id = sa.sociable_id
JOIN teams t on t.id = u.team_id
WHERE u.team_id = 1 and sa.provider = 'salesforce';
select * from teams where id = 1;
select * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;
select * from groups where id = 565;
select * from playbooks where team_id = 1;
select * from playbooks where id = 175;
select * from playbook_categories where playbook_id = 175;
select * from users where team_id = 1;
select * from users where id = 7160;
select * from crm_profiles where user_id = 7160;
select * from features;
select
*
# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,
# crm_configuration_id, crm_provider_id, transcription_id, status
from activities where crm_configuration_id = 1 and type = 'conference'
# and crm_provider_id IS NOT NULL
and provider != 'uploader' and actual_start_time IS NOT NULL
ORDER by id desc;
select * from activities where id = 54747783; # 00UO400000pCzojMAC
select p.id, p.activity_type, pc.id, pc.name
FROM playbooks p
join playbook_categories pc on p.id = pc.playbook_id
where p.team_id = 1 and p.activity_type = 'event';
SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';
SELECT * FROM crm_field_values WHERE crm_field_id = 4;
select * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id
where crm_configuration_id = 1 and pl.playbook_id = 175;
select * from teams;
SELECT r.* FROM automated_reports r
join teams t on r.team_id = t.id
WHERE r.frequency = 'daily'
and r.status = 1
AND t.status = 'active'
AND (r.expires_at >= now() OR r.expires_at IS NULL);
select * from automated_report_results where report_id IN (18, 33);
select * from activity_searches where id = 10932;
select * from activity_search_filters where activity_search_id = 10932;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from automated_report_results where report_id IN (36);...
|
12810
|
|
12813
|
275
|
23
|
2026-04-14T11:41:21.165605+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166881165_m2.jpg...
|
PhpStorm
|
faVsco.js – AutomatedReportsSendCommand.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error
Next Highlighted Error
SELECT * FROM teams WHERE id = 1;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;
SELECT * FROM crm_fields WHERE id = 2234;
SELECT * FROM crm_field_values WHERE crm_field_id = 2234;
select * from crm_profiles where user_id = 143;
select * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO
select * from business_processes where crm_configuration_id = 39;
# 01941000000H669AAC, 01941000000H66JAAS
select * from record_type_field_values
where record_type_id IN (24);
select * from crm_field_values where id IN (2730);
select * from crm_configurations where id = 39;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce'; #1035
select * from users where team_id = 1; # 222 group 3
SELECT * FROM activities WHERE user_id = 222 order by id desc;
select * from sidekick_settings where team_id = 1;
select * from teams where id = 1;
select * from team_features where team_id = 1;
select * from activities where crm_configuration_id = 2
and provider = 'ms-teams' and id = 608765;
SELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';
select * from sidekick_settings where team_id = 2;
SELECT * FROM activities WHERE id = 608660;
select * from activity_summary_logs where activity_id = 608660;
select * from ai_prompts where transcription_id = 11214;
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;
# id: 608818, crm: 59628809737
SELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;
# id: 608821, crm: 59632069252
SELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,
playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,
scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at
FROM activities a
join calendar_events ce on a.calendar_event_id = ce.id
WHERE a.id IN (608818, 608821);
select * from users where team_id = 1;
select * from team_settings where team_id = 1;
select * from crm_profiles where crm_configuration_id = 39 order by user_id;
select * from team_features where team_id = 1;
select * from users where team_id = 2;
SELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639
# Preslava N. Ivanova, grou id 3
SELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;
select * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';
select
a.id,
a.type,
a.scheduled_start_time,
a.actual_start_time,
a.created_at,
a.opportunity_id,
a.status
FROM activities a
WHERE opportunity_id = 344
and status IN ('completed', 'received', 'delivered')
and (
(a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))
;
SELECT * FROM users WHERE id = 222;
SELECT * FROM crm_profiles WHERE user_id = 222;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;
select * from group_deal_risk_types;
select * from opportunities where team_id = 1;
SELECT * FROM opportunities WHERE id = 315;
SELECT * FROM crm_field_data WHERE object_id = 315;
select * from crm_field_data where object_id = 260;
select * from generic_ai_prompts where subject_id = 315;
select * from teams; # 36, 21, 121, [EMAIL]
SELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';
# [PASSWORD_DOTS]
select * from teams where id = 1;
select * from crm_configurations where id = 39;
select * from users where team_id = 1;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 1;
# 1 - 00541000004281rAAA
# 204 - 0052g000003freeAAA
# 429 - 0052g000003qGOiAAM
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
select * from activities where type = 'softphone'
and created_at > '2024-12-11 15:24:36' order by id desc;
select * from activity_providers where team_id = 1;
select * from activity_provider_users where activity_provider_id = 328;
select * from opportunities where crm_configuration_id = 39
AND account_id = 178 AND is_closed = false
order by created_at DESC;
select * from contacts where id = 3952;
select * from accounts where id = 178;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations where id = 21;
select * from users where team_id = 36;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 36
and sa.provider = 'bullhorn';
select * from social_accounts where id = 348;
UPDATE social_accounts SET
provider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',
provider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',
expires = 1733998131,
state = 'connected'
WHERE id = 348;
# [PASSWORD_DOTS]
select * from teams where id = 31;
select * from crm_configurations where id = 18;
select * from users where team_id = 31; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 31;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 31
and sa.provider = 'close';
select * from contacts where crm_configuration_id = 18;
# [PASSWORD_DOTS] NEPTUNE [PASSWORD_DOTS]
select * from teams;
select * from users where id IN (1030, 1035, 1052);
select * from crm_configurations;
select * from users where team_id = 65; # 257
select * from team_settings where team_id = 65; # 257
select * from invitations where team_id = 65; # 257
select * from users where email = '[EMAIL]'; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 65;
select * from crm_configurations where id = 53;
select * from accounts where crm_configuration_id = 53 order by id desc;
select * from leads where crm_configuration_id = 53 order by id desc;
select * from contacts where crm_configuration_id = 53 order by id desc;
select * from opportunities where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 53 order by id desc;
select * from crm_fields where crm_configuration_id = 53 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 53 order by id desc;
select * from stages where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 13;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
and sa.provider = 'integration-app';
select * from contacts where crm_configuration_id = 13;
select * from social_accounts where sociable_id = 283;
SELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';
select * from activity_providers where team_id = 65;
SELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
;
# [PASSWORD_DOTS] STAGING [PASSWORD_DOTS]
SELECT * FROM teams;
SELECT * FROM teams WHERE id = 88;
SELECT * FROM teams WHERE id = 89;
select * from team_settings where team_id = 89;
SELECT * FROM users WHERE team_id = 89;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 89;
select * from users;
SELECT * FROM social_accounts WHERE sociable_id = 1761;
SELECT * FROM crm_configurations WHERE id = 70;
select * from accounts where crm_configuration_id = 70 order by id desc;
select * from leads where crm_configuration_id = 70 order by id desc;
select * from contacts where crm_configuration_id = 70 order by id desc;
select * from opportunities where crm_configuration_id = 70 order by id desc;
select * from crm_profiles where crm_configuration_id = 70 order by id desc;
select * from crm_fields where crm_configuration_id = 70 order by id desc;
select * from crm_field_values where crm_field_id = 3536 order by id desc;
select * from crm_layouts where crm_configuration_id = 70 order by id desc;
select * from stages where crm_configuration_id = 70 order by id desc;
select * from business_processes where crm_configuration_id = 70 order by id desc;
select * from business_process_stages where business_process_id = 34;
select * from contacts where id = 10468;
select * from crm_layouts where crm_configuration_id = 70;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;
SELECT * FROM crm_fields WHERE id IN (3533,3534,3535);
select * from activities where crm_configuration_id = 70
and (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;
SELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;
SELECT * FROM activities where crm_configuration_id = 69 ;
SELECT * FROM users WHERE email LIKE '%[EMAIL]%';
SELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;
SELECT * FROM opportunities WHERE id = 385;
select * from participants p
join activities a on p.activity_id = a.id
where a.crm_configuration_id = 70
and (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);
SELECT * FROM participants WHERE id = 1013638;
select * from teams where id = 90;
select * from users where team_id = 90;
select * from social_accounts where social_accounts.sociable_id IN (1960,1760);
SELECT * FROM crm_profiles WHERE crm_configuration_id = 71;
select * from invitations where team_id = 90;
select * from crm_configurations where id = 71;
select * from accounts where crm_configuration_id = 71 order by id desc;
select * from leads where crm_configuration_id = 71 order by id desc;
select * from contacts where crm_configuration_id = 71 order by id desc;
select * from opportunities where crm_configuration_id = 71 order by id desc;
select * from crm_profiles where crm_configuration_id = 71 order by id desc;
select * from crm_fields where crm_configuration_id = 71 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 71 order by id desc;
select * from stages where crm_configuration_id = 71 order by id desc;
select * from users order by secondary_email desc;
select u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa
join users u on sa.sociable_id = u.id
where sa.provider = 'google' and u.email LIKE 'aneliya%';
select * from failed_jobs order by id desc;
select * from users where email = '[EMAIL]' or secondary_email = '[EMAIL]';
select * from teams;
SELECT * FROM crm_profiles WHERE crm_configuration_id = 39;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;
SELECT * FROM crm_configurations WHERE id = 70;
select * from teams where id = 1;
select * from groups where team_id = 1;
select * from users where team_id = 1;
select o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o
join users u on o.user_id = u.id
join groups g on u.group_id = g.id
join role_user ru on u.id = ru.user_id
join roles r on ru.role_id = r.id
where o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';
select * from role_user where user_id = 143;
select * from roles;
select * from role_user;
select * from groups where id = 9;
select * from scope_groups where group_id = 9;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations;
SELECT * FROM social_accounts WHERE sociable_id = 121;
https://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105
https://crmsandbox.zoho.com/crm/
https://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080
https://crm.zoho.com/crm/
org3469620
SELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;
select * from users where email LIKE "%mobile_automation_%";
select * from social_accounts where sociable_id IN (2228);
select * from crm_profiles where user_id IN (2222,2223,2226,2227);
select * from teams order by id desc;
SELECT * FROM users WHERE id = 2229;
SELECT * FROM crm_profiles WHERE user_id = 2229;
select * from opportunities where crm_configuration_id = 88;
select * from crm_fields where crm_configuration_id = 88;
select * from crm_profiles where crm_configuration_id = 88;
SELECT * FROM teams WHERE id = 1;
SELECT * FROM users WHERE id = 143;
SELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;
https://app.staging.jiminny.com/ondemand?
min_duration=1
&
only_recorded=1
&
user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e
&
sequence_number=2
select * from users where team_id = 1 and email like '%stoyan%'
select * from coaching_feedbacks;
select * from teams;
SELECT * FROM users WHERE team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from users where id = 143;
SELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
select * from users where team_id = 2;
select * from activities where crm_configuration_id = 39
and activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'
AND user_id = 143
order by id desc;
# [PASSWORD_DOTS]
select * from teams where id = 142; # 2312, 126
select * from team_settings;
select * from users where team_id = 142; # 21642
SELECT * FROM social_accounts WHERE sociable_id = 21642;
SELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;
select * from crm_profiles where id IN (93);
select * from invitations;
select * from team_features where team_id = 1;
SELECT * FROM crm_configurations WHERE id = 126;
select * from accounts where crm_configuration_id = 126 order by id desc;
select * from leads where crm_configuration_id = 126 order by id desc;
select * from contacts where crm_configuration_id = 126 order by id desc;
select * from opportunities where crm_configuration_id = 126 order by id desc;
select * from crm_profiles where crm_configuration_id = 126 order by id desc;
select * from crm_fields where crm_configuration_id = 126 # 11060
# and type IN ('picklist', 'status')
# and object_type = 'task'
order by id desc;
# 5731,5732,5733
select DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;
select * from crm_layouts where crm_configuration_id = 126 order by id desc;
SELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);
select * from stages where crm_configuration_id = 126 order by id desc;
select * from business_processes where crm_configuration_id = 126 order by id desc;
select * from business_process_stages where business_process_id IN (76,75,74,73);
select * from playbooks where team_id = 142;
select * from playbook_layouts where playbook_id IN (108);
SELECT * FROM playbook_categories WHERE playbook_id IN (108);
select * from teams where id = 130;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 2
and sa.provider = 'hubspot';
SELECT * FROM activities
WHERE crm_configuration_id = 110;
select * from teams;
select * from crm_configurations;
SELECT * FROM activities WHERE id = 628773;
SELECT * FROM crm_profiles WHERE user_id = 1460;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from teams;
select ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id
join permission_role pr on pr.role_id = ru.role_id
join permissions p on p.id = pr.permission_id
where team_id = 495 and p.name IN ('dial');
select * from teams where id = 145;
select * from crm_configurations where id = 129;
select * from social_accounts where sociable_id = 2317;
SELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;
select * from teams where id = 1;
SELECT * FROM crm_layouts WHERE crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;
SELECT * FROM crm_layout_entities WHERE id = 5507;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');
select * from teams;
select * from activities where crm_configuration_id = 14;
SELECT * FROM social_accounts where provider = 'copper';
select * from activities where id = 628467;
select * from participants where activity_id = 628467;
SELECT * FROM contacts WHERE id = 3969;
SELECT * FROM accounts WHERE id = 177;
SELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;
# [PASSWORD_DOTS] BH
select * from teams where id = 36;
SELECT * FROM crm_configurations WHERE id = 21;
select * from activities where crm_configuration_id = 21 and id = 607901;
select * from activities where crm_configuration_id = 21;
select * roles;
select * from permissions;
select * from permission_role where permission_id = 226;
select * from migrations order by id desc;
# mercury
# neptune
# earth
select * from teams;
select * from teams where id = 19;
select * from teams where id = 27;
select * from users where team_id = 27;
SELECT * FROM crm_configurations WHERE id = 42;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from activities where id = 631461;
SELECT * FROM crm_field_values WHERE crm_field_id = 180;
select * from teams where id = 2;
SELECT * FROM social_accounts WHERE sociable_id = 89;
SELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273
select * from activity_summary_logs where activity_id = 634273;
select * from sidekick_settings where team_id = 2;
select * from teams; # 2, 2
SELECT * FROM crm_configurations WHERE team_id = 2; # 2
select * from team_features where team_id = 2;
select * from features;
SELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';
SELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from users where team_id = 1 and id IN (7160, 3248);
select * from migrations order by id desc;
SELECT
CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,
u.email,
sa.*,
t.owner_id FROM social_accounts sa
JOIN users u on u.id = sa.sociable_id
JOIN teams t on t.id = u.team_id
WHERE u.team_id = 1 and sa.provider = 'salesforce';
select * from teams where id = 1;
select * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;
select * from groups where id = 565;
select * from playbooks where team_id = 1;
select * from playbooks where id = 175;
select * from playbook_categories where playbook_id = 175;
select * from users where team_id = 1;
select * from users where id = 7160;
select * from crm_profiles where user_id = 7160;
select * from features;
select
*
# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,
# crm_configuration_id, crm_provider_id, transcription_id, status
from activities where crm_configuration_id = 1 and type = 'conference'
# and crm_provider_id IS NOT NULL
and provider != 'uploader' and actual_start_time IS NOT NULL
ORDER by id desc;
select * from activities where id = 54747783; # 00UO400000pCzojMAC
select p.id, p.activity_type, pc.id, pc.name
FROM playbooks p
join playbook_categories pc on p.id = pc.playbook_id
where p.team_id = 1 and p.activity_type = 'event';
SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';
SELECT * FROM crm_field_values WHERE crm_field_id = 4;
select * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id
where crm_configuration_id = 1 and pl.playbook_id = 175;
select * from teams;
SELECT r.* FROM automated_reports r
join teams t on r.team_id = t.id
WHERE r.frequency = 'daily'
and r.status = 1
AND t.status = 'active'
AND (r.expires_at >= now() OR r.expires_at IS NULL);
select * from automated_report_results where report_id IN (18, 33);
select * from activity_searches where id = 10932;
select * from activity_search_filters where activity_search_id = 10932;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from automated_report_results where report_id IN (36);...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.03046875,"top":0.017361112,"width":0.0453125,"height":0.022222223},"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"#11894 on JY-18909-automated-reports-ask-jiminny, menu","depth":5,"bounds":{"left":0.07578125,"top":0.017361112,"width":0.14257812,"height":0.022222223},"help_text":"Pull request #11894 exists for current branch JY-18909-automated-reports-ask-jiminny","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.78515625,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"AutomatedReportsCommandTest","depth":6,"bounds":{"left":0.803125,"top":0.017361112,"width":0.09765625,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'AutomatedReportsCommandTest'","depth":6,"bounds":{"left":0.9007813,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'AutomatedReportsCommandTest'","depth":6,"bounds":{"left":0.9140625,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9273437,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96015626,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9734375,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9867188,"top":0.017361112,"width":0.013281226,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Execute","depth":4,"bounds":{"left":0.46132812,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Explain Plan","depth":4,"bounds":{"left":0.47148436,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Browse Query History","depth":4,"bounds":{"left":0.484375,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"View Parameters","depth":4,"bounds":{"left":0.49453124,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Open Query Execution Settings…","depth":4,"bounds":{"left":0.5046875,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"In-Editor Results","depth":4,"bounds":{"left":0.5175781,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Tx: Auto","depth":4,"bounds":{"left":0.53046876,"top":0.08611111,"width":0.028515626,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Cancel Running Statements","depth":4,"bounds":{"left":0.56171876,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Playground","depth":4,"bounds":{"left":0.5746094,"top":0.08611111,"width":0.034765624,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"jiminny","depth":4,"bounds":{"left":0.67929685,"top":0.08611111,"width":0.033203125,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.049609374,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"17","depth":4,"bounds":{"left":0.65703124,"top":0.10763889,"width":0.0109375,"height":0.013194445},"role_description":"text"},{"role":"AXStaticText","text":"15","depth":4,"bounds":{"left":0.6703125,"top":0.10763889,"width":0.011328125,"height":0.013194445},"role_description":"text"},{"role":"AXStaticText","text":"13","depth":4,"bounds":{"left":0.6839844,"top":0.10763889,"width":0.011328125,"height":0.013194445},"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.6972656,"top":0.10625,"width":0.00859375,"height":0.015972223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.70585936,"top":0.10625,"width":0.008203125,"height":0.015972223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"SELECT * FROM teams WHERE id = 1;\n\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;\nSELECT * FROM crm_fields WHERE id = 2234;\nSELECT * FROM crm_field_values WHERE crm_field_id = 2234;\n\nselect * from crm_profiles where user_id = 143;\n\nselect * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO\nselect * from business_processes where crm_configuration_id = 39;\n# 01941000000H669AAC, 01941000000H66JAAS\n\nselect * from record_type_field_values\n where record_type_id IN (24);\n\nselect * from crm_field_values where id IN (2730);\n\nselect * from crm_configurations where id = 39;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce'; #1035\n\n\nselect * from users where team_id = 1; # 222 group 3\nSELECT * FROM activities WHERE user_id = 222 order by id desc;\nselect * from sidekick_settings where team_id = 1;\nselect * from teams where id = 1;\nselect * from team_features where team_id = 1;\n\nselect * from activities where crm_configuration_id = 2\nand provider = 'ms-teams' and id = 608765;\n\nSELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';\n\nselect * from sidekick_settings where team_id = 2;\n\nSELECT * FROM activities WHERE id = 608660;\nselect * from activity_summary_logs where activity_id = 608660;\nselect * from ai_prompts where transcription_id = 11214;\n\n# ********************************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;\n# id: 608818, crm: 59628809737\nSELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;\n# id: 608821, crm: 59632069252\nSELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,\nplaybook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,\nscheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at\nFROM activities a\njoin calendar_events ce on a.calendar_event_id = ce.id\nWHERE a.id IN (608818, 608821);\n\nselect * from users where team_id = 1;\nselect * from team_settings where team_id = 1;\nselect * from crm_profiles where crm_configuration_id = 39 order by user_id;\n\nselect * from team_features where team_id = 1;\n\nselect * from users where team_id = 2;\n\nSELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639\n# Preslava N. Ivanova, grou id 3\n\nSELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;\n\nselect * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';\n\nselect\n a.id,\n a.type,\n a.scheduled_start_time,\n a.actual_start_time,\n a.created_at,\n a.opportunity_id,\n a.status\nFROM activities a\nWHERE opportunity_id = 344\nand status IN ('completed', 'received', 'delivered')\nand (\n (a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))\n;\n\nSELECT * FROM users WHERE id = 222;\n\nSELECT * FROM crm_profiles WHERE user_id = 222;\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;\n\nselect * from group_deal_risk_types;\n\nselect * from opportunities where team_id = 1;\n\nSELECT * FROM opportunities WHERE id = 315;\nSELECT * FROM crm_field_data WHERE object_id = 315;\nselect * from crm_field_data where object_id = 260;\n\nselect * from generic_ai_prompts where subject_id = 315;\n\nselect * from teams; # 36, 21, 121, james.graham@bullhorn.jiminny.com\nSELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';\n\n# ************************************************************************************\nselect * from teams where id = 1;\nselect * from crm_configurations where id = 39;\nselect * from users where team_id = 1;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 1;\n# 1 - 00541000004281rAAA\n# 204 - 0052g000003freeAAA\n# 429 - 0052g000003qGOiAAM\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\nselect * from activities where type = 'softphone'\nand created_at > '2024-12-11 15:24:36' order by id desc;\n\nselect * from activity_providers where team_id = 1;\nselect * from activity_provider_users where activity_provider_id = 328;\n\nselect * from opportunities where crm_configuration_id = 39\nAND account_id = 178 AND is_closed = false\norder by created_at DESC;\n\nselect * from contacts where id = 3952;\nselect * from accounts where id = 178;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations where id = 21;\nselect * from users where team_id = 36;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 36;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 36\nand sa.provider = 'bullhorn';\n\nselect * from social_accounts where id = 348;\nUPDATE social_accounts SET\nprovider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',\nprovider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',\nexpires = 1733998131,\nstate = 'connected'\nWHERE id = 348;\n\n# ************************************************************************************\nselect * from teams where id = 31;\nselect * from crm_configurations where id = 18;\n\nselect * from users where team_id = 31; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 31;\n\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 31\nand sa.provider = 'close';\n\nselect * from contacts where crm_configuration_id = 18;\n\n# ********************** NEPTUNE **************************************************************\nselect * from teams;\nselect * from users where id IN (1030, 1035, 1052);\nselect * from crm_configurations;\n\nselect * from users where team_id = 65; # 257\nselect * from team_settings where team_id = 65; # 257\nselect * from invitations where team_id = 65; # 257\nselect * from users where email = 'integration-account@jiminny.com'; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 65;\n\nselect * from crm_configurations where id = 53;\nselect * from accounts where crm_configuration_id = 53 order by id desc;\nselect * from leads where crm_configuration_id = 53 order by id desc;\nselect * from contacts where crm_configuration_id = 53 order by id desc;\nselect * from opportunities where crm_configuration_id = 53 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 53 order by id desc;\nselect * from crm_fields where crm_configuration_id = 53 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 53 order by id desc;\nselect * from stages where crm_configuration_id = 53 order by id desc;\n\n\nselect * from crm_profiles where crm_configuration_id = 13;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\nand sa.provider = 'integration-app';\n\nselect * from contacts where crm_configuration_id = 13;\n\nselect * from social_accounts where sociable_id = 283;\n\nSELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';\n\nselect * from activity_providers where team_id = 65;\nSELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\n;\n\n# ***************************** STAGING ********************************************\nSELECT * FROM teams;\nSELECT * FROM teams WHERE id = 88;\nSELECT * FROM teams WHERE id = 89;\nselect * from team_settings where team_id = 89;\nSELECT * FROM users WHERE team_id = 89;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 89;\n\nselect * from users;\nSELECT * FROM social_accounts WHERE sociable_id = 1761;\nSELECT * FROM crm_configurations WHERE id = 70;\nselect * from accounts where crm_configuration_id = 70 order by id desc;\nselect * from leads where crm_configuration_id = 70 order by id desc;\nselect * from contacts where crm_configuration_id = 70 order by id desc;\nselect * from opportunities where crm_configuration_id = 70 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 70 order by id desc;\nselect * from crm_fields where crm_configuration_id = 70 order by id desc;\nselect * from crm_field_values where crm_field_id = 3536 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 70 order by id desc;\nselect * from stages where crm_configuration_id = 70 order by id desc;\nselect * from business_processes where crm_configuration_id = 70 order by id desc;\nselect * from business_process_stages where business_process_id = 34;\n\nselect * from contacts where id = 10468;\n\nselect * from crm_layouts where crm_configuration_id = 70;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;\nSELECT * FROM crm_fields WHERE id IN (3533,3534,3535);\n\nselect * from activities where crm_configuration_id = 70\nand (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;\n\nSELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;\nSELECT * FROM activities where crm_configuration_id = 69 ;\n\nSELECT * FROM users WHERE email LIKE '%jiminny_web_sa2@jiminny.com%';\nSELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;\nSELECT * FROM opportunities WHERE id = 385;\n\nselect * from participants p\njoin activities a on p.activity_id = a.id\nwhere a.crm_configuration_id = 70\nand (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);\nSELECT * FROM participants WHERE id = 1013638;\n\nselect * from teams where id = 90;\nselect * from users where team_id = 90;\nselect * from social_accounts where social_accounts.sociable_id IN (1960,1760);\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 71;\nselect * from invitations where team_id = 90;\n\nselect * from crm_configurations where id = 71;\nselect * from accounts where crm_configuration_id = 71 order by id desc;\nselect * from leads where crm_configuration_id = 71 order by id desc;\nselect * from contacts where crm_configuration_id = 71 order by id desc;\nselect * from opportunities where crm_configuration_id = 71 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 71 order by id desc;\nselect * from crm_fields where crm_configuration_id = 71 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 71 order by id desc;\nselect * from stages where crm_configuration_id = 71 order by id desc;\n\nselect * from users order by secondary_email desc;\nselect u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa\n join users u on sa.sociable_id = u.id\nwhere sa.provider = 'google' and u.email LIKE 'aneliya%';\n\nselect * from failed_jobs order by id desc;\n\nselect * from users where email = 'ben.allwright@learningpeople.co.uk' or secondary_email = 'ben.allwright@learningpeople.co.uk';\n\nselect * from teams;\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 39;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\n# ************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;\nSELECT * FROM crm_configurations WHERE id = 70;\n\nselect * from teams where id = 1;\nselect * from groups where team_id = 1;\nselect * from users where team_id = 1;\n\nselect o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o\njoin users u on o.user_id = u.id\njoin groups g on u.group_id = g.id\njoin role_user ru on u.id = ru.user_id\njoin roles r on ru.role_id = r.id\nwhere o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';\n\nselect * from role_user where user_id = 143;\nselect * from roles;\n\nselect * from role_user;\nselect * from groups where id = 9;\nselect * from scope_groups where group_id = 9;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations;\nSELECT * FROM social_accounts WHERE sociable_id = 121;\n\nhttps://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105\nhttps://crmsandbox.zoho.com/crm/\n\nhttps://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080\n https://crm.zoho.com/crm/\n org3469620\n\nSELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;\n\nselect * from users where email LIKE \"%mobile_automation_%\";\nselect * from social_accounts where sociable_id IN (2228);\nselect * from crm_profiles where user_id IN (2222,2223,2226,2227);\n\nselect * from teams order by id desc;\nSELECT * FROM users WHERE id = 2229;\nSELECT * FROM crm_profiles WHERE user_id = 2229;\nselect * from opportunities where crm_configuration_id = 88;\nselect * from crm_fields where crm_configuration_id = 88;\nselect * from crm_profiles where crm_configuration_id = 88;\n\nSELECT * FROM teams WHERE id = 1;\n\nSELECT * FROM users WHERE id = 143;\nSELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;\n\nhttps://app.staging.jiminny.com/ondemand?\n min_duration=1\n &\n only_recorded=1\n &\n user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e\n &\n sequence_number=2\n\n select * from users where team_id = 1 and email like '%stoyan%'\n\nselect * from coaching_feedbacks;\n\nselect * from teams;\nSELECT * FROM users WHERE team_id = 36;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from users where id = 143;\n\nSELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\n\nselect * from users where team_id = 2;\nselect * from activities where crm_configuration_id = 39\nand activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'\nAND user_id = 143\norder by id desc;\n\n# ************************************************************************************\nselect * from teams where id = 142; # 2312, 126\nselect * from team_settings;\nselect * from users where team_id = 142; # 21642\nSELECT * FROM social_accounts WHERE sociable_id = 21642;\nSELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;\nselect * from crm_profiles where id IN (93);\nselect * from invitations;\nselect * from team_features where team_id = 1;\n\nSELECT * FROM crm_configurations WHERE id = 126;\nselect * from accounts where crm_configuration_id = 126 order by id desc;\nselect * from leads where crm_configuration_id = 126 order by id desc;\nselect * from contacts where crm_configuration_id = 126 order by id desc;\nselect * from opportunities where crm_configuration_id = 126 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 126 order by id desc;\nselect * from crm_fields where crm_configuration_id = 126 # 11060\n# and type IN ('picklist', 'status')\n# and object_type = 'task'\norder by id desc;\n# 5731,5732,5733\nselect DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;\nselect * from crm_layouts where crm_configuration_id = 126 order by id desc;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);\nselect * from stages where crm_configuration_id = 126 order by id desc;\nselect * from business_processes where crm_configuration_id = 126 order by id desc;\nselect * from business_process_stages where business_process_id IN (76,75,74,73);\nselect * from playbooks where team_id = 142;\nselect * from playbook_layouts where playbook_id IN (108);\nSELECT * FROM playbook_categories WHERE playbook_id IN (108);\n\nselect * from teams where id = 130;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 2\nand sa.provider = 'hubspot';\n\nSELECT * FROM activities\n WHERE crm_configuration_id = 110;\n\nselect * from teams;\nselect * from crm_configurations;\n\nSELECT * FROM activities WHERE id = 628773;\nSELECT * FROM crm_profiles WHERE user_id = 1460;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from teams;\nselect ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id\njoin permission_role pr on pr.role_id = ru.role_id\n join permissions p on p.id = pr.permission_id\nwhere team_id = 495 and p.name IN ('dial');\n\nselect * from teams where id = 145;\nselect * from crm_configurations where id = 129;\nselect * from social_accounts where sociable_id = 2317;\nSELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;\n\nselect * from teams where id = 1;\nSELECT * FROM crm_layouts WHERE crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;\nSELECT * FROM crm_layout_entities WHERE id = 5507;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');\n\nselect * from teams;\nselect * from activities where crm_configuration_id = 14;\n\nSELECT * FROM social_accounts where provider = 'copper';\n\nselect * from activities where id = 628467;\nselect * from participants where activity_id = 628467;\n\nSELECT * FROM contacts WHERE id = 3969;\nSELECT * FROM accounts WHERE id = 177;\n\nSELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;\n\n# ********************* BH\nselect * from teams where id = 36;\nSELECT * FROM crm_configurations WHERE id = 21;\nselect * from activities where crm_configuration_id = 21 and id = 607901;\nselect * from activities where crm_configuration_id = 21;\n\nselect * roles;\nselect * from permissions;\nselect * from permission_role where permission_id = 226;\n\nselect * from migrations order by id desc;\n\n# mercury\n# neptune\n# earth\n\nselect * from teams;\nselect * from teams where id = 19;\nselect * from teams where id = 27;\nselect * from users where team_id = 27;\nSELECT * FROM crm_configurations WHERE id = 42;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from activities where id = 631461;\nSELECT * FROM crm_field_values WHERE crm_field_id = 180;\n\nselect * from teams where id = 2;\nSELECT * FROM social_accounts WHERE sociable_id = 89;\n\nSELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273\nselect * from activity_summary_logs where activity_id = 634273;\n\nselect * from sidekick_settings where team_id = 2;\n\nselect * from teams; # 2, 2\nSELECT * FROM crm_configurations WHERE team_id = 2; # 2\nselect * from team_features where team_id = 2;\nselect * from features;\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;\n\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from users where team_id = 1 and id IN (7160, 3248);\nselect * from migrations order by id desc;\n\nSELECT\n CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,\n u.email,\n sa.*,\n t.owner_id FROM social_accounts sa\nJOIN users u on u.id = sa.sociable_id\nJOIN teams t on t.id = u.team_id\nWHERE u.team_id = 1 and sa.provider = 'salesforce';\n\nselect * from teams where id = 1;\nselect * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;\nselect * from groups where id = 565;\nselect * from playbooks where team_id = 1;\nselect * from playbooks where id = 175;\nselect * from playbook_categories where playbook_id = 175;\nselect * from users where team_id = 1;\nselect * from users where id = 7160;\nselect * from crm_profiles where user_id = 7160;\nselect * from features;\nselect\n *\n# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,\n# crm_configuration_id, crm_provider_id, transcription_id, status\nfrom activities where crm_configuration_id = 1 and type = 'conference'\n# and crm_provider_id IS NOT NULL\nand provider != 'uploader' and actual_start_time IS NOT NULL\nORDER by id desc;\nselect * from activities where id = 54747783; # 00UO400000pCzojMAC\n\nselect p.id, p.activity_type, pc.id, pc.name\nFROM playbooks p\njoin playbook_categories pc on p.id = pc.playbook_id\nwhere p.team_id = 1 and p.activity_type = 'event';\n\nSELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';\nSELECT * FROM crm_field_values WHERE crm_field_id = 4;\n\nselect * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id\nwhere crm_configuration_id = 1 and pl.playbook_id = 175;\n\nselect * from teams;\nSELECT r.* FROM automated_reports r\njoin teams t on r.team_id = t.id\nWHERE r.frequency = 'daily'\n and r.status = 1\nAND t.status = 'active'\nAND (r.expires_at >= now() OR r.expires_at IS NULL);\n\nselect * from automated_report_results where report_id IN (18, 33);\n\nselect * from activity_searches where id = 10932;\nselect * from activity_search_filters where activity_search_id = 10932;\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from automated_report_results where report_id IN (36);","depth":4,"value":"SELECT * FROM teams WHERE id = 1;\n\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;\nSELECT * FROM crm_fields WHERE id = 2234;\nSELECT * FROM crm_field_values WHERE crm_field_id = 2234;\n\nselect * from crm_profiles where user_id = 143;\n\nselect * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO\nselect * from business_processes where crm_configuration_id = 39;\n# 01941000000H669AAC, 01941000000H66JAAS\n\nselect * from record_type_field_values\n where record_type_id IN (24);\n\nselect * from crm_field_values where id IN (2730);\n\nselect * from crm_configurations where id = 39;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce'; #1035\n\n\nselect * from users where team_id = 1; # 222 group 3\nSELECT * FROM activities WHERE user_id = 222 order by id desc;\nselect * from sidekick_settings where team_id = 1;\nselect * from teams where id = 1;\nselect * from team_features where team_id = 1;\n\nselect * from activities where crm_configuration_id = 2\nand provider = 'ms-teams' and id = 608765;\n\nSELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';\n\nselect * from sidekick_settings where team_id = 2;\n\nSELECT * FROM activities WHERE id = 608660;\nselect * from activity_summary_logs where activity_id = 608660;\nselect * from ai_prompts where transcription_id = 11214;\n\n# ********************************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;\n# id: 608818, crm: 59628809737\nSELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;\n# id: 608821, crm: 59632069252\nSELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,\nplaybook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,\nscheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at\nFROM activities a\njoin calendar_events ce on a.calendar_event_id = ce.id\nWHERE a.id IN (608818, 608821);\n\nselect * from users where team_id = 1;\nselect * from team_settings where team_id = 1;\nselect * from crm_profiles where crm_configuration_id = 39 order by user_id;\n\nselect * from team_features where team_id = 1;\n\nselect * from users where team_id = 2;\n\nSELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639\n# Preslava N. Ivanova, grou id 3\n\nSELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;\n\nselect * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';\n\nselect\n a.id,\n a.type,\n a.scheduled_start_time,\n a.actual_start_time,\n a.created_at,\n a.opportunity_id,\n a.status\nFROM activities a\nWHERE opportunity_id = 344\nand status IN ('completed', 'received', 'delivered')\nand (\n (a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')\nOR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))\n;\n\nSELECT * FROM users WHERE id = 222;\n\nSELECT * FROM crm_profiles WHERE user_id = 222;\nselect * from crm_layouts where crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;\n\nselect * from group_deal_risk_types;\n\nselect * from opportunities where team_id = 1;\n\nSELECT * FROM opportunities WHERE id = 315;\nSELECT * FROM crm_field_data WHERE object_id = 315;\nselect * from crm_field_data where object_id = 260;\n\nselect * from generic_ai_prompts where subject_id = 315;\n\nselect * from teams; # 36, 21, 121, james.graham@bullhorn.jiminny.com\nSELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';\n\n# ************************************************************************************\nselect * from teams where id = 1;\nselect * from crm_configurations where id = 39;\nselect * from users where team_id = 1;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 1;\n# 1 - 00541000004281rAAA\n# 204 - 0052g000003freeAAA\n# 429 - 0052g000003qGOiAAM\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\nselect * from activities where type = 'softphone'\nand created_at > '2024-12-11 15:24:36' order by id desc;\n\nselect * from activity_providers where team_id = 1;\nselect * from activity_provider_users where activity_provider_id = 328;\n\nselect * from opportunities where crm_configuration_id = 39\nAND account_id = 178 AND is_closed = false\norder by created_at DESC;\n\nselect * from contacts where id = 3952;\nselect * from accounts where id = 178;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations where id = 21;\nselect * from users where team_id = 36;\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 36;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 36\nand sa.provider = 'bullhorn';\n\nselect * from social_accounts where id = 348;\nUPDATE social_accounts SET\nprovider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',\nprovider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',\nexpires = 1733998131,\nstate = 'connected'\nWHERE id = 348;\n\n# ************************************************************************************\nselect * from teams where id = 31;\nselect * from crm_configurations where id = 18;\n\nselect * from users where team_id = 31; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 31;\n\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 31\nand sa.provider = 'close';\n\nselect * from contacts where crm_configuration_id = 18;\n\n# ********************** NEPTUNE **************************************************************\nselect * from teams;\nselect * from users where id IN (1030, 1035, 1052);\nselect * from crm_configurations;\n\nselect * from users where team_id = 65; # 257\nselect * from team_settings where team_id = 65; # 257\nselect * from invitations where team_id = 65; # 257\nselect * from users where email = 'integration-account@jiminny.com'; # 257\nselect u.email, cp.* from users u\njoin crm_profiles cp on u.id = cp.user_id\nwhere u.team_id = 65;\n\nselect * from crm_configurations where id = 53;\nselect * from accounts where crm_configuration_id = 53 order by id desc;\nselect * from leads where crm_configuration_id = 53 order by id desc;\nselect * from contacts where crm_configuration_id = 53 order by id desc;\nselect * from opportunities where crm_configuration_id = 53 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 53 order by id desc;\nselect * from crm_fields where crm_configuration_id = 53 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 53 order by id desc;\nselect * from stages where crm_configuration_id = 53 order by id desc;\n\n\nselect * from crm_profiles where crm_configuration_id = 13;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\nand sa.provider = 'integration-app';\n\nselect * from contacts where crm_configuration_id = 13;\n\nselect * from social_accounts where sociable_id = 283;\n\nSELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';\n\nselect * from activity_providers where team_id = 65;\nSELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 65\n;\n\n# ***************************** STAGING ********************************************\nSELECT * FROM teams;\nSELECT * FROM teams WHERE id = 88;\nSELECT * FROM teams WHERE id = 89;\nselect * from team_settings where team_id = 89;\nSELECT * FROM users WHERE team_id = 89;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 89;\n\nselect * from users;\nSELECT * FROM social_accounts WHERE sociable_id = 1761;\nSELECT * FROM crm_configurations WHERE id = 70;\nselect * from accounts where crm_configuration_id = 70 order by id desc;\nselect * from leads where crm_configuration_id = 70 order by id desc;\nselect * from contacts where crm_configuration_id = 70 order by id desc;\nselect * from opportunities where crm_configuration_id = 70 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 70 order by id desc;\nselect * from crm_fields where crm_configuration_id = 70 order by id desc;\nselect * from crm_field_values where crm_field_id = 3536 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 70 order by id desc;\nselect * from stages where crm_configuration_id = 70 order by id desc;\nselect * from business_processes where crm_configuration_id = 70 order by id desc;\nselect * from business_process_stages where business_process_id = 34;\n\nselect * from contacts where id = 10468;\n\nselect * from crm_layouts where crm_configuration_id = 70;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;\nSELECT * FROM crm_fields WHERE id IN (3533,3534,3535);\n\nselect * from activities where crm_configuration_id = 70\nand (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;\n\nSELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;\nSELECT * FROM activities where crm_configuration_id = 69 ;\n\nSELECT * FROM users WHERE email LIKE '%jiminny_web_sa2@jiminny.com%';\nSELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;\nSELECT * FROM opportunities WHERE id = 385;\n\nselect * from participants p\njoin activities a on p.activity_id = a.id\nwhere a.crm_configuration_id = 70\nand (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);\nSELECT * FROM participants WHERE id = 1013638;\n\nselect * from teams where id = 90;\nselect * from users where team_id = 90;\nselect * from social_accounts where social_accounts.sociable_id IN (1960,1760);\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 71;\nselect * from invitations where team_id = 90;\n\nselect * from crm_configurations where id = 71;\nselect * from accounts where crm_configuration_id = 71 order by id desc;\nselect * from leads where crm_configuration_id = 71 order by id desc;\nselect * from contacts where crm_configuration_id = 71 order by id desc;\nselect * from opportunities where crm_configuration_id = 71 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 71 order by id desc;\nselect * from crm_fields where crm_configuration_id = 71 order by id desc;\nselect * from crm_field_values where crm_field_id = 3341 order by id desc;\nselect * from crm_layouts where crm_configuration_id = 71 order by id desc;\nselect * from stages where crm_configuration_id = 71 order by id desc;\n\nselect * from users order by secondary_email desc;\nselect u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa\n join users u on sa.sociable_id = u.id\nwhere sa.provider = 'google' and u.email LIKE 'aneliya%';\n\nselect * from failed_jobs order by id desc;\n\nselect * from users where email = 'ben.allwright@learningpeople.co.uk' or secondary_email = 'ben.allwright@learningpeople.co.uk';\n\nselect * from teams;\nSELECT * FROM crm_profiles WHERE crm_configuration_id = 39;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 1\nand sa.provider = 'salesforce';\n\n# ************************************************************************************\nSELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;\nSELECT * FROM crm_configurations WHERE id = 70;\n\nselect * from teams where id = 1;\nselect * from groups where team_id = 1;\nselect * from users where team_id = 1;\n\nselect o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o\njoin users u on o.user_id = u.id\njoin groups g on u.group_id = g.id\njoin role_user ru on u.id = ru.user_id\njoin roles r on ru.role_id = r.id\nwhere o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';\n\nselect * from role_user where user_id = 143;\nselect * from roles;\n\nselect * from role_user;\nselect * from groups where id = 9;\nselect * from scope_groups where group_id = 9;\n\n# ************************************************************************************\nselect * from teams where id = 36;\nselect * from crm_configurations;\nSELECT * FROM social_accounts WHERE sociable_id = 121;\n\nhttps://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105\nhttps://crmsandbox.zoho.com/crm/\n\nhttps://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080\n https://crm.zoho.com/crm/\n org3469620\n\nSELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;\n\nselect * from users where email LIKE \"%mobile_automation_%\";\nselect * from social_accounts where sociable_id IN (2228);\nselect * from crm_profiles where user_id IN (2222,2223,2226,2227);\n\nselect * from teams order by id desc;\nSELECT * FROM users WHERE id = 2229;\nSELECT * FROM crm_profiles WHERE user_id = 2229;\nselect * from opportunities where crm_configuration_id = 88;\nselect * from crm_fields where crm_configuration_id = 88;\nselect * from crm_profiles where crm_configuration_id = 88;\n\nSELECT * FROM teams WHERE id = 1;\n\nSELECT * FROM users WHERE id = 143;\nSELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;\n\nhttps://app.staging.jiminny.com/ondemand?\n min_duration=1\n &\n only_recorded=1\n &\n user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e\n &\n sequence_number=2\n\n select * from users where team_id = 1 and email like '%stoyan%'\n\nselect * from coaching_feedbacks;\n\nselect * from teams;\nSELECT * FROM users WHERE team_id = 36;\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from users where id = 143;\n\nSELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\nSELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;\n\nselect * from users where team_id = 2;\nselect * from activities where crm_configuration_id = 39\nand activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'\nAND user_id = 143\norder by id desc;\n\n# ************************************************************************************\nselect * from teams where id = 142; # 2312, 126\nselect * from team_settings;\nselect * from users where team_id = 142; # 21642\nSELECT * FROM social_accounts WHERE sociable_id = 21642;\nSELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;\nselect * from crm_profiles where id IN (93);\nselect * from invitations;\nselect * from team_features where team_id = 1;\n\nSELECT * FROM crm_configurations WHERE id = 126;\nselect * from accounts where crm_configuration_id = 126 order by id desc;\nselect * from leads where crm_configuration_id = 126 order by id desc;\nselect * from contacts where crm_configuration_id = 126 order by id desc;\nselect * from opportunities where crm_configuration_id = 126 order by id desc;\nselect * from crm_profiles where crm_configuration_id = 126 order by id desc;\nselect * from crm_fields where crm_configuration_id = 126 # 11060\n# and type IN ('picklist', 'status')\n# and object_type = 'task'\norder by id desc;\n# 5731,5732,5733\nselect DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;\nselect * from crm_layouts where crm_configuration_id = 126 order by id desc;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);\nselect * from stages where crm_configuration_id = 126 order by id desc;\nselect * from business_processes where crm_configuration_id = 126 order by id desc;\nselect * from business_process_stages where business_process_id IN (76,75,74,73);\nselect * from playbooks where team_id = 142;\nselect * from playbook_layouts where playbook_id IN (108);\nSELECT * FROM playbook_categories WHERE playbook_id IN (108);\n\nselect * from teams where id = 130;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 2\nand sa.provider = 'hubspot';\n\nSELECT * FROM activities\n WHERE crm_configuration_id = 110;\n\nselect * from teams;\nselect * from crm_configurations;\n\nSELECT * FROM activities WHERE id = 628773;\nSELECT * FROM crm_profiles WHERE user_id = 1460;\nSELECT * FROM social_accounts WHERE sociable_id = 2291;\n\nselect * from teams;\nselect ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id\njoin permission_role pr on pr.role_id = ru.role_id\n join permissions p on p.id = pr.permission_id\nwhere team_id = 495 and p.name IN ('dial');\n\nselect * from teams where id = 145;\nselect * from crm_configurations where id = 129;\nselect * from social_accounts where sociable_id = 2317;\nSELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;\n\nselect * from teams where id = 1;\nSELECT * FROM crm_layouts WHERE crm_configuration_id = 39;\nSELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;\nSELECT * FROM crm_layout_entities WHERE id = 5507;\nSELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');\n\nselect * from teams;\nselect * from activities where crm_configuration_id = 14;\n\nSELECT * FROM social_accounts where provider = 'copper';\n\nselect * from activities where id = 628467;\nselect * from participants where activity_id = 628467;\n\nSELECT * FROM contacts WHERE id = 3969;\nSELECT * FROM accounts WHERE id = 177;\n\nSELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;\n\n# ********************* BH\nselect * from teams where id = 36;\nSELECT * FROM crm_configurations WHERE id = 21;\nselect * from activities where crm_configuration_id = 21 and id = 607901;\nselect * from activities where crm_configuration_id = 21;\n\nselect * roles;\nselect * from permissions;\nselect * from permission_role where permission_id = 226;\n\nselect * from migrations order by id desc;\n\n# mercury\n# neptune\n# earth\n\nselect * from teams;\nselect * from teams where id = 19;\nselect * from teams where id = 27;\nselect * from users where team_id = 27;\nSELECT * FROM crm_configurations WHERE id = 42;\n\nselect * from social_accounts sa\njoin users u on sa.sociable_id = u.id\nwhere u.team_id = 19\nand sa.provider = 'pipedrive';\n\nselect * from activities where id = 631461;\nSELECT * FROM crm_field_values WHERE crm_field_id = 180;\n\nselect * from teams where id = 2;\nSELECT * FROM social_accounts WHERE sociable_id = 89;\n\nSELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273\nselect * from activity_summary_logs where activity_id = 634273;\n\nselect * from sidekick_settings where team_id = 2;\n\nselect * from teams; # 2, 2\nSELECT * FROM crm_configurations WHERE team_id = 2; # 2\nselect * from team_features where team_id = 2;\nselect * from features;\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';\nSELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;\n\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from users where team_id = 1 and id IN (7160, 3248);\nselect * from migrations order by id desc;\n\nSELECT\n CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,\n u.email,\n sa.*,\n t.owner_id FROM social_accounts sa\nJOIN users u on u.id = sa.sociable_id\nJOIN teams t on t.id = u.team_id\nWHERE u.team_id = 1 and sa.provider = 'salesforce';\n\nselect * from teams where id = 1;\nselect * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;\nselect * from groups where id = 565;\nselect * from playbooks where team_id = 1;\nselect * from playbooks where id = 175;\nselect * from playbook_categories where playbook_id = 175;\nselect * from users where team_id = 1;\nselect * from users where id = 7160;\nselect * from crm_profiles where user_id = 7160;\nselect * from features;\nselect\n *\n# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,\n# crm_configuration_id, crm_provider_id, transcription_id, status\nfrom activities where crm_configuration_id = 1 and type = 'conference'\n# and crm_provider_id IS NOT NULL\nand provider != 'uploader' and actual_start_time IS NOT NULL\nORDER by id desc;\nselect * from activities where id = 54747783; # 00UO400000pCzojMAC\n\nselect p.id, p.activity_type, pc.id, pc.name\nFROM playbooks p\njoin playbook_categories pc on p.id = pc.playbook_id\nwhere p.team_id = 1 and p.activity_type = 'event';\n\nSELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';\nSELECT * FROM crm_field_values WHERE crm_field_id = 4;\n\nselect * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id\nwhere crm_configuration_id = 1 and pl.playbook_id = 175;\n\nselect * from teams;\nSELECT r.* FROM automated_reports r\njoin teams t on r.team_id = t.id\nWHERE r.frequency = 'daily'\n and r.status = 1\nAND t.status = 'active'\nAND (r.expires_at >= now() OR r.expires_at IS NULL);\n\nselect * from automated_report_results where report_id IN (18, 33);\n\nselect * from activity_searches where id = 10932;\nselect * from activity_search_filters where activity_search_id = 10932;\nselect * from automated_reports order by id desc;\nselect * from automated_report_results order by id desc;\nselect * from automated_report_results where report_id IN (36);","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-8846020925487298024
|
6686649022737200205
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
13
Previous Highlighted Error
Next Highlighted Error
SELECT * FROM teams WHERE id = 1;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 283;
SELECT * FROM crm_fields WHERE id = 2234;
SELECT * FROM crm_field_values WHERE crm_field_id = 2234;
select * from crm_profiles where user_id = 143;
select * from record_types where crm_configuration_id = 39; # 0121K000001MHElQAO,0121K000001MHEqQAO
select * from business_processes where crm_configuration_id = 39;
# 01941000000H669AAC, 01941000000H66JAAS
select * from record_type_field_values
where record_type_id IN (24);
select * from crm_field_values where id IN (2730);
select * from crm_configurations where id = 39;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce'; #1035
select * from users where team_id = 1; # 222 group 3
SELECT * FROM activities WHERE user_id = 222 order by id desc;
select * from sidekick_settings where team_id = 1;
select * from teams where id = 1;
select * from team_features where team_id = 1;
select * from activities where crm_configuration_id = 2
and provider = 'ms-teams' and id = 608765;
SELECT * FROM activities WHERE crm_configuration_id = 2 and crm_provider_id = '59523413338';
select * from sidekick_settings where team_id = 2;
SELECT * FROM activities WHERE id = 608660;
select * from activity_summary_logs where activity_id = 608660;
select * from ai_prompts where transcription_id = 11214;
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('ed78a437-2804-450e-ab2f-56ab1c641346') = uuid;
# id: 608818, crm: 59628809737
SELECT * FROM activities WHERE uuid_to_bin('36b06e55-afdd-4782-8dee-c624cd0af191') = uuid;
# id: 608821, crm: 59632069252
SELECT ce.start_time, ce.end_time, a.id, a.uuid, crm_provider_id, calendar_event_id, title,
playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id,
scheduled_start_time, scheduled_end_time, actual_start_time, actual_end_time, a.created_at
FROM activities a
join calendar_events ce on a.calendar_event_id = ce.id
WHERE a.id IN (608818, 608821);
select * from users where team_id = 1;
select * from team_settings where team_id = 1;
select * from crm_profiles where crm_configuration_id = 39 order by user_id;
select * from team_features where team_id = 1;
select * from users where team_id = 2;
SELECT * FROM activities WHERE uuid_to_bin('ec7647e9-5225-458b-b475-f31aa2769204') = uuid; # 612639
# Preslava N. Ivanova, grou id 3
SELECT * FROM opportunities WHERE uuid_to_bin('a2928fe5-aec5-46cb-85d9-7654c89e46a6') = uuid;
select * from activities where opportunity_id = 344 and actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00';
select
a.id,
a.type,
a.scheduled_start_time,
a.actual_start_time,
a.created_at,
a.opportunity_id,
a.status
FROM activities a
WHERE opportunity_id = 344
and status IN ('completed', 'received', 'delivered')
and (
(a.actual_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.created_at between '2024-10-11 00:00:00' and '2024-10-12 00:00:00')
OR (a.scheduled_start_time between '2024-10-11 00:00:00' and '2024-10-12 00:00:00'))
;
SELECT * FROM users WHERE id = 222;
SELECT * FROM crm_profiles WHERE user_id = 222;
select * from crm_layouts where crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 281;
select * from group_deal_risk_types;
select * from opportunities where team_id = 1;
SELECT * FROM opportunities WHERE id = 315;
SELECT * FROM crm_field_data WHERE object_id = 315;
select * from crm_field_data where object_id = 260;
select * from generic_ai_prompts where subject_id = 315;
select * from teams; # 36, 21, 121, [EMAIL]
SELECT * FROM social_accounts WHERE sociable_id = 121 and provider = 'bullhorn';
# [PASSWORD_DOTS]
select * from teams where id = 1;
select * from crm_configurations where id = 39;
select * from users where team_id = 1;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 1;
# 1 - 00541000004281rAAA
# 204 - 0052g000003freeAAA
# 429 - 0052g000003qGOiAAM
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
select * from activities where type = 'softphone'
and created_at > '2024-12-11 15:24:36' order by id desc;
select * from activity_providers where team_id = 1;
select * from activity_provider_users where activity_provider_id = 328;
select * from opportunities where crm_configuration_id = 39
AND account_id = 178 AND is_closed = false
order by created_at DESC;
select * from contacts where id = 3952;
select * from accounts where id = 178;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations where id = 21;
select * from users where team_id = 36;
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 36
and sa.provider = 'bullhorn';
select * from social_accounts where id = 348;
UPDATE social_accounts SET
provider_user_token = '21442_6802599_91:41179a58-21e7-4d7c-ad58-56bb666b2f65',
provider_refresh_token = '21442_6802599_91:01c6b335-3f2a-42e4-85ff-8a08fa65fceb',
expires = 1733998131,
state = 'connected'
WHERE id = 348;
# [PASSWORD_DOTS]
select * from teams where id = 31;
select * from crm_configurations where id = 18;
select * from users where team_id = 31; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 31;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 31
and sa.provider = 'close';
select * from contacts where crm_configuration_id = 18;
# [PASSWORD_DOTS] NEPTUNE [PASSWORD_DOTS]
select * from teams;
select * from users where id IN (1030, 1035, 1052);
select * from crm_configurations;
select * from users where team_id = 65; # 257
select * from team_settings where team_id = 65; # 257
select * from invitations where team_id = 65; # 257
select * from users where email = '[EMAIL]'; # 257
select u.email, cp.* from users u
join crm_profiles cp on u.id = cp.user_id
where u.team_id = 65;
select * from crm_configurations where id = 53;
select * from accounts where crm_configuration_id = 53 order by id desc;
select * from leads where crm_configuration_id = 53 order by id desc;
select * from contacts where crm_configuration_id = 53 order by id desc;
select * from opportunities where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 53 order by id desc;
select * from crm_fields where crm_configuration_id = 53 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 53 order by id desc;
select * from stages where crm_configuration_id = 53 order by id desc;
select * from crm_profiles where crm_configuration_id = 13;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
and sa.provider = 'integration-app';
select * from contacts where crm_configuration_id = 13;
select * from social_accounts where sociable_id = 283;
SELECT * FROM opportunities WHERE crm_provider_id = '006O400000E9bzeIAB';
select * from activity_providers where team_id = 65;
SELECT * FROM activities WHERE crm_configuration_id IN (51, 52, 53);
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 65
;
# [PASSWORD_DOTS] STAGING [PASSWORD_DOTS]
SELECT * FROM teams;
SELECT * FROM teams WHERE id = 88;
SELECT * FROM teams WHERE id = 89;
select * from team_settings where team_id = 89;
SELECT * FROM users WHERE team_id = 89;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 89;
select * from users;
SELECT * FROM social_accounts WHERE sociable_id = 1761;
SELECT * FROM crm_configurations WHERE id = 70;
select * from accounts where crm_configuration_id = 70 order by id desc;
select * from leads where crm_configuration_id = 70 order by id desc;
select * from contacts where crm_configuration_id = 70 order by id desc;
select * from opportunities where crm_configuration_id = 70 order by id desc;
select * from crm_profiles where crm_configuration_id = 70 order by id desc;
select * from crm_fields where crm_configuration_id = 70 order by id desc;
select * from crm_field_values where crm_field_id = 3536 order by id desc;
select * from crm_layouts where crm_configuration_id = 70 order by id desc;
select * from stages where crm_configuration_id = 70 order by id desc;
select * from business_processes where crm_configuration_id = 70 order by id desc;
select * from business_process_stages where business_process_id = 34;
select * from contacts where id = 10468;
select * from crm_layouts where crm_configuration_id = 70;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 388;
SELECT * FROM crm_fields WHERE id IN (3533,3534,3535);
select * from activities where crm_configuration_id = 70
and (account_id IS NOT NULL or lead_id IS NOT NULL or contact_id IS NOT NULL or opportunity_id IS NOT NULL) order by id desc;
SELECT * FROM activities WHERE uuid_to_bin('2e10b60f-8a61-41c5-a3d4-28835353dc65') = uuid;
SELECT * FROM activities where crm_configuration_id = 69 ;
SELECT * FROM users WHERE email LIKE '%[EMAIL]%';
SELECT * FROM activities WHERE uuid_to_bin('5a150c93-40fc-42ec-b3bd-c1d328e09f6e') = uuid;
SELECT * FROM opportunities WHERE id = 385;
select * from participants p
join activities a on p.activity_id = a.id
where a.crm_configuration_id = 70
and (p.lead_id IS NOT NULL or p.contact_id IS NOT NULL);
SELECT * FROM participants WHERE id = 1013638;
select * from teams where id = 90;
select * from users where team_id = 90;
select * from social_accounts where social_accounts.sociable_id IN (1960,1760);
SELECT * FROM crm_profiles WHERE crm_configuration_id = 71;
select * from invitations where team_id = 90;
select * from crm_configurations where id = 71;
select * from accounts where crm_configuration_id = 71 order by id desc;
select * from leads where crm_configuration_id = 71 order by id desc;
select * from contacts where crm_configuration_id = 71 order by id desc;
select * from opportunities where crm_configuration_id = 71 order by id desc;
select * from crm_profiles where crm_configuration_id = 71 order by id desc;
select * from crm_fields where crm_configuration_id = 71 order by id desc;
select * from crm_field_values where crm_field_id = 3341 order by id desc;
select * from crm_layouts where crm_configuration_id = 71 order by id desc;
select * from stages where crm_configuration_id = 71 order by id desc;
select * from users order by secondary_email desc;
select u.id, u.email, u.status, sa.id, sa.provider_user_id from social_accounts sa
join users u on sa.sociable_id = u.id
where sa.provider = 'google' and u.email LIKE 'aneliya%';
select * from failed_jobs order by id desc;
select * from users where email = '[EMAIL]' or secondary_email = '[EMAIL]';
select * from teams;
SELECT * FROM crm_profiles WHERE crm_configuration_id = 39;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type = 'task';
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 1
and sa.provider = 'salesforce';
# [PASSWORD_DOTS]
SELECT * FROM activities WHERE uuid_to_bin('c38b3895-fd0f-4b1f-9fb2-c170dba137c6') = uuid;
SELECT * FROM crm_configurations WHERE id = 70;
select * from teams where id = 1;
select * from groups where team_id = 1;
select * from users where team_id = 1;
select o.id, o.name,o.close_date, u.id, u.name, u.group_id, r.id, r.display_name, g.name, g.scope from opportunities o
join users u on o.user_id = u.id
join groups g on u.group_id = g.id
join role_user ru on u.id = ru.user_id
join roles r on ru.role_id = r.id
where o.crm_configuration_id = 39 and close_date > '2024-01-01 00:00:00';
select * from role_user where user_id = 143;
select * from roles;
select * from role_user;
select * from groups where id = 9;
select * from scope_groups where group_id = 9;
# [PASSWORD_DOTS]
select * from teams where id = 36;
select * from crm_configurations;
SELECT * FROM social_accounts WHERE sociable_id = 121;
https://crmsandbox.zoho.com/crm/jiminnyw4/tab/Leads/4776201000005049105
https://crmsandbox.zoho.com/crm/
https://crm.zoho.com/crm/org3469620/tab/Leads/230045000229559080
https://crm.zoho.com/crm/
org3469620
SELECT * FROM activities WHERE uuid_to_bin('03382d20-c8bc-48e7-a3d4-90b52fa5ceab') = uuid;
select * from users where email LIKE "%mobile_automation_%";
select * from social_accounts where sociable_id IN (2228);
select * from crm_profiles where user_id IN (2222,2223,2226,2227);
select * from teams order by id desc;
SELECT * FROM users WHERE id = 2229;
SELECT * FROM crm_profiles WHERE user_id = 2229;
select * from opportunities where crm_configuration_id = 88;
select * from crm_fields where crm_configuration_id = 88;
select * from crm_profiles where crm_configuration_id = 88;
SELECT * FROM teams WHERE id = 1;
SELECT * FROM users WHERE id = 143;
SELECT * FROM users WHERE uuid_to_bin('fde193d3-06a2-4e1a-8895-62b94039215d') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73385071-a756-42ae-9c73-8b53f2309467') = uuid;
https://app.staging.jiminny.com/ondemand?
min_duration=1
&
only_recorded=1
&
user_id%5B%5D=641f1acb-16b8-42d1-8726-df52979dad0e
&
sequence_number=2
select * from users where team_id = 1 and email like '%stoyan%'
select * from coaching_feedbacks;
select * from teams;
SELECT * FROM users WHERE team_id = 36;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from users where id = 143;
SELECT * FROM users WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM teams WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
SELECT * FROM activity_shares WHERE uuid_to_bin('73180eeb-33de-4065-977d-ccbe0e6c94fc') = uuid;
select * from users where team_id = 2;
select * from activities where crm_configuration_id = 39
and activities.scheduled_start_time BETWEEN '2025-04-09 00:00:00' AND '2025-04-09 23:59:59'
AND user_id = 143
order by id desc;
# [PASSWORD_DOTS]
select * from teams where id = 142; # 2312, 126
select * from team_settings;
select * from users where team_id = 142; # 21642
SELECT * FROM social_accounts WHERE sociable_id = 21642;
SELECT * FROM crm_profiles cp join users u ON u.id = cp.user_id WHERE team_id = 142;
select * from crm_profiles where id IN (93);
select * from invitations;
select * from team_features where team_id = 1;
SELECT * FROM crm_configurations WHERE id = 126;
select * from accounts where crm_configuration_id = 126 order by id desc;
select * from leads where crm_configuration_id = 126 order by id desc;
select * from contacts where crm_configuration_id = 126 order by id desc;
select * from opportunities where crm_configuration_id = 126 order by id desc;
select * from crm_profiles where crm_configuration_id = 126 order by id desc;
select * from crm_fields where crm_configuration_id = 126 # 11060
# and type IN ('picklist', 'status')
# and object_type = 'task'
order by id desc;
# 5731,5732,5733
select DISTINCT crm_field_id from crm_field_values where crm_field_id IN (11151,12239,12215,12185,12175,12165,12144,12137,12127,12109,12107,12105,12103,12092,12037,12005,12003,11987,11969,11958,11951,11942,11931,11924,11921,11917,11915,11901,11893,11883,11872,11870,11868,11866,11839,11833,11821,11793,11780,11777,11769,11757,11737,11735,11656,11645,11638,11629,11618,11611,11602,11591,11584,11581,11558,11544,11543,11534,11532,11529,11527,11503,11497,11493,11488,11470,11468,11457,11455,11397,11387,11372,11363,11348,11323,11318,11309,11301,11300,11292,11290,11286,11284,11256,11252,11242,11237,11233,11219,11176,11160) order by id desc;
select * from crm_layouts where crm_configuration_id = 126 order by id desc;
SELECT * FROM crm_layout_entities WHERE crm_layout_id in (300,299,298);
select * from stages where crm_configuration_id = 126 order by id desc;
select * from business_processes where crm_configuration_id = 126 order by id desc;
select * from business_process_stages where business_process_id IN (76,75,74,73);
select * from playbooks where team_id = 142;
select * from playbook_layouts where playbook_id IN (108);
SELECT * FROM playbook_categories WHERE playbook_id IN (108);
select * from teams where id = 130;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 2
and sa.provider = 'hubspot';
SELECT * FROM activities
WHERE crm_configuration_id = 110;
select * from teams;
select * from crm_configurations;
SELECT * FROM activities WHERE id = 628773;
SELECT * FROM crm_profiles WHERE user_id = 1460;
SELECT * FROM social_accounts WHERE sociable_id = 2291;
select * from teams;
select ru.*, pr.*, p.* from users u join role_user ru on ru.user_id = u.id
join permission_role pr on pr.role_id = ru.role_id
join permissions p on p.id = pr.permission_id
where team_id = 495 and p.name IN ('dial');
select * from teams where id = 145;
select * from crm_configurations where id = 129;
select * from social_accounts where sociable_id = 2317;
SELECT * FROM activities WHERE uuid_to_bin('8dbab184-a333-4268-ad57-fb41f8d53a9a') = uuid;
select * from teams where id = 1;
SELECT * FROM crm_layouts WHERE crm_configuration_id = 39;
SELECT * FROM crm_layout_entities WHERE crm_layout_id = 280;
SELECT * FROM crm_layout_entities WHERE id = 5507;
SELECT * FROM crm_fields WHERE crm_configuration_id = 39 and object_type IN ('event');
select * from teams;
select * from activities where crm_configuration_id = 14;
SELECT * FROM social_accounts where provider = 'copper';
select * from activities where id = 628467;
select * from participants where activity_id = 628467;
SELECT * FROM contacts WHERE id = 3969;
SELECT * FROM accounts WHERE id = 177;
SELECT * FROM activities WHERE uuid_to_bin('4eb54c77-cfa3-2bd4-84a7-9ed46a21c988') = uuid;
# [PASSWORD_DOTS] BH
select * from teams where id = 36;
SELECT * FROM crm_configurations WHERE id = 21;
select * from activities where crm_configuration_id = 21 and id = 607901;
select * from activities where crm_configuration_id = 21;
select * roles;
select * from permissions;
select * from permission_role where permission_id = 226;
select * from migrations order by id desc;
# mercury
# neptune
# earth
select * from teams;
select * from teams where id = 19;
select * from teams where id = 27;
select * from users where team_id = 27;
SELECT * FROM crm_configurations WHERE id = 42;
select * from social_accounts sa
join users u on sa.sociable_id = u.id
where u.team_id = 19
and sa.provider = 'pipedrive';
select * from activities where id = 631461;
SELECT * FROM crm_field_values WHERE crm_field_id = 180;
select * from teams where id = 2;
SELECT * FROM social_accounts WHERE sociable_id = 89;
SELECT * FROM activities WHERE uuid_to_bin('ba0c029a-bc14-4e17-8603-64174acebcbb') = uuid; # 634273
select * from activity_summary_logs where activity_id = 634273;
select * from sidekick_settings where team_id = 2;
select * from teams; # 2, 2
SELECT * FROM crm_configurations WHERE team_id = 2; # 2
select * from team_features where team_id = 2;
select * from features;
SELECT * FROM opportunities WHERE crm_configuration_id = 2 and crm_provider_id = '51317301383';
SELECT * FROM opportunities WHERE crm_configuration_id = 2 order by id desc;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from users where team_id = 1 and id IN (7160, 3248);
select * from migrations order by id desc;
SELECT
CONCAT(u.id, CASE WHEN u.id = t.owner_id THEN ' (owner)' ELSE '' END) AS user_id,
u.email,
sa.*,
t.owner_id FROM social_accounts sa
JOIN users u on u.id = sa.sociable_id
JOIN teams t on t.id = u.team_id
WHERE u.team_id = 1 and sa.provider = 'salesforce';
select * from teams where id = 1;
select * from groups g JOIN playbooks p on g.playbook_id = p.id where g.team_id = 1;
select * from groups where id = 565;
select * from playbooks where team_id = 1;
select * from playbooks where id = 175;
select * from playbook_categories where playbook_id = 175;
select * from users where team_id = 1;
select * from users where id = 7160;
select * from crm_profiles where user_id = 7160;
select * from features;
select
*
# id, uuid, type, provider, playbook_category_id, user_id, lead_id, contact_id, account_id, opportunity_id, stage_id,
# crm_configuration_id, crm_provider_id, transcription_id, status
from activities where crm_configuration_id = 1 and type = 'conference'
# and crm_provider_id IS NOT NULL
and provider != 'uploader' and actual_start_time IS NOT NULL
ORDER by id desc;
select * from activities where id = 54747783; # 00UO400000pCzojMAC
select p.id, p.activity_type, pc.id, pc.name
FROM playbooks p
join playbook_categories pc on p.id = pc.playbook_id
where p.team_id = 1 and p.activity_type = 'event';
SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = 'event';
SELECT * FROM crm_field_values WHERE crm_field_id = 4;
select * from crm_layouts cl join playbook_layouts pl on cl.id = pl.layout_id
where crm_configuration_id = 1 and pl.playbook_id = 175;
select * from teams;
SELECT r.* FROM automated_reports r
join teams t on r.team_id = t.id
WHERE r.frequency = 'daily'
and r.status = 1
AND t.status = 'active'
AND (r.expires_at >= now() OR r.expires_at IS NULL);
select * from automated_report_results where report_id IN (18, 33);
select * from activity_searches where id = 10932;
select * from activity_search_filters where activity_search_id = 10932;
select * from automated_reports order by id desc;
select * from automated_report_results order by id desc;
select * from automated_report_results where report_id IN (36);...
|
12809
|
|
12814
|
274
|
36
|
2026-04-14T11:41:22.683222+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166882683_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
SlackFileEditViewGoHistoryWindowHelpDOCKER981DEV ( SlackFileEditViewGoHistoryWindowHelpDOCKER981DEV (docker)882APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx"team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|*3ec2-userGec2-user@ip-10-30-...+EDHomeDMsActivityFilesLater.*•MoreJiminny... vir scnicrol# infra-changes# jiminny-bg# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the_people_of jimi...• Direct messages€. Vasil Vasilev3 Aneliya Angelova, ...lo Steliyan Georgiev3Adelina Petrova, Ili...0. Adelina Petrova O. Galya Dimitrova *Rs Nikolay Nikolov "2 Galya Dimitrova, Ni...2 Galya Dimitrova, Ni...8. Nikolay Yankov::: AppsJira CloudToastGoogle Cale...Support Daily - in 19 m100% <47Tue 14 Apr 14:41:22→Search Jiminny Inc# releases8 226 0• Messages• Files@ Bookmarks+1f99de0e313cToday ~8b256855f58e5bf1f5) - [JY-20571](https://jiminny.atlassian.net/browse/JY-20571): Panorama offline reports (#465)(steliyan-g)(8cf63ce)(https://github.com/jiminny/prophet/commit/8cf63cec5153b6e1320e84c67b03977ce6fe4c0c) - [JY-19982](https://jiminny.atlassian.net/browse/JY-19982): Allow multiple LLM evals with onecommand run (#464) (steliyan-g)NewCircleCl APP 2:15 PMNew commits deployed to Prophet Prod-EU:[Od2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - [JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (ilian-jiminny)New commits deployed to Prophet Prod-US:[0d2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (flian-jiminny)Message #releases+ Аа......
|
NULL
|
-6584039862756421682
|
NULL
|
click
|
ocr
|
NULL
|
SlackFileEditViewGoHistoryWindowHelpDOCKER981DEV ( SlackFileEditViewGoHistoryWindowHelpDOCKER981DEV (docker)882APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx"team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|*3ec2-userGec2-user@ip-10-30-...+EDHomeDMsActivityFilesLater.*•MoreJiminny... vir scnicrol# infra-changes# jiminny-bg# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the_people_of jimi...• Direct messages€. Vasil Vasilev3 Aneliya Angelova, ...lo Steliyan Georgiev3Adelina Petrova, Ili...0. Adelina Petrova O. Galya Dimitrova *Rs Nikolay Nikolov "2 Galya Dimitrova, Ni...2 Galya Dimitrova, Ni...8. Nikolay Yankov::: AppsJira CloudToastGoogle Cale...Support Daily - in 19 m100% <47Tue 14 Apr 14:41:22→Search Jiminny Inc# releases8 226 0• Messages• Files@ Bookmarks+1f99de0e313cToday ~8b256855f58e5bf1f5) - [JY-20571](https://jiminny.atlassian.net/browse/JY-20571): Panorama offline reports (#465)(steliyan-g)(8cf63ce)(https://github.com/jiminny/prophet/commit/8cf63cec5153b6e1320e84c67b03977ce6fe4c0c) - [JY-19982](https://jiminny.atlassian.net/browse/JY-19982): Allow multiple LLM evals with onecommand run (#464) (steliyan-g)NewCircleCl APP 2:15 PMNew commits deployed to Prophet Prod-EU:[Od2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - [JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (ilian-jiminny)New commits deployed to Prophet Prod-US:[0d2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (flian-jiminny)Message #releases+ Аа......
|
NULL
|
|
12815
|
NULL
|
0
|
2026-04-14T11:41:22.698653+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166882698_m2.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
PhpStormFileFVtavsco.isvProject vEditViewNavigateC PhpStormFileFVtavsco.isvProject vEditViewNavigateCodeLaravelRefactorToolsWindowHelp#11894 on JY-18909-automated-reports-ask-iminny ~ProphetAiv D Reports© AutomatedReportsCi© AutomatedReportsRe© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpD Slack• TeamsD TracksO TranscriptionO TwilioD UsersVocabularyDZoom© CoachingFeedbacksUpr© Command.phpcreateDatabaseusers.pc Daraoase adecountoi© DeleteOldAiCrmNotesC:© DeleteS3LeftoversComiDevPostmanCommand./© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantissues.p© FlushRolesPermissionsC© GeneratelnternalWebho• GroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gc).iminnvcacheclearcom© JiminnyDebugCommanc© JiminnySetEncryptedTo© JiminnyTokenInfoComn© MakeSlackLiveCoaching© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php(©) PurgeSoftDeletedOppol© PurgeSyncBatchesCom© RecalculateDealRisksCaC) RemoveDeleteMarkersd© RemoveExpiredNudgest© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCor© ReportController.php© SendReportJob.phpAutomatedReportsCommand.php© AutomatedReportsSendCommand.phpAadLayoutchuitles.onp= custom.logc leam.ongC AutomatedReportsRepository.phpconsole PROD© AutomatedReportsService.phpCreateHeldActivityEvent.phpCrealenctivityLoggeaevent.oneTrackProviderInstalledEvent.php© ActivityLogged.phpC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportsSendCommand extends Command521522E laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';A HS_local [iminny@localhost]Sa jiminny017 A15 Х13 A2425 GT2832 Ct35 Ct363839404260616264* The name and signature of the console command.* Ovar stringprotected $signature = 'automated-reports:send';1525115401527528529530531* The console command description.535x ovar sarino535protected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,private readonly AutomatedReportsRepository $reportRepository,540541542private readonly BusDispatcher $dispatcher,parent::__construct();/*** Execute the console command.* @return intpublic function handle(): int$reportResults = $this->reportRepository->getGeneratedNotSentResults();544545546154715481547550551552553554555556557558foreach ($reportResults as $reportResult) {/** @var AutomatedReportResult $reportResult */$validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->g560$reportResult->get6 561'Dispatching job',562563]):select * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect * TroIgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vvid, type, provider, playbook_category_id, user_id,leao o, contact* cri conmouracionorciri orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type ="conterence"# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks Pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1..n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status = 'activelAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);select * from automated_report_results where repontaig IN (18, 33);return CommandAZias::SUCCESS;565566567568 v569570571572select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where repontaid IN (36);Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)hiilSupport Daily • in 19mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:41:22CascadeDebug Automated Rep+D ...sent at Is NULlstatus = STATUS_GENERATEDnas arelared reoortYour 7 results pass this.wStep 2: getValidRecipientUsers()For each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients()→ includes creator. For regular reports it goes through getRecipientUsers() . Either way, the creator has anemail, so validRecipients is not empty. VStep 3: shouldSendReport() - THIS IS WHERE IT FAILS• phppubLic const int SENI_REPORI_AI_HUURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +1080• secondsIt then checks:O php$now = Carbon::now($earliestTZ);// current time in GMT+3$1sScheduledTime = (int) $now->format('H') === 5;11 is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTC.If it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime()O phppublic function hasPassedScheduledTime(?CarbonInterface SgeneratedAt, string $timezone): boolTihis checksgeneratedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC)Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeltc so hasPassedScheduledTime returns false• OR the current time is before 05:00 GMT+3 → nowUtc is NOT > scheduledTimeUtcCven vou re runnine mnis auso rM Ulcrs 143 ocal111ouC nere's wnar naooens.schedullediime =ocavar0o.00cMis=7400 0Cnow = 11:35 UTC → past scheduled timegeneratedAtmust be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtUtc.lt(scheduledTimeUtc) isfalse → hasPassedScheduledTime returns false → nothing sendsin Snore the revoremustnave deen denerare. derore tne scheou ec senc time (0o.00 nmeuser'stimezone). If it was generated after 05:00 GMT+3, it will only be eligible to send tomorrow at 05:00 GMT+3.IN that case lets change the parameters for @AutomatedReportsSendCommand.php as well and lets add resultid to send and if foudn then do not check+ <› CodeWinasun leams50:5 1o charsuir-o( 4 spaces...
|
NULL
|
2599491551807491702
|
NULL
|
click
|
ocr
|
NULL
|
PhpStormFileFVtavsco.isvProject vEditViewNavigateC PhpStormFileFVtavsco.isvProject vEditViewNavigateCodeLaravelRefactorToolsWindowHelp#11894 on JY-18909-automated-reports-ask-iminny ~ProphetAiv D Reports© AutomatedReportsCi© AutomatedReportsRe© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpD Slack• TeamsD TracksO TranscriptionO TwilioD UsersVocabularyDZoom© CoachingFeedbacksUpr© Command.phpcreateDatabaseusers.pc Daraoase adecountoi© DeleteOldAiCrmNotesC:© DeleteS3LeftoversComiDevPostmanCommand./© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantissues.p© FlushRolesPermissionsC© GeneratelnternalWebho• GroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gc).iminnvcacheclearcom© JiminnyDebugCommanc© JiminnySetEncryptedTo© JiminnyTokenInfoComn© MakeSlackLiveCoaching© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php(©) PurgeSoftDeletedOppol© PurgeSyncBatchesCom© RecalculateDealRisksCaC) RemoveDeleteMarkersd© RemoveExpiredNudgest© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCor© ReportController.php© SendReportJob.phpAutomatedReportsCommand.php© AutomatedReportsSendCommand.phpAadLayoutchuitles.onp= custom.logc leam.ongC AutomatedReportsRepository.phpconsole PROD© AutomatedReportsService.phpCreateHeldActivityEvent.phpCrealenctivityLoggeaevent.oneTrackProviderInstalledEvent.php© ActivityLogged.phpC RequestGenerateAskJiminnyReportJob.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportsSendCommand extends Command521522E laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';A HS_local [iminny@localhost]Sa jiminny017 A15 Х13 A2425 GT2832 Ct35 Ct363839404260616264* The name and signature of the console command.* Ovar stringprotected $signature = 'automated-reports:send';1525115401527528529530531* The console command description.535x ovar sarino535protected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,private readonly AutomatedReportsRepository $reportRepository,540541542private readonly BusDispatcher $dispatcher,parent::__construct();/*** Execute the console command.* @return intpublic function handle(): int$reportResults = $this->reportRepository->getGeneratedNotSentResults();544545546154715481547550551552553554555556557558foreach ($reportResults as $reportResult) {/** @var AutomatedReportResult $reportResult */$validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->g560$reportResult->get6 561'Dispatching job',562563]):select * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect * TroIgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vvid, type, provider, playbook_category_id, user_id,leao o, contact* cri conmouracionorciri orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type ="conterence"# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks Pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1..n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status = 'activelAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);select * from automated_report_results where repontaig IN (18, 33);return CommandAZias::SUCCESS;565566567568 v569570571572select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where repontaid IN (36);Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)hiilSupport Daily • in 19mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:41:22CascadeDebug Automated Rep+D ...sent at Is NULlstatus = STATUS_GENERATEDnas arelared reoortYour 7 results pass this.wStep 2: getValidRecipientUsers()For each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients()→ includes creator. For regular reports it goes through getRecipientUsers() . Either way, the creator has anemail, so validRecipients is not empty. VStep 3: shouldSendReport() - THIS IS WHERE IT FAILS• phppubLic const int SENI_REPORI_AI_HUURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +1080• secondsIt then checks:O php$now = Carbon::now($earliestTZ);// current time in GMT+3$1sScheduledTime = (int) $now->format('H') === 5;11 is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTC.If it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime()O phppublic function hasPassedScheduledTime(?CarbonInterface SgeneratedAt, string $timezone): boolTihis checksgeneratedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC)Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeltc so hasPassedScheduledTime returns false• OR the current time is before 05:00 GMT+3 → nowUtc is NOT > scheduledTimeUtcCven vou re runnine mnis auso rM Ulcrs 143 ocal111ouC nere's wnar naooens.schedullediime =ocavar0o.00cMis=7400 0Cnow = 11:35 UTC → past scheduled timegeneratedAtmust be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtUtc.lt(scheduledTimeUtc) isfalse → hasPassedScheduledTime returns false → nothing sendsin Snore the revoremustnave deen denerare. derore tne scheou ec senc time (0o.00 nmeuser'stimezone). If it was generated after 05:00 GMT+3, it will only be eligible to send tomorrow at 05:00 GMT+3.IN that case lets change the parameters for @AutomatedReportsSendCommand.php as well and lets add resultid to send and if foudn then do not check+ <› CodeWinasun leams50:5 1o charsuir-o( 4 spaces...
|
NULL
|
|
12816
|
NULL
|
0
|
2026-04-14T11:41:23.980212+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166883980_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
SlackFileEditViewGoHistoryWindowHelpDOCKER3 281DEV SlackFileEditViewGoHistoryWindowHelpDOCKER3 281DEV (docker)882APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx"team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|*3ec2-userGec2-user@ip-10-30-...+EDHomeDMsActivityFilesLater.*•More+Jiminny... vir scnicrol# infra-changes# jiminny-bg# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the_people_of jimi...• Direct messages€. Vasil Vasilev3 Aneliya Angelova, ...lo Steliyan Georgiev3Adelina Petrova, Ili...0. Adelina Petrova O. Galya Dimitrova *Rs Nikolay Nikolov "2 Galya Dimitrova, Ni...2 Galya Dimitrova, Ni...P. Nikolay Yankov::: AppsJira CloudToastGoogle Cale...Support Daily - in 19 m100% <47Tue 14 Apr 14:41:23→Search Jiminny Inc# releases8 226 0• Messages• Files@ Bookmarks+1f99de0e313cToday ~8b256855f58e5bf1f5) - [JY-20571](https://jiminny.atlassian.net/browse/JY-20571): Panorama offline reports (#465)(steliyan-g)(8cf63ce)(https://github.com/jiminny/prophet/commit/8cf63cec5153b6e1320e84c67b03977ce6fe4c0c) - [JY-19982](https://jiminny.atlassian.net/browse/JY-19982): Allow multiple LLM evals with onecommand run (#464) (steliyan-g)NewCircleCl APP 2:15 PMNew commits deployed to Prophet Prod-EU:[Od2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - [JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (ilian-jiminny)New commits deployed to Prophet Prod-US:[0d2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (flian-jiminny)Message #releases+ Аа......
|
NULL
|
511073142202790458
|
NULL
|
click
|
ocr
|
NULL
|
SlackFileEditViewGoHistoryWindowHelpDOCKER3 281DEV SlackFileEditViewGoHistoryWindowHelpDOCKER3 281DEV (docker)882APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx"team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|*3ec2-userGec2-user@ip-10-30-...+EDHomeDMsActivityFilesLater.*•More+Jiminny... vir scnicrol# infra-changes# jiminny-bg# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the_people_of jimi...• Direct messages€. Vasil Vasilev3 Aneliya Angelova, ...lo Steliyan Georgiev3Adelina Petrova, Ili...0. Adelina Petrova O. Galya Dimitrova *Rs Nikolay Nikolov "2 Galya Dimitrova, Ni...2 Galya Dimitrova, Ni...P. Nikolay Yankov::: AppsJira CloudToastGoogle Cale...Support Daily - in 19 m100% <47Tue 14 Apr 14:41:23→Search Jiminny Inc# releases8 226 0• Messages• Files@ Bookmarks+1f99de0e313cToday ~8b256855f58e5bf1f5) - [JY-20571](https://jiminny.atlassian.net/browse/JY-20571): Panorama offline reports (#465)(steliyan-g)(8cf63ce)(https://github.com/jiminny/prophet/commit/8cf63cec5153b6e1320e84c67b03977ce6fe4c0c) - [JY-19982](https://jiminny.atlassian.net/browse/JY-19982): Allow multiple LLM evals with onecommand run (#464) (steliyan-g)NewCircleCl APP 2:15 PMNew commits deployed to Prophet Prod-EU:[Od2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - [JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (ilian-jiminny)New commits deployed to Prophet Prod-US:[0d2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (flian-jiminny)Message #releases+ Аа......
|
12814
|
|
12817
|
276
|
0
|
2026-04-14T11:41:30.365183+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166890365_m1.jpg...
|
PhpStorm
|
faVsco.js – AutomatedReportsSendCommand.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"#11894 on JY-18909-automated-reports-ask-jiminny, menu","depth":5,"help_text":"Pull request #11894 exists for current branch JY-18909-automated-reports-ask-jiminny","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"AutomatedReportsCommandTest","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'AutomatedReportsCommandTest'","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'AutomatedReportsCommandTest'","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Execute","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Explain Plan","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Browse Query History","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"View Parameters","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Open Query Execution Settings…","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"In-Editor Results","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Tx: Auto","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Cancel Running Statements","depth":4,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Playground","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"jiminny","depth":4,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"17","depth":4,"role_description":"text"},{"role":"AXStaticText","text":"15","depth":4,"role_description":"text"}]...
|
3562019562073518195
|
-8832605010757203124
|
click
|
hybrid
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
SlackFileEditViewGoHistoryWindowHelpDOCKER- 881DEV (docker)882APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx"team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|*3ec2-userGec2-user@ip-10-30-...+EDHomeDMsActivityFilesLater.*•MoreJiminny... vir scnicrol# infra-changes# jiminny-bg# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the_people_of jimi...• Direct messages€. Vasil Vasilev3 Aneliya Angelova, ...lo Steliyan Georgiev3Adelina Petrova, Ili...0. Adelina Petrova O. Galya Dimitrova *Rs Nikolay Nikolov "2 Galya Dimitrova, Ni...2 Galya Dimitrova, Ni..P. Nikolay Yankov::: AppsJira CloudToastGoogle Cale...Support Daily - in 19 m100% <47Tue 14 Apr 14:41:30→Search Jiminny Inc# releases8 226 0• Messages• Files@ Bookmarks+1f99de0e313cToday ~8b256855f58e5bf1f5) - [JY-20571](https://jiminny.atlassian.net/browse/JY-20571): Panorama offline reports (#465)(steliyan-g)(8cf63ce)(https://github.com/jiminny/prophet/commit/8cf63cec5153b6e1320e84c67b03977ce6fe4c0c) - [JY-19982](https://jiminny.atlassian.net/browse/JY-19982): Allow multiple LLM evals with onecommand run (#464) (steliyan-g)NewCircleCl APP 2:15 PMNew commits deployed to Prophet Prod-EU:[Od2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - [JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (ilian-jiminny)New commits deployed to Prophet Prod-US:[0d2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (flian-jiminny)Message #releases+ Аа......
|
NULL
|
|
12818
|
277
|
0
|
2026-04-14T11:41:30.397389+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166890397_m2.jpg...
|
PhpStorm
|
faVsco.js – AutomatedReportsSendCommand.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.03046875,"top":0.017361112,"width":0.0453125,"height":0.022222223},"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"#11894 on JY-18909-automated-reports-ask-jiminny, menu","depth":5,"bounds":{"left":0.07578125,"top":0.017361112,"width":0.14257812,"height":0.022222223},"help_text":"Pull request #11894 exists for current branch JY-18909-automated-reports-ask-jiminny","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.78515625,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"AutomatedReportsCommandTest","depth":6,"bounds":{"left":0.803125,"top":0.017361112,"width":0.09765625,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'AutomatedReportsCommandTest'","depth":6,"bounds":{"left":0.9007813,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'AutomatedReportsCommandTest'","depth":6,"bounds":{"left":0.9140625,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9273437,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96015626,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9734375,"top":0.017361112,"width":0.01328125,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9867188,"top":0.017361112,"width":0.013281226,"height":0.022222223},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Execute","depth":4,"bounds":{"left":0.46132812,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Explain Plan","depth":4,"bounds":{"left":0.47148436,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Browse Query History","depth":4,"bounds":{"left":0.484375,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"View Parameters","depth":4,"bounds":{"left":0.49453124,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Open Query Execution Settings…","depth":4,"bounds":{"left":0.5046875,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"In-Editor Results","depth":4,"bounds":{"left":0.5175781,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Tx: Auto","depth":4,"bounds":{"left":0.53046876,"top":0.08611111,"width":0.028515626,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Cancel Running Statements","depth":4,"bounds":{"left":0.56171876,"top":0.08611111,"width":0.01015625,"height":0.016666668},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Playground","depth":4,"bounds":{"left":0.5746094,"top":0.08611111,"width":0.034765624,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"jiminny","depth":4,"bounds":{"left":0.67929685,"top":0.08611111,"width":0.033203125,"height":0.016666668},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.049609374,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.23320313,"top":1.0,"width":0.01015625,"height":0.0},"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"17","depth":4,"bounds":{"left":0.65703124,"top":0.10763889,"width":0.0109375,"height":0.013194445},"role_description":"text"},{"role":"AXStaticText","text":"15","depth":4,"bounds":{"left":0.6703125,"top":0.10763889,"width":0.011328125,"height":0.013194445},"role_description":"text"}]...
|
3562019562073518195
|
-8832605010757203124
|
click
|
hybrid
|
NULL
|
Project: faVsco.js, menu
#11894 on JY-18909-automa Project: faVsco.js, menu
#11894 on JY-18909-automated-reports-ask-jiminny, menu
Start Listening for PHP Debug Connections
AutomatedReportsCommandTest
Run 'AutomatedReportsCommandTest'
Debug 'AutomatedReportsCommandTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Execute
Explain Plan
Browse Query History
View Parameters
Open Query Execution Settings…
In-Editor Results
Tx: Auto
Cancel Running Statements
Playground
jiminny
Sync Changes
Hide This Notification
Code changed:
Hide
17
15
PhpStormFileFVtavsco.isvProject vEditViewNavigateCodeLaravelRefactor#11894 on JY-18909-automated-reports-ask-iminny ~ToolsWindowHelpProphetAiv D Reports© AutomatedReportsCi© AutomatedReportsRe© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpD Slack• TeamsD TracksO TranscriptionO TwilioD UsersVocabularyDZoom© CoachingFeedbacksUpr© Command.phpcreateDatabaseusers.pc Daraoase oecountoi© DeleteOldAiCrmNotesC:© DeleteS3LeftoversComiDevPostmanCommand./© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantissues.p© FlushRolesPermissionsC© GeneratelnternalWebho• GroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.g© JiminnyCacheClearCom© JiminnyDebugCommanc© JiminnySetEncryptedTo© JiminnyTokenInfoComn© MakeSlackLiveCoaching© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesCom© RecalculateDealRisksCo(C) RemoveDeleteMarkersd© RemoveExpiredNudgest© RemoveUnusedParticip:© ResetElasticSearch.php© RestoreActivityCrmProv© RestoreActivityTypeCor© ReportController.php© SendReportJob.phpAutomatedReportsCommand.php© AutomatedReportsSendCommand.phpAadLayoutchuitles.onp= custom.logc leam.ongC AutomatedReportsRepository.phpconsole PROD© AutomatedReportsService.phpCreateHeldActivityEvent.php© UserPilotActivityListener.phpC RequestGenerateAskJiminnyReportJob.php© TrackProviderInstalledEvent.php© ActivityLogged.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportsSendCommand extends Command520521522E laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';A HS_local [iminny@localhost]Sa jiminny v017 A15 Х13 A2425 GT2832 Ct35 Ct36373840414245474954555860616263* The name and signature of the console command.* Ovar stringprotected $signature = 'automated-reports:send';* The console command description.x ovar sarino52415251154015275285295305315325335345351554protected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,private readonly AutomatedReportsRepository $reportRepository,private readonly AutomatedReportsService $automatedReportsService,private readonly BusDispatcher $dispatcher,parent::__construct();/*** Execute the console command.* @return intpublic function handle(): int$reportResults = $this->reportRepository->getGeneratedNotSentResults();155000%54054154254354454554654715481547550551552553554555556foreach ($reportResults as $reportResult) {1558/** @var AutomatedReportResult $reportResult */$validRecipients = $this->automatedReportsService->getValidRecipientUsers($reportResult->g560if ($this->automatedReportsService->shouldSendReport($validRecipients,$reportResult->get6 561'Dispatching job',562563]):564565Sthis->dispatcher->dispatch(new SendRgportJob($reportResult->getUvid()));566567568 v569return CommandAZias::SUCCESS;570571572select * tron reans where 1o =15select x tron groupsg suin playpooks p1.n<->1: on g.playbook_id = p.id winselect * TroIgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vvid, type, provider, playbook_category_id, user_id,leao o, contact* cri contouracionlorcirn orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type ="conterence"# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks pjoin playbook_categories pc"->l.n: on p.1d = pc.playbook_1dwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1..n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status = 'activelAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);select * from automated_report_results where repontaig IN (18, 33);select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where repontaid IN (36);Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)hiilSupport Daily • in 19mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:41:30CascadeDebug Automated Rep+D ...sent at Is NULlstatus = STATUS_GENERATEDnas arelared reoortYour 7 results pass this.Step 2: getValidRecipientUsers()For each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients()→ includes creator. For regular reports it goes through getRecipientUsers() . Either way, the creator has anemail, so validRecipients is not empty. VStep 3: shouldSendReport() - THIS IS WHERE IT FAILS• phppubLic const int SENI_REPORI_AI_HUURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +1080• secondsIt then checks:O php$now = Carbon::now($earliestTZ); // current time in GMT+3$1sScheduledTime = (int) $now->format('H') === 5;11 is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTC.If it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime()O phppublic function hasPassedScheduledTime(?CarbonInterface SgeneratedAt, string $timezone): boolTihis checksgeneratedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC)Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeltc so hasPassedScheduledTime returns false• OR the current time is before 05:00 GMT+3 → nowUtc is NOT > scheduledTimeUtcCven vou re runnine mnis auso rM Ulcrs 143 ocal111ouC nere's wnar naooens.schedu ledtime = today at 0o.00 GMIfs= 02.00U1enow = 11:35 UTC → past scheduled timegeneratedAtmust be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtUtc.lt(scheduledTimeUtc) isfalse → hasPassedScheduledTime returns false → nothing sendsin Snore the revoremustnave deen denerare. derore tne scheou ec senc time (0o.00 nmeuser'stimezone). If it was generated after 05:00 GMT+3, it will only be eligible to send tomorrow at 05:00 GMT+3.IN that case lets change the parameters for @AutomatedReportsSendCommand. php as well and lets add resultid to send and if foudn then do not check shouldSendReport but call direct+ <> CodeWinasun leams50:5 16 charsuir-o( 4 spaces...
|
12815
|
|
12819
|
276
|
1
|
2026-04-14T11:41:32.141097+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166892141_m1.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
SlackFileEditViewGoHistoryWindowHelpDOCKER-881DEV SlackFileEditViewGoHistoryWindowHelpDOCKER-881DEV (docker)882APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|*3ec2-userGec2-user@ip-10-30-...+EDHomeDMsActivityFilesLater.*•MoreJiminny... vir scnicrol# infra-changes# jiminny-bg# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the_people_of jimi...• Direct messages€. Vasil Vasilev3 Aneliya Angelova, ...lo Steliyan Georgiev3Adelina Petrova, Ili...0. Adelina Petrova O. Galya Dimitrova *Rs Nikolay Nikolov "2 Galya Dimitrova, Ni...2 Galya Dimitrova, Ni..P. Nikolay Yankov::: AppsJira CloudToastGoogle Cale...Support Daily - in 19 m100% <47Tue 14 Apr 14:41:31→Search Jiminny Inc# releases8 226 0• Messages• Files@ Bookmarks+1f99de0e313cToday ~8b256855f58e5bf1f5) - [JY-20571](https://jiminny.atlassian.net/browse/JY-20571): Panorama offline reports (#465)(steliyan-g)(8cf63ce)(https://github.com/jiminny/prophet/commit/8cf63cec5153b6e1320e84c67b03977ce6fe4c0c) - [JY-19982](https://jiminny.atlassian.net/browse/JY-19982): Allow multiple LLM evals with onecommand run (#464) (steliyan-g)NewCircleCl APP 2:15 PMNew commits deployed to Prophet Prod-EU:[Od2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - [JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (ilian-jiminny)New commits deployed to Prophet Prod-US:[0d2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (flian-jiminny)Message #releases+ Аа......
|
NULL
|
-1891868065641308741
|
NULL
|
click
|
ocr
|
NULL
|
SlackFileEditViewGoHistoryWindowHelpDOCKER-881DEV SlackFileEditViewGoHistoryWindowHelpDOCKER-881DEV (docker)882APP (-zsh)created_at:"2026-04-14 11:22:36"updated_at: "2026-04-14 11:23:04"report: Jiminny\Models\AutomatedReport {#15221id: 36,#uuid: b"Aß#ôq,»ö97i7eçªx",team_id: 1,type: "ask_jiminny",status: 1,frequency: "daily",from: null,to: null,deal_value_min: null,deal_value_max: null,call_types: "[]",media_types: "["pdf"]",call_duration_min: null,call_duration_max: null,groups: "[]",playbook_categories: null,deal_at_call_stages: null,current_deal_stages: null,recipients: "{"users": [7160]}",jiminny_recipients: null,additional_prompt_input: null,custom_name: "Tuesday report",activity_search_id: 26913,ask_anything_prompt_id: 62,expires_at: "2026-04-30",created_by: 7160,created_at: "2026-04-14 11:20:20",updated_at: "2026-04-14 11:20:20",deleted_at: null,3,},],}> Srepo->getGeneratedNotSentResults()->countO;> exitINFOGoodbye.root@b79a4bdd6905:/home/jiminny#|*3ec2-userGec2-user@ip-10-30-...+EDHomeDMsActivityFilesLater.*•MoreJiminny... vir scnicrol# infra-changes# jiminny-bg# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the_people_of jimi...• Direct messages€. Vasil Vasilev3 Aneliya Angelova, ...lo Steliyan Georgiev3Adelina Petrova, Ili...0. Adelina Petrova O. Galya Dimitrova *Rs Nikolay Nikolov "2 Galya Dimitrova, Ni...2 Galya Dimitrova, Ni..P. Nikolay Yankov::: AppsJira CloudToastGoogle Cale...Support Daily - in 19 m100% <47Tue 14 Apr 14:41:31→Search Jiminny Inc# releases8 226 0• Messages• Files@ Bookmarks+1f99de0e313cToday ~8b256855f58e5bf1f5) - [JY-20571](https://jiminny.atlassian.net/browse/JY-20571): Panorama offline reports (#465)(steliyan-g)(8cf63ce)(https://github.com/jiminny/prophet/commit/8cf63cec5153b6e1320e84c67b03977ce6fe4c0c) - [JY-19982](https://jiminny.atlassian.net/browse/JY-19982): Allow multiple LLM evals with onecommand run (#464) (steliyan-g)NewCircleCl APP 2:15 PMNew commits deployed to Prophet Prod-EU:[Od2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - [JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (ilian-jiminny)New commits deployed to Prophet Prod-US:[0d2170f](https://github.com/jiminny/prophet/commit/0d2170fd4f25032fe37738e936a418512ca7b6e2) - JY-20544](https://jiminny.atlassian.net/browse/JY-20544)eval changes (#459) (flian-jiminny)Message #releases+ Аа......
|
12817
|
|
12820
|
277
|
1
|
2026-04-14T11:41:32.622604+00:00
|
/Users/lukas/.screenpipe/data/data/2026-04-14/1776 /Users/lukas/.screenpipe/data/data/2026-04-14/1776166892622_m2.jpg...
|
NULL
|
NULL
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
PhpStormFileEditFVtavsco.isvViewNavigateCodeLarave PhpStormFileEditFVtavsco.isvViewNavigateCodeLaravelRefactor#11894 on JY-18909-automated-reports-ask-iminny ~ToolsWindowHelpProject vProphetAiv D Reports© AutomatedReportsCi© AutomatedReportsRe© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpD Slack• TeamsD TracksO TranscriptionO TwilioD UsersVocabularyDZoom© CoachingFeedbacksUpr© Command.phpcreateDatabaseusers.pc Daraoase oecountoi© DeleteOldAiCrmNotesC:© DeleteS3LeftoversComiDevPostmanCommand./© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantissues.p© FlushRolesPermissionsC© GeneratelnternalWebho• GroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gcJiminnvcacheclearcom(e) Jminnv Deouacommanc(c)Jminnvser-ncrvotedio(c) Jiminny okenintocomm© MakeSlackLiveCoaching© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesCom© RecalculateDealRisksCa© RemoveDeleteMarkersC© RemoveExpiredNudgest© RemoveUnusedParticip:© RestoreActivityCrmProv© ReportController.php© SendReportJob.php© AutomatedReportsSendCommand.phpAutomatedReportsCommand.phpAadLayoutchuitles.onpc leam.ongC AutomatedReportsRepository.php© AutomatedReportsService.phpCreateHeldActivityEvent.php© UserPilotActivityListener.phpC RequestGenerateAskJiminnyReportJob.php© TrackProviderInstalledEvent.php© ActivityLogged.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportsSendCommand extends Command2425 GT2832 Ct35 Ct363839404142* The name and signature of the console command.* Ovar stringprotected $signature = 'automated-reports:send';* The console command description.x ovar sarinoprotected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,private readonly BusDispatcher $dispatcher,parent::__construct();/*** Execute the console command.* @return intpublic function handle(): int$reportResults = $this->reportRepository->getGeneratedNotSentResults();foreach ($reportResultsas $reportResult) {/** @var AutomatedReportResult $reportResult */'Dispatching job',I):return CommandAZias::SUCCESS;Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)= custom.logA HS_local [iminny@localhost]console PROD52152215251154015275285295305315325335345351554155000%540541542543544545546547154815475505515525535545555565571558$reportResult->getG561562563564-565566567568 V569570571572E laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';Sa jiminny017 A15 Х13 Aselect * tron reans where 1o =15select x tron groups g Juin playbooks p1.n<->1: on g.playbook_id = p.id winselect * TroIgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vvid, type, provider, playbook_category_id, user_id,leao o, contact* cri conmouracionorciri orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type ="conterence"# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1..n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status = 'activelAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);select * from automated_report_results where repontaig IN (18, 33);select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where reRontaid IN (36);hiilSupport Daily • in 19mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:41:32CascadeDebug Automated Rep+D ..sent at Is NULlstatus = STATUS_GENERATEDnas arelared reoortYour 7 results pass this.Step 2: getValidRecipientUsers()For each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients()→ includes creator. For regular reports it goes through getRecipientUsers() . Either way, the creator has anemail, so validRecipients is not empty. VStep 3: shouldSendReport() - THIS IS WHERE IT FAILS• phppubLic const int SENI_REPORI_AI_HUURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +1080• secondsIt then checks:O php$now = Carbon::now($earliestTZ);// current time in GMT+3$1sScheduledTime = (int) $now->format('H') === 5;11 is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTC.If it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime()O phppublic function hasPassedScheduledTime(?CarbonInterface SgeneratedAt, string $timezone): boolTihis checksgeneratedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC)Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeltc so hasPassedScheduledTime returns false• OR the current time is before 05:00 GMT+3 → nowUtc is NOT > scheduledTimeUtcCven vou re runnine mnis auso rM Ulcrs 143 ocal111ouC nere's wnar naooens.schedu ledtime = today at 0o.00 GMIfs= 02.00U1enow = 11:35 UTC → past scheduled timegeneratedAtmust be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtUtc.lt(scheduledTimeUtc) isfalse → hasPassedScheduledTime returns false → nothing sendsin Snore the revoremustnave deen denerare. derore tne scheou ec senc time (0o.00 nmeuser'stimezone). If it was generated after 05:00 GMT+3, it will only be eligible to send tomorrow at 05:00 GMT+3.IN that case lets change the parameters for @AutomatedReportsSendCommand. php as well and lets add resultid to send and if foudn then do not check shouldSendReport but call direct|+ <> Codewinasun leamsblb2 13 charsuir-o( 4 spaces...
|
NULL
|
-8198225191931687134
|
NULL
|
click
|
ocr
|
NULL
|
PhpStormFileEditFVtavsco.isvViewNavigateCodeLarave PhpStormFileEditFVtavsco.isvViewNavigateCodeLaravelRefactor#11894 on JY-18909-automated-reports-ask-iminny ~ToolsWindowHelpProject vProphetAiv D Reports© AutomatedReportsCi© AutomatedReportsRe© AutomatedReportsS:© CreateMockAskJimir© DeleteReportComma© GenerateMarketingR© Team.php© Usage.phpD Slack• TeamsD TracksO TranscriptionO TwilioD UsersVocabularyDZoom© CoachingFeedbacksUpr© Command.phpcreateDatabaseusers.pc Daraoase oecountoi© DeleteOldAiCrmNotesC:© DeleteS3LeftoversComiDevPostmanCommand./© DiarizeViaAiParticipantk© EncryptTokensComman© EngagementStatsRegen© FeatureFlagsHelper.php© FixCrossTenantissues.p© FlushRolesPermissionsC© GeneratelnternalWebho• GroupSetDefaultLangua© HelperTruncateCoachin© HubspotJournalPollingC© HubspotWebhookServic© ImportRecording.php@ Imnortli|sercFromCcvEil© IterateUsersCommand.gcJiminnvcacheclearcom(e) Jminnv Deouacommanc(c)Jminnvser-ncrvotedio(c) Jiminny okenintocomm© MakeSlackLiveCoaching© ManageScimForTeam.p© MarkBranchForEnvironn© MuteOrganizerChannel.© PhpApm.php© PropagateCoachingFeer© PurgeConferences.php© PurgeSoftDeletedOppor© PurgeSyncBatchesCom© RecalculateDealRisksCa© RemoveDeleteMarkersC© RemoveExpiredNudgest© RemoveUnusedParticip:© RestoreActivityCrmProv© ReportController.php© SendReportJob.php© AutomatedReportsSendCommand.phpAutomatedReportsCommand.phpAadLayoutchuitles.onpc leam.ongC AutomatedReportsRepository.php© AutomatedReportsService.phpCreateHeldActivityEvent.php© UserPilotActivityListener.phpC RequestGenerateAskJiminnyReportJob.php© TrackProviderInstalledEvent.php© ActivityLogged.phpRequestGeneratekeporJob.ong© AutomatedReportResult.php© AutomatedReport.phpclass AutomatedReportsSendCommand extends Command2425 GT2832 Ct35 Ct363839404142* The name and signature of the console command.* Ovar stringprotected $signature = 'automated-reports:send';* The console command description.x ovar sarinoprotected $description = 'Sends automated reports based on user timezone';public function __construct(private readonly LoggerInterface $logger,private readonly BusDispatcher $dispatcher,parent::__construct();/*** Execute the console command.* @return intpublic function handle(): int$reportResults = $this->reportRepository->getGeneratedNotSentResults();foreach ($reportResultsas $reportResult) {/** @var AutomatedReportResult $reportResult */'Dispatching job',I):return CommandAZias::SUCCESS;Pushed 1 commit to origin/JY-18909-automated-reports-ask-jiminny // View pull request (today 13:29)= custom.logA HS_local [iminny@localhost]console PROD52152215251154015275285295305315325335345351554155000%540541542543544545546547154815475505515525535545555565571558$reportResult->getG561562563564-565566567568 V569570571572E laravel.logA console (EU]A SF [jiminny@localhost]A console [STAGING]Tx: Auto vFlaycroundvt.owner_id FROM social_accounts saJOIN users u on u.id = sa.sociable_idJOIN teams t1..n<->1: on t.id = u.team_idWHERE U.team_id = 1 and sa.provider = 'salesforce';Sa jiminny017 A15 Х13 Aselect * tron reans where 1o =15select x tron groups g Juin playbooks p1.n<->1: on g.playbook_id = p.id winselect * TroIgroupsnere t =oo.select * from playbooks where team_id = 1;select * from playbooks where id = 175;select * from playbook_categories where playbook_id = 175;select * from users where team_id = 1;select * from users where id = 7160;select * from crm_profiles where user_id = 7160;select * from features;select# id, vvid, type, provider, playbook_category_id, user_id,leao o, contact* cri conmouracionorciri orovoer LorTranscrrocion orstatusfrom activities where crm_configuration_id = 1 and type ="conterence"# and crm_provider_id IS NOT NULLand provider != 'uploader' and actual_start_time IS NOT NULLORDER by id desc;select * from activities where id = 54747783; # 00U0400000pCZojMACselect p.id, p.activity_type, pc.id, pc.nameFROM playbooks pjoin playbook_categories pc1<->1..n: on p.id = pc.playbook_idwhere p.team_id = 1 and p.activity_type = 'event':SELECT * FROM crm_fields WHERE crm_configuration_id = 1 and object_type = •SELECT * FROM crm_field_values WHERE crm_field_id = 4;select * from crm_layouts cl join playbook_layouts pl1<->1..n: on cl.id = piwhere crm_configuration_id = 1 and pl.playbook_id = 175;select * from teams;SELECT r.* FROM automated_reportsrjoin teams t on r.teamid = t.idWHERE r. frequency = 'daily'and r.status = 1AND t.status = 'activelAND (r.exRicesuat >= now() OR r.exeicesnat IS NULL);select * from automated_report_results where repontaig IN (18, 33);select * from activity_searches where id = 10932;select * from activity_search_filters where activity_search_id = 10932;select * from automated_reports order by id desc;select * from automated_report_results order by id desc;select * from automated_report_results where reRontaid IN (36);hiilSupport Daily • in 19mAL AutomatedReportsCommandTestv100% [45)Tue 14 Apr 14:41:32CascadeDebug Automated Rep+D ..sent at Is NULlstatus = STATUS_GENERATEDnas arelared reoortYour 7 results pass this.Step 2: getValidRecipientUsers()For each result, gets recipients. Since it's an AskJiminny report it goes through resolveAskJiminnyRecipients()→ includes creator. For regular reports it goes through getRecipientUsers() . Either way, the creator has anemail, so validRecipients is not empty. VStep 3: shouldSendReport() - THIS IS WHERE IT FAILS• phppubLic const int SENI_REPORI_AI_HUURS = 5;The logic picks the earliest timezone (highest UTC offset = most ahead of UTC). For GMT+3, the offset is +1080• secondsIt then checks:O php$now = Carbon::now($earliestTZ);// current time in GMT+3$1sScheduledTime = (int) $now->format('H') === 5;11 is it 05:00 in GMT+3?The report only sends if it's currently 5:00 AM in the creator's timezone (GMT+3). That means 02:00 UTC.If it's not 5:00 AM right now in GMT+3, it falls through to hasPassedScheduledTime()O phppublic function hasPassedScheduledTime(?CarbonInterface SgeneratedAt, string $timezone): boolTihis checksgeneratedAt < 05:00 today (in GMT+3, converted to UTC) ANDnow > 05:00 today (in GMT+3, converted to UTC)So it only returns true if:1. The report was generated before 05:00 GMT+3 today (i.e., before 02:00 UTC)2. AND current time is past 05:00 GMT+3 (past 02:00 UTC)Why Nothing Is SentThe current time in GMT+3 is not 05:00 AM, and one of these is also true:• The report was generated after 05:00 GMT+3 (02:00 UTC) today → generatedAtUtc is NOT < scheduledTimeltc so hasPassedScheduledTime returns false• OR the current time is before 05:00 GMT+3 → nowUtc is NOT > scheduledTimeUtcCven vou re runnine mnis auso rM Ulcrs 143 ocal111ouC nere's wnar naooens.schedu ledtime = today at 0o.00 GMIfs= 02.00U1enow = 11:35 UTC → past scheduled timegeneratedAtmust be before 02:00 UTC todayThe likely cause: the report was generated AFTER 05:00 GMT+3 (after 02:00 UTC) today, so generatedAtUtc.lt(scheduledTimeUtc) isfalse → hasPassedScheduledTime returns false → nothing sendsin Snore the revoremustnave deen denerare. derore tne scheou ec senc time (0o.00 nmeuser'stimezone). If it was generated after 05:00 GMT+3, it will only be eligible to send tomorrow at 05:00 GMT+3.IN that case lets change the parameters for @AutomatedReportsSendCommand. php as well and lets add resultid to send and if foudn then do not check shouldSendReport but call direct|+ <> Codewinasun leamsblb2 13 charsuir-o( 4 spaces...
|
NULL
|