-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from jekram/sania
- Loading branch information
Showing
9 changed files
with
392 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
extends sidebar | ||
block div#content | ||
div#divInformation | ||
h1= title | ||
div#divDatadiv.table-scrollable | ||
div(class = "control-group span6") | ||
label | ||
| Search : | ||
|
||
input(type="search" class="light-table-filter form-control input-medium input-inline" data-table="liveChat" placeholder="Enter search term") | ||
table(class = "table table-striped table-bordered table-hover liveChat") | ||
thead | ||
tr | ||
td | ||
span | ||
|Format | ||
td | ||
span | ||
|Sender Id | ||
td | ||
span | ||
|Recipient Id | ||
td | ||
span | ||
|Sender Facebook Id | ||
td | ||
span | ||
|Recipient Facebook Id | ||
td | ||
span | ||
|Status | ||
td | ||
span | ||
|Date Time | ||
td | ||
span | ||
|Url Meta | ||
td | ||
span | ||
|Payload | ||
|
||
tbody | ||
if (liveChat) | ||
form(action="/downloadcsv",method="post") | ||
- var dd=JSON.stringify(liveChat) | ||
input(type="hidden" name ="dd" value = dd) | ||
|
||
if (liveChat.length != 0) | ||
- each object in liveChat | ||
tr | ||
td=object.format | ||
td=object.sender_id | ||
td=object.recipient_id | ||
td=object.sender_fb_id | ||
td=object.recipient_fb_id | ||
td=object.status | ||
td=object.datetime | ||
td=object.url_meta | ||
td(colspan = 12)=JSON.stringify(object.payload) | ||
tr | ||
td(colspan = 12,style = "text-align:right;") | ||
button(class = "downloadcsv btn btn-info" type="submit") | ||
|Export Record in CSV | ||
else | ||
tr | ||
td(colspan = 12,style = "text-align:center;")="No live chat record found." | ||
else | ||
tr | ||
td(colspan = 8,style = "text-align:center;")="No live chat record found. " + error.description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
extends sidebar | ||
block div#content | ||
div#divInformation | ||
h1= title | ||
div#divDatadiv.table-scrollable | ||
div(class = "control-group span6") | ||
label | ||
| Search : | ||
|
||
input(type="search" class="light-table-filter form-control input-medium input-inline" data-table="session" placeholder="Enter search term") | ||
table(class = "table table-striped table-bordered table-hover session") | ||
thead | ||
tr | ||
td | ||
span | ||
|Id | ||
td | ||
span | ||
|Chats | ||
td | ||
span | ||
|Subscriber Id | ||
td | ||
span | ||
|Page Id | ||
td | ||
span | ||
|Company Id | ||
td | ||
span | ||
| Status | ||
td | ||
span | ||
|Request Time | ||
td | ||
span | ||
|Mark Read | ||
td | ||
span | ||
|View Live Chat | ||
|
||
tbody | ||
if (session) | ||
form(action="/downloadcsv",method="post") | ||
- var dd=JSON.stringify(session) | ||
input(type="hidden" name ="dd" value = dd) | ||
td=session._id | ||
td=chats.length | ||
td=session.subscriber_id._id | ||
td=session.page_id._id | ||
td=session.company_id | ||
td=session.status | ||
td=session.request_time | ||
td | ||
a(href='/sessions/markRead/' + session._id) Mark Read | ||
td | ||
a(href='/sessions/liveChat/' + session._id) View LiveChat | ||
tr | ||
td(colspan = 12,style = "text-align:right;") | ||
button(class = "downloadcsv btn btn-info" type="submit") | ||
|Export Record in CSV | ||
else | ||
tr | ||
td(colspan = 8,style = "text-align:center;")="No record found. " + error.description | ||
if (typeof chatSeen != 'undefined') | ||
div.divDatadiv.table-scrollable | ||
h3='Chat Marked Seen Response' | ||
table(class = "table table-striped table-bordered table-hover session") | ||
thead | ||
tr | ||
td | ||
span | ||
|Status | ||
td | ||
span | ||
|No.of Chats Modified | ||
td | ||
span | ||
|No.of Chat | ||
tbody | ||
td=chatSeen.ok | ||
td=chatSeen.nModified | ||
td=chatSeen.n | ||
|
||
div.divDatadiv.table-scrollable | ||
h3='Chats' | ||
div(class = "control-group span6") | ||
label | ||
| Search : | ||
|
||
input(type="search" class="light-table-filter form-control input-medium input-inline" data-table="chats" placeholder="Enter search term") | ||
table(class = "table table-striped table-bordered table-hover chats") | ||
thead | ||
tr | ||
td | ||
span | ||
|Format | ||
td | ||
span | ||
|Sender Id | ||
td | ||
span | ||
|Recipient Id | ||
td | ||
span | ||
|Sender Facebook Id | ||
td | ||
span | ||
|Recipient Facebook Id | ||
td | ||
span | ||
|Session Id | ||
td | ||
span | ||
|Company Id | ||
td | ||
span | ||
|Status | ||
td | ||
span | ||
|Date Time | ||
td | ||
span | ||
|Payload | ||
tbody | ||
if (chats) | ||
form(action="/downloadcsv",method="post") | ||
- var dd=JSON.stringify(chats) | ||
input(type="hidden" name ="dd" value = dd) | ||
if (chats.length != 0) | ||
- each chat in chats | ||
tr | ||
td=chat.format | ||
td=chat.sender_id | ||
td=chat.recipient_id | ||
td=chat.sender_fb_id | ||
td=chat.recipient_fb_id | ||
td=chat.session_id | ||
td=chat.company_id | ||
td=chat.status | ||
td=chat.datetime | ||
td=JSON.stringify(chat.payload) | ||
tr | ||
td(colspan = 12,style = "text-align:right;") | ||
button(class = "downloadcsv btn btn-info" type="submit") | ||
|Export Record in CSV | ||
else | ||
tr | ||
td(colspan = 12,style = "text-align:center;")="No record found. " | ||
else | ||
tr | ||
td(colspan = 12,style = "text-align:center;")="No record found. " + error.description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.