1:- module(bitrix24_imopenlines, [ 2 config_list_get/3, 3 config_list_get/4, 4 crm_chat_get_last_id/3, 5 crm_chat_get_last_id/4, 6 bot_session_transfer/3, 7 bot_session_transfer/4 8 ]). 9 10:- use_module(bitrix24_rest). 11 12config_list_get(Provider, Params, Result) :- 13 bitrix24_rest:api_call(Provider, 'imopenlines.config.list.get', Params, Result). 14 15config_list_get(Provider, ContextRef, Params, Result) :- 16 bitrix24_rest:api_call(Provider, ContextRef, 'imopenlines.config.list.get', Params, Result). 17 18crm_chat_get_last_id(Provider, Params, Result) :- 19 bitrix24_rest:api_call(Provider, 'imopenlines.crm.chat.getLastId', Params, Result). 20 21crm_chat_get_last_id(Provider, ContextRef, Params, Result) :- 22 bitrix24_rest:api_call(Provider, ContextRef, 'imopenlines.crm.chat.getLastId', Params, Result). 23 24bot_session_transfer(Provider, Params, Result) :- 25 bitrix24_rest:api_call(Provider, 'imopenlines.bot.session.transfer', Params, Result). 26 27bot_session_transfer(Provider, ContextRef, Params, Result) :- 28 bitrix24_rest:api_call(Provider, ContextRef, 'imopenlines.bot.session.transfer', Params, Result)