Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3138 | Rev 4131 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3138 Rev 4113
Línea 134... Línea 134...
134
        $viewModel->setTemplate('leaders-linked/chat/chat.phtml');
134
        $viewModel->setTemplate('leaders-linked/chat/chat.phtml');
135
        $viewModel->setVariables([
135
        $viewModel->setVariables([
136
            'contacts' => $contacts, 
136
            'contacts' => $contacts, 
137
            'groups' => $groups, 
137
            'groups' => $groups, 
138
            'user_id' => $currentUser->id,
138
            'user_id' => $currentUser->id,
139
            'is_chat' => true
139
            'is_chat' => true,
-
 
140
            'timezone' => $currentUser->timezone,
140
        ]);
141
        ]);
141
        return $viewModel ;
142
        return $viewModel ;
Línea 142... Línea 143...
142
       
143
       
Línea 162... Línea 163...
162
     *       'url_send'                                 => 'url para enviar un mensaje',
163
     *       'url_send'                                 => 'url para enviar un mensaje',
163
     *       'url_upload'                               => 'url para subir un archivo, imagen o video',
164
     *       'url_upload'                               => 'url para subir un archivo, imagen o video',
164
     *       'url_get_all_messages'                     => 'url para para obtener los mensajes',
165
     *       'url_get_all_messages'                     => 'url para para obtener los mensajes',
165
     *       'url_mark_seen'                            => 'url para marcar los mensajes como vistos'
166
     *       'url_mark_seen'                            => 'url para marcar los mensajes como vistos'
166
     *       'url_mark_received'                        => 'url para marcar los mensajes como recibios'
167
     *       'url_mark_received'                        => 'url para marcar los mensajes como recibios'
-
 
168
     *       'url_zoom'                                 => 'url para crear la conferencia de zoom'
167
     *       'id'                                       => 'id del grupo encriptado',
169
     *       'id'                                       => 'id del grupo encriptado',
168
     *       'name'                                     => 'nombre del grupo',
170
     *       'name'                                     => 'nombre del grupo',
169
     *       'type'                                     => 'group', //fixed
171
     *       'type'                                     => 'group', //fixed
170
     *       'is_open'                                  => 'true/false',
172
     *       'is_open'                                  => 'true/false',
171
     *       'unsee_messages'                           => 'true/false',
173
     *       'unsee_messages'                           => 'true/false',
Línea 181... Línea 183...
181
     *        'url_send'                => 'url para enviar un mensaje',
183
     *        'url_send'                => 'url para enviar un mensaje',
182
     *        'url_upload'              => 'url para subir un archivo, imagen o video',
184
     *        'url_upload'              => 'url para subir un archivo, imagen o video',
183
     *        'url_get_all_messages'    => 'url para para obtener los mensajes',
185
     *        'url_get_all_messages'    => 'url para para obtener los mensajes',
184
     *        'url_mark_seen'           => 'url para marcar los mensajes como vistos'
186
     *        'url_mark_seen'           => 'url para marcar los mensajes como vistos'
185
     *        'url_mark_received'       => 'url para marcar los mensajes como recibios'
187
     *        'url_mark_received'       => 'url para marcar los mensajes como recibios'
-
 
188
     *        'url_zoom'                                 => 'url para crear la conferencia de zoom'
186
     *        'id'                      => 'id del usuario encriptado',
189
     *        'id'                      => 'id del usuario encriptado',
187
     *        'name'                    => 'nombre del usuario',
190
     *        'name'                    => 'nombre del usuario',
188
     *        'image'                   => 'imagen del usuario',
191
     *        'image'                   => 'imagen del usuario',
189
     *        'type'                    => 'user' //fixed,
192
     *        'type'                    => 'user' //fixed,
190
     *        'profile'                 => 'url del profile',
193
     *        'profile'                 => 'url del profile',
Línea 274... Línea 277...
274
                            'url_send'                              => $this->url()->fromRoute('chat/send', ['id' => $chatGroup->uuid]),
277
                            'url_send'                              => $this->url()->fromRoute('chat/send', ['id' => $chatGroup->uuid]),
275
                            'url_upload'                            => $this->url()->fromRoute('chat/upload', ['id' => $chatGroup->uuid]),
278
                            'url_upload'                            => $this->url()->fromRoute('chat/upload', ['id' => $chatGroup->uuid]),
276
                            'url_get_all_messages'                  => $this->url()->fromRoute('chat/get-all-messages', ['id' => $chatGroup->uuid]),
279
                            'url_get_all_messages'                  => $this->url()->fromRoute('chat/get-all-messages', ['id' => $chatGroup->uuid]),
277
                            'url_mark_seen'                         => $this->url()->fromRoute('chat/mark-seen', ['id' => $chatGroup->uuid]),
280
                            'url_mark_seen'                         => $this->url()->fromRoute('chat/mark-seen', ['id' => $chatGroup->uuid]),
278
                            'url_mark_received'                     => $this->url()->fromRoute('chat/mark-received', ['id' => $chatGroup->uuid]),
281
                            'url_mark_received'                     => $this->url()->fromRoute('chat/mark-received', ['id' => $chatGroup->uuid]),
-
 
282
                            'url_mark_received'                     => $this->url()->fromRoute('chat/zoom', ['id' => $chatGroup->uuid, 'type' => 'chat']),
279
                            'id'                                    => $chatGroup->uuid,
283
                            'id'                                    => $chatGroup->uuid,
280
                            'name'                                  => $chatGroup->name,
284
                            'name'                                  => $chatGroup->name,
281
                            'type'                                  => 'group',
285
                            'type'                                  => 'group',
282
                            'is_open'                               => $is_open ? 1 : 0,
286
                            'is_open'                               => $is_open ? 1 : 0,
283
                            'not_seen_messages'                     => $not_seen_messages,
287
                            'not_seen_messages'                     => $not_seen_messages,
Línea 300... Línea 304...
300
                            'url_send'                      => $this->url()->fromRoute('chat/send', ['id' => $chatGroup->uuid]),
304
                            'url_send'                      => $this->url()->fromRoute('chat/send', ['id' => $chatGroup->uuid]),
301
                            'url_upload'                    => $this->url()->fromRoute('chat/upload', ['id' => $chatGroup->uuid]),
305
                            'url_upload'                    => $this->url()->fromRoute('chat/upload', ['id' => $chatGroup->uuid]),
302
                            'url_get_all_messages'          => $this->url()->fromRoute('chat/get-all-messages', ['id' => $chatGroup->uuid]),
306
                            'url_get_all_messages'          => $this->url()->fromRoute('chat/get-all-messages', ['id' => $chatGroup->uuid]),
303
                            'url_mark_seen'                 => $this->url()->fromRoute('chat/mark-seen', ['id' => $chatGroup->uuid]),
307
                            'url_mark_seen'                 => $this->url()->fromRoute('chat/mark-seen', ['id' => $chatGroup->uuid]),
304
                            'url_mark_received'             => $this->url()->fromRoute('chat/mark-received', ['id' => $chatGroup->uuid]),
308
                            'url_mark_received'             => $this->url()->fromRoute('chat/mark-received', ['id' => $chatGroup->uuid]),
-
 
309
                            'zoom'                          => $this->url()->fromRoute('chat/zoom', ['id' => $chatGroup->uuid, 'type' => 'chat']),
305
                            'id'                            => $chatGroup->uuid,
310
                            'id'                            => $chatGroup->uuid,
306
                            'name'                          => $chatGroup->name,
311
                            'name'                          => $chatGroup->name,
307
                            'type'                          => 'group',
312
                            'type'                          => 'group',
308
                            'is_open'                       => $is_open ? 1 : 0,
313
                            'is_open'                       => $is_open ? 1 : 0,
309
                            'not_seen_messages'             => $not_seen_messages,
314
                            'not_seen_messages'             => $not_seen_messages,