static function onRestServiceBuildDescription()
{
return array(
Library::SCOPE_REST_IMCONNECTOR => array(
'imconnector.register' => array(
'callback' => array(__CLASS__, 'register'),
'options' => array()
),
'imconnector.unregister' => array(
'callback' => array(__CLASS__, 'unRegister'),
'options' => array()
),
'imconnector.send.messages' => array(
'callback' => array(__CLASS__, 'sendMessages'),
'options' => array()
),
'imconnector.update.messages' => array(
'callback' => array(__CLASS__, 'updateMessages'),
'options' => array()
),
'imconnector.delete.messages' => array(
'callback' => array(__CLASS__, 'deleteMessages'),
'options' => array()
),
'imconnector.send.status.delivery' => array(
'callback' => array(__CLASS__, 'sendStatusDelivery'),
'options' => array()
),
'imconnector.send.status.reading' => array(
'callback' => array(__CLASS__, 'sendStatusReading'),
'options' => array()
),
'imconnector.set.error' => array(
'callback' => array(__CLASS__, 'setErrorConnector'),
'options' => array()
),
CRestUtil::EVENTS => array(
'OnImConnectorLineDelete' => array(
'imconnector',
Library::EVENT_DELETE_LINE,
array(__CLASS__, 'OnDeleteLine'),
array(
"category" => RestSqs::CATEGORY_DEFAULT,
)
),
'OnImConnectorMessageAdd' => array(
'imconnector',
Library::EVENT_SEND_MESSAGE_CUSTOM_CONNECTOR,
array(__CLASS__, 'OnSendMessageCustom'),
array(
"category" => RestSqs::CATEGORY_DEFAULT,
)
),
'OnImConnectorMessageUpdate' => array(
'imconnector',
Library::EVENT_UPDATE_MESSAGE_CUSTOM_CONNECTOR,
array(__CLASS__, 'OnUpdateMessageCustom'),
array(
"category" => RestSqs::CATEGORY_DEFAULT,
)
),
'OnImConnectorMessageDelete' => array(
'imconnector',
Library::EVENT_DELETE_MESSAGE_CUSTOM_CONNECTOR,
array(__CLASS__, 'OnDeleteMessageCustom'),
array(
"category" => RestSqs::CATEGORY_DEFAULT,
)
),
/*'OnImConnectorStatusAdd' => array(
'imconnector',
Library::EVENT_STATUS_ADD,
array(__CLASS__, 'OnStatusCustom'),
array(
"category" => RestSqs::CATEGORY_DEFAULT,
)
),
'OnImConnectorStatusUpdate' => array(
'imconnector',
Library::EVENT_STATUS_UPDATE,
array(__CLASS__, 'OnStatusCustom'),
array(
"category" => RestSqs::CATEGORY_DEFAULT,
)
),*/
'OnImConnectorStatusDelete' => array(
'imconnector',
Library::EVENT_STATUS_DELETE,
array(__CLASS__, 'OnStatusCustom'),
array(
"category" => RestSqs::CATEGORY_DEFAULT,
)
),
),
CRestUtil::PLACEMENTS => array(
Helper::PLACEMENT_SETTING_CONNECTOR => array(),
),
),
);
}