### /modules/:moduleFullName/sessions/:sessionId/conversationFlow >Уже есть запись в бд но без availablePermissionTypeIds: 3 ``` db.systemFunctions.insert( {"_id" : ObjectId("5f3f866b0228ad2e7cb8417f")}, {$push: { "availablePermissionTypeIds": 3 }} ) ``` ### /sessions/:sessionId/conversationFlow ``` db.systemFunctions.insert({ "systemApplicationId" : 2, "systemFunctionId" : 624, "function" : "/sessions/:sessionId/conversationFlow", "description" : "change ConversationFlow", "parentId" : ???, "permissionLevel" : "public", "availablePermissionTypeIds" : [ 3 ], "name" : "/sessions/:sessionId/conversationFlow" }); ``` ### /sessions/:sessionId/system-events >Уже есть запись в бд со всеми данными ``` { "_id" : ObjectId("5f3f866b0228ad2e7cb8416c"), "systemApplicationId" : 2, "systemFunctionId" : 135, "function" : "'/sessions/:sessionId/system-events'", "description" : "create system event, Return last system event in session", "parentId" : 130, "permissionLevel" : "system", "availablePermissionTypeIds" : [ 1, 2 ], "name" : "/sessions/:sessionId/system-events" } ``` ### /modules/:moduleFullName/sessions/:sessionId/system-events/:customId ``` db.systemFunctions.insert({ "systemApplicationId" : 2, "systemFunctionId" : 628, "function" : " /modules/:moduleFullName/sessions/:sessionId/system-events/:customId", "description" : "check if exists CustomSystemEvent by id", "parentId" : 130, "permissionLevel" : "system", "availablePermissionTypeIds" : [ 1 ], "name" : " /modules/:moduleFullName/sessions/:sessionId/system-events/:customId" }); ``` ### /modules/:moduleFullName/localizations/:customId ``` db.systemFunctions.insert({ "systemApplicationId" : 2, "systemFunctionId" : 625, "function" : " /modules/:moduleFullName/localizations/:customId", "description" : "get custom localization", "parentId" : ???, "permissionLevel" : "public", "availablePermissionTypeIds" : [ 1 ], "name" : " /modules/:moduleFullName/localizations/:customId" }); ``` ### /entities/:entityId/message-sender-label ``` db.systemFunctions.insert({ "systemApplicationId" : 2, "systemFunctionId" : 626, "function" : " /entities/:entityId/message-sender-label", "description" : "get user profile", "parentId" : ???, "permissionLevel" : "public", "availablePermissionTypeIds" : [ 1 ], "name" : " /entities/:entityId/message-sender-label" }); ``` ### /entities/message-sender-label ``` db.systemFunctions.insert({ "systemApplicationId" : 2, "systemFunctionId" : 627, "function" : " /entities/message-sender-label", "description" : "get sender label", "parentId" : ???, "permissionLevel" : "public", "availablePermissionTypeIds" : [ 1 ], "name" : " /entities/message-sender-label" }); ``` ### /modules/:moduleFullName/sessions/:sessionId/system-events ``` db.systemFunctions.insert({ "systemApplicationId" : 2, "systemFunctionId" : 629, "function" : " /modules/:moduleFullName/sessions/:sessionId/system-events", "description" : "create Custom System Event by id", "parentId" : ???, "permissionLevel" : "public", "availablePermissionTypeIds" : [ 2 ], "name" : " /modules/:moduleFullName/sessions/:sessionId/system-events" }); ``` ### /modules/:moduleFullName/sessions/:sessionId/session-timeout >Уже есть запись в бд но без availablePermissionTypeIds: 3 ``` db.systemFunctions.insert( {"_id" : ObjectId("5f3f866b0228ad2e7cb84185")}, {$push: { "availablePermissionTypeIds": 3 }} ) ``` ### /modules/:moduleFullName/sessions/:sessionId/history ``` db.systemFunctions.insert({ "systemApplicationId" : 2, "systemFunctionId" : 630, "function" : " /modules/:moduleFullName/sessions/:sessionId/history", "description" : "get history", "parentId" : 130, "permissionLevel" : "system", "availablePermissionTypeIds" : [ 1 ], "name" : " /modules/:moduleFullName/sessions/:sessionId/history" }); ``` ### /workspaces/:workspaceId/platforms/:platformId/:platformWorkspaceId/entities >этот systemApplicationId сейчас пренадлежит старому роуту /workspaces/:workspaceId/platforms/:platformId/:platformBotId/entities в БД ``` db.systemFunctions.remove({"_id" : ObjectId("5f3f866b0228ad2e7cb84174")}) db.systemFunctions.insert({ "systemApplicationId" : 2, "systemFunctionId" : 143, "function" : "/workspaces/:workspaceId/platforms/:platformId/:platformWorkspaceId/entities", "description" : " This route try to find entity record. If not found, it will be create entity record for this workspace on this platform ", "parentId" : 130, "permissionLevel" : "system", "availablePermissionTypeIds" : [ 1 ], "name" : " /workspaces/:workspaceId/platforms/:platformId/:platformWorkspaceId/entities" }); ``` ### /modules/:moduleFullName/sessions/:sessionId/event/end >Уже есть запись в бд со всеми данными ``` { "_id" : ObjectId("5f3f866b0228ad2e7cb84181"), "systemApplicationId" : 2, "systemFunctionId" : 156, "function" : "/modules/:moduleFullName/sessions/:sessionId/event/end", "description" : "Move bot logic in session to next in botModules list module", "parentId" : 130, "permissionLevel" : "system", "availablePermissionTypeIds" : [ 2 ], "name" : "/modules/:moduleFullName/sessions/:sessionId/event/end" } ```