Built motion from commit 27af9f03b.|1.0.28
[motion.git] / server / api / xchatty / xchatty.controller.js
index 1b0741b..605604b 100644 (file)
@@ -1 +1 @@
-var _0x57a4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x75\x73\x74\x61\x63\x68\x65","\x70\x61\x74\x68","\x6D\x64\x35","\x75\x61\x2D\x70\x61\x72\x73\x65\x72\x2D\x6A\x73","\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65\x2D\x70\x61\x72\x73\x65\x72","\x74\x6F\x2D\x63\x73\x76","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x2F\x78\x63\x68\x61\x74\x74\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x44\x45\x4D\x4F\x20\x4C\x49\x43\x45\x4E\x53\x45","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x73\x46\x69\x65\x6C\x64","\x43\x68\x61\x74\x50\x72\x6F\x61\x63\x74\x69\x76\x65\x41\x63\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x4C\x69\x63\x65\x6E\x73\x65","\x58\x63\x68\x61\x74\x74\x79","\x53\x65\x74\x74\x69\x6E\x67","\x43\x6F\x6E\x74\x61\x63\x74","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x67\x65\x74\x4A\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x78\x43\x68\x61\x74\x74\x79\x20\x4A\x53\x3A","\x6D\x65\x73\x73\x61\x67\x65","\x65\x72\x72\x6F\x72","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74","\x6E\x6F\x77","\x73\x65\x74","\x6A\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x72\x65\x6D\x6F\x74\x65","\x73\x74\x72\x69\x70\x54\x72\x61\x69\x6C\x69\x6E\x67\x53\x6C\x61\x73\x68","\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79\x2F","\x66\x61\x6C\x73\x65","\x74\x72\x75\x65","\x22\x22","\x6E\x75\x6C\x6C","\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79\x2F\x61\x73\x73\x65\x74\x73","\x61\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x68\x65\x61\x64\x65\x72\x5F\x73\x68\x61\x70\x65","\x68\x65\x61\x64\x65\x72\x5F\x6F\x6E\x6C\x69\x6E\x65","\x6F\x6E\x6C\x69\x6E\x65\x5F\x6D\x65\x73\x73\x61\x67\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x65\x6D\x61\x69\x6C\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x73\x74\x61\x72\x74\x5F\x63\x68\x61\x74\x5F\x62\x75\x74\x74\x6F\x6E","\x6F\x66\x66\x6C\x69\x6E\x65\x5F\x6D\x65\x73\x73\x61\x67\x65","\x68\x65\x61\x64\x65\x72\x5F\x6F\x66\x66\x6C\x69\x6E\x65","\x65\x6E\x71\x75\x69\x72\x79\x5F\x6D\x65\x73\x73\x61\x67\x65\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x65\x6E\x71\x75\x69\x72\x79\x5F\x62\x75\x74\x74\x6F\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x5F\x74\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x72\x61\x74\x69\x6E\x67\x5F\x6D\x65\x73\x73\x61\x67\x65","\x72\x61\x74\x69\x6E\x67\x5F\x73\x65\x6E\x64","\x72\x61\x74\x69\x6E\x67\x5F\x73\x6B\x69\x70","\x61\x67\x65\x6E\x74\x73\x5F\x62\x75\x73\x79","\x6E\x61\x6D\x65\x5F\x74\x69\x74\x6C\x65","\x65\x6D\x61\x69\x6C\x5F\x74\x69\x74\x6C\x65","\x6D\x65\x73\x73\x61\x67\x65\x5F\x74\x69\x74\x6C\x65","\x72\x65\x6E\x64\x65\x72","\x57\x65\x62\x73\x69\x74\x65\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x66\x6F\x72\x6D\x61\x74","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x4F\x6E\x65","\x67\x65\x74\x53\x74\x79\x6C\x65\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x78\x43\x68\x61\x74\x74\x79\x20\x43\x53\x53\x3A","\x74\x65\x78\x74\x2F\x63\x73\x73","\x63\x73\x73","\x63\x6F\x6C\x6F\x72","\x63\x6F\x6C\x6F\x72\x5F\x66\x6F\x63\x75\x73","\x63\x6F\x6C\x6F\x72\x5F\x62\x75\x74\x74\x6F\x6E","\x67\x65\x74\x41\x73\x73\x65\x74\x73","\x75\x70\x6C\x6F\x61\x64\x65\x64","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x71\x75\x65\x72\x79","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x72\x65\x73\x6F\x75\x72\x63\x65","\x6A\x6F\x69\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73","\x78\x63\x68\x61\x74\x74\x79","\x61\x73\x73\x65\x74\x73","\x67\x65\x74\x4A\x71\x75\x65\x72\x79\x4C\x69\x62\x72\x61\x72\x79","\x6A\x71\x75\x65\x72\x79","\x67\x65\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x72\x6F\x6F\x6D\x5F\x69\x64","\x73\x65\x73\x73\x69\x6F\x6E","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x69\x73\x5F\x6E\x65\x77\x5F\x70\x61\x67\x65","\x64\x61\x74\x61","\x77\x68\x65\x72\x65","\x6C\x61\x73\x74\x5F\x69\x64","\x45\x72\x72\x6F\x72\x20\x67\x65\x74\x20\x63\x68\x61\x74\x20\x6D\x65\x73\x73\x61\x67\x65\x73\x3A","\x6A\x73\x6F\x6E\x70","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x65\x6E\x64\x4D\x65\x73\x73\x61\x67\x65","\x6C\x65\x6E\x67\x74\x68","\x67\x65\x74","\x4D\x65\x73\x73\x61\x67\x65","\x76\x69\x73\x69\x74\x6F\x72\x5F\x69\x64","\x63\x72\x65\x61\x74\x65","\x73\x69\x67\x6E\x6F\x75\x74\x43\x75\x73\x74\x6F\x6D\x65\x72","\x45\x72\x72\x6F\x72\x20\x76\x69\x73\x69\x74\x6F\x72\x20\x73\x69\x67\x6E\x6F\x75\x74\x3A","\x43\x68\x61\x74\x20\x52\x6F\x6F\x6D\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x43\x4C\x4F\x53\x45\x44","\x72\x65\x71\x75\x65\x73\x74\x65\x72","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64","\x73\x69\x67\x6E\x75\x70\x43\x75\x73\x74\x6F\x6D\x65\x72","\x67\x65\x74\x52\x65\x73\x75\x6C\x74","\x75\x73\x65\x72\x2D\x61\x67\x65\x6E\x74","\x68\x65\x61\x64\x65\x72\x73","\x73\x65\x74\x55\x41","\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65","\x70\x61\x72\x73\x65","\x78\x2D\x66\x6F\x72\x77\x61\x72\x64\x65\x64\x2D\x66\x6F\x72","\x72\x65\x6D\x6F\x74\x65\x41\x64\x64\x72\x65\x73\x73","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x69\x70","\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E","\x72\x65\x66\x65\x72\x65\x72","\x77\x65\x62\x63\x68\x61\x74","\x62\x72\x6F\x77\x73\x65\x72","\x20","\x76\x65\x72\x73\x69\x6F\x6E","\x65\x6E\x67\x69\x6E\x65","\x6F\x73","\x6D\x6F\x64\x65\x6C","\x64\x65\x76\x69\x63\x65","\x76\x65\x6E\x64\x6F\x72","\x74\x79\x70\x65","\x63\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x64\x61\x74\x61\x31","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x31","\x69\x73\x41\x72\x72\x61\x79","\x2C","\x64\x61\x74\x61\x32","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x33","\x45\x72\x72\x6F\x72\x20\x73\x75\x62\x6D\x69\x74\x69\x6E\x67\x20\x65\x6E\x71\x75\x69\x72\x79\x3A","\x61\x76\x61\x74\x61\x72","\x62\x61\x73\x65\x36\x34","\x65\x78\x74\x65\x72\x6E\x61\x6C","\x43\x68\x61\x74\x20\x57\x65\x62\x73\x69\x74\x65\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x4C\x69\x73\x74\x49\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x73\x75\x62\x6D\x69\x74\x45\x6E\x71\x75\x69\x72\x79","\x45\x6E\x71\x75\x69\x72\x79","\x65\x6E\x71\x75\x69\x72\x79","\x75\x6E\x73\x65\x72\x76\x65\x64","\x77\x65\x62\x73\x69\x74\x65\x49\x64","\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x31","\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x31","\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x32","\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x32","\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x33","\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x33","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x63\x6F\x6D\x6D\x69\x74","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x67\x65\x74\x54\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x45\x72\x72\x6F\x72\x20\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x69\x6E\x67\x20\x63\x68\x61\x74\x20\x74\x72\x61\x6E\x73\x63\x72\x69\x70\x74\x3A","\x72\x65\x70\x6C\x61\x63\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","","\x74\x65\x78\x74\x2F\x63\x73\x76","\x67\x65\x74\x48\x74\x6D\x6C\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x48\x54\x4D\x4C\x20\x74\x65\x6D\x70\x6C\x61\x74\x65\x3A","\x6C\x69\x63\x65\x6E\x73\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x64\x65\x63\x72\x79\x70\x74","\x65\x6E\x71\x75\x69\x72\x79\x5F\x65\x6E\x61\x62\x6C\x65","\x4F\x6E\x6C\x69\x6E\x65","\x63\x75\x73\x74\x6F\x6D","\x64\x65\x66\x61\x75\x6C\x74\x4C\x6F\x67\x6F","\x6C\x6F\x67\x6F","\x69\x6D\x61\x67\x65\x73\x2F","\x26\x75\x70\x6C\x6F\x61\x64\x65\x64","\x69\x6D\x61\x67\x65\x73\x2F\x6D\x6F\x74\x69\x6F\x6E\x4C\x6F\x67\x6F\x2E\x70\x6E\x67","\x64\x65\x66\x61\x75\x6C\x74\x57\x68\x69\x74\x65\x4C\x61\x62\x65\x6C","\x77\x68\x69\x74\x65\x4C\x61\x62\x65\x6C","\x3C\x61\x20\x68\x72\x65\x66\x3D\x22\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x78\x63\x61\x6C\x6C\x79\x6D\x6F\x74\x69\x6F\x6E\x2E\x63\x6F\x6D\x2F\x22\x20\x74\x61\x72\x67\x65\x74\x3D\x22\x5F\x62\x6C\x61\x6E\x6B\x22\x3E\x50\x6F\x77\x65\x72\x65\x64\x20\x62\x79\x20\x78\x43\x41\x4C\x4C\x59\x3C\x2F\x61\x3E","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x64\x69\x76\x5F\x67\x72\x6F\x75\x70\x22\x3E","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x20\x66\x6F\x72\x3D\x22\x25\x64\x22\x3E\x25\x73\x20\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x69\x6E\x64\x65\x78","\x6C\x61\x62\x65\x6C","\x72\x65\x71\x75\x69\x72\x65\x64","\x2A","\x3C\x69\x6E\x70\x75\x74\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x22\x20\x69\x64\x3D\x22\x25\x64\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x2F\x3E","\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x3C\x2F\x64\x69\x76\x3E","\x74\x65\x78\x74\x49\x6E\x70\x75\x74","\x3C\x74\x65\x78\x74\x61\x72\x65\x61\x20\x69\x64\x3D\x22\x25\x64\x22\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x3E\x3C\x2F\x74\x65\x78\x74\x61\x72\x65\x61\x3E","\x74\x65\x78\x74\x41\x72\x65\x61","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x3E\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x6F\x70\x74\x69\x6F\x6E\x73","\x3C\x6C\x61\x62\x65\x6C\x20\x73\x74\x79\x6C\x65\x3D\x22\x64\x69\x73\x70\x6C\x61\x79\x3A\x62\x6C\x6F\x63\x6B\x3B\x22\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x63\x68\x65\x63\x6B\x62\x6F\x78\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x63\x68\x65\x63\x6B\x62\x6F\x78","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x72\x61\x64\x69\x6F\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x72\x61\x64\x69\x6F","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x20\x66\x6F\x72\x3D\x22\x25\x64\x22\x3E\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x3C\x73\x65\x6C\x65\x63\x74\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x3E","\x3C\x6F\x70\x74\x69\x6F\x6E\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x25\x73\x3C\x2F\x6F\x70\x74\x69\x6F\x6E\x3E","\x3C\x2F\x73\x65\x6C\x65\x63\x74\x3E\x3C\x2F\x64\x69\x76\x3E","\x73\x65\x6C\x65\x63\x74","\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74","\x3C\x62\x72\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x68\x69\x64\x64\x65\x6E\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E","\x4F\x66\x66\x6C\x69\x6E\x65","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x20\x66\x6F\x72\x3D\x22\x6F\x66\x66\x6C\x69\x6E\x65\x25\x64\x22\x3E\x25\x73\x20\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x22\x20\x69\x64\x3D\x22\x6F\x66\x66\x6C\x69\x6E\x65\x25\x64\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x2F\x3E","\x3C\x74\x65\x78\x74\x61\x72\x65\x61\x20\x69\x64\x3D\x22\x6F\x66\x66\x6C\x69\x6E\x65\x25\x64\x22\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x3E\x3C\x2F\x74\x65\x78\x74\x61\x72\x65\x61\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x63\x68\x65\x63\x6B\x62\x6F\x78\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x72\x61\x64\x69\x6F\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x3C\x73\x65\x6C\x65\x63\x74\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x68\x69\x64\x64\x65\x6E\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x50\x72\x6F\x61\x63\x74\x69\x76\x65\x41\x63\x74\x69\x6F\x6E\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x70\x72\x6F\x61\x63\x74\x69\x76\x65\x20\x61\x63\x74\x69\x6F\x6E\x73\x3A","\x43\x68\x61\x74\x20\x57\x65\x62\x73\x69\x74\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x73\x65\x6C\x65\x63\x74\x6F\x72","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x65\x74\x52\x61\x74\x69\x6E\x67","\x45\x72\x72\x6F\x72\x20\x73\x65\x74\x20\x72\x61\x74\x69\x6E\x67\x3A","\x43\x68\x61\x74\x52\x6F\x6F\x6D\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x52\x61\x74\x69\x6E\x67","\x72\x61\x74\x69\x6E\x67","\x61\x62\x61\x6E\x64\x6F\x6E\x43\x75\x73\x74\x6F\x6D\x65\x72","\x45\x72\x72\x6F\x72\x20\x76\x69\x73\x69\x74\x6F\x72\x20\x61\x62\x61\x6E\x64\x6F\x6E\x3A","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x66\x6F\x72\x20\x76\x69\x73\x69\x74\x6F\x72\x20\x25\x64","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x72\x6F\x6F\x6D\x69\x64","\x67\x65\x74\x53\x74\x61\x74\x75\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x57\x65\x62\x73\x69\x74\x65\x20\x73\x74\x61\x74\x75\x73\x20\x65\x72\x72\x6F\x72","\x69\x73\x5F\x75\x6E\x73\x65\x72\x76\x65\x64","\x73\x69\x67\x6E\x65\x64\x5F\x75\x70","\x6F\x70\x65\x6E\x5F\x73\x74\x61\x74\x65","\x63\x6F\x75\x6E\x74","\x4F\x50\x45\x4E","\x61\x70\x70","\x71\x75\x65\x75\x65","\x55\x73\x65\x72\x73","\x6D\x61\x70","\x6D\x65\x72\x67\x65","\x75\x6E\x69\x71","\x61\x67\x65\x6E\x74","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x67\x65\x74\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x69\x73\x56\x61\x6C\x69\x64\x49\x6E\x74\x65\x72\x76\x61\x6C","\x73\x70\x6C\x69\x74","\x2D","\x74\x5F\x66\x72\x6F\x6D","\x48\x48\x3A\x6D\x6D","\x74\x5F\x74\x6F","\x77\x64\x5F\x66\x72\x6F\x6D","\x77\x64\x5F\x74\x6F","\x6D\x64\x5F\x66\x72\x6F\x6D","\x6D\x64\x5F\x74\x6F","\x6D\x5F\x66\x72\x6F\x6D","\x6D\x5F\x74\x6F"];_0x57a4[0];var _=require(_0x57a4[1]);var Mustache=require(_0x57a4[2]);var path=require(_0x57a4[3]);var md5=require(_0x57a4[4]);var UAParser=require(_0x57a4[5]);var uaParser= new UAParser();var languageParser=require(_0x57a4[6]);var csv=require(_0x57a4[7]);var util=require(_0x57a4[8]);var moment=require(_0x57a4[9]);var logger=require(_0x57a4[11])(_0x57a4[10]);var config=require(_0x57a4[12]);var xchatty_components=require(_0x57a4[13]);var Util=require(_0x57a4[14]);var license=require(_0x57a4[15]);var demoLicense={users:1,agents:1,telephones:0,chat:false,mail:false,fax:false,messaging:false,cm:false,dialer:false,jscripty:false,update:false,custom:false,description:_0x57a4[16]};var sequelize=require(_0x57a4[18])[_0x57a4[17]];var User=require(_0x57a4[18])[_0x57a4[19]];var Agent=require(_0x57a4[18])[_0x57a4[19]];var ChatRoom=require(_0x57a4[18])[_0x57a4[20]];var ChatEnquiry=require(_0x57a4[18])[_0x57a4[21]];var ChatVisitor=require(_0x57a4[18])[_0x57a4[22]];var ChatMessage=require(_0x57a4[18])[_0x57a4[23]];var ChatWebsite=require(_0x57a4[18])[_0x57a4[24]];var ChatWebsitesField=require(_0x57a4[18])[_0x57a4[25]];var ChatProactiveAction=require(_0x57a4[18])[_0x57a4[26]];var ReportChatSession=require(_0x57a4[18])[_0x57a4[27]];var ChatQueue=require(_0x57a4[18])[_0x57a4[28]];var License=require(_0x57a4[18])[_0x57a4[29]];var Xchatty=require(_0x57a4[18])[_0x57a4[30]];var Setting=require(_0x57a4[18])[_0x57a4[31]];var Contact=require(_0x57a4[18])[_0x57a4[32]];var Interval=require(_0x57a4[18])[_0x57a4[33]];const weekDaysCollection={mon:1,tue:2,wed:3,thu:4,fri:5,sat:6,sun:7};const monthsCollection={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12};var id=1;exports[_0x57a4[34]]= function(_0xcdedx25,_0xcdedx26){return ChatWebsite[_0x57a4[78]]({where:{id:_0xcdedx25[_0x57a4[46]][_0x57a4[45]]},attributes:[_0x57a4[45],_0x57a4[47],_0x57a4[55],_0x57a4[56],_0x57a4[57],_0x57a4[58],_0x57a4[59],_0x57a4[60],_0x57a4[61],_0x57a4[62],_0x57a4[63],_0x57a4[64],_0x57a4[65],_0x57a4[66],_0x57a4[67],_0x57a4[68],_0x57a4[69],_0x57a4[70],_0x57a4[71],_0x57a4[72],_0x57a4[73]]})[_0x57a4[77]](function(_0xcdedx28){if(_0xcdedx28){_0xcdedx26[_0x57a4[43]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x57a4[41],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x57a4[42]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0xcdedx29=xchatty_components[_0x57a4[44]];var _0xcdedx2a={websiteId:_0xcdedx25[_0x57a4[46]][_0x57a4[45]],rootPath:Util[_0x57a4[48]](_0xcdedx28[_0x57a4[47]])+ _0x57a4[49],signedUp:_0x57a4[50],windowFocused:_0x57a4[50],isNewPage:_0x57a4[51],processingSignUp:_0x57a4[50],processingEnquiry:_0x57a4[50],processingSend:_0x57a4[50],processingRating:_0x57a4[50],visitorFullname:_0x57a4[52],visitorAvatar:_0x57a4[52],timerReadMessages:_0x57a4[53],timerCheckStatus:_0x57a4[53],isOnline:_0x57a4[50],decayHistory:0,defaultTimeout:5000,isInitialStatusCheck:_0x57a4[51],muteNotificationSoundOnce:_0x57a4[50],assetBase:Util[_0x57a4[48]](_0xcdedx28[_0x57a4[47]])+ _0x57a4[54],hasSessionSaf:_0x57a4[50],restoreOpenState:_0x57a4[50],animateHover:_0xcdedx28[_0x57a4[55]],hideEmail:_0x57a4[50],hideOffline:_0x57a4[50],headerShape:_0xcdedx28[_0x57a4[56]],HeaderOnline:_0xcdedx28[_0x57a4[57]],OnlineMessage:_0xcdedx28[_0x57a4[58]],UsernamePlaceholder:_0xcdedx28[_0x57a4[59]],EmailPlaceholder:_0xcdedx28[_0x57a4[60]],StartChatButtonText:_0xcdedx28[_0x57a4[61]],OfflineMessage:_0xcdedx28[_0x57a4[62]],HeaderOffline:_0xcdedx28[_0x57a4[63]],EnquiryMessagePlaceholder:_0xcdedx28[_0x57a4[64]],EnquiryButtonText:_0xcdedx28[_0x57a4[65]],downloadTranscript:_0xcdedx28[_0x57a4[66]],RatingMessage:_0xcdedx28[_0x57a4[67]],RatingSend:_0xcdedx28[_0x57a4[68]],RatingSkip:_0xcdedx28[_0x57a4[69]],MessageAgentsBusy:_0xcdedx28[_0x57a4[70]],NameTitle:_0xcdedx28[_0x57a4[71]],EmailTitle:_0xcdedx28[_0x57a4[72]],MessageTitle:_0xcdedx28[_0x57a4[73]]};_0xcdedx29= Mustache[_0x57a4[74]](_0xcdedx29,_0xcdedx2a);return _0xcdedx26[_0x57a4[38]](_0xcdedx29)}else {throw  new Error(util[_0x57a4[76]](_0x57a4[75],_0xcdedx25[_0x57a4[46]][_0x57a4[45]]))}})[_0x57a4[40]](function(_0xcdedx27){logger[_0x57a4[37]](_0x57a4[35],_0xcdedx27[_0x57a4[36]]);return _0xcdedx26[_0x57a4[39]](500)[_0x57a4[38]](_0xcdedx27)})};exports[_0x57a4[79]]= function(_0xcdedx25,_0xcdedx26){ChatWebsite[_0x57a4[78]]({where:{id:_0xcdedx25[_0x57a4[46]][_0x57a4[45]]},attributes:[_0x57a4[45],_0x57a4[47],_0x57a4[83],_0x57a4[84],_0x57a4[85]]})[_0x57a4[77]](function(_0xcdedx28){if(_0xcdedx28){_0xcdedx26[_0x57a4[43]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x57a4[81],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x57a4[42]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0xcdedx2b=xchatty_components[_0x57a4[82]];var _0xcdedx2c={assetBase:Util[_0x57a4[48]](_0xcdedx28[_0x57a4[47]])+ _0x57a4[54],color:_0xcdedx28[_0x57a4[83]],colorFocus:_0xcdedx28[_0x57a4[84]],colorButton:_0xcdedx28[_0x57a4[85]]};_0xcdedx2b= Mustache[_0x57a4[74]](_0xcdedx2b,_0xcdedx2c);return _0xcdedx26[_0x57a4[38]](_0xcdedx2b)}else {throw  new Error(util[_0x57a4[76]](_0x57a4[75],_0xcdedx25[_0x57a4[46]][_0x57a4[45]]))}})[_0x57a4[40]](function(_0xcdedx27){logger[_0x57a4[37]](_0x57a4[80],_0xcdedx27[_0x57a4[36]]);return _0xcdedx26[_0x57a4[39]](500)[_0x57a4[38]](_0xcdedx27)})};exports[_0x57a4[86]]= function(_0xcdedx25,_0xcdedx26){if(_0xcdedx25[_0x57a4[89]][_0x57a4[88]](_0x57a4[87])){_0xcdedx26[_0x57a4[95]](path[_0x57a4[94]](config[_0x57a4[90]],_0x57a4[91],_0x57a4[92],_0xcdedx25[_0x57a4[89]][_0x57a4[93]]))}else {_0xcdedx26[_0x57a4[95]](path[_0x57a4[94]](config[_0x57a4[90]],_0x57a4[91],_0x57a4[96],_0x57a4[97],_0x57a4[98],_0xcdedx25[_0x57a4[89]][_0x57a4[93]]))}};exports[_0x57a4[99]]= function(_0xcdedx25,_0xcdedx26){_0xcdedx26[_0x57a4[43]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x57a4[41],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x57a4[42]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0xcdedx2d=xchatty_components[_0x57a4[100]];_0xcdedx26[_0x57a4[38]](_0xcdedx2d)};exports[_0x57a4[101]]= function(_0xcdedx25,_0xcdedx26){var _0xcdedx2e=_0xcdedx25[_0x57a4[46]][_0x57a4[45]];var _0xcdedx2f={where:{ChatRoomId:_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[102]]},attributes:[_0x57a4[45],_0x57a4[104],_0x57a4[105]],include:[{model:User,attributes:[_0x57a4[45],_0x57a4[106],_0x57a4[107],_0x57a4[108]]},{model:ChatVisitor,attributes:[_0x57a4[45],_0x57a4[107],_0x57a4[108]]}]};if(_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[109]]=== _0x57a4[50]){_0xcdedx2f[_0x57a4[111]][_0x57a4[45]]= {$gt:_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[112]]}};ChatMessage[_0x57a4[115]](_0xcdedx2f)[_0x57a4[77]](function(_0xcdedx30){var _0xcdedx31={success:true,messages:_0xcdedx30,composing:false,composing_fullname:null};return _0xcdedx26[_0x57a4[39]](200)[_0x57a4[114]](_0xcdedx31)})[_0x57a4[40]](function(_0xcdedx27){logger[_0x57a4[37]](_0x57a4[113],_0xcdedx27[_0x57a4[36]]);return _0xcdedx26[_0x57a4[39]](500)[_0x57a4[38]](_0xcdedx27)})};exports[_0x57a4[116]]= function(_0xcdedx25,_0xcdedx26){var _0xcdedx2e=_0xcdedx25[_0x57a4[46]][_0x57a4[45]];var _0xcdedx32;var _0xcdedx2f={where:{ChatRoomId:_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[102]]},include:[{model:User,attributes:[_0x57a4[45],_0x57a4[106],_0x57a4[107],_0x57a4[108]]},{model:ChatVisitor,attributes:[_0x57a4[45],_0x57a4[107],_0x57a4[108]]}]};if(_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[109]]=== _0x57a4[50]){_0xcdedx2f[_0x57a4[111]][_0x57a4[45]]= {$gt:_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[112]]}};return ChatMessage[_0x57a4[121]]({body:_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[119]][_0x57a4[36]],ChatRoomId:_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[102]],ChatVisitorId:_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[120]]})[_0x57a4[77]](function(_0xcdedx34){return ChatMessage[_0x57a4[115]](_0xcdedx2f)})[_0x57a4[77]](function(_0xcdedx30){for(var _0xcdedx33=0;_0xcdedx33< _0xcdedx30[_0x57a4[117]];_0xcdedx33++){_0xcdedx30[_0xcdedx33]= _0xcdedx30[_0xcdedx33][_0x57a4[118]]({plain:true})};var _0xcdedx31={errors:[],success:true,messages:_0xcdedx30?_0xcdedx30:[]};return _0xcdedx26[_0x57a4[39]](200)[_0x57a4[114]](_0xcdedx31)})[_0x57a4[40]](function(_0xcdedx27){logger[_0x57a4[37]](_0x57a4[113],_0xcdedx27[_0x57a4[36]]);return _0xcdedx26[_0x57a4[39]](500)[_0x57a4[38]](_0xcdedx27)})};exports[_0x57a4[122]]= function(_0xcdedx25,_0xcdedx26){var _0xcdedx2e=_0xcdedx25[_0x57a4[46]][_0x57a4[45]];return ChatRoom[_0x57a4[128]]({where:{id:_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[102]]},attributes:[_0x57a4[45]]})[_0x57a4[77]](function(_0xcdedx35){if(!_0xcdedx35){throw  new Error(util[_0x57a4[76]](_0x57a4[124],_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[102]]))};return _0xcdedx35[_0x57a4[127]]({status:_0x57a4[125],completeReason:_0x57a4[126]})})[_0x57a4[77]](function(){var _0xcdedx31={success:true,errors:[]};_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e]= {};return _0xcdedx26[_0x57a4[39]](200)[_0x57a4[114]](_0xcdedx31)})[_0x57a4[40]](function(_0xcdedx27){logger[_0x57a4[37]](_0x57a4[123],_0xcdedx27[_0x57a4[36]]);return _0xcdedx26[_0x57a4[39]](500)[_0x57a4[38]](_0xcdedx27)})};exports[_0x57a4[129]]= function(_0xcdedx25,_0xcdedx26){var _0xcdedx2e=_0xcdedx25[_0x57a4[46]][_0x57a4[45]];var _0xcdedx36=uaParser[_0x57a4[133]](_0xcdedx25[_0x57a4[132]][_0x57a4[131]])[_0x57a4[130]]();var _0xcdedx37=languageParser[_0x57a4[135]](_0xcdedx25[_0x57a4[132]][_0x57a4[134]]);var _0xcdedx38=_0xcdedx25[_0x57a4[132]][_0x57a4[136]]?_0xcdedx25[_0x57a4[132]][_0x57a4[136]]:_0xcdedx25[_0x57a4[138]][_0x57a4[137]]|| _0xcdedx25[_0x57a4[139]];var _0xcdedx39={fullname:_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[140]][_0x57a4[107]],email:_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[140]][_0x57a4[108]],remote_address:_0xcdedx38,user_agent:_0xcdedx25[_0x57a4[132]][_0x57a4[131]],visitor_language:_0xcdedx25[_0x57a4[132]][_0x57a4[134]],referer:_0xcdedx25[_0x57a4[132]][_0x57a4[141]],origin:_0x57a4[142],browser:_0xcdedx36[_0x57a4[143]][_0x57a4[106]]+ _0x57a4[144]+ _0xcdedx36[_0x57a4[143]][_0x57a4[145]],engine:_0xcdedx36[_0x57a4[146]][_0x57a4[106]]+ _0x57a4[144]+ _0xcdedx36[_0x57a4[146]][_0x57a4[145]],os:_0xcdedx36[_0x57a4[147]][_0x57a4[106]]+ _0x57a4[144]+ _0xcdedx36[_0x57a4[147]][_0x57a4[145]],device:_0xcdedx36[_0x57a4[149]][_0x57a4[148]]?_0xcdedx36[_0x57a4[149]][_0x57a4[148]]+ _0x57a4[144]+ _0xcdedx36[_0x57a4[149]][_0x57a4[150]]+ _0x57a4[144]+ _0xcdedx36[_0x57a4[149]][_0x57a4[151]]:null,ChatWebsiteId:_0xcdedx25[_0x57a4[89]][_0x57a4[152]]};if(_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[140]][_0x57a4[153]]&& _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[140]][_0x57a4[154]]){_0xcdedx39[_0x57a4[153]]= _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[140]][_0x57a4[153]];if(_[_0x57a4[155]](_0xcdedx39[_0x57a4[153]])){_0xcdedx39[_0x57a4[153]]= _[_0x57a4[94]](_0xcdedx39[_0x57a4[153]],_0x57a4[156])};_0xcdedx39[_0x57a4[154]]= _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[140]][_0x57a4[154]]};if(_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[140]][_0x57a4[157]]&& _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[140]][_0x57a4[158]]){_0xcdedx39[_0x57a4[157]]= _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[140]][_0x57a4[157]];if(_[_0x57a4[155]](_0xcdedx39[_0x57a4[157]])){_0xcdedx39[_0x57a4[157]]= _[_0x57a4[94]](_0xcdedx39[_0x57a4[157]],_0x57a4[156])};_0xcdedx39[_0x57a4[158]]= _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[140]][_0x57a4[158]]};if(_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[140]][_0x57a4[159]]&& _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[140]][_0x57a4[160]]){_0xcdedx39[_0x57a4[159]]= _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[140]][_0x57a4[159]];if(_[_0x57a4[155]](_0xcdedx39[_0x57a4[159]])){_0xcdedx39[_0x57a4[159]]= _[_0x57a4[94]](_0xcdedx39[_0x57a4[159]],_0x57a4[156])};_0xcdedx39[_0x57a4[160]]= _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[140]][_0x57a4[160]]};var _0xcdedx3a,_0xcdedx3b;return ChatVisitor[_0x57a4[121]](_0xcdedx39)[_0x57a4[77]](function(_0xcdedx3d){_0xcdedx3a= _0xcdedx3d;return ChatWebsite[_0x57a4[128]]({where:{id:_0xcdedx3a[_0x57a4[168]]},attributes:[_0x57a4[45],_0x57a4[106],_0x57a4[166]]})})[_0x57a4[77]](function(_0xcdedx3c){if(!_0xcdedx3c){throw  new Error(util[_0x57a4[76]](_0x57a4[165],_0xcdedx3a.ChatWebsiteId))};_0xcdedx3b= _0xcdedx3c;if(_0xcdedx3b[_0x57a4[166]]){return Contact[_0x57a4[167]]({where:{email:_0xcdedx3a[_0x57a4[108]]},defaults:{email:_0xcdedx3a[_0x57a4[108]],firstName:_0xcdedx3a[_0x57a4[107]],ListId:_0xcdedx3b[_0x57a4[166]]}})}})[_0x57a4[77]](function(){return ChatRoom[_0x57a4[121]]({type:_0x57a4[164],ChatVisitorId:_0xcdedx3a[_0x57a4[45]],ChatWebsiteId:_0xcdedx3b[_0x57a4[45]],contact:_0xcdedx3a[_0x57a4[108]],website:_0xcdedx3b[_0x57a4[106]]})})[_0x57a4[77]](function(_0xcdedx35){_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[107]]= _0xcdedx3a[_0x57a4[107]];_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[108]]= _0xcdedx3a[_0x57a4[108]];_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[162]]= md5(_0xcdedx3a[_0x57a4[108]]).toString(_0x57a4[163]);_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[120]]= _0xcdedx3a[_0x57a4[45]];var _0xcdedx31={success:true,errors:[],chatVisitor:{id:_0xcdedx3a[_0x57a4[45]]}};return _0xcdedx26[_0x57a4[39]](200)[_0x57a4[114]](_0xcdedx31)})[_0x57a4[40]](function(_0xcdedx27){logger[_0x57a4[37]](_0x57a4[161],_0xcdedx27[_0x57a4[36]]);return _0xcdedx26[_0x57a4[39]](500)[_0x57a4[38]](_0xcdedx27)})};exports[_0x57a4[169]]= function(_0xcdedx25,_0xcdedx26){return sequelize[_0x57a4[182]]()[_0x57a4[77]](function(_0xcdedx3e){var _0xcdedx38=_0xcdedx25[_0x57a4[132]][_0x57a4[136]]?_0xcdedx25[_0x57a4[132]][_0x57a4[136]]:_0xcdedx25[_0x57a4[138]][_0x57a4[137]]|| _0xcdedx25[_0x57a4[139]];var _0xcdedx36=uaParser[_0x57a4[133]](_0xcdedx25[_0x57a4[132]][_0x57a4[131]])[_0x57a4[130]]();var _0xcdedx37=languageParser[_0x57a4[135]](_0xcdedx25[_0x57a4[132]][_0x57a4[134]]);var _0xcdedx39={fullname:_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[107]],email:_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[108]],remote_address:_0xcdedx38,user_agent:_0xcdedx25[_0x57a4[132]][_0x57a4[131]],visitor_language:_0xcdedx25[_0x57a4[132]][_0x57a4[134]],browser:_0xcdedx36[_0x57a4[143]][_0x57a4[106]]+ _0x57a4[144]+ _0xcdedx36[_0x57a4[143]][_0x57a4[145]],engine:_0xcdedx36[_0x57a4[146]][_0x57a4[106]]+ _0x57a4[144]+ _0xcdedx36[_0x57a4[146]][_0x57a4[145]],os:_0xcdedx36[_0x57a4[147]][_0x57a4[106]]+ _0x57a4[144]+ _0xcdedx36[_0x57a4[147]][_0x57a4[145]],device:_0xcdedx36[_0x57a4[149]][_0x57a4[148]]?_0xcdedx36[_0x57a4[149]][_0x57a4[148]]+ _0x57a4[144]+ _0xcdedx36[_0x57a4[149]][_0x57a4[150]]+ _0x57a4[144]+ _0xcdedx36[_0x57a4[149]][_0x57a4[151]]:null,referer:_0xcdedx25[_0x57a4[132]][_0x57a4[141]],origin:_0x57a4[171],status:_0x57a4[172],ChatWebsiteId:parseInt(_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[173]],10),ChatEnquiry:{username:_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[107]],email:_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[108]],text:_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[36]],ChatWebsiteId:parseInt(_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[173]],10)}};if(_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[174]]&& _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[175]]){_0xcdedx39[_0x57a4[174]]= _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[174]];if(_[_0x57a4[155]](_0xcdedx39[_0x57a4[174]])){_0xcdedx39[_0x57a4[174]]= _[_0x57a4[94]](_0xcdedx39[_0x57a4[174]],_0x57a4[156])};_0xcdedx39[_0x57a4[175]]= _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[175]]};if(_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[176]]&& _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[177]]){_0xcdedx39[_0x57a4[176]]= _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[176]];if(_[_0x57a4[155]](_0xcdedx39[_0x57a4[176]])){_0xcdedx39[_0x57a4[176]]= _[_0x57a4[94]](_0xcdedx39[_0x57a4[176]],_0x57a4[156])};_0xcdedx39[_0x57a4[177]]= _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[177]]};if(_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[178]]&& _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[179]]){_0xcdedx39[_0x57a4[178]]= _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[178]];if(_[_0x57a4[155]](_0xcdedx39[_0x57a4[178]])){_0xcdedx39[_0x57a4[178]]= _[_0x57a4[94]](_0xcdedx39[_0x57a4[178]],_0x57a4[156])};_0xcdedx39[_0x57a4[179]]= _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[170]][_0x57a4[179]]};var _0xcdedx3a;return ChatVisitor[_0x57a4[121]](_0xcdedx39,{transaction:_0xcdedx3e,include:[{model:ChatEnquiry}]})[_0x57a4[77]](function(_0xcdedx3d){_0xcdedx3a= _0xcdedx3d;return ChatWebsite[_0x57a4[78]]({where:{id:_0xcdedx3a[_0x57a4[168]]},attributes:[_0x57a4[45],_0x57a4[166]]})})[_0x57a4[77]](function(_0xcdedx3c){if(!_0xcdedx3c){throw  new Error(util[_0x57a4[76]](_0x57a4[165],_0xcdedx3a.ChatWebsiteId))};if(_0xcdedx3c[_0x57a4[166]]){return Contact[_0x57a4[167]]({where:{email:_0xcdedx3a[_0x57a4[108]]},defaults:{email:_0xcdedx3a[_0x57a4[108]],firstName:_0xcdedx3a[_0x57a4[107]],ListId:_0xcdedx3c[_0x57a4[166]]}})};return})[_0x57a4[77]](function(){_0xcdedx3e[_0x57a4[181]]();return _0xcdedx26[_0x57a4[39]](200)[_0x57a4[114]]({success:true,errors:[]})})[_0x57a4[40]](function(_0xcdedx27){_0xcdedx3e[_0x57a4[180]]();logger[_0x57a4[37]](_0x57a4[161],_0xcdedx27[_0x57a4[36]]);return _0xcdedx26[_0x57a4[39]](500)[_0x57a4[38]](_0xcdedx27)})})};exports[_0x57a4[183]]= function(_0xcdedx25,_0xcdedx26){var _0xcdedx2e=_0xcdedx25[_0x57a4[46]][_0x57a4[45]];if(_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e]&& _0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[120]]&& _0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[102]]){ChatMessage[_0x57a4[115]]({where:{ChatRoomId:_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[102]]},attributes:[_0x57a4[45],_0x57a4[104],_0x57a4[105]],include:[{model:Agent,attributes:[_0x57a4[45],_0x57a4[107]]},{model:ChatVisitor,attributes:[_0x57a4[45],_0x57a4[107]]}]})[_0x57a4[77]](function(_0xcdedx30){var _0xcdedx3f=[];if(_0xcdedx30&& _0xcdedx30[_0x57a4[117]]> 0){_0xcdedx30[_0x57a4[187]](function(_0xcdedx34){_0xcdedx34= _0xcdedx34[_0x57a4[118]]({plain:true});var _0xcdedx40={name:_0xcdedx34[_0x57a4[19]]?_0xcdedx34[_0x57a4[19]][_0x57a4[107]]:_0xcdedx34[_0x57a4[22]][_0x57a4[107]],text:_0xcdedx34[_0x57a4[104]][_0x57a4[185]](/(\r\n|\n|\r)/gm,_0x57a4[144]),date:_0xcdedx34[_0x57a4[105]]};_0xcdedx3f[_0x57a4[186]](_0xcdedx40)})}else {_0xcdedx3f[_0x57a4[186]]({name:_0x57a4[188],text:_0x57a4[188],date:_0x57a4[188]})};var _0xcdedx41=csv(_0xcdedx3f);_0xcdedx26[_0x57a4[151]](_0x57a4[189])[_0x57a4[39]](200)[_0x57a4[38]](_0xcdedx41)})[_0x57a4[40]](function(_0xcdedx27){logger[_0x57a4[37]](_0x57a4[184],_0xcdedx27[_0x57a4[36]]);return _0xcdedx26[_0x57a4[39]](500)[_0x57a4[38]](_0xcdedx27)})}};exports[_0x57a4[190]]= function(_0xcdedx25,_0xcdedx26){var _0xcdedx28,_0xcdedx42,_0xcdedx43;var _0xcdedx44=xchatty_components[_0x57a4[191]];return ChatWebsite[_0x57a4[243]](_0xcdedx25[_0x57a4[46]][_0x57a4[45]],{include:[{model:ChatWebsitesField,as:_0x57a4[197]},{model:ChatWebsitesField,as:_0x57a4[235]}],attributes:[_0x57a4[45],_0x57a4[47],_0x57a4[56],_0x57a4[196],_0x57a4[199],_0x57a4[200],_0x57a4[204]]})[_0x57a4[77]](function(_0xcdedx3b){if(!_0xcdedx3b){throw  new Error(util[_0x57a4[76]](_0x57a4[165],_0xcdedx25[_0x57a4[46]][_0x57a4[45]]))};_0xcdedx28= _0xcdedx3b;return License[_0x57a4[243]](1)})[_0x57a4[77]](function(_0xcdedx45){if(_0xcdedx45){_0xcdedx42= JSON[_0x57a4[135]](license[_0x57a4[195]](_0xcdedx45[_0x57a4[194]][_0x57a4[193]],_0xcdedx45[_0x57a4[153]]))}else {_0xcdedx42= demoLicense};var _0xcdedx46={rootPath:Util[_0x57a4[48]](_0xcdedx28[_0x57a4[47]])+ _0x57a4[49],assetBase:Util[_0x57a4[48]](_0xcdedx28[_0x57a4[47]])+ _0x57a4[54],websiteId:_0xcdedx28[_0x57a4[45]],headerShape:_0xcdedx28[_0x57a4[56]],enquiryEnable:_0xcdedx28[_0x57a4[196]],onlineFields:_0xcdedx28[_0x57a4[197]],logo:function(){if(_0xcdedx42[_0x57a4[198]]&&  !_0xcdedx28[_0x57a4[199]]&& _0xcdedx28[_0x57a4[200]]){return _0x57a4[201]+ _0xcdedx28[_0x57a4[200]]+ _0x57a4[202]}else {return _0x57a4[203]}},whiteLabel:function(){if(_0xcdedx42[_0x57a4[198]]&&  !_0xcdedx28[_0x57a4[204]]){return _0xcdedx28[_0x57a4[205]]}else {return _0x57a4[206]}},renderedOnlineField:function(){var _0xcdedx47=_0x57a4[188];var _0xcdedx48=this;switch(this[_0x57a4[232]]){case _0x57a4[216]:_0xcdedx47= _0x57a4[207];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[208],_0xcdedx48[_0x57a4[209]],_0xcdedx48[_0x57a4[210]],_0xcdedx48[_0x57a4[211]]?_0x57a4[212]:_0x57a4[188]);_0xcdedx47+= util[_0x57a4[76]](_0x57a4[213],_0xcdedx48[_0x57a4[210]],_0xcdedx48[_0x57a4[209]],_0xcdedx48[_0x57a4[209]]+ 1,_0xcdedx48[_0x57a4[214]],_0xcdedx48[_0x57a4[211]]?_0x57a4[211]:_0x57a4[188]);_0xcdedx47+= _0x57a4[215];break;case _0x57a4[218]:_0xcdedx47= _0x57a4[207];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[208],_0xcdedx48[_0x57a4[209]],_0xcdedx48[_0x57a4[210]],_0xcdedx48[_0x57a4[211]]?_0x57a4[212]:_0x57a4[188]);_0xcdedx47+= util[_0x57a4[76]](_0x57a4[217],_0xcdedx48[_0x57a4[209]],_0xcdedx48[_0x57a4[210]],_0xcdedx48[_0x57a4[209]]+ 1,_0xcdedx48[_0x57a4[214]],_0xcdedx48[_0x57a4[211]]?_0x57a4[211]:_0x57a4[188]);_0xcdedx47+= _0x57a4[215];break;case _0x57a4[224]:_0xcdedx47= _0x57a4[207];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[219],_0xcdedx48[_0x57a4[210]]);_[_0x57a4[187]](_0xcdedx48[_0x57a4[220]],function(_0xcdedx49){_0xcdedx47+= _0x57a4[221];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[222],_0xcdedx48[_0x57a4[209]]+ 1,_0xcdedx49,_0xcdedx49);_0xcdedx47+= _0x57a4[223]});_0xcdedx47+= _0x57a4[215];break;case _0x57a4[226]:_0xcdedx47= _0x57a4[207];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[219],_0xcdedx48[_0x57a4[210]]);_[_0x57a4[187]](_0xcdedx48[_0x57a4[220]],function(_0xcdedx49){_0xcdedx47+= _0x57a4[221];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[225],_0xcdedx48[_0x57a4[209]]+ 1,_0xcdedx49,_0xcdedx49);_0xcdedx47+= _0x57a4[223]});_0xcdedx47+= _0x57a4[215];break;case _0x57a4[231]:_0xcdedx47= _0x57a4[207];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[227],_0xcdedx48[_0x57a4[209]],_0xcdedx48[_0x57a4[210]]);_0xcdedx47+= util[_0x57a4[76]](_0x57a4[228],_0xcdedx48[_0x57a4[209]]+ 1);_[_0x57a4[187]](_0xcdedx48[_0x57a4[220]],function(_0xcdedx49){_0xcdedx47+= util[_0x57a4[76]](_0x57a4[229],_0xcdedx49,_0xcdedx49)});_0xcdedx47+= _0x57a4[230];break};_0xcdedx47+= _0x57a4[233];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[234],_0xcdedx48[_0x57a4[209]]+ 1,_0xcdedx48[_0x57a4[210]]);return _0xcdedx47},offlineFields:_0xcdedx28[_0x57a4[235]],renderedOfflineField:function(){var _0xcdedx47=_0x57a4[188];var _0xcdedx48=this;switch(this[_0x57a4[232]]){case _0x57a4[216]:_0xcdedx47= _0x57a4[207];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[236],_0xcdedx48[_0x57a4[209]],_0xcdedx48[_0x57a4[210]],_0xcdedx48[_0x57a4[211]]?_0x57a4[212]:_0x57a4[188]);_0xcdedx47+= util[_0x57a4[76]](_0x57a4[237],_0xcdedx48[_0x57a4[210]],_0xcdedx48[_0x57a4[209]],_0xcdedx48[_0x57a4[209]]+ 1,_0xcdedx48[_0x57a4[214]],_0xcdedx48[_0x57a4[211]]?_0x57a4[211]:_0x57a4[188]);_0xcdedx47+= _0x57a4[215];break;case _0x57a4[218]:_0xcdedx47= _0x57a4[207];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[236],_0xcdedx48[_0x57a4[209]],_0xcdedx48[_0x57a4[210]],_0xcdedx48[_0x57a4[211]]?_0x57a4[212]:_0x57a4[188]);_0xcdedx47+= util[_0x57a4[76]](_0x57a4[238],_0xcdedx48[_0x57a4[209]],_0xcdedx48[_0x57a4[210]],_0xcdedx48[_0x57a4[209]]+ 1,_0xcdedx48[_0x57a4[214]],_0xcdedx48[_0x57a4[211]]?_0x57a4[211]:_0x57a4[188]);_0xcdedx47+= _0x57a4[215];break;case _0x57a4[224]:_0xcdedx47= _0x57a4[207];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[219],_0xcdedx48[_0x57a4[210]]);_[_0x57a4[187]](_0xcdedx48[_0x57a4[220]],function(_0xcdedx49){_0xcdedx47+= _0x57a4[221];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[239],_0xcdedx48[_0x57a4[209]]+ 1,_0xcdedx49,_0xcdedx49);_0xcdedx47+= _0x57a4[223]});_0xcdedx47+= _0x57a4[215];break;case _0x57a4[226]:_0xcdedx47= _0x57a4[207];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[219],_0xcdedx48[_0x57a4[210]]);_[_0x57a4[187]](_0xcdedx48[_0x57a4[220]],function(_0xcdedx49){_0xcdedx47+= _0x57a4[221];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[240],_0xcdedx48[_0x57a4[209]]+ 1,_0xcdedx49,_0xcdedx49);_0xcdedx47+= _0x57a4[223]});_0xcdedx47+= _0x57a4[215];break;case _0x57a4[231]:_0xcdedx47= _0x57a4[207];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[219],_0xcdedx48[_0x57a4[210]]);_0xcdedx47+= util[_0x57a4[76]](_0x57a4[241],_0xcdedx48[_0x57a4[209]]+ 1);_[_0x57a4[187]](_0xcdedx48[_0x57a4[220]],function(_0xcdedx49){_0xcdedx47+= util[_0x57a4[76]](_0x57a4[229],_0xcdedx49,_0xcdedx49)});_0xcdedx47+= _0x57a4[230];break};_0xcdedx47+= _0x57a4[233];_0xcdedx47+= util[_0x57a4[76]](_0x57a4[242],_0xcdedx48[_0x57a4[209]]+ 1,_0xcdedx48[_0x57a4[210]]);return _0xcdedx47}};_0xcdedx44= Mustache[_0x57a4[74]](_0xcdedx44,_0xcdedx46);return _0xcdedx26[_0x57a4[39]](200)[_0x57a4[114]](_0xcdedx44)})[_0x57a4[40]](function(_0xcdedx27){logger[_0x57a4[37]](_0x57a4[192],_0xcdedx27[_0x57a4[36]]);return _0xcdedx26[_0x57a4[39]](500)[_0x57a4[114]]({message:_0xcdedx27[_0x57a4[36]]})})};exports[_0x57a4[244]]= function(_0xcdedx25,_0xcdedx26){return ChatWebsite[_0x57a4[243]](_0xcdedx25[_0x57a4[46]][_0x57a4[45]],{include:[{model:ChatProactiveAction,attributes:[_0x57a4[151],_0x57a4[247],_0x57a4[248]]}],attributes:[_0x57a4[45]]})[_0x57a4[77]](function(_0xcdedx28){if(!_0xcdedx28){logger[_0x57a4[37]](_0x57a4[246],_0xcdedx25[_0x57a4[46]][_0x57a4[45]]);return _0xcdedx26[_0x57a4[39]](400)[_0x57a4[114]]({})};return _0xcdedx26[_0x57a4[39]](200)[_0x57a4[114]](_0xcdedx28.ChatProactiveActions)})[_0x57a4[40]](function(_0xcdedx27){logger[_0x57a4[37]](_0x57a4[245],_0xcdedx27[_0x57a4[36]]);return _0xcdedx26[_0x57a4[39]](500)[_0x57a4[114]]({message:_0xcdedx27[_0x57a4[36]]})})};exports[_0x57a4[249]]= function(_0xcdedx25,_0xcdedx26){return ChatRoom[_0x57a4[128]]({where:{id:_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[252]][_0x57a4[102]]},attributes:[_0x57a4[45]]})[_0x57a4[77]](function(_0xcdedx35){if(!_0xcdedx35){throw  new Error(util[_0x57a4[76]](_0x57a4[251],_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[252]][_0x57a4[102]]))};if(_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[252]][_0x57a4[88]](_0x57a4[253])&& _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[252]][_0x57a4[88]](_0x57a4[36])){return _0xcdedx35[_0x57a4[127]]({rating:_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[252]][_0x57a4[253]],ratingMessage:_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[252]][_0x57a4[36]]})};return})[_0x57a4[77]](function(){return _0xcdedx26[_0x57a4[39]](200)[_0x57a4[114]]({})})[_0x57a4[40]](function(_0xcdedx27){logger[_0x57a4[37]](_0x57a4[250],_0xcdedx27[_0x57a4[36]]);return _0xcdedx26[_0x57a4[39]](500)[_0x57a4[114]]({message:_0xcdedx27[_0x57a4[36]]})})};exports[_0x57a4[254]]= function(_0xcdedx25,_0xcdedx26){var _0xcdedx2e=_0xcdedx25[_0x57a4[46]][_0x57a4[45]];if(_0xcdedx25[_0x57a4[103]]&& _0xcdedx25[_0x57a4[103]][_0x57a4[97]]){if(_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0x57a4[88]](_0xcdedx2e)&& _0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[88]](_0x57a4[120])&& _0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[120]]> 0){return ReportChatSession[_0x57a4[128]]({where:{visitorid:_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[120]],leaveAt:null},attributes:[_0x57a4[45],_0x57a4[258]]})[_0x57a4[77]](function(_0xcdedx4a){if(!_0xcdedx4a){throw  new Error(util[_0x57a4[76]](_0x57a4[256],_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[120]]))};return _0xcdedx4a[_0x57a4[127]]({abandon:true,leaveAt:moment()[_0x57a4[76]](_0x57a4[257])})})[_0x57a4[77]](function(){return _0xcdedx26[_0x57a4[39]](200)[_0x57a4[114]]({})})[_0x57a4[40]](function(_0xcdedx27){logger[_0x57a4[37]](_0x57a4[255],_0xcdedx27[_0x57a4[36]]);return _0xcdedx26[_0x57a4[39]](500)[_0x57a4[114]]({message:_0xcdedx27[_0x57a4[36]]})})}};return _0xcdedx26[_0x57a4[39]](200)[_0x57a4[114]]({})};exports[_0x57a4[259]]= function(_0xcdedx25,_0xcdedx26){if(!_0xcdedx25[_0x57a4[103]][_0x57a4[97]]){_0xcdedx25[_0x57a4[103]][_0x57a4[97]]= {}};if(!_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx25[_0x57a4[46]][_0x57a4[45]]]){_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx25[_0x57a4[46]][_0x57a4[45]]]= {}};var _0xcdedx2e=_0xcdedx25[_0x57a4[46]][_0x57a4[45]];var _0xcdedx4b={};var _0xcdedx4c=[];return ChatWebsite[_0x57a4[78]]({where:{id:_0xcdedx2e},attributes:[_0x57a4[45]]})[_0x57a4[77]](function(_0xcdedx3c){if(!_0xcdedx3c){logger[_0x57a4[37]](_0x57a4[246],_0xcdedx25[_0x57a4[46]][_0x57a4[45]]);throw  new Error(_0x57a4[246],_0xcdedx25[_0x57a4[46]][_0x57a4[45]])};return _0xcdedx3c[_0x57a4[276]]({attributes:[_0x57a4[45],_0x57a4[266],_0x57a4[274]],include:[{model:ChatQueue,attributes:[_0x57a4[45],_0x57a4[106]],include:[{model:Agent,attributes:[_0x57a4[45],_0x57a4[106]]}]},{model:Agent,attributes:[_0x57a4[45],_0x57a4[106]]},{model:Interval,attributes:[_0x57a4[274]],include:[{model:Interval,as:_0x57a4[275],attributes:[_0x57a4[274]]}]}]})})[_0x57a4[77]](function(_0xcdedx4f){_[_0x57a4[187]](_0xcdedx4f,function(_0xcdedx50){if(checkAppInterval(_0xcdedx50)){if(_0xcdedx50[_0x57a4[266]]=== _0x57a4[267]){if(_0xcdedx50[_0x57a4[28]][_0x57a4[88]](_0x57a4[268])&& _0xcdedx50[_0x57a4[28]][_0x57a4[268]][_0x57a4[117]]> 0){_0xcdedx4c= _[_0x57a4[271]](_[_0x57a4[270]](_0xcdedx4c,_[_0x57a4[269]](_0xcdedx50[_0x57a4[28]].Users,_0x57a4[45])))}}else {if(_0xcdedx50[_0x57a4[266]]=== _0x57a4[272]){_0xcdedx4c[_0x57a4[186]](_0xcdedx50[_0x57a4[19]][_0x57a4[45]]);_0xcdedx4c= _[_0x57a4[271]](_0xcdedx4c)}}}});return Agent[_0x57a4[273]]({where:{online:true,id:{$in:_0xcdedx4c}},attributes:[_0x57a4[45]]})})[_0x57a4[77]](function(_0xcdedx4e){if(_0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[263]]){_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[263]]= _0xcdedx25[_0x57a4[89]][_0x57a4[110]][_0x57a4[263]]=== _0x57a4[51]?true:false};_0xcdedx4b= {success:true,has_session_saf:null,signed_up:_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[102]]?true:false,fullname:_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[107]]|| _0x57a4[188],email:_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[108]]|| _0x57a4[188],avatar:_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[162]]|| _0x57a4[188],open_state:_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[263]]|| _0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[102]]?true:false,online:_0xcdedx4e[_0x57a4[264]]?true:false,is_unserved:false,room_id:0};if(_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[120]]){return ChatRoom[_0x57a4[78]]({where:{ChatVisitorId:_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[120]],status:_0x57a4[265],token:{$ne:_0x57a4[188]}},attributes:[_0x57a4[45]]})};return})[_0x57a4[77]](function(_0xcdedx35){if(_0xcdedx35){_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[102]]= _0xcdedx35[_0x57a4[45]];_0xcdedx4b[_0x57a4[102]]= _0xcdedx35[_0x57a4[45]];_0xcdedx4b[_0x57a4[262]]= true}else {_0xcdedx4b[_0x57a4[262]]= false};if(_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[120]]){return ChatVisitor[_0x57a4[78]]({where:{id:_0xcdedx25[_0x57a4[103]][_0x57a4[97]][_0xcdedx2e][_0x57a4[120]],status:_0x57a4[172]},attributes:[_0x57a4[45]]})};return})[_0x57a4[77]](function(_0xcdedx4d){if(_0xcdedx4d){_0xcdedx4b[_0x57a4[261]]= true};return _0xcdedx26[_0x57a4[39]](200)[_0x57a4[114]](_0xcdedx4b)})[_0x57a4[40]](function(_0xcdedx27){logger[_0x57a4[37]](_0x57a4[260],_0xcdedx27);return _0xcdedx26[_0x57a4[39]](500)[_0x57a4[114]]({})})};function checkAppInterval(_0xcdedx50){var _0xcdedx52=true;if(_0xcdedx50[_0x57a4[33]]){for(var _0xcdedx53=0;_0xcdedx53< _0xcdedx50[_0x57a4[33]][_0x57a4[275]][_0x57a4[117]];_0xcdedx53++){if(Util[_0x57a4[277]](splitInterval(_0xcdedx50[_0x57a4[33]][_0x57a4[275]][_0xcdedx53][_0x57a4[274]]))){break}else {_0xcdedx52= false}}}else {if(!Util[_0x57a4[277]](splitInterval(_0xcdedx50[_0x57a4[274]]))){_0xcdedx52= false}};return _0xcdedx52}function splitInterval(_0xcdedx55){var _0xcdedx56={};var _0xcdedx57=_0xcdedx55[_0x57a4[278]](_0x57a4[156]);var _0xcdedx58;_0xcdedx57[_0x57a4[187]](function(_0xcdedx48,_0xcdedx59){switch(_0xcdedx59){case 0:if(_0xcdedx48!== _0x57a4[212]){_0xcdedx58= _0xcdedx48[_0x57a4[278]](_0x57a4[279]);_0xcdedx56[_0x57a4[280]]= moment(_0xcdedx58[0],_0x57a4[281]);_0xcdedx56[_0x57a4[282]]= moment(_0xcdedx58[1],_0x57a4[281])}else {_0xcdedx56[_0x57a4[280]]= null;_0xcdedx56[_0x57a4[282]]= null};break;case 1:if(_0xcdedx48!== _0x57a4[212]){_0xcdedx58= _0xcdedx48[_0x57a4[278]](_0x57a4[279]);_0xcdedx56[_0x57a4[283]]= weekDaysCollection[_0xcdedx58[0]];_0xcdedx56[_0x57a4[284]]= _0xcdedx58[1]?weekDaysCollection[_0xcdedx58[1]]:null}else {_0xcdedx56[_0x57a4[283]]= null;_0xcdedx56[_0x57a4[284]]= null};break;case 2:if(_0xcdedx48!== _0x57a4[212]){_0xcdedx58= _0xcdedx48[_0x57a4[278]](_0x57a4[279]);_0xcdedx56[_0x57a4[285]]= _0xcdedx58[0];_0xcdedx56[_0x57a4[286]]= _0xcdedx58[1]?_0xcdedx58[1]:null}else {_0xcdedx56[_0x57a4[285]]= null;_0xcdedx56[_0x57a4[286]]= null};break;case 3:if(_0xcdedx48!== _0x57a4[212]){_0xcdedx58= _0xcdedx48[_0x57a4[278]](_0x57a4[279]);_0xcdedx56[_0x57a4[287]]= monthsCollection[_0xcdedx58[0]];_0xcdedx56[_0x57a4[288]]= _0xcdedx58[1]?monthsCollection[_0xcdedx58[1]]:null}else {_0xcdedx56[_0x57a4[287]]= null;_0xcdedx56[_0x57a4[288]]= null};break;default:}});return _0xcdedx56}
\ No newline at end of file
+var _0x6a27=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x75\x73\x74\x61\x63\x68\x65","\x70\x61\x74\x68","\x6D\x64\x35","\x75\x61\x2D\x70\x61\x72\x73\x65\x72\x2D\x6A\x73","\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65\x2D\x70\x61\x72\x73\x65\x72","\x74\x6F\x2D\x63\x73\x76","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x2F\x78\x63\x68\x61\x74\x74\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x44\x45\x4D\x4F\x20\x4C\x49\x43\x45\x4E\x53\x45","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x73\x46\x69\x65\x6C\x64","\x43\x68\x61\x74\x50\x72\x6F\x61\x63\x74\x69\x76\x65\x41\x63\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x4C\x69\x63\x65\x6E\x73\x65","\x58\x63\x68\x61\x74\x74\x79","\x53\x65\x74\x74\x69\x6E\x67","\x43\x6F\x6E\x74\x61\x63\x74","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x67\x65\x74\x4A\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x78\x43\x68\x61\x74\x74\x79\x20\x4A\x53\x3A","\x6D\x65\x73\x73\x61\x67\x65","\x65\x72\x72\x6F\x72","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74","\x6E\x6F\x77","\x73\x65\x74","\x6A\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x72\x65\x6D\x6F\x74\x65","\x73\x74\x72\x69\x70\x54\x72\x61\x69\x6C\x69\x6E\x67\x53\x6C\x61\x73\x68","\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79\x2F","\x66\x61\x6C\x73\x65","\x74\x72\x75\x65","\x22\x22","\x6E\x75\x6C\x6C","\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79\x2F\x61\x73\x73\x65\x74\x73","\x61\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x68\x65\x61\x64\x65\x72\x5F\x73\x68\x61\x70\x65","\x68\x65\x61\x64\x65\x72\x5F\x6F\x6E\x6C\x69\x6E\x65","\x6F\x6E\x6C\x69\x6E\x65\x5F\x6D\x65\x73\x73\x61\x67\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x65\x6D\x61\x69\x6C\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x73\x74\x61\x72\x74\x5F\x63\x68\x61\x74\x5F\x62\x75\x74\x74\x6F\x6E","\x6F\x66\x66\x6C\x69\x6E\x65\x5F\x6D\x65\x73\x73\x61\x67\x65","\x68\x65\x61\x64\x65\x72\x5F\x6F\x66\x66\x6C\x69\x6E\x65","\x65\x6E\x71\x75\x69\x72\x79\x5F\x6D\x65\x73\x73\x61\x67\x65\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x65\x6E\x71\x75\x69\x72\x79\x5F\x62\x75\x74\x74\x6F\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x5F\x74\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x72\x61\x74\x69\x6E\x67\x5F\x6D\x65\x73\x73\x61\x67\x65","\x72\x61\x74\x69\x6E\x67\x5F\x73\x65\x6E\x64","\x72\x61\x74\x69\x6E\x67\x5F\x73\x6B\x69\x70","\x61\x67\x65\x6E\x74\x73\x5F\x62\x75\x73\x79","\x6E\x61\x6D\x65\x5F\x74\x69\x74\x6C\x65","\x65\x6D\x61\x69\x6C\x5F\x74\x69\x74\x6C\x65","\x6D\x65\x73\x73\x61\x67\x65\x5F\x74\x69\x74\x6C\x65","\x72\x65\x6E\x64\x65\x72","\x57\x65\x62\x73\x69\x74\x65\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x66\x6F\x72\x6D\x61\x74","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x4F\x6E\x65","\x67\x65\x74\x53\x74\x79\x6C\x65\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x78\x43\x68\x61\x74\x74\x79\x20\x43\x53\x53\x3A","\x74\x65\x78\x74\x2F\x63\x73\x73","\x63\x73\x73","\x63\x6F\x6C\x6F\x72","\x63\x6F\x6C\x6F\x72\x5F\x66\x6F\x63\x75\x73","\x63\x6F\x6C\x6F\x72\x5F\x62\x75\x74\x74\x6F\x6E","\x67\x65\x74\x41\x73\x73\x65\x74\x73","\x75\x70\x6C\x6F\x61\x64\x65\x64","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x71\x75\x65\x72\x79","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x72\x65\x73\x6F\x75\x72\x63\x65","\x6A\x6F\x69\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73","\x78\x63\x68\x61\x74\x74\x79","\x61\x73\x73\x65\x74\x73","\x67\x65\x74\x4A\x71\x75\x65\x72\x79\x4C\x69\x62\x72\x61\x72\x79","\x6A\x71\x75\x65\x72\x79","\x67\x65\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x72\x6F\x6F\x6D\x5F\x69\x64","\x73\x65\x73\x73\x69\x6F\x6E","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x69\x73\x5F\x6E\x65\x77\x5F\x70\x61\x67\x65","\x64\x61\x74\x61","\x77\x68\x65\x72\x65","\x6C\x61\x73\x74\x5F\x69\x64","\x45\x72\x72\x6F\x72\x20\x67\x65\x74\x20\x63\x68\x61\x74\x20\x6D\x65\x73\x73\x61\x67\x65\x73\x3A","\x6A\x73\x6F\x6E\x70","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x65\x6E\x64\x4D\x65\x73\x73\x61\x67\x65","\x6C\x65\x6E\x67\x74\x68","\x67\x65\x74","\x4D\x65\x73\x73\x61\x67\x65","\x76\x69\x73\x69\x74\x6F\x72\x5F\x69\x64","\x63\x72\x65\x61\x74\x65","\x73\x69\x67\x6E\x6F\x75\x74\x43\x75\x73\x74\x6F\x6D\x65\x72","\x45\x72\x72\x6F\x72\x20\x76\x69\x73\x69\x74\x6F\x72\x20\x73\x69\x67\x6E\x6F\x75\x74\x3A","\x43\x68\x61\x74\x20\x52\x6F\x6F\x6D\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x43\x4C\x4F\x53\x45\x44","\x72\x65\x71\x75\x65\x73\x74\x65\x72","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64","\x73\x69\x67\x6E\x75\x70\x43\x75\x73\x74\x6F\x6D\x65\x72","\x67\x65\x74\x52\x65\x73\x75\x6C\x74","\x75\x73\x65\x72\x2D\x61\x67\x65\x6E\x74","\x68\x65\x61\x64\x65\x72\x73","\x73\x65\x74\x55\x41","\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65","\x70\x61\x72\x73\x65","\x78\x2D\x66\x6F\x72\x77\x61\x72\x64\x65\x64\x2D\x66\x6F\x72","\x72\x65\x6D\x6F\x74\x65\x41\x64\x64\x72\x65\x73\x73","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x69\x70","\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E","\x72\x65\x66\x65\x72\x65\x72","\x77\x65\x62\x63\x68\x61\x74","\x62\x72\x6F\x77\x73\x65\x72","\x20","\x76\x65\x72\x73\x69\x6F\x6E","\x65\x6E\x67\x69\x6E\x65","\x6F\x73","\x6D\x6F\x64\x65\x6C","\x64\x65\x76\x69\x63\x65","\x76\x65\x6E\x64\x6F\x72","\x74\x79\x70\x65","\x63\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x64\x61\x74\x61\x31","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x31","\x69\x73\x41\x72\x72\x61\x79","\x2C","\x64\x61\x74\x61\x32","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x33","\x45\x72\x72\x6F\x72\x20\x73\x75\x62\x6D\x69\x74\x69\x6E\x67\x20\x65\x6E\x71\x75\x69\x72\x79\x3A","\x61\x76\x61\x74\x61\x72","\x62\x61\x73\x65\x36\x34","\x65\x78\x74\x65\x72\x6E\x61\x6C","\x43\x68\x61\x74\x20\x57\x65\x62\x73\x69\x74\x65\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x4C\x69\x73\x74\x49\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x73\x75\x62\x6D\x69\x74\x45\x6E\x71\x75\x69\x72\x79","\x45\x6E\x71\x75\x69\x72\x79","\x65\x6E\x71\x75\x69\x72\x79","\x75\x6E\x73\x65\x72\x76\x65\x64","\x77\x65\x62\x73\x69\x74\x65\x49\x64","\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x31","\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x31","\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x32","\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x32","\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x33","\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x33","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x63\x6F\x6D\x6D\x69\x74","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x67\x65\x74\x54\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x45\x72\x72\x6F\x72\x20\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x69\x6E\x67\x20\x63\x68\x61\x74\x20\x74\x72\x61\x6E\x73\x63\x72\x69\x70\x74\x3A","\x72\x65\x70\x6C\x61\x63\x65","\x4C\x20\x4C\x54\x53","\x70\x75\x73\x68","","\x74\x65\x78\x74\x2F\x63\x73\x76","\x41\x53\x43","\x67\x65\x74\x48\x74\x6D\x6C\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x48\x54\x4D\x4C\x20\x74\x65\x6D\x70\x6C\x61\x74\x65\x3A","\x6C\x69\x63\x65\x6E\x73\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x64\x65\x63\x72\x79\x70\x74","\x65\x6E\x71\x75\x69\x72\x79\x5F\x65\x6E\x61\x62\x6C\x65","\x4F\x6E\x6C\x69\x6E\x65","\x63\x75\x73\x74\x6F\x6D","\x64\x65\x66\x61\x75\x6C\x74\x4C\x6F\x67\x6F","\x6C\x6F\x67\x6F","\x69\x6D\x61\x67\x65\x73\x2F","\x26\x75\x70\x6C\x6F\x61\x64\x65\x64","\x69\x6D\x61\x67\x65\x73\x2F\x6D\x6F\x74\x69\x6F\x6E\x4C\x6F\x67\x6F\x2E\x70\x6E\x67","\x64\x65\x66\x61\x75\x6C\x74\x57\x68\x69\x74\x65\x4C\x61\x62\x65\x6C","\x77\x68\x69\x74\x65\x4C\x61\x62\x65\x6C","\x3C\x61\x20\x68\x72\x65\x66\x3D\x22\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x78\x63\x61\x6C\x6C\x79\x6D\x6F\x74\x69\x6F\x6E\x2E\x63\x6F\x6D\x2F\x22\x20\x74\x61\x72\x67\x65\x74\x3D\x22\x5F\x62\x6C\x61\x6E\x6B\x22\x3E\x50\x6F\x77\x65\x72\x65\x64\x20\x62\x79\x20\x78\x43\x41\x4C\x4C\x59\x3C\x2F\x61\x3E","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x64\x69\x76\x5F\x67\x72\x6F\x75\x70\x22\x3E","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x20\x66\x6F\x72\x3D\x22\x25\x64\x22\x3E\x25\x73\x20\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x69\x6E\x64\x65\x78","\x6C\x61\x62\x65\x6C","\x72\x65\x71\x75\x69\x72\x65\x64","\x2A","\x3C\x69\x6E\x70\x75\x74\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x22\x20\x69\x64\x3D\x22\x25\x64\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x2F\x3E","\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x3C\x2F\x64\x69\x76\x3E","\x74\x65\x78\x74\x49\x6E\x70\x75\x74","\x3C\x74\x65\x78\x74\x61\x72\x65\x61\x20\x69\x64\x3D\x22\x25\x64\x22\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x3E\x3C\x2F\x74\x65\x78\x74\x61\x72\x65\x61\x3E","\x74\x65\x78\x74\x41\x72\x65\x61","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x3E\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x6F\x70\x74\x69\x6F\x6E\x73","\x3C\x6C\x61\x62\x65\x6C\x20\x73\x74\x79\x6C\x65\x3D\x22\x64\x69\x73\x70\x6C\x61\x79\x3A\x62\x6C\x6F\x63\x6B\x3B\x22\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x63\x68\x65\x63\x6B\x62\x6F\x78\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x66\x6F\x72\x45\x61\x63\x68","\x63\x68\x65\x63\x6B\x62\x6F\x78","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x72\x61\x64\x69\x6F\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x72\x61\x64\x69\x6F","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x20\x66\x6F\x72\x3D\x22\x25\x64\x22\x3E\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x3C\x73\x65\x6C\x65\x63\x74\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x3E","\x3C\x6F\x70\x74\x69\x6F\x6E\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x25\x73\x3C\x2F\x6F\x70\x74\x69\x6F\x6E\x3E","\x3C\x2F\x73\x65\x6C\x65\x63\x74\x3E\x3C\x2F\x64\x69\x76\x3E","\x73\x65\x6C\x65\x63\x74","\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74","\x3C\x62\x72\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x68\x69\x64\x64\x65\x6E\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E","\x4F\x66\x66\x6C\x69\x6E\x65","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x20\x66\x6F\x72\x3D\x22\x6F\x66\x66\x6C\x69\x6E\x65\x25\x64\x22\x3E\x25\x73\x20\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x22\x20\x69\x64\x3D\x22\x6F\x66\x66\x6C\x69\x6E\x65\x25\x64\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x2F\x3E","\x3C\x74\x65\x78\x74\x61\x72\x65\x61\x20\x69\x64\x3D\x22\x6F\x66\x66\x6C\x69\x6E\x65\x25\x64\x22\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x3E\x3C\x2F\x74\x65\x78\x74\x61\x72\x65\x61\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x63\x68\x65\x63\x6B\x62\x6F\x78\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x72\x61\x64\x69\x6F\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x3C\x73\x65\x6C\x65\x63\x74\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x68\x69\x64\x64\x65\x6E\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x50\x72\x6F\x61\x63\x74\x69\x76\x65\x41\x63\x74\x69\x6F\x6E\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x70\x72\x6F\x61\x63\x74\x69\x76\x65\x20\x61\x63\x74\x69\x6F\x6E\x73\x3A","\x43\x68\x61\x74\x20\x57\x65\x62\x73\x69\x74\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x73\x65\x6C\x65\x63\x74\x6F\x72","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x65\x74\x52\x61\x74\x69\x6E\x67","\x45\x72\x72\x6F\x72\x20\x73\x65\x74\x20\x72\x61\x74\x69\x6E\x67\x3A","\x43\x68\x61\x74\x52\x6F\x6F\x6D\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x52\x61\x74\x69\x6E\x67","\x72\x61\x74\x69\x6E\x67","\x61\x62\x61\x6E\x64\x6F\x6E\x43\x75\x73\x74\x6F\x6D\x65\x72","\x45\x72\x72\x6F\x72\x20\x76\x69\x73\x69\x74\x6F\x72\x20\x61\x62\x61\x6E\x64\x6F\x6E\x3A","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x66\x6F\x72\x20\x76\x69\x73\x69\x74\x6F\x72\x20\x25\x64","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x72\x6F\x6F\x6D\x69\x64","\x67\x65\x74\x53\x74\x61\x74\x75\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x57\x65\x62\x73\x69\x74\x65\x20\x73\x74\x61\x74\x75\x73\x20\x65\x72\x72\x6F\x72","\x69\x73\x5F\x75\x6E\x73\x65\x72\x76\x65\x64","\x73\x69\x67\x6E\x65\x64\x5F\x75\x70","\x6F\x70\x65\x6E\x5F\x73\x74\x61\x74\x65","\x63\x6F\x75\x6E\x74","\x4F\x50\x45\x4E","\x61\x70\x70","\x71\x75\x65\x75\x65","\x55\x73\x65\x72\x73","\x6D\x61\x70","\x6D\x65\x72\x67\x65","\x75\x6E\x69\x71","\x61\x67\x65\x6E\x74","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x67\x65\x74\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x69\x73\x56\x61\x6C\x69\x64\x49\x6E\x74\x65\x72\x76\x61\x6C","\x73\x70\x6C\x69\x74","\x2D","\x74\x5F\x66\x72\x6F\x6D","\x48\x48\x3A\x6D\x6D","\x74\x5F\x74\x6F","\x77\x64\x5F\x66\x72\x6F\x6D","\x77\x64\x5F\x74\x6F","\x6D\x64\x5F\x66\x72\x6F\x6D","\x6D\x64\x5F\x74\x6F","\x6D\x5F\x66\x72\x6F\x6D","\x6D\x5F\x74\x6F"];_0x6a27[0];var _=require(_0x6a27[1]);var Mustache=require(_0x6a27[2]);var path=require(_0x6a27[3]);var md5=require(_0x6a27[4]);var UAParser=require(_0x6a27[5]);var uaParser= new UAParser();var languageParser=require(_0x6a27[6]);var csv=require(_0x6a27[7]);var util=require(_0x6a27[8]);var moment=require(_0x6a27[9]);var logger=require(_0x6a27[11])(_0x6a27[10]);var config=require(_0x6a27[12]);var xchatty_components=require(_0x6a27[13]);var Util=require(_0x6a27[14]);var license=require(_0x6a27[15]);var demoLicense={users:1,agents:1,telephones:0,chat:false,mail:false,fax:false,messaging:false,cm:false,dialer:false,jscripty:false,update:false,custom:false,description:_0x6a27[16]};var sequelize=require(_0x6a27[18])[_0x6a27[17]];var User=require(_0x6a27[18])[_0x6a27[19]];var Agent=require(_0x6a27[18])[_0x6a27[19]];var ChatRoom=require(_0x6a27[18])[_0x6a27[20]];var ChatEnquiry=require(_0x6a27[18])[_0x6a27[21]];var ChatVisitor=require(_0x6a27[18])[_0x6a27[22]];var ChatMessage=require(_0x6a27[18])[_0x6a27[23]];var ChatWebsite=require(_0x6a27[18])[_0x6a27[24]];var ChatWebsitesField=require(_0x6a27[18])[_0x6a27[25]];var ChatProactiveAction=require(_0x6a27[18])[_0x6a27[26]];var ReportChatSession=require(_0x6a27[18])[_0x6a27[27]];var ChatQueue=require(_0x6a27[18])[_0x6a27[28]];var License=require(_0x6a27[18])[_0x6a27[29]];var Xchatty=require(_0x6a27[18])[_0x6a27[30]];var Setting=require(_0x6a27[18])[_0x6a27[31]];var Contact=require(_0x6a27[18])[_0x6a27[32]];var Interval=require(_0x6a27[18])[_0x6a27[33]];const weekDaysCollection={mon:1,tue:2,wed:3,thu:4,fri:5,sat:6,sun:7};const monthsCollection={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12};var id=1;exports[_0x6a27[34]]= function(_0xaf4fx25,_0xaf4fx26){return ChatWebsite[_0x6a27[78]]({where:{id:_0xaf4fx25[_0x6a27[46]][_0x6a27[45]]},attributes:[_0x6a27[45],_0x6a27[47],_0x6a27[55],_0x6a27[56],_0x6a27[57],_0x6a27[58],_0x6a27[59],_0x6a27[60],_0x6a27[61],_0x6a27[62],_0x6a27[63],_0x6a27[64],_0x6a27[65],_0x6a27[66],_0x6a27[67],_0x6a27[68],_0x6a27[69],_0x6a27[70],_0x6a27[71],_0x6a27[72],_0x6a27[73]]})[_0x6a27[77]](function(_0xaf4fx28){if(_0xaf4fx28){_0xaf4fx26[_0x6a27[43]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x6a27[41],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x6a27[42]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0xaf4fx29=xchatty_components[_0x6a27[44]];var _0xaf4fx2a={websiteId:_0xaf4fx25[_0x6a27[46]][_0x6a27[45]],rootPath:Util[_0x6a27[48]](_0xaf4fx28[_0x6a27[47]])+ _0x6a27[49],signedUp:_0x6a27[50],windowFocused:_0x6a27[50],isNewPage:_0x6a27[51],processingSignUp:_0x6a27[50],processingEnquiry:_0x6a27[50],processingSend:_0x6a27[50],processingRating:_0x6a27[50],visitorFullname:_0x6a27[52],visitorAvatar:_0x6a27[52],timerReadMessages:_0x6a27[53],timerCheckStatus:_0x6a27[53],isOnline:_0x6a27[50],decayHistory:0,defaultTimeout:5000,isInitialStatusCheck:_0x6a27[51],muteNotificationSoundOnce:_0x6a27[50],assetBase:Util[_0x6a27[48]](_0xaf4fx28[_0x6a27[47]])+ _0x6a27[54],hasSessionSaf:_0x6a27[50],restoreOpenState:_0x6a27[50],animateHover:_0xaf4fx28[_0x6a27[55]],hideEmail:_0x6a27[50],hideOffline:_0x6a27[50],headerShape:_0xaf4fx28[_0x6a27[56]],HeaderOnline:_0xaf4fx28[_0x6a27[57]],OnlineMessage:_0xaf4fx28[_0x6a27[58]],UsernamePlaceholder:_0xaf4fx28[_0x6a27[59]],EmailPlaceholder:_0xaf4fx28[_0x6a27[60]],StartChatButtonText:_0xaf4fx28[_0x6a27[61]],OfflineMessage:_0xaf4fx28[_0x6a27[62]],HeaderOffline:_0xaf4fx28[_0x6a27[63]],EnquiryMessagePlaceholder:_0xaf4fx28[_0x6a27[64]],EnquiryButtonText:_0xaf4fx28[_0x6a27[65]],downloadTranscript:_0xaf4fx28[_0x6a27[66]],RatingMessage:_0xaf4fx28[_0x6a27[67]],RatingSend:_0xaf4fx28[_0x6a27[68]],RatingSkip:_0xaf4fx28[_0x6a27[69]],MessageAgentsBusy:_0xaf4fx28[_0x6a27[70]],NameTitle:_0xaf4fx28[_0x6a27[71]],EmailTitle:_0xaf4fx28[_0x6a27[72]],MessageTitle:_0xaf4fx28[_0x6a27[73]]};_0xaf4fx29= Mustache[_0x6a27[74]](_0xaf4fx29,_0xaf4fx2a);return _0xaf4fx26[_0x6a27[38]](_0xaf4fx29)}else {throw  new Error(util[_0x6a27[76]](_0x6a27[75],_0xaf4fx25[_0x6a27[46]][_0x6a27[45]]))}})[_0x6a27[40]](function(_0xaf4fx27){logger[_0x6a27[37]](_0x6a27[35],_0xaf4fx27[_0x6a27[36]]);return _0xaf4fx26[_0x6a27[39]](500)[_0x6a27[38]](_0xaf4fx27)})};exports[_0x6a27[79]]= function(_0xaf4fx25,_0xaf4fx26){ChatWebsite[_0x6a27[78]]({where:{id:_0xaf4fx25[_0x6a27[46]][_0x6a27[45]]},attributes:[_0x6a27[45],_0x6a27[47],_0x6a27[83],_0x6a27[84],_0x6a27[85]]})[_0x6a27[77]](function(_0xaf4fx28){if(_0xaf4fx28){_0xaf4fx26[_0x6a27[43]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x6a27[81],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x6a27[42]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0xaf4fx2b=xchatty_components[_0x6a27[82]];var _0xaf4fx2c={assetBase:Util[_0x6a27[48]](_0xaf4fx28[_0x6a27[47]])+ _0x6a27[54],color:_0xaf4fx28[_0x6a27[83]],colorFocus:_0xaf4fx28[_0x6a27[84]],colorButton:_0xaf4fx28[_0x6a27[85]]};_0xaf4fx2b= Mustache[_0x6a27[74]](_0xaf4fx2b,_0xaf4fx2c);return _0xaf4fx26[_0x6a27[38]](_0xaf4fx2b)}else {throw  new Error(util[_0x6a27[76]](_0x6a27[75],_0xaf4fx25[_0x6a27[46]][_0x6a27[45]]))}})[_0x6a27[40]](function(_0xaf4fx27){logger[_0x6a27[37]](_0x6a27[80],_0xaf4fx27[_0x6a27[36]]);return _0xaf4fx26[_0x6a27[39]](500)[_0x6a27[38]](_0xaf4fx27)})};exports[_0x6a27[86]]= function(_0xaf4fx25,_0xaf4fx26){if(_0xaf4fx25[_0x6a27[89]][_0x6a27[88]](_0x6a27[87])){_0xaf4fx26[_0x6a27[95]](path[_0x6a27[94]](config[_0x6a27[90]],_0x6a27[91],_0x6a27[92],_0xaf4fx25[_0x6a27[89]][_0x6a27[93]]))}else {_0xaf4fx26[_0x6a27[95]](path[_0x6a27[94]](config[_0x6a27[90]],_0x6a27[91],_0x6a27[96],_0x6a27[97],_0x6a27[98],_0xaf4fx25[_0x6a27[89]][_0x6a27[93]]))}};exports[_0x6a27[99]]= function(_0xaf4fx25,_0xaf4fx26){_0xaf4fx26[_0x6a27[43]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x6a27[41],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x6a27[42]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0xaf4fx2d=xchatty_components[_0x6a27[100]];_0xaf4fx26[_0x6a27[38]](_0xaf4fx2d)};exports[_0x6a27[101]]= function(_0xaf4fx25,_0xaf4fx26){var _0xaf4fx2e=_0xaf4fx25[_0x6a27[46]][_0x6a27[45]];var _0xaf4fx2f={where:{ChatRoomId:_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[102]]},attributes:[_0x6a27[45],_0x6a27[104],_0x6a27[105]],include:[{model:User,attributes:[_0x6a27[45],_0x6a27[106],_0x6a27[107],_0x6a27[108]]},{model:ChatVisitor,attributes:[_0x6a27[45],_0x6a27[107],_0x6a27[108]]}]};if(_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[109]]=== _0x6a27[50]){_0xaf4fx2f[_0x6a27[111]][_0x6a27[45]]= {$gt:_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[112]]}};ChatMessage[_0x6a27[115]](_0xaf4fx2f)[_0x6a27[77]](function(_0xaf4fx30){var _0xaf4fx31={success:true,messages:_0xaf4fx30,composing:false,composing_fullname:null};return _0xaf4fx26[_0x6a27[39]](200)[_0x6a27[114]](_0xaf4fx31)})[_0x6a27[40]](function(_0xaf4fx27){logger[_0x6a27[37]](_0x6a27[113],_0xaf4fx27[_0x6a27[36]]);return _0xaf4fx26[_0x6a27[39]](500)[_0x6a27[38]](_0xaf4fx27)})};exports[_0x6a27[116]]= function(_0xaf4fx25,_0xaf4fx26){var _0xaf4fx2e=_0xaf4fx25[_0x6a27[46]][_0x6a27[45]];var _0xaf4fx32;var _0xaf4fx2f={where:{ChatRoomId:_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[102]]},include:[{model:User,attributes:[_0x6a27[45],_0x6a27[106],_0x6a27[107],_0x6a27[108]]},{model:ChatVisitor,attributes:[_0x6a27[45],_0x6a27[107],_0x6a27[108]]}]};if(_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[109]]=== _0x6a27[50]){_0xaf4fx2f[_0x6a27[111]][_0x6a27[45]]= {$gt:_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[112]]}};return ChatMessage[_0x6a27[121]]({body:_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[119]][_0x6a27[36]],ChatRoomId:_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[102]],ChatVisitorId:_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[120]]})[_0x6a27[77]](function(_0xaf4fx34){return ChatMessage[_0x6a27[115]](_0xaf4fx2f)})[_0x6a27[77]](function(_0xaf4fx30){for(var _0xaf4fx33=0;_0xaf4fx33< _0xaf4fx30[_0x6a27[117]];_0xaf4fx33++){_0xaf4fx30[_0xaf4fx33]= _0xaf4fx30[_0xaf4fx33][_0x6a27[118]]({plain:true})};var _0xaf4fx31={errors:[],success:true,messages:_0xaf4fx30?_0xaf4fx30:[]};return _0xaf4fx26[_0x6a27[39]](200)[_0x6a27[114]](_0xaf4fx31)})[_0x6a27[40]](function(_0xaf4fx27){logger[_0x6a27[37]](_0x6a27[113],_0xaf4fx27[_0x6a27[36]]);return _0xaf4fx26[_0x6a27[39]](500)[_0x6a27[38]](_0xaf4fx27)})};exports[_0x6a27[122]]= function(_0xaf4fx25,_0xaf4fx26){var _0xaf4fx2e=_0xaf4fx25[_0x6a27[46]][_0x6a27[45]];return ChatRoom[_0x6a27[128]]({where:{id:_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[102]]},attributes:[_0x6a27[45]]})[_0x6a27[77]](function(_0xaf4fx35){if(!_0xaf4fx35){throw  new Error(util[_0x6a27[76]](_0x6a27[124],_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[102]]))};return _0xaf4fx35[_0x6a27[127]]({status:_0x6a27[125],completeReason:_0x6a27[126]})})[_0x6a27[77]](function(){var _0xaf4fx31={success:true,errors:[]};_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e]= {};return _0xaf4fx26[_0x6a27[39]](200)[_0x6a27[114]](_0xaf4fx31)})[_0x6a27[40]](function(_0xaf4fx27){logger[_0x6a27[37]](_0x6a27[123],_0xaf4fx27[_0x6a27[36]]);return _0xaf4fx26[_0x6a27[39]](500)[_0x6a27[38]](_0xaf4fx27)})};exports[_0x6a27[129]]= function(_0xaf4fx25,_0xaf4fx26){var _0xaf4fx2e=_0xaf4fx25[_0x6a27[46]][_0x6a27[45]];var _0xaf4fx36=uaParser[_0x6a27[133]](_0xaf4fx25[_0x6a27[132]][_0x6a27[131]])[_0x6a27[130]]();var _0xaf4fx37=languageParser[_0x6a27[135]](_0xaf4fx25[_0x6a27[132]][_0x6a27[134]]);var _0xaf4fx38=_0xaf4fx25[_0x6a27[132]][_0x6a27[136]]?_0xaf4fx25[_0x6a27[132]][_0x6a27[136]]:_0xaf4fx25[_0x6a27[138]][_0x6a27[137]]|| _0xaf4fx25[_0x6a27[139]];var _0xaf4fx39={fullname:_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[140]][_0x6a27[107]],email:_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[140]][_0x6a27[108]],remote_address:_0xaf4fx38,user_agent:_0xaf4fx25[_0x6a27[132]][_0x6a27[131]],visitor_language:_0xaf4fx25[_0x6a27[132]][_0x6a27[134]],referer:_0xaf4fx25[_0x6a27[132]][_0x6a27[141]],origin:_0x6a27[142],browser:_0xaf4fx36[_0x6a27[143]][_0x6a27[106]]+ _0x6a27[144]+ _0xaf4fx36[_0x6a27[143]][_0x6a27[145]],engine:_0xaf4fx36[_0x6a27[146]][_0x6a27[106]]+ _0x6a27[144]+ _0xaf4fx36[_0x6a27[146]][_0x6a27[145]],os:_0xaf4fx36[_0x6a27[147]][_0x6a27[106]]+ _0x6a27[144]+ _0xaf4fx36[_0x6a27[147]][_0x6a27[145]],device:_0xaf4fx36[_0x6a27[149]][_0x6a27[148]]?_0xaf4fx36[_0x6a27[149]][_0x6a27[148]]+ _0x6a27[144]+ _0xaf4fx36[_0x6a27[149]][_0x6a27[150]]+ _0x6a27[144]+ _0xaf4fx36[_0x6a27[149]][_0x6a27[151]]:null,ChatWebsiteId:_0xaf4fx25[_0x6a27[89]][_0x6a27[152]]};if(_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[140]][_0x6a27[153]]&& _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[140]][_0x6a27[154]]){_0xaf4fx39[_0x6a27[153]]= _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[140]][_0x6a27[153]];if(_[_0x6a27[155]](_0xaf4fx39[_0x6a27[153]])){_0xaf4fx39[_0x6a27[153]]= _[_0x6a27[94]](_0xaf4fx39[_0x6a27[153]],_0x6a27[156])};_0xaf4fx39[_0x6a27[154]]= _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[140]][_0x6a27[154]]};if(_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[140]][_0x6a27[157]]&& _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[140]][_0x6a27[158]]){_0xaf4fx39[_0x6a27[157]]= _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[140]][_0x6a27[157]];if(_[_0x6a27[155]](_0xaf4fx39[_0x6a27[157]])){_0xaf4fx39[_0x6a27[157]]= _[_0x6a27[94]](_0xaf4fx39[_0x6a27[157]],_0x6a27[156])};_0xaf4fx39[_0x6a27[158]]= _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[140]][_0x6a27[158]]};if(_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[140]][_0x6a27[159]]&& _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[140]][_0x6a27[160]]){_0xaf4fx39[_0x6a27[159]]= _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[140]][_0x6a27[159]];if(_[_0x6a27[155]](_0xaf4fx39[_0x6a27[159]])){_0xaf4fx39[_0x6a27[159]]= _[_0x6a27[94]](_0xaf4fx39[_0x6a27[159]],_0x6a27[156])};_0xaf4fx39[_0x6a27[160]]= _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[140]][_0x6a27[160]]};var _0xaf4fx3a,_0xaf4fx3b;return ChatVisitor[_0x6a27[121]](_0xaf4fx39)[_0x6a27[77]](function(_0xaf4fx3d){_0xaf4fx3a= _0xaf4fx3d;return ChatWebsite[_0x6a27[128]]({where:{id:_0xaf4fx3a[_0x6a27[168]]},attributes:[_0x6a27[45],_0x6a27[106],_0x6a27[166]]})})[_0x6a27[77]](function(_0xaf4fx3c){if(!_0xaf4fx3c){throw  new Error(util[_0x6a27[76]](_0x6a27[165],_0xaf4fx3a.ChatWebsiteId))};_0xaf4fx3b= _0xaf4fx3c;if(_0xaf4fx3b[_0x6a27[166]]){return Contact[_0x6a27[167]]({where:{email:_0xaf4fx3a[_0x6a27[108]]},defaults:{email:_0xaf4fx3a[_0x6a27[108]],firstName:_0xaf4fx3a[_0x6a27[107]],ListId:_0xaf4fx3b[_0x6a27[166]]}})}})[_0x6a27[77]](function(){return ChatRoom[_0x6a27[121]]({type:_0x6a27[164],ChatVisitorId:_0xaf4fx3a[_0x6a27[45]],ChatWebsiteId:_0xaf4fx3b[_0x6a27[45]],contact:_0xaf4fx3a[_0x6a27[108]],website:_0xaf4fx3b[_0x6a27[106]]})})[_0x6a27[77]](function(_0xaf4fx35){_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[107]]= _0xaf4fx3a[_0x6a27[107]];_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[108]]= _0xaf4fx3a[_0x6a27[108]];_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[162]]= md5(_0xaf4fx3a[_0x6a27[108]]).toString(_0x6a27[163]);_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[120]]= _0xaf4fx3a[_0x6a27[45]];var _0xaf4fx31={success:true,errors:[],chatVisitor:{id:_0xaf4fx3a[_0x6a27[45]]}};return _0xaf4fx26[_0x6a27[39]](200)[_0x6a27[114]](_0xaf4fx31)})[_0x6a27[40]](function(_0xaf4fx27){logger[_0x6a27[37]](_0x6a27[161],_0xaf4fx27[_0x6a27[36]]);return _0xaf4fx26[_0x6a27[39]](500)[_0x6a27[38]](_0xaf4fx27)})};exports[_0x6a27[169]]= function(_0xaf4fx25,_0xaf4fx26){return sequelize[_0x6a27[182]]()[_0x6a27[77]](function(_0xaf4fx3e){var _0xaf4fx38=_0xaf4fx25[_0x6a27[132]][_0x6a27[136]]?_0xaf4fx25[_0x6a27[132]][_0x6a27[136]]:_0xaf4fx25[_0x6a27[138]][_0x6a27[137]]|| _0xaf4fx25[_0x6a27[139]];var _0xaf4fx36=uaParser[_0x6a27[133]](_0xaf4fx25[_0x6a27[132]][_0x6a27[131]])[_0x6a27[130]]();var _0xaf4fx37=languageParser[_0x6a27[135]](_0xaf4fx25[_0x6a27[132]][_0x6a27[134]]);var _0xaf4fx39={fullname:_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[107]],email:_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[108]],remote_address:_0xaf4fx38,user_agent:_0xaf4fx25[_0x6a27[132]][_0x6a27[131]],visitor_language:_0xaf4fx25[_0x6a27[132]][_0x6a27[134]],browser:_0xaf4fx36[_0x6a27[143]][_0x6a27[106]]+ _0x6a27[144]+ _0xaf4fx36[_0x6a27[143]][_0x6a27[145]],engine:_0xaf4fx36[_0x6a27[146]][_0x6a27[106]]+ _0x6a27[144]+ _0xaf4fx36[_0x6a27[146]][_0x6a27[145]],os:_0xaf4fx36[_0x6a27[147]][_0x6a27[106]]+ _0x6a27[144]+ _0xaf4fx36[_0x6a27[147]][_0x6a27[145]],device:_0xaf4fx36[_0x6a27[149]][_0x6a27[148]]?_0xaf4fx36[_0x6a27[149]][_0x6a27[148]]+ _0x6a27[144]+ _0xaf4fx36[_0x6a27[149]][_0x6a27[150]]+ _0x6a27[144]+ _0xaf4fx36[_0x6a27[149]][_0x6a27[151]]:null,referer:_0xaf4fx25[_0x6a27[132]][_0x6a27[141]],origin:_0x6a27[171],status:_0x6a27[172],ChatWebsiteId:parseInt(_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[173]],10),ChatEnquiry:{username:_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[107]],email:_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[108]],text:_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[36]],ChatWebsiteId:parseInt(_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[173]],10)}};if(_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[174]]&& _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[175]]){_0xaf4fx39[_0x6a27[174]]= _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[174]];if(_[_0x6a27[155]](_0xaf4fx39[_0x6a27[174]])){_0xaf4fx39[_0x6a27[174]]= _[_0x6a27[94]](_0xaf4fx39[_0x6a27[174]],_0x6a27[156])};_0xaf4fx39[_0x6a27[175]]= _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[175]]};if(_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[176]]&& _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[177]]){_0xaf4fx39[_0x6a27[176]]= _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[176]];if(_[_0x6a27[155]](_0xaf4fx39[_0x6a27[176]])){_0xaf4fx39[_0x6a27[176]]= _[_0x6a27[94]](_0xaf4fx39[_0x6a27[176]],_0x6a27[156])};_0xaf4fx39[_0x6a27[177]]= _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[177]]};if(_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[178]]&& _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[179]]){_0xaf4fx39[_0x6a27[178]]= _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[178]];if(_[_0x6a27[155]](_0xaf4fx39[_0x6a27[178]])){_0xaf4fx39[_0x6a27[178]]= _[_0x6a27[94]](_0xaf4fx39[_0x6a27[178]],_0x6a27[156])};_0xaf4fx39[_0x6a27[179]]= _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[170]][_0x6a27[179]]};var _0xaf4fx3a;return ChatVisitor[_0x6a27[121]](_0xaf4fx39,{transaction:_0xaf4fx3e,include:[{model:ChatEnquiry}]})[_0x6a27[77]](function(_0xaf4fx3d){_0xaf4fx3a= _0xaf4fx3d;return ChatWebsite[_0x6a27[78]]({where:{id:_0xaf4fx3a[_0x6a27[168]]},attributes:[_0x6a27[45],_0x6a27[166]]})})[_0x6a27[77]](function(_0xaf4fx3c){if(!_0xaf4fx3c){throw  new Error(util[_0x6a27[76]](_0x6a27[165],_0xaf4fx3a.ChatWebsiteId))};if(_0xaf4fx3c[_0x6a27[166]]){return Contact[_0x6a27[167]]({where:{email:_0xaf4fx3a[_0x6a27[108]]},defaults:{email:_0xaf4fx3a[_0x6a27[108]],firstName:_0xaf4fx3a[_0x6a27[107]],ListId:_0xaf4fx3c[_0x6a27[166]]}})};return})[_0x6a27[77]](function(){_0xaf4fx3e[_0x6a27[181]]();return _0xaf4fx26[_0x6a27[39]](200)[_0x6a27[114]]({success:true,errors:[]})})[_0x6a27[40]](function(_0xaf4fx27){_0xaf4fx3e[_0x6a27[180]]();logger[_0x6a27[37]](_0x6a27[161],_0xaf4fx27[_0x6a27[36]]);return _0xaf4fx26[_0x6a27[39]](500)[_0x6a27[38]](_0xaf4fx27)})})};exports[_0x6a27[183]]= function(_0xaf4fx25,_0xaf4fx26){var _0xaf4fx2e=_0xaf4fx25[_0x6a27[46]][_0x6a27[45]];if(_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e]&& _0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[120]]&& _0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[102]]){ChatMessage[_0x6a27[115]]({where:{ChatRoomId:_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[102]]},attributes:[_0x6a27[45],_0x6a27[104],_0x6a27[105]],order:[[_0x6a27[105],_0x6a27[190]]],include:[{model:Agent,attributes:[_0x6a27[45],_0x6a27[107]]},{model:ChatVisitor,attributes:[_0x6a27[45],_0x6a27[107]]}]})[_0x6a27[77]](function(_0xaf4fx30){var _0xaf4fx3f=[];if(_0xaf4fx30&& _0xaf4fx30[_0x6a27[117]]> 0){for(var _0xaf4fx33=0;_0xaf4fx33< _0xaf4fx30[_0x6a27[117]];_0xaf4fx33++){var _0xaf4fx34=_0xaf4fx30[_0xaf4fx33][_0x6a27[118]]({plain:true});var _0xaf4fx40={name:_0xaf4fx34[_0x6a27[19]]?_0xaf4fx34[_0x6a27[19]][_0x6a27[107]]:_0xaf4fx34[_0x6a27[22]][_0x6a27[107]],text:_0xaf4fx34[_0x6a27[104]][_0x6a27[185]](/(\r\n|\n|\r)/gm,_0x6a27[144]),date:moment(_0xaf4fx34[_0x6a27[105]])[_0x6a27[76]](_0x6a27[186])};_0xaf4fx3f[_0x6a27[187]](_0xaf4fx40)}}else {_0xaf4fx3f[_0x6a27[187]]({name:_0x6a27[188],text:_0x6a27[188],date:_0x6a27[188]})};var _0xaf4fx41=csv(_0xaf4fx3f);_0xaf4fx26[_0x6a27[151]](_0x6a27[189])[_0x6a27[39]](200)[_0x6a27[38]](_0xaf4fx41)})[_0x6a27[40]](function(_0xaf4fx27){logger[_0x6a27[37]](_0x6a27[184],_0xaf4fx27[_0x6a27[36]]);return _0xaf4fx26[_0x6a27[39]](500)[_0x6a27[38]](_0xaf4fx27)})}};exports[_0x6a27[191]]= function(_0xaf4fx25,_0xaf4fx26){var _0xaf4fx28,_0xaf4fx42,_0xaf4fx43;var _0xaf4fx44=xchatty_components[_0x6a27[192]];return ChatWebsite[_0x6a27[245]](_0xaf4fx25[_0x6a27[46]][_0x6a27[45]],{include:[{model:ChatWebsitesField,as:_0x6a27[198]},{model:ChatWebsitesField,as:_0x6a27[237]}],attributes:[_0x6a27[45],_0x6a27[47],_0x6a27[56],_0x6a27[197],_0x6a27[200],_0x6a27[201],_0x6a27[205]]})[_0x6a27[77]](function(_0xaf4fx3b){if(!_0xaf4fx3b){throw  new Error(util[_0x6a27[76]](_0x6a27[165],_0xaf4fx25[_0x6a27[46]][_0x6a27[45]]))};_0xaf4fx28= _0xaf4fx3b;return License[_0x6a27[245]](1)})[_0x6a27[77]](function(_0xaf4fx45){if(_0xaf4fx45){_0xaf4fx42= JSON[_0x6a27[135]](license[_0x6a27[196]](_0xaf4fx45[_0x6a27[195]][_0x6a27[194]],_0xaf4fx45[_0x6a27[153]]))}else {_0xaf4fx42= demoLicense};var _0xaf4fx46={rootPath:Util[_0x6a27[48]](_0xaf4fx28[_0x6a27[47]])+ _0x6a27[49],assetBase:Util[_0x6a27[48]](_0xaf4fx28[_0x6a27[47]])+ _0x6a27[54],websiteId:_0xaf4fx28[_0x6a27[45]],headerShape:_0xaf4fx28[_0x6a27[56]],enquiryEnable:_0xaf4fx28[_0x6a27[197]],onlineFields:_0xaf4fx28[_0x6a27[198]],logo:function(){if(_0xaf4fx42[_0x6a27[199]]&&  !_0xaf4fx28[_0x6a27[200]]&& _0xaf4fx28[_0x6a27[201]]){return _0x6a27[202]+ _0xaf4fx28[_0x6a27[201]]+ _0x6a27[203]}else {return _0x6a27[204]}},whiteLabel:function(){if(_0xaf4fx42[_0x6a27[199]]&&  !_0xaf4fx28[_0x6a27[205]]){return _0xaf4fx28[_0x6a27[206]]}else {return _0x6a27[207]}},renderedOnlineField:function(){var _0xaf4fx47=_0x6a27[188];var _0xaf4fx48=this;switch(this[_0x6a27[234]]){case _0x6a27[217]:_0xaf4fx47= _0x6a27[208];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[209],_0xaf4fx48[_0x6a27[210]],_0xaf4fx48[_0x6a27[211]],_0xaf4fx48[_0x6a27[212]]?_0x6a27[213]:_0x6a27[188]);_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[214],_0xaf4fx48[_0x6a27[211]],_0xaf4fx48[_0x6a27[210]],_0xaf4fx48[_0x6a27[210]]+ 1,_0xaf4fx48[_0x6a27[215]],_0xaf4fx48[_0x6a27[212]]?_0x6a27[212]:_0x6a27[188]);_0xaf4fx47+= _0x6a27[216];break;case _0x6a27[219]:_0xaf4fx47= _0x6a27[208];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[209],_0xaf4fx48[_0x6a27[210]],_0xaf4fx48[_0x6a27[211]],_0xaf4fx48[_0x6a27[212]]?_0x6a27[213]:_0x6a27[188]);_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[218],_0xaf4fx48[_0x6a27[210]],_0xaf4fx48[_0x6a27[211]],_0xaf4fx48[_0x6a27[210]]+ 1,_0xaf4fx48[_0x6a27[215]],_0xaf4fx48[_0x6a27[212]]?_0x6a27[212]:_0x6a27[188]);_0xaf4fx47+= _0x6a27[216];break;case _0x6a27[226]:_0xaf4fx47= _0x6a27[208];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[220],_0xaf4fx48[_0x6a27[211]]);_[_0x6a27[225]](_0xaf4fx48[_0x6a27[221]],function(_0xaf4fx49){_0xaf4fx47+= _0x6a27[222];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[223],_0xaf4fx48[_0x6a27[210]]+ 1,_0xaf4fx49,_0xaf4fx49);_0xaf4fx47+= _0x6a27[224]});_0xaf4fx47+= _0x6a27[216];break;case _0x6a27[228]:_0xaf4fx47= _0x6a27[208];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[220],_0xaf4fx48[_0x6a27[211]]);_[_0x6a27[225]](_0xaf4fx48[_0x6a27[221]],function(_0xaf4fx49){_0xaf4fx47+= _0x6a27[222];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[227],_0xaf4fx48[_0x6a27[210]]+ 1,_0xaf4fx49,_0xaf4fx49);_0xaf4fx47+= _0x6a27[224]});_0xaf4fx47+= _0x6a27[216];break;case _0x6a27[233]:_0xaf4fx47= _0x6a27[208];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[229],_0xaf4fx48[_0x6a27[210]],_0xaf4fx48[_0x6a27[211]]);_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[230],_0xaf4fx48[_0x6a27[210]]+ 1);_[_0x6a27[225]](_0xaf4fx48[_0x6a27[221]],function(_0xaf4fx49){_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[231],_0xaf4fx49,_0xaf4fx49)});_0xaf4fx47+= _0x6a27[232];break};_0xaf4fx47+= _0x6a27[235];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[236],_0xaf4fx48[_0x6a27[210]]+ 1,_0xaf4fx48[_0x6a27[211]]);return _0xaf4fx47},offlineFields:_0xaf4fx28[_0x6a27[237]],renderedOfflineField:function(){var _0xaf4fx47=_0x6a27[188];var _0xaf4fx48=this;switch(this[_0x6a27[234]]){case _0x6a27[217]:_0xaf4fx47= _0x6a27[208];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[238],_0xaf4fx48[_0x6a27[210]],_0xaf4fx48[_0x6a27[211]],_0xaf4fx48[_0x6a27[212]]?_0x6a27[213]:_0x6a27[188]);_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[239],_0xaf4fx48[_0x6a27[211]],_0xaf4fx48[_0x6a27[210]],_0xaf4fx48[_0x6a27[210]]+ 1,_0xaf4fx48[_0x6a27[215]],_0xaf4fx48[_0x6a27[212]]?_0x6a27[212]:_0x6a27[188]);_0xaf4fx47+= _0x6a27[216];break;case _0x6a27[219]:_0xaf4fx47= _0x6a27[208];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[238],_0xaf4fx48[_0x6a27[210]],_0xaf4fx48[_0x6a27[211]],_0xaf4fx48[_0x6a27[212]]?_0x6a27[213]:_0x6a27[188]);_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[240],_0xaf4fx48[_0x6a27[210]],_0xaf4fx48[_0x6a27[211]],_0xaf4fx48[_0x6a27[210]]+ 1,_0xaf4fx48[_0x6a27[215]],_0xaf4fx48[_0x6a27[212]]?_0x6a27[212]:_0x6a27[188]);_0xaf4fx47+= _0x6a27[216];break;case _0x6a27[226]:_0xaf4fx47= _0x6a27[208];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[220],_0xaf4fx48[_0x6a27[211]]);_[_0x6a27[225]](_0xaf4fx48[_0x6a27[221]],function(_0xaf4fx49){_0xaf4fx47+= _0x6a27[222];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[241],_0xaf4fx48[_0x6a27[210]]+ 1,_0xaf4fx49,_0xaf4fx49);_0xaf4fx47+= _0x6a27[224]});_0xaf4fx47+= _0x6a27[216];break;case _0x6a27[228]:_0xaf4fx47= _0x6a27[208];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[220],_0xaf4fx48[_0x6a27[211]]);_[_0x6a27[225]](_0xaf4fx48[_0x6a27[221]],function(_0xaf4fx49){_0xaf4fx47+= _0x6a27[222];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[242],_0xaf4fx48[_0x6a27[210]]+ 1,_0xaf4fx49,_0xaf4fx49);_0xaf4fx47+= _0x6a27[224]});_0xaf4fx47+= _0x6a27[216];break;case _0x6a27[233]:_0xaf4fx47= _0x6a27[208];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[220],_0xaf4fx48[_0x6a27[211]]);_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[243],_0xaf4fx48[_0x6a27[210]]+ 1);_[_0x6a27[225]](_0xaf4fx48[_0x6a27[221]],function(_0xaf4fx49){_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[231],_0xaf4fx49,_0xaf4fx49)});_0xaf4fx47+= _0x6a27[232];break};_0xaf4fx47+= _0x6a27[235];_0xaf4fx47+= util[_0x6a27[76]](_0x6a27[244],_0xaf4fx48[_0x6a27[210]]+ 1,_0xaf4fx48[_0x6a27[211]]);return _0xaf4fx47}};_0xaf4fx44= Mustache[_0x6a27[74]](_0xaf4fx44,_0xaf4fx46);return _0xaf4fx26[_0x6a27[39]](200)[_0x6a27[114]](_0xaf4fx44)})[_0x6a27[40]](function(_0xaf4fx27){logger[_0x6a27[37]](_0x6a27[193],_0xaf4fx27[_0x6a27[36]]);return _0xaf4fx26[_0x6a27[39]](500)[_0x6a27[114]]({message:_0xaf4fx27[_0x6a27[36]]})})};exports[_0x6a27[246]]= function(_0xaf4fx25,_0xaf4fx26){return ChatWebsite[_0x6a27[245]](_0xaf4fx25[_0x6a27[46]][_0x6a27[45]],{include:[{model:ChatProactiveAction,attributes:[_0x6a27[151],_0x6a27[249],_0x6a27[250]]}],attributes:[_0x6a27[45]]})[_0x6a27[77]](function(_0xaf4fx28){if(!_0xaf4fx28){logger[_0x6a27[37]](_0x6a27[248],_0xaf4fx25[_0x6a27[46]][_0x6a27[45]]);return _0xaf4fx26[_0x6a27[39]](400)[_0x6a27[114]]({})};return _0xaf4fx26[_0x6a27[39]](200)[_0x6a27[114]](_0xaf4fx28.ChatProactiveActions)})[_0x6a27[40]](function(_0xaf4fx27){logger[_0x6a27[37]](_0x6a27[247],_0xaf4fx27[_0x6a27[36]]);return _0xaf4fx26[_0x6a27[39]](500)[_0x6a27[114]]({message:_0xaf4fx27[_0x6a27[36]]})})};exports[_0x6a27[251]]= function(_0xaf4fx25,_0xaf4fx26){return ChatRoom[_0x6a27[128]]({where:{id:_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[254]][_0x6a27[102]]},attributes:[_0x6a27[45]]})[_0x6a27[77]](function(_0xaf4fx35){if(!_0xaf4fx35){throw  new Error(util[_0x6a27[76]](_0x6a27[253],_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[254]][_0x6a27[102]]))};if(_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[254]][_0x6a27[88]](_0x6a27[255])&& _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[254]][_0x6a27[88]](_0x6a27[36])){return _0xaf4fx35[_0x6a27[127]]({rating:_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[254]][_0x6a27[255]],ratingMessage:_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[254]][_0x6a27[36]]})};return})[_0x6a27[77]](function(){return _0xaf4fx26[_0x6a27[39]](200)[_0x6a27[114]]({})})[_0x6a27[40]](function(_0xaf4fx27){logger[_0x6a27[37]](_0x6a27[252],_0xaf4fx27[_0x6a27[36]]);return _0xaf4fx26[_0x6a27[39]](500)[_0x6a27[114]]({message:_0xaf4fx27[_0x6a27[36]]})})};exports[_0x6a27[256]]= function(_0xaf4fx25,_0xaf4fx26){var _0xaf4fx2e=_0xaf4fx25[_0x6a27[46]][_0x6a27[45]];if(_0xaf4fx25[_0x6a27[103]]&& _0xaf4fx25[_0x6a27[103]][_0x6a27[97]]){if(_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0x6a27[88]](_0xaf4fx2e)&& _0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[88]](_0x6a27[120])&& _0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[120]]> 0){return ReportChatSession[_0x6a27[128]]({where:{visitorid:_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[120]],leaveAt:null},attributes:[_0x6a27[45],_0x6a27[260]]})[_0x6a27[77]](function(_0xaf4fx4a){if(!_0xaf4fx4a){throw  new Error(util[_0x6a27[76]](_0x6a27[258],_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[120]]))};return _0xaf4fx4a[_0x6a27[127]]({abandon:true,leaveAt:moment()[_0x6a27[76]](_0x6a27[259])})})[_0x6a27[77]](function(){return _0xaf4fx26[_0x6a27[39]](200)[_0x6a27[114]]({})})[_0x6a27[40]](function(_0xaf4fx27){logger[_0x6a27[37]](_0x6a27[257],_0xaf4fx27[_0x6a27[36]]);return _0xaf4fx26[_0x6a27[39]](500)[_0x6a27[114]]({message:_0xaf4fx27[_0x6a27[36]]})})}};return _0xaf4fx26[_0x6a27[39]](200)[_0x6a27[114]]({})};exports[_0x6a27[261]]= function(_0xaf4fx25,_0xaf4fx26){if(!_0xaf4fx25[_0x6a27[103]][_0x6a27[97]]){_0xaf4fx25[_0x6a27[103]][_0x6a27[97]]= {}};if(!_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx25[_0x6a27[46]][_0x6a27[45]]]){_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx25[_0x6a27[46]][_0x6a27[45]]]= {}};var _0xaf4fx2e=_0xaf4fx25[_0x6a27[46]][_0x6a27[45]];var _0xaf4fx4b={};var _0xaf4fx4c=[];return ChatWebsite[_0x6a27[78]]({where:{id:_0xaf4fx2e},attributes:[_0x6a27[45]]})[_0x6a27[77]](function(_0xaf4fx3c){if(!_0xaf4fx3c){logger[_0x6a27[37]](_0x6a27[248],_0xaf4fx25[_0x6a27[46]][_0x6a27[45]]);throw  new Error(_0x6a27[248],_0xaf4fx25[_0x6a27[46]][_0x6a27[45]])};return _0xaf4fx3c[_0x6a27[278]]({attributes:[_0x6a27[45],_0x6a27[268],_0x6a27[276]],include:[{model:ChatQueue,attributes:[_0x6a27[45],_0x6a27[106]],include:[{model:Agent,attributes:[_0x6a27[45],_0x6a27[106]]}]},{model:Agent,attributes:[_0x6a27[45],_0x6a27[106]]},{model:Interval,attributes:[_0x6a27[276]],include:[{model:Interval,as:_0x6a27[277],attributes:[_0x6a27[276]]}]}]})})[_0x6a27[77]](function(_0xaf4fx4f){_[_0x6a27[225]](_0xaf4fx4f,function(_0xaf4fx50){if(checkAppInterval(_0xaf4fx50)){if(_0xaf4fx50[_0x6a27[268]]=== _0x6a27[269]){if(_0xaf4fx50[_0x6a27[28]][_0x6a27[88]](_0x6a27[270])&& _0xaf4fx50[_0x6a27[28]][_0x6a27[270]][_0x6a27[117]]> 0){_0xaf4fx4c= _[_0x6a27[273]](_[_0x6a27[272]](_0xaf4fx4c,_[_0x6a27[271]](_0xaf4fx50[_0x6a27[28]].Users,_0x6a27[45])))}}else {if(_0xaf4fx50[_0x6a27[268]]=== _0x6a27[274]){_0xaf4fx4c[_0x6a27[187]](_0xaf4fx50[_0x6a27[19]][_0x6a27[45]]);_0xaf4fx4c= _[_0x6a27[273]](_0xaf4fx4c)}}}});return Agent[_0x6a27[275]]({where:{online:true,id:{$in:_0xaf4fx4c}},attributes:[_0x6a27[45]]})})[_0x6a27[77]](function(_0xaf4fx4e){if(_0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[265]]){_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[265]]= _0xaf4fx25[_0x6a27[89]][_0x6a27[110]][_0x6a27[265]]=== _0x6a27[51]?true:false};_0xaf4fx4b= {success:true,has_session_saf:null,signed_up:_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[102]]?true:false,fullname:_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[107]]|| _0x6a27[188],email:_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[108]]|| _0x6a27[188],avatar:_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[162]]|| _0x6a27[188],open_state:_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[265]]|| _0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[102]]?true:false,online:_0xaf4fx4e[_0x6a27[266]]?true:false,is_unserved:false,room_id:0};if(_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[120]]){return ChatRoom[_0x6a27[78]]({where:{ChatVisitorId:_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[120]],status:_0x6a27[267],token:{$ne:_0x6a27[188]}},attributes:[_0x6a27[45]]})};return})[_0x6a27[77]](function(_0xaf4fx35){if(_0xaf4fx35){_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[102]]= _0xaf4fx35[_0x6a27[45]];_0xaf4fx4b[_0x6a27[102]]= _0xaf4fx35[_0x6a27[45]];_0xaf4fx4b[_0x6a27[264]]= true}else {_0xaf4fx4b[_0x6a27[264]]= false};if(_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[120]]){return ChatVisitor[_0x6a27[78]]({where:{id:_0xaf4fx25[_0x6a27[103]][_0x6a27[97]][_0xaf4fx2e][_0x6a27[120]],status:_0x6a27[172]},attributes:[_0x6a27[45]]})};return})[_0x6a27[77]](function(_0xaf4fx4d){if(_0xaf4fx4d){_0xaf4fx4b[_0x6a27[263]]= true};return _0xaf4fx26[_0x6a27[39]](200)[_0x6a27[114]](_0xaf4fx4b)})[_0x6a27[40]](function(_0xaf4fx27){logger[_0x6a27[37]](_0x6a27[262],_0xaf4fx27);return _0xaf4fx26[_0x6a27[39]](500)[_0x6a27[114]]({})})};function checkAppInterval(_0xaf4fx50){var _0xaf4fx52=true;if(_0xaf4fx50[_0x6a27[33]]){for(var _0xaf4fx53=0;_0xaf4fx53< _0xaf4fx50[_0x6a27[33]][_0x6a27[277]][_0x6a27[117]];_0xaf4fx53++){if(Util[_0x6a27[279]](splitInterval(_0xaf4fx50[_0x6a27[33]][_0x6a27[277]][_0xaf4fx53][_0x6a27[276]]))){break}else {_0xaf4fx52= false}}}else {if(!Util[_0x6a27[279]](splitInterval(_0xaf4fx50[_0x6a27[276]]))){_0xaf4fx52= false}};return _0xaf4fx52}function splitInterval(_0xaf4fx55){var _0xaf4fx56={};var _0xaf4fx57=_0xaf4fx55[_0x6a27[280]](_0x6a27[156]);var _0xaf4fx58;_0xaf4fx57[_0x6a27[225]](function(_0xaf4fx48,_0xaf4fx59){switch(_0xaf4fx59){case 0:if(_0xaf4fx48!== _0x6a27[213]){_0xaf4fx58= _0xaf4fx48[_0x6a27[280]](_0x6a27[281]);_0xaf4fx56[_0x6a27[282]]= moment(_0xaf4fx58[0],_0x6a27[283]);_0xaf4fx56[_0x6a27[284]]= moment(_0xaf4fx58[1],_0x6a27[283])}else {_0xaf4fx56[_0x6a27[282]]= null;_0xaf4fx56[_0x6a27[284]]= null};break;case 1:if(_0xaf4fx48!== _0x6a27[213]){_0xaf4fx58= _0xaf4fx48[_0x6a27[280]](_0x6a27[281]);_0xaf4fx56[_0x6a27[285]]= weekDaysCollection[_0xaf4fx58[0]];_0xaf4fx56[_0x6a27[286]]= _0xaf4fx58[1]?weekDaysCollection[_0xaf4fx58[1]]:null}else {_0xaf4fx56[_0x6a27[285]]= null;_0xaf4fx56[_0x6a27[286]]= null};break;case 2:if(_0xaf4fx48!== _0x6a27[213]){_0xaf4fx58= _0xaf4fx48[_0x6a27[280]](_0x6a27[281]);_0xaf4fx56[_0x6a27[287]]= _0xaf4fx58[0];_0xaf4fx56[_0x6a27[288]]= _0xaf4fx58[1]?_0xaf4fx58[1]:null}else {_0xaf4fx56[_0x6a27[287]]= null;_0xaf4fx56[_0x6a27[288]]= null};break;case 3:if(_0xaf4fx48!== _0x6a27[213]){_0xaf4fx58= _0xaf4fx48[_0x6a27[280]](_0x6a27[281]);_0xaf4fx56[_0x6a27[289]]= monthsCollection[_0xaf4fx58[0]];_0xaf4fx56[_0x6a27[290]]= _0xaf4fx58[1]?monthsCollection[_0xaf4fx58[1]]:null}else {_0xaf4fx56[_0x6a27[289]]= null;_0xaf4fx56[_0x6a27[290]]= null};break;default:}});return _0xaf4fx56}
\ No newline at end of file