Get number of unread messages: (This should be used for the info bubble)
Arguments
client_id |
string |
company_id |
string |
unreadForCompany |
string |
Arguments
id |
integer, required |
client_id |
integer, required |
box_name |
string |
Returns the messages from customers to the company
Arguments
seen |
string |
subject |
string |
data |
string |
sender_id |
integer |
sender_name |
string |
limit |
integer |
start |
integer |
q |
string |
order_by |
string |
order_direction |
string |
Returns the messages from the company to customers
Arguments
seen |
integer |
subject |
string |
data |
string |
client_id |
integer |
sender_name |
string |
limit |
integer |
start |
integer |
q |
string |
order_by |
string |
order_direction |
string |
Arguments
format |
string |
subject |
string, required |
data |
string, required |
client_id |
integer, required |
sender_name |
string |
account |
integer |
Get number of all unread messages in all Messaging systems
Arguments
Get a list of brief details for the unread messages (This should be used in the dropdown then the bubble is clicked)
Arguments
Get all messages (read/unread)
Arguments
Search in the notifications
Arguments
q |
string |
client_id |
integer (incl. search params) |
sender_id |
integer (incl. search params) |
seen |
string |
Set message as read (used in all related classes)
Arguments
Get all records
this function returns all the records. Pagination / limit are not accepted
Arguments
Get Change Log for an object
Arguments
Function for adding / editing a record with all the children
@params children is an array of records that has the same rules as add() or set().
@param id is always required - if it is not integer, the child will be added. If it is an integer, the child with the same id will be updated
Ex.:
id => 3 #updates the id 3 of the parent class
.....
children => [
1 => [....]
'new' => [....]
]
This will:
- update the id=3 for the parent class with all the values included,
- it will update the child with id=1
- will add a new child (new)
- if delete is allowed, all other possible children will be removed
@params id - is always required, if it is not integer, the record will be added, else it will be updated
@params id : This method will inset/edit a record with the given id in
CrmCustomersController
with children in the current class
Missing children in the argument will
be DELETED!
Arguments
id |
integer, required |
comment_id |
integer, required |