Built motion from commit 27af9f03b.|1.0.28
[motion.git] / server / api / xchatty / xchatty.controller.js
index 05c7201..605604b 100644 (file)
@@ -1 +1 @@
-var _0x9c66=["\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\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\x53\x74\x61\x74\x75\x73","\x73\x65\x73\x73\x69\x6F\x6E","\x69\x73\x5F\x75\x6E\x73\x65\x72\x76\x65\x64","\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x28","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x29","\x76\x69\x73\x69\x74\x6F\x72\x5F\x69\x64","\x75\x6E\x73\x65\x72\x76\x65\x64","\x72\x6F\x6F\x6D\x5F\x69\x64","\x73\x69\x67\x6E\x65\x64\x5F\x75\x70","\x4F\x50\x45\x4E","","\x6F\x70\x65\x6E\x5F\x73\x74\x61\x74\x65","\x64\x61\x74\x61","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x61\x76\x61\x74\x61\x72","\x6C\x65\x6E\x67\x74\x68","\x61\x67\x65\x6E\x74","\x66\x69\x6E\x64\x41\x6C\x6C","\x67\x65\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x6E\x61\x6D\x65","\x69\x73\x5F\x6E\x65\x77\x5F\x70\x61\x67\x65","\x77\x68\x65\x72\x65","\x6C\x61\x73\x74\x5F\x69\x64","\x73\x65\x6E\x64\x4D\x65\x73\x73\x61\x67\x65","\x4D\x65\x73\x73\x61\x67\x65","\x63\x72\x65\x61\x74\x65","\x73\x69\x67\x6E\x6F\x75\x74\x43\x75\x73\x74\x6F\x6D\x65\x72","\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\x42\x79\x49\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","\x62\x61\x73\x65\x36\x34","\x65\x78\x74\x65\x72\x6E\x61\x6C","\x4C\x69\x73\x74\x49\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x75\x6E\x73\x65\x72\x76\x65\x64\x43\x75\x73\x74\x6F\x6D\x65\x72","\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","\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","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x67\x65\x74\x54\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x55\x73\x65\x72\x49\x64","\x72\x65\x70\x6C\x61\x63\x65","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x74\x65\x78\x74\x2F\x63\x73\x76","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x67\x65\x74\x48\x74\x6D\x6C\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x74\x65\x6D\x70\x6C\x61\x74\x65","\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","\x6A\x73\x6F\x6E\x70","\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","\x73\x65\x74\x52\x61\x74\x69\x6E\x67","\x72\x61\x74\x69\x6E\x67","\x52\x61\x74\x69\x6E\x67","\x61\x62\x61\x6E\x64\x6F\x6E\x43\x75\x73\x74\x6F\x6D\x65\x72","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x69\x6E\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","\x63\x6F\x75\x6E\x74","\x61\x70\x70","\x71\x75\x65\x75\x65","\x55\x73\x65\x72\x73","\x6D\x61\x70","\x75\x6E\x69\x71","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x67\x65\x74\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x69\x6E\x74\x65\x72\x76\x61\x6C","\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"];_0x9c66[0];var _=require(_0x9c66[1]);var Mustache=require(_0x9c66[2]);var path=require(_0x9c66[3]);var md5=require(_0x9c66[4]);var UAParser=require(_0x9c66[5]);var uaParser= new UAParser();var languageParser=require(_0x9c66[6]);var csv=require(_0x9c66[7]);var util=require(_0x9c66[8]);var moment=require(_0x9c66[9]);var logger=require(_0x9c66[11])(_0x9c66[10]);var config=require(_0x9c66[12]);var xchatty_components=require(_0x9c66[13]);var Util=require(_0x9c66[14]);var license=require(_0x9c66[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:_0x9c66[16]};var sequelize=require(_0x9c66[18])[_0x9c66[17]];var User=require(_0x9c66[18])[_0x9c66[19]];var Agent=require(_0x9c66[18])[_0x9c66[19]];var ChatRoom=require(_0x9c66[18])[_0x9c66[20]];var ChatEnquiry=require(_0x9c66[18])[_0x9c66[21]];var ChatVisitor=require(_0x9c66[18])[_0x9c66[22]];var ChatMessage=require(_0x9c66[18])[_0x9c66[23]];var ChatWebsite=require(_0x9c66[18])[_0x9c66[24]];var ChatProactiveAction=require(_0x9c66[18])[_0x9c66[25]];var ReportChatSession=require(_0x9c66[18])[_0x9c66[26]];var ChatQueue=require(_0x9c66[18])[_0x9c66[27]];var License=require(_0x9c66[18])[_0x9c66[28]];var Xchatty=require(_0x9c66[18])[_0x9c66[29]];var Setting=require(_0x9c66[18])[_0x9c66[30]];var Contact=require(_0x9c66[18])[_0x9c66[31]];var Interval=require(_0x9c66[18])[_0x9c66[32]];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[_0x9c66[33]]= function(_0x7e95x24,_0x7e95x25){return ChatWebsite[_0x9c66[77]]({where:{id:_0x7e95x24[_0x9c66[45]][_0x9c66[44]]},attributes:[_0x9c66[44],_0x9c66[46],_0x9c66[54],_0x9c66[55],_0x9c66[56],_0x9c66[57],_0x9c66[58],_0x9c66[59],_0x9c66[60],_0x9c66[61],_0x9c66[62],_0x9c66[63],_0x9c66[64],_0x9c66[65],_0x9c66[66],_0x9c66[67],_0x9c66[68],_0x9c66[69],_0x9c66[70],_0x9c66[71],_0x9c66[72]]})[_0x9c66[76]](function(_0x7e95x27){if(_0x7e95x27){_0x7e95x25[_0x9c66[42]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x9c66[40],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x9c66[41]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x7e95x28=xchatty_components[_0x9c66[43]];var _0x7e95x29={websiteId:_0x7e95x24[_0x9c66[45]][_0x9c66[44]],rootPath:Util[_0x9c66[47]](_0x7e95x27[_0x9c66[46]])+ _0x9c66[48],signedUp:_0x9c66[49],windowFocused:_0x9c66[49],isNewPage:_0x9c66[50],processingSignUp:_0x9c66[49],processingEnquiry:_0x9c66[49],processingSend:_0x9c66[49],processingRating:_0x9c66[49],visitorFullname:_0x9c66[51],visitorAvatar:_0x9c66[51],timerReadMessages:_0x9c66[52],timerCheckStatus:_0x9c66[52],isOnline:_0x9c66[49],decayHistory:0,defaultTimeout:5000,isInitialStatusCheck:_0x9c66[50],muteNotificationSoundOnce:_0x9c66[49],assetBase:Util[_0x9c66[47]](_0x7e95x27[_0x9c66[46]])+ _0x9c66[53],hasSessionSaf:_0x9c66[49],restoreOpenState:_0x9c66[49],animateHover:_0x7e95x27[_0x9c66[54]],hideEmail:_0x9c66[49],hideOffline:_0x9c66[49],headerShape:_0x7e95x27[_0x9c66[55]],HeaderOnline:_0x7e95x27[_0x9c66[56]],OnlineMessage:_0x7e95x27[_0x9c66[57]],UsernamePlaceholder:_0x7e95x27[_0x9c66[58]],EmailPlaceholder:_0x7e95x27[_0x9c66[59]],StartChatButtonText:_0x7e95x27[_0x9c66[60]],OfflineMessage:_0x7e95x27[_0x9c66[61]],HeaderOffline:_0x7e95x27[_0x9c66[62]],EnquiryMessagePlaceholder:_0x7e95x27[_0x9c66[63]],EnquiryButtonText:_0x7e95x27[_0x9c66[64]],downloadTranscript:_0x7e95x27[_0x9c66[65]],RatingMessage:_0x7e95x27[_0x9c66[66]],RatingSend:_0x7e95x27[_0x9c66[67]],RatingSkip:_0x7e95x27[_0x9c66[68]],MessageAgentsBusy:_0x7e95x27[_0x9c66[69]],NameTitle:_0x7e95x27[_0x9c66[70]],EmailTitle:_0x7e95x27[_0x9c66[71]],MessageTitle:_0x7e95x27[_0x9c66[72]]};_0x7e95x28= Mustache[_0x9c66[73]](_0x7e95x28,_0x7e95x29);return _0x7e95x25[_0x9c66[37]](_0x7e95x28)}else {throw  new Error(util[_0x9c66[75]](_0x9c66[74],_0x7e95x24[_0x9c66[45]][_0x9c66[44]]))}})[_0x9c66[39]](function(_0x7e95x26){logger[_0x9c66[36]](_0x9c66[34],_0x7e95x26[_0x9c66[35]]);return _0x7e95x25[_0x9c66[38]](500)[_0x9c66[37]](_0x7e95x26)})};exports[_0x9c66[78]]= function(_0x7e95x24,_0x7e95x25){ChatWebsite[_0x9c66[77]]({where:{id:_0x7e95x24[_0x9c66[45]][_0x9c66[44]]},attributes:[_0x9c66[44],_0x9c66[46],_0x9c66[82],_0x9c66[83],_0x9c66[84]]})[_0x9c66[76]](function(_0x7e95x27){if(_0x7e95x27){_0x7e95x25[_0x9c66[42]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x9c66[80],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x9c66[41]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x7e95x2a=xchatty_components[_0x9c66[81]];var _0x7e95x2b={assetBase:Util[_0x9c66[47]](_0x7e95x27[_0x9c66[46]])+ _0x9c66[53],color:_0x7e95x27[_0x9c66[82]],colorFocus:_0x7e95x27[_0x9c66[83]],colorButton:_0x7e95x27[_0x9c66[84]]};_0x7e95x2a= Mustache[_0x9c66[73]](_0x7e95x2a,_0x7e95x2b);return _0x7e95x25[_0x9c66[37]](_0x7e95x2a)}else {throw  new Error(util[_0x9c66[75]](_0x9c66[74],_0x7e95x24[_0x9c66[45]][_0x9c66[44]]))}})[_0x9c66[39]](function(_0x7e95x26){logger[_0x9c66[36]](_0x9c66[79],_0x7e95x26[_0x9c66[35]]);return _0x7e95x25[_0x9c66[38]](500)[_0x9c66[37]](_0x7e95x26)})};exports[_0x9c66[85]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){if(_0x7e95x24[_0x9c66[88]][_0x9c66[87]](_0x9c66[86])){_0x7e95x25[_0x9c66[94]](path[_0x9c66[93]](config[_0x9c66[89]],_0x9c66[90],_0x9c66[91],_0x7e95x24[_0x9c66[88]][_0x9c66[92]]))}else {_0x7e95x25[_0x9c66[94]](path[_0x9c66[93]](config[_0x9c66[89]],_0x9c66[90],_0x9c66[95],_0x9c66[96],_0x9c66[97],_0x7e95x24[_0x9c66[88]][_0x9c66[92]]))}};exports[_0x9c66[98]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){_0x7e95x25[_0x9c66[42]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x9c66[40],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x9c66[41]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x7e95x2d=xchatty_components[_0x9c66[99]];_0x7e95x25[_0x9c66[37]](_0x7e95x2d)};exports[_0x9c66[100]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){if(!_0x7e95x24[_0x9c66[101]][_0x9c66[96]]){_0x7e95x24[_0x9c66[101]][_0x9c66[96]]= {}};var _0x7e95x2e={};return Agent[_0x9c66[120]]({where:{online:true,role:_0x9c66[119]},attributes:[_0x9c66[44]]})[_0x9c66[76]](function(_0x7e95x31){if(_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[113]]){_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[113]]= _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[113]]=== _0x9c66[50]?true:false};_0x7e95x2e= {success:true,has_session_saf:null,signed_up:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[109]]?true:false,fullname:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[115]]?_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[115]]:_0x9c66[112],email:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[116]]?_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[116]]:_0x9c66[112],avatar:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[117]]?_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[117]]:_0x9c66[112],open_state:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[113]]|| _0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[109]]?true:false,online:_0x7e95x31[_0x9c66[118]]?true:false,is_unserved:false,room_id:0};return})[_0x9c66[76]](function(){if(_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[107]]){return ChatRoom[_0x9c66[77]]({where:{ChatVisitorId:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[107]],status:_0x9c66[111],token:{$ne:_0x9c66[112]}},attributes:[_0x9c66[44]]})};return})[_0x9c66[76]](function(_0x7e95x30){if(_0x7e95x30){_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[109]]= _0x7e95x30[_0x9c66[44]];_0x7e95x2e[_0x9c66[109]]= _0x7e95x30[_0x9c66[44]];_0x7e95x2e[_0x9c66[110]]= true}else {_0x7e95x2e[_0x9c66[110]]= false};return})[_0x9c66[76]](function(){if(_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[107]]){return ChatVisitor[_0x9c66[77]]({where:{id:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[107]],status:_0x9c66[108]},attributes:[_0x9c66[44]]})};return})[_0x9c66[76]](function(_0x7e95x2f){if(_0x7e95x2f){_0x7e95x2e[_0x9c66[102]]= true};return _0x7e95x25[_0x9c66[37]](_0x7e95x24[_0x9c66[88]][_0x9c66[103]]+ _0x9c66[104]+ JSON[_0x9c66[105]](_0x7e95x2e)+ _0x9c66[106])})[_0x9c66[39]](function(_0x7e95x26){return _0x7e95x2c(_0x7e95x26)})};exports[_0x9c66[121]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){var _0x7e95x32=_0x7e95x24[_0x9c66[45]][_0x9c66[44]];var _0x7e95x33={where:{ChatRoomId:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[109]]},include:[{model:User,attributes:[_0x9c66[44],_0x9c66[122],_0x9c66[115],_0x9c66[116]]},{model:ChatVisitor,attributes:[_0x9c66[44],_0x9c66[115],_0x9c66[116]]}]};if(_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[123]]=== _0x9c66[49]){_0x7e95x33[_0x9c66[124]][_0x9c66[44]]= {$gt:_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[125]]}};ChatMessage[_0x9c66[120]](_0x7e95x33)[_0x9c66[76]](function(_0x7e95x34){var _0x7e95x35={success:true,messages:_0x7e95x34,composing:false,composing_fullname:null};_0x7e95x25[_0x9c66[37]](_0x7e95x24[_0x9c66[88]][_0x9c66[103]]+ _0x9c66[104]+ JSON[_0x9c66[105]](_0x7e95x35)+ _0x9c66[106])})[_0x9c66[39]](function(_0x7e95x26){_0x7e95x2c(_0x7e95x26)})};exports[_0x9c66[126]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){var _0x7e95x32=_0x7e95x24[_0x9c66[45]][_0x9c66[44]];var _0x7e95x33={where:{ChatRoomId:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[109]]},include:[{model:User,attributes:[_0x9c66[44],_0x9c66[122],_0x9c66[115],_0x9c66[116]]},{model:ChatVisitor,attributes:[_0x9c66[44],_0x9c66[115],_0x9c66[116]]}]};if(_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[123]]=== _0x9c66[49]){_0x7e95x33[_0x9c66[124]][_0x9c66[44]]= {$gt:_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[125]]}};ChatMessage[_0x9c66[128]]({body:_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[127]][_0x9c66[35]],ChatRoomId:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[109]],ChatVisitorId:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[107]]})[_0x9c66[76]](function(_0x7e95x36){ChatMessage[_0x9c66[120]](_0x7e95x33)[_0x9c66[76]](function(_0x7e95x34){var _0x7e95x35={errors:[],success:true,data:_0x7e95x36,messages:_0x7e95x34};_0x7e95x25[_0x9c66[37]](_0x7e95x24[_0x9c66[88]][_0x9c66[103]]+ _0x9c66[104]+ JSON[_0x9c66[105]](_0x7e95x35)+ _0x9c66[106])})[_0x9c66[39]](function(_0x7e95x26){_0x7e95x2c(_0x7e95x26)})})[_0x9c66[39]](function(_0x7e95x26){_0x7e95x2c(_0x7e95x26)})};exports[_0x9c66[129]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){var _0x7e95x32=_0x7e95x24[_0x9c66[45]][_0x9c66[44]];return ChatRoom[_0x9c66[133]](_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[109]])[_0x9c66[76]](function(_0x7e95x30){return _0x7e95x30[_0x9c66[132]]({status:_0x9c66[130],completeReason:_0x9c66[131]})})[_0x9c66[76]](function(){var _0x7e95x35={success:true,errors:[]};_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32]= {};_0x7e95x25[_0x9c66[37]](_0x7e95x24[_0x9c66[88]][_0x9c66[103]]+ _0x9c66[104]+ JSON[_0x9c66[105]](_0x7e95x35)+ _0x9c66[106])})[_0x9c66[39]](function(_0x7e95x26){_0x7e95x2c(_0x7e95x26)})};exports[_0x9c66[134]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){var _0x7e95x32=_0x7e95x24[_0x9c66[45]][_0x9c66[44]];var _0x7e95x37=uaParser[_0x9c66[138]](_0x7e95x24[_0x9c66[137]][_0x9c66[136]])[_0x9c66[135]]();var _0x7e95x38=languageParser[_0x9c66[140]](_0x7e95x24[_0x9c66[137]][_0x9c66[139]]);var _0x7e95x39=_0x7e95x24[_0x9c66[137]][_0x9c66[141]]?_0x7e95x24[_0x9c66[137]][_0x9c66[141]]:_0x7e95x24[_0x9c66[143]][_0x9c66[142]]|| _0x7e95x24[_0x9c66[144]];var _0x7e95x3a={fullname:_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[145]][_0x9c66[115]],email:_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[145]][_0x9c66[116]],remote_address:_0x7e95x39,user_agent:_0x7e95x24[_0x9c66[137]][_0x9c66[136]],visitor_language:_0x7e95x24[_0x9c66[137]][_0x9c66[139]],referer:_0x7e95x24[_0x9c66[137]][_0x9c66[146]],origin:_0x9c66[147],browser:_0x7e95x37[_0x9c66[148]][_0x9c66[122]]+ _0x9c66[149]+ _0x7e95x37[_0x9c66[148]][_0x9c66[150]],engine:_0x7e95x37[_0x9c66[151]][_0x9c66[122]]+ _0x9c66[149]+ _0x7e95x37[_0x9c66[151]][_0x9c66[150]],os:_0x7e95x37[_0x9c66[152]][_0x9c66[122]]+ _0x9c66[149]+ _0x7e95x37[_0x9c66[152]][_0x9c66[150]],device:_0x7e95x37[_0x9c66[154]][_0x9c66[153]]?_0x7e95x37[_0x9c66[154]][_0x9c66[153]]+ _0x9c66[149]+ _0x7e95x37[_0x9c66[154]][_0x9c66[155]]+ _0x9c66[149]+ _0x7e95x37[_0x9c66[154]][_0x9c66[156]]:null,ChatWebsiteId:_0x7e95x24[_0x9c66[88]][_0x9c66[157]]};if(_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[145]][_0x9c66[158]]&& _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[145]][_0x9c66[159]]){_0x7e95x3a[_0x9c66[158]]= _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[145]][_0x9c66[158]];if(_[_0x9c66[160]](_0x7e95x3a[_0x9c66[158]])){_0x7e95x3a[_0x9c66[158]]= _[_0x9c66[93]](_0x7e95x3a[_0x9c66[158]],_0x9c66[161])};_0x7e95x3a[_0x9c66[159]]= _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[145]][_0x9c66[159]]};if(_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[145]][_0x9c66[162]]&& _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[145]][_0x9c66[163]]){_0x7e95x3a[_0x9c66[162]]= _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[145]][_0x9c66[162]];if(_[_0x9c66[160]](_0x7e95x3a[_0x9c66[162]])){_0x7e95x3a[_0x9c66[162]]= _[_0x9c66[93]](_0x7e95x3a[_0x9c66[162]],_0x9c66[161])};_0x7e95x3a[_0x9c66[163]]= _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[145]][_0x9c66[163]]};if(_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[145]][_0x9c66[164]]&& _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[145]][_0x9c66[165]]){_0x7e95x3a[_0x9c66[164]]= _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[145]][_0x9c66[164]];if(_[_0x9c66[160]](_0x7e95x3a[_0x9c66[164]])){_0x7e95x3a[_0x9c66[164]]= _[_0x9c66[93]](_0x7e95x3a[_0x9c66[164]],_0x9c66[161])};_0x7e95x3a[_0x9c66[165]]= _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[145]][_0x9c66[165]]};var _0x7e95x3b,_0x7e95x3c,_0x7e95x3d;return ChatVisitor[_0x9c66[128]](_0x7e95x3a)[_0x9c66[76]](function(_0x7e95x3f){_0x7e95x3b= _0x7e95x3f;return ChatWebsite[_0x9c66[133]](_0x7e95x3b.ChatWebsiteId)})[_0x9c66[76]](function(_0x7e95x3e){_0x7e95x3c= _0x7e95x3e;if(_0x7e95x3c[_0x9c66[168]]){return Contact[_0x9c66[169]]({where:{email:_0x7e95x3b[_0x9c66[116]]},defaults:{email:_0x7e95x3b[_0x9c66[116]],firstName:_0x7e95x3b[_0x9c66[115]],ListId:_0x7e95x3c[_0x9c66[168]]}})}})[_0x9c66[76]](function(){return ChatRoom[_0x9c66[128]]({type:_0x9c66[167],ChatVisitorId:_0x7e95x3b[_0x9c66[44]],ChatWebsiteId:_0x7e95x3c[_0x9c66[44]],contact:_0x7e95x3b[_0x9c66[116]],website:_0x7e95x3c[_0x9c66[122]]})})[_0x9c66[76]](function(_0x7e95x30){_0x7e95x3d= _0x7e95x30;_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[115]]= _0x7e95x3b[_0x9c66[115]];_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[116]]= _0x7e95x3b[_0x9c66[116]];_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[117]]= md5(_0x7e95x3b[_0x9c66[116]]).toString(_0x9c66[166]);_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[107]]= _0x7e95x3b[_0x9c66[44]];var _0x7e95x35={success:true,errors:[],chatVisitor:{id:_0x7e95x3b[_0x9c66[44]]}};_0x7e95x25[_0x9c66[37]](_0x7e95x24[_0x9c66[88]][_0x9c66[103]]+ _0x9c66[104]+ JSON[_0x9c66[105]](_0x7e95x35)+ _0x9c66[106])})[_0x9c66[39]](function(_0x7e95x26){_0x7e95x2c(_0x7e95x26)})};exports[_0x9c66[170]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){var _0x7e95x32=_0x7e95x24[_0x9c66[45]][_0x9c66[44]];return ChatVisitor[_0x9c66[133]](_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[107]])[_0x9c66[76]](function(_0x7e95x3f){return _0x7e95x3f[_0x9c66[132]]({status:_0x9c66[108]})})[_0x9c66[76]](function(){var _0x7e95x35={success:true,errors:[]};_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32]= {};_0x7e95x25[_0x9c66[37]](_0x7e95x24[_0x9c66[88]][_0x9c66[103]]+ _0x9c66[104]+ JSON[_0x9c66[105]](_0x7e95x35)+ _0x9c66[106])})[_0x9c66[39]](function(_0x7e95x26){_0x7e95x2c(_0x7e95x26)})};exports[_0x9c66[171]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){return sequelize[_0x9c66[184]]()[_0x9c66[76]](function(_0x7e95x40){var _0x7e95x39=_0x7e95x24[_0x9c66[137]][_0x9c66[141]]?_0x7e95x24[_0x9c66[137]][_0x9c66[141]]:_0x7e95x24[_0x9c66[143]][_0x9c66[142]]|| _0x7e95x24[_0x9c66[144]];var _0x7e95x37=uaParser[_0x9c66[138]](_0x7e95x24[_0x9c66[137]][_0x9c66[136]])[_0x9c66[135]]();var _0x7e95x38=languageParser[_0x9c66[140]](_0x7e95x24[_0x9c66[137]][_0x9c66[139]]);var _0x7e95x3a={fullname:_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[115]],email:_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[116]],remote_address:_0x7e95x39,user_agent:_0x7e95x24[_0x9c66[137]][_0x9c66[136]],visitor_language:_0x7e95x24[_0x9c66[137]][_0x9c66[139]],browser:_0x7e95x37[_0x9c66[148]][_0x9c66[122]]+ _0x9c66[149]+ _0x7e95x37[_0x9c66[148]][_0x9c66[150]],engine:_0x7e95x37[_0x9c66[151]][_0x9c66[122]]+ _0x9c66[149]+ _0x7e95x37[_0x9c66[151]][_0x9c66[150]],os:_0x7e95x37[_0x9c66[152]][_0x9c66[122]]+ _0x9c66[149]+ _0x7e95x37[_0x9c66[152]][_0x9c66[150]],device:_0x7e95x37[_0x9c66[154]][_0x9c66[153]]?_0x7e95x37[_0x9c66[154]][_0x9c66[153]]+ _0x9c66[149]+ _0x7e95x37[_0x9c66[154]][_0x9c66[155]]+ _0x9c66[149]+ _0x7e95x37[_0x9c66[154]][_0x9c66[156]]:null,referer:_0x7e95x24[_0x9c66[137]][_0x9c66[146]],origin:_0x9c66[173],status:_0x9c66[108],ChatWebsiteId:parseInt(_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[174]],10),ChatEnquiry:{username:_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[115]],email:_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[116]],text:_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[35]],ChatWebsiteId:parseInt(_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[174]],10)}};if(_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[175]]&& _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[176]]){_0x7e95x3a[_0x9c66[175]]= _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[175]];if(_[_0x9c66[160]](_0x7e95x3a[_0x9c66[175]])){_0x7e95x3a[_0x9c66[175]]= _[_0x9c66[93]](_0x7e95x3a[_0x9c66[175]],_0x9c66[161])};_0x7e95x3a[_0x9c66[176]]= _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[176]]};if(_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[177]]&& _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[178]]){_0x7e95x3a[_0x9c66[177]]= _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[177]];if(_[_0x9c66[160]](_0x7e95x3a[_0x9c66[177]])){_0x7e95x3a[_0x9c66[177]]= _[_0x9c66[93]](_0x7e95x3a[_0x9c66[177]],_0x9c66[161])};_0x7e95x3a[_0x9c66[178]]= _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[178]]};if(_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[179]]&& _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[180]]){_0x7e95x3a[_0x9c66[179]]= _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[179]];if(_[_0x9c66[160]](_0x7e95x3a[_0x9c66[179]])){_0x7e95x3a[_0x9c66[179]]= _[_0x9c66[93]](_0x7e95x3a[_0x9c66[179]],_0x9c66[161])};_0x7e95x3a[_0x9c66[180]]= _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[172]][_0x9c66[180]]};var _0x7e95x3b;return ChatVisitor[_0x9c66[128]](_0x7e95x3a,{transaction:_0x7e95x40,include:[{model:ChatEnquiry}]})[_0x9c66[76]](function(_0x7e95x3f){_0x7e95x3b= _0x7e95x3f;return ChatWebsite[_0x9c66[77]]({where:{id:_0x7e95x3b[_0x9c66[183]]},attributes:[_0x9c66[44],_0x9c66[168]]})})[_0x9c66[76]](function(_0x7e95x3e){if(_0x7e95x3e&& _0x7e95x3e[_0x9c66[168]]){return Contact[_0x9c66[169]]({where:{email:_0x7e95x3b[_0x9c66[116]]},defaults:{email:_0x7e95x3b[_0x9c66[116]],firstName:_0x7e95x3b[_0x9c66[115]],ListId:_0x7e95x3e[_0x9c66[168]]}})};return})[_0x9c66[76]](function(){_0x7e95x40[_0x9c66[182]]();_0x7e95x25[_0x9c66[37]](_0x7e95x24[_0x9c66[88]][_0x9c66[103]]+ _0x9c66[104]+ JSON[_0x9c66[105]]({success:true,errors:[]})+ _0x9c66[106])})[_0x9c66[39]](function(_0x7e95x26){_0x7e95x40[_0x9c66[181]]();_0x7e95x2c(_0x7e95x26)})})};exports[_0x9c66[185]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){var _0x7e95x32=_0x7e95x24[_0x9c66[45]][_0x9c66[44]];if(_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32]&& _0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[107]]&& _0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[109]]){ChatMessage[_0x9c66[120]]({where:{ChatRoomId:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[109]]},include:[{model:Agent,attributes:[_0x9c66[44],_0x9c66[115]]},{model:ChatVisitor,attributes:[_0x9c66[44],_0x9c66[115]]}]})[_0x9c66[76]](function(_0x7e95x34){var _0x7e95x41=[];_0x7e95x34[_0x9c66[191]](function(_0x7e95x36){var _0x7e95x42={name:_0x7e95x36[_0x9c66[186]]?_0x7e95x36[_0x9c66[19]][_0x9c66[115]]:_0x7e95x36[_0x9c66[22]][_0x9c66[115]],text:_0x7e95x36[_0x9c66[188]][_0x9c66[187]](/(\r\n|\n|\r)/gm,_0x9c66[149]),date:_0x7e95x36[_0x9c66[189]]};_0x7e95x41[_0x9c66[190]](_0x7e95x42)});var _0x7e95x43=csv(_0x7e95x41);_0x7e95x25[_0x9c66[156]](_0x9c66[192])[_0x9c66[38]](200)[_0x9c66[37]](_0x7e95x43)})[_0x9c66[39]](function(_0x7e95x26){_0x7e95x2c(_0x7e95x26)})}};exports[_0x9c66[193]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){return Xchatty[_0x9c66[133]](_0x7e95x24[_0x9c66[45]][_0x9c66[44]])[_0x9c66[76]](function(_0x7e95x44){if(!_0x7e95x44){return _0x7e95x25[_0x9c66[194]](404)};return _0x7e95x25[_0x9c66[37]](_0x7e95x44)})[_0x9c66[39]](function(_0x7e95x26){return _0x7e95x2c(_0x7e95x26)})};exports[_0x9c66[128]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){return Xchatty[_0x9c66[128]](_0x7e95x24[_0x9c66[188]])[_0x9c66[76]](function(_0x7e95x44){return _0x7e95x25[_0x9c66[38]](201)[_0x9c66[37]](_0x7e95x44)})[_0x9c66[39]](function(_0x7e95x26){return _0x7e95x2c(_0x7e95x26)})};exports[_0x9c66[132]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){if(_0x7e95x24[_0x9c66[188]][_0x9c66[44]]){delete _0x7e95x24[_0x9c66[188]][_0x9c66[44]]};return Xchatty[_0x9c66[133]](_0x7e95x24[_0x9c66[45]][_0x9c66[44]])[_0x9c66[76]](function(_0x7e95x44){if(!_0x7e95x44){return _0x7e95x25[_0x9c66[194]](404)};var _0x7e95x45=_[_0x9c66[195]](_0x7e95x44,_0x7e95x24[_0x9c66[188]]);_0x7e95x45[_0x9c66[196]]()[_0x9c66[76]](function(){return _0x7e95x25[_0x9c66[38]](200)[_0x9c66[37]](_0x7e95x44)})[_0x9c66[39]](function(_0x7e95x26){return _0x7e95x2c(_0x7e95x26)})})[_0x9c66[39]](function(_0x7e95x26){return _0x7e95x2c(_0x7e95x26)})};exports[_0x9c66[197]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){return Xchatty[_0x9c66[133]](_0x7e95x24[_0x9c66[45]][_0x9c66[44]])[_0x9c66[76]](function(_0x7e95x44){if(!_0x7e95x44){return _0x7e95x25[_0x9c66[194]](404)};_0x7e95x44[_0x9c66[197]]()[_0x9c66[76]](function(){return _0x7e95x25[_0x9c66[194]](204)})[_0x9c66[39]](function(_0x7e95x26){return _0x7e95x2c(_0x7e95x26)})})[_0x9c66[39]](function(_0x7e95x26){return _0x7e95x2c(_0x7e95x26)})};exports[_0x9c66[198]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){var _0x7e95x27,_0x7e95x46,_0x7e95x47;var _0x7e95x48=xchatty_components[_0x9c66[199]];return ChatWebsite[_0x9c66[133]](_0x7e95x24[_0x9c66[45]][_0x9c66[44]],{include:[{all:true}]})[_0x9c66[76]](function(_0x7e95x3c){_0x7e95x27= _0x7e95x3c;return Setting[_0x9c66[133]](1)})[_0x9c66[76]](function(_0x7e95x4e){_0x7e95x47= _0x7e95x4e;return License[_0x9c66[133]](1)})[_0x9c66[76]](function(_0x7e95x49){if(_0x7e95x49){_0x7e95x46= JSON[_0x9c66[140]](license[_0x9c66[202]](_0x7e95x49[_0x9c66[201]][_0x9c66[200]],_0x7e95x49[_0x9c66[158]]))}else {_0x7e95x46= demoLicense};var _0x7e95x4a={rootPath:Util[_0x9c66[47]](_0x7e95x27[_0x9c66[46]])+ _0x9c66[48],assetBase:Util[_0x9c66[47]](_0x7e95x27[_0x9c66[46]])+ _0x9c66[53],websiteId:_0x7e95x27[_0x9c66[44]],headerShape:_0x7e95x27[_0x9c66[55]],enquiryEnable:_0x7e95x27[_0x9c66[203]],onlineFields:_0x7e95x27[_0x9c66[204]],logo:function(){if(_0x7e95x46[_0x9c66[205]]&&  !_0x7e95x27[_0x9c66[206]]&& _0x7e95x27[_0x9c66[207]]){return _0x9c66[208]+ _0x7e95x27[_0x9c66[207]]+ _0x9c66[209]}else {return _0x9c66[210]}},whiteLabel:function(){if(_0x7e95x46[_0x9c66[205]]&&  !_0x7e95x27[_0x9c66[211]]){return _0x7e95x27[_0x9c66[212]]}else {return _0x9c66[213]}},renderedOnlineField:function(){var _0x7e95x4b=_0x9c66[112];var _0x7e95x4c=this;switch(this[_0x9c66[239]]){case _0x9c66[223]:_0x7e95x4b= _0x9c66[214];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[215],_0x7e95x4c[_0x9c66[216]],_0x7e95x4c[_0x9c66[217]],_0x7e95x4c[_0x9c66[218]]?_0x9c66[219]:_0x9c66[112]);_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[220],_0x7e95x4c[_0x9c66[217]],_0x7e95x4c[_0x9c66[216]],_0x7e95x4c[_0x9c66[216]]+ 1,_0x7e95x4c[_0x9c66[221]],_0x7e95x4c[_0x9c66[218]]?_0x9c66[218]:_0x9c66[112]);_0x7e95x4b+= _0x9c66[222];break;case _0x9c66[225]:_0x7e95x4b= _0x9c66[214];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[215],_0x7e95x4c[_0x9c66[216]],_0x7e95x4c[_0x9c66[217]],_0x7e95x4c[_0x9c66[218]]?_0x9c66[219]:_0x9c66[112]);_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[224],_0x7e95x4c[_0x9c66[216]],_0x7e95x4c[_0x9c66[217]],_0x7e95x4c[_0x9c66[216]]+ 1,_0x7e95x4c[_0x9c66[221]],_0x7e95x4c[_0x9c66[218]]?_0x9c66[218]:_0x9c66[112]);_0x7e95x4b+= _0x9c66[222];break;case _0x9c66[231]:_0x7e95x4b= _0x9c66[214];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[226],_0x7e95x4c[_0x9c66[217]]);_[_0x9c66[191]](_0x7e95x4c[_0x9c66[227]],function(_0x7e95x4d){_0x7e95x4b+= _0x9c66[228];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[229],_0x7e95x4c[_0x9c66[216]]+ 1,_0x7e95x4d,_0x7e95x4d);_0x7e95x4b+= _0x9c66[230]});_0x7e95x4b+= _0x9c66[222];break;case _0x9c66[233]:_0x7e95x4b= _0x9c66[214];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[226],_0x7e95x4c[_0x9c66[217]]);_[_0x9c66[191]](_0x7e95x4c[_0x9c66[227]],function(_0x7e95x4d){_0x7e95x4b+= _0x9c66[228];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[232],_0x7e95x4c[_0x9c66[216]]+ 1,_0x7e95x4d,_0x7e95x4d);_0x7e95x4b+= _0x9c66[230]});_0x7e95x4b+= _0x9c66[222];break;case _0x9c66[238]:_0x7e95x4b= _0x9c66[214];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[234],_0x7e95x4c[_0x9c66[216]],_0x7e95x4c[_0x9c66[217]]);_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[235],_0x7e95x4c[_0x9c66[216]]+ 1);_[_0x9c66[191]](_0x7e95x4c[_0x9c66[227]],function(_0x7e95x4d){_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[236],_0x7e95x4d,_0x7e95x4d)});_0x7e95x4b+= _0x9c66[237];break};_0x7e95x4b+= _0x9c66[240];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[241],_0x7e95x4c[_0x9c66[216]]+ 1,_0x7e95x4c[_0x9c66[217]]);return _0x7e95x4b},offlineFields:_0x7e95x27[_0x9c66[242]],renderedOfflineField:function(){var _0x7e95x4b=_0x9c66[112];var _0x7e95x4c=this;switch(this[_0x9c66[239]]){case _0x9c66[223]:_0x7e95x4b= _0x9c66[214];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[243],_0x7e95x4c[_0x9c66[216]],_0x7e95x4c[_0x9c66[217]],_0x7e95x4c[_0x9c66[218]]?_0x9c66[219]:_0x9c66[112]);_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[244],_0x7e95x4c[_0x9c66[217]],_0x7e95x4c[_0x9c66[216]],_0x7e95x4c[_0x9c66[216]]+ 1,_0x7e95x4c[_0x9c66[221]],_0x7e95x4c[_0x9c66[218]]?_0x9c66[218]:_0x9c66[112]);_0x7e95x4b+= _0x9c66[222];break;case _0x9c66[225]:_0x7e95x4b= _0x9c66[214];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[243],_0x7e95x4c[_0x9c66[216]],_0x7e95x4c[_0x9c66[217]],_0x7e95x4c[_0x9c66[218]]?_0x9c66[219]:_0x9c66[112]);_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[245],_0x7e95x4c[_0x9c66[216]],_0x7e95x4c[_0x9c66[217]],_0x7e95x4c[_0x9c66[216]]+ 1,_0x7e95x4c[_0x9c66[221]],_0x7e95x4c[_0x9c66[218]]?_0x9c66[218]:_0x9c66[112]);_0x7e95x4b+= _0x9c66[222];break;case _0x9c66[231]:_0x7e95x4b= _0x9c66[214];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[226],_0x7e95x4c[_0x9c66[217]]);_[_0x9c66[191]](_0x7e95x4c[_0x9c66[227]],function(_0x7e95x4d){_0x7e95x4b+= _0x9c66[228];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[246],_0x7e95x4c[_0x9c66[216]]+ 1,_0x7e95x4d,_0x7e95x4d);_0x7e95x4b+= _0x9c66[230]});_0x7e95x4b+= _0x9c66[222];break;case _0x9c66[233]:_0x7e95x4b= _0x9c66[214];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[226],_0x7e95x4c[_0x9c66[217]]);_[_0x9c66[191]](_0x7e95x4c[_0x9c66[227]],function(_0x7e95x4d){_0x7e95x4b+= _0x9c66[228];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[247],_0x7e95x4c[_0x9c66[216]]+ 1,_0x7e95x4d,_0x7e95x4d);_0x7e95x4b+= _0x9c66[230]});_0x7e95x4b+= _0x9c66[222];break;case _0x9c66[238]:_0x7e95x4b= _0x9c66[214];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[226],_0x7e95x4c[_0x9c66[217]]);_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[248],_0x7e95x4c[_0x9c66[216]]+ 1);_[_0x9c66[191]](_0x7e95x4c[_0x9c66[227]],function(_0x7e95x4d){_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[236],_0x7e95x4d,_0x7e95x4d)});_0x7e95x4b+= _0x9c66[237];break};_0x7e95x4b+= _0x9c66[240];_0x7e95x4b+= util[_0x9c66[75]](_0x9c66[249],_0x7e95x4c[_0x9c66[216]]+ 1,_0x7e95x4c[_0x9c66[217]]);return _0x7e95x4b}};_0x7e95x48= Mustache[_0x9c66[73]](_0x7e95x48,_0x7e95x4a);return _0x7e95x25[_0x9c66[38]](200)[_0x9c66[250]](_0x7e95x48)})[_0x9c66[39]](function(_0x7e95x26){return _0x7e95x2c(_0x7e95x26)})};exports[_0x9c66[251]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){return ChatWebsite[_0x9c66[133]](_0x7e95x24[_0x9c66[45]][_0x9c66[44]],{include:[{model:ChatProactiveAction}]})[_0x9c66[76]](function(_0x7e95x27){if(!_0x7e95x27){return _0x7e95x25[_0x9c66[38]](400)[_0x9c66[250]]({})};return _0x7e95x25[_0x9c66[38]](200)[_0x9c66[250]](_0x7e95x27.ChatProactiveActions)})[_0x9c66[39]](function(_0x7e95x26){return _0x7e95x2c(_0x7e95x26)})};exports[_0x9c66[252]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){return ChatRoom[_0x9c66[133]](_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[254]][_0x9c66[109]])[_0x9c66[76]](function(_0x7e95x30){if(!_0x7e95x30){return _0x7e95x25[_0x9c66[38]](400)[_0x9c66[250]]({})};if(_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[254]][_0x9c66[87]](_0x9c66[253])&& _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[254]][_0x9c66[87]](_0x9c66[35])){return _0x7e95x30[_0x9c66[132]]({rating:_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[254]][_0x9c66[253]],ratingMessage:_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[254]][_0x9c66[35]]})};return})[_0x9c66[76]](function(){return _0x7e95x25[_0x9c66[38]](200)[_0x9c66[250]]({})})[_0x9c66[39]](function(_0x7e95x26){return _0x7e95x25[_0x9c66[38]](400)[_0x9c66[250]](_0x7e95x26)})};exports[_0x9c66[255]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){var _0x7e95x32=_0x7e95x24[_0x9c66[45]][_0x9c66[44]];if(_0x7e95x24[_0x9c66[101]]&& _0x7e95x24[_0x9c66[101]][_0x9c66[96]]){if(_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x9c66[87]](_0x7e95x32)&& _0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[87]](_0x9c66[107])&& _0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[107]]> 0){return ReportChatSession[_0x9c66[257]]({where:{visitorid:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[107]],leaveAt:null}})[_0x9c66[76]](function(_0x7e95x4f){if(!_0x7e95x4f){return};return _0x7e95x4f[_0x9c66[132]]({abandon:true,leaveAt:moment()[_0x9c66[75]](_0x9c66[256])})})[_0x9c66[76]](function(){return _0x7e95x25[_0x9c66[38]](200)[_0x9c66[250]]({})})[_0x9c66[39]](function(_0x7e95x26){_0x7e95x25[_0x9c66[38]](500)[_0x9c66[250]]({})})}};return _0x7e95x25[_0x9c66[38]](200)[_0x9c66[250]]({})};exports[_0x9c66[258]]= function(_0x7e95x24,_0x7e95x25,_0x7e95x2c){if(!_0x7e95x24[_0x9c66[101]][_0x9c66[96]]){_0x7e95x24[_0x9c66[101]][_0x9c66[96]]= {}};if(!_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x24[_0x9c66[45]][_0x9c66[44]]]){_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x24[_0x9c66[45]][_0x9c66[44]]]= {}};var _0x7e95x32=_0x7e95x24[_0x9c66[45]][_0x9c66[44]];var _0x7e95x50;var _0x7e95x2e={};var _0x7e95x51=[];return ChatWebsite[_0x9c66[133]](_0x7e95x32)[_0x9c66[76]](function(_0x7e95x3e){if(!_0x7e95x3e){return _0x7e95x25[_0x9c66[194]](500)};_0x7e95x50= _0x7e95x3e;return _0x7e95x50[_0x9c66[267]]({include:[{model:ChatQueue,include:[{model:Agent}]},{model:Agent},{model:Interval,include:[{all:true}]}]})})[_0x9c66[76]](function(_0x7e95x53){_[_0x9c66[191]](_0x7e95x53,function(_0x7e95x54){if(checkAppInterval(_0x7e95x54)){if(_0x7e95x54[_0x9c66[261]]=== _0x9c66[262]){if(_0x7e95x54[_0x9c66[27]][_0x9c66[87]](_0x9c66[263])&& _0x7e95x54[_0x9c66[27]][_0x9c66[263]][_0x9c66[118]]> 0){_0x7e95x51= _[_0x9c66[265]](_[_0x9c66[195]](_0x7e95x51,_[_0x9c66[264]](_0x7e95x54[_0x9c66[27]].Users,_0x9c66[44])))}}else {if(_0x7e95x54[_0x9c66[261]]=== _0x9c66[119]){_0x7e95x51[_0x9c66[190]](_0x7e95x54[_0x9c66[19]][_0x9c66[44]]);_0x7e95x51= _[_0x9c66[265]](_0x7e95x51)}}}});return Agent[_0x9c66[266]]({where:{online:true,id:{$in:_0x7e95x51}}})})[_0x9c66[76]](function(_0x7e95x52){if(_0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[113]]){_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[113]]= _0x7e95x24[_0x9c66[88]][_0x9c66[114]][_0x9c66[113]]=== _0x9c66[50]?true:false};_0x7e95x2e= {success:true,has_session_saf:null,signed_up:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[109]]?true:false,fullname:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[115]]|| _0x9c66[112],email:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[116]]|| _0x9c66[112],avatar:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[117]]|| _0x9c66[112],open_state:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[113]]|| _0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[109]]?true:false,online:_0x7e95x52[_0x9c66[260]]?true:false,is_unserved:false,room_id:0};if(_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[107]]){return ChatRoom[_0x9c66[77]]({where:{ChatVisitorId:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[107]],status:_0x9c66[111],token:{$ne:_0x9c66[112]}}})};return})[_0x9c66[76]](function(_0x7e95x30){if(_0x7e95x30){_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[109]]= _0x7e95x30[_0x9c66[44]];_0x7e95x2e[_0x9c66[109]]= _0x7e95x30[_0x9c66[44]];_0x7e95x2e[_0x9c66[110]]= true}else {_0x7e95x2e[_0x9c66[110]]= false};if(_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[107]]){return ChatVisitor[_0x9c66[77]]({where:{id:_0x7e95x24[_0x9c66[101]][_0x9c66[96]][_0x7e95x32][_0x9c66[107]],status:_0x9c66[108]}})};return})[_0x9c66[76]](function(_0x7e95x2f){if(_0x7e95x2f){_0x7e95x2e[_0x9c66[102]]= true};return _0x7e95x25[_0x9c66[38]](200)[_0x9c66[250]](_0x7e95x2e)})[_0x9c66[39]](function(_0x7e95x26){logger[_0x9c66[36]](_0x9c66[259],_0x7e95x26);return _0x7e95x25[_0x9c66[38]](500)[_0x9c66[250]]({})})};function checkAppInterval(_0x7e95x54){var _0x7e95x56=true;if(_0x7e95x54[_0x9c66[32]]){for(var _0x7e95x57=0;_0x7e95x57< _0x7e95x54[_0x9c66[32]][_0x9c66[268]][_0x9c66[118]];_0x7e95x57++){if(Util[_0x9c66[270]](splitInterval(_0x7e95x54[_0x9c66[32]][_0x9c66[268]][_0x7e95x57][_0x9c66[269]]))){break}else {_0x7e95x56= false}}}else {if(!Util[_0x9c66[270]](splitInterval(_0x7e95x54[_0x9c66[269]]))){_0x7e95x56= false}};return _0x7e95x56}function splitInterval(_0x7e95x59){var _0x7e95x5a={};var _0x7e95x5b=_0x7e95x59[_0x9c66[271]](_0x9c66[161]);var _0x7e95x5c;_0x7e95x5b[_0x9c66[191]](function(_0x7e95x4c,_0x7e95x5d){switch(_0x7e95x5d){case 0:if(_0x7e95x4c!== _0x9c66[219]){_0x7e95x5c= _0x7e95x4c[_0x9c66[271]](_0x9c66[272]);_0x7e95x5a[_0x9c66[273]]= moment(_0x7e95x5c[0],_0x9c66[274]);_0x7e95x5a[_0x9c66[275]]= moment(_0x7e95x5c[1],_0x9c66[274])}else {_0x7e95x5a[_0x9c66[273]]= null;_0x7e95x5a[_0x9c66[275]]= null};break;case 1:if(_0x7e95x4c!== _0x9c66[219]){_0x7e95x5c= _0x7e95x4c[_0x9c66[271]](_0x9c66[272]);_0x7e95x5a[_0x9c66[276]]= weekDaysCollection[_0x7e95x5c[0]];_0x7e95x5a[_0x9c66[277]]= _0x7e95x5c[1]?weekDaysCollection[_0x7e95x5c[1]]:null}else {_0x7e95x5a[_0x9c66[276]]= null;_0x7e95x5a[_0x9c66[277]]= null};break;case 2:if(_0x7e95x4c!== _0x9c66[219]){_0x7e95x5c= _0x7e95x4c[_0x9c66[271]](_0x9c66[272]);_0x7e95x5a[_0x9c66[278]]= _0x7e95x5c[0];_0x7e95x5a[_0x9c66[279]]= _0x7e95x5c[1]?_0x7e95x5c[1]:null}else {_0x7e95x5a[_0x9c66[278]]= null;_0x7e95x5a[_0x9c66[279]]= null};break;case 3:if(_0x7e95x4c!== _0x9c66[219]){_0x7e95x5c= _0x7e95x4c[_0x9c66[271]](_0x9c66[272]);_0x7e95x5a[_0x9c66[280]]= monthsCollection[_0x7e95x5c[0]];_0x7e95x5a[_0x9c66[281]]= _0x7e95x5c[1]?monthsCollection[_0x7e95x5c[1]]:null}else {_0x7e95x5a[_0x9c66[280]]= null;_0x7e95x5a[_0x9c66[281]]= null};break;default:}});return _0x7e95x5a}
\ 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