Geen omschrijving

framework-clientdata.js 672B

1234567891011121314151617181920212223242526
  1. var clients = [];
  2. $(function () {
  3. clients = $.clientsInit();
  4. })
  5. $.clientsInit = function () {
  6. var dataJson = {
  7. authorizeMenu: [],
  8. authorizeButton: []
  9. };
  10. var init = function () {
  11. $.ajax({
  12. url: huayi.config.callcenter_url + "configurationapi/api/menu/getcurrentmsg",
  13. type: "get",
  14. dataType: "json",
  15. async: false,
  16. data: {
  17. },
  18. success: function (data) {
  19. dataJson.authorizeMenu = eval(data.authorizeMenu);
  20. dataJson.authorizeButton = data.authorizeButton.Result;
  21. }
  22. });
  23. }
  24. init();
  25. return dataJson;
  26. }