Built motion from commit 6e01242c4.|1.0.20
[motion.git] / server / api / xchatty / xchatty.controller.js
index 6c607a2..f410fb9 100644 (file)
@@ -1 +1 @@
-var _0xe8f5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6A\x73\x6D\x69\x6E","\x6D\x75\x73\x74\x61\x63\x68\x65","\x71\x75\x65\x72\x79\x73\x74\x72\x69\x6E\x67","\x70\x61\x74\x68","\x6D\x64\x35","\x66\x73","\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","\x69\x70\x61\x64\x64\x72\x2E\x6A\x73","\x67\x65\x6F\x69\x70\x2D\x6C\x69\x74\x65","\x74\x6F\x2D\x63\x73\x76","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x72\x6F\x75\x74\x69\x6E\x67\x2F\x73\x63\x68\x65\x64\x75\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x58\x63\x68\x61\x74\x74\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\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","\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","\x43\x6F\x6E\x74\x61\x63\x74","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x67\x65\x74\x4A\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\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","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x53\x74\x79\x6C\x65\x42\x79\x57\x65\x62\x73\x69\x74\x65","\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","\x66\x69\x6E\x64\x4F\x6E\x65","\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","\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","\x6D\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","\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","\x63\x68\x61\x74","\x25\x73\x2E\x25\x73","\x75\x6E\x69\x78","\x66\x6F\x72\x6D\x61\x74","\x61\x64\x64\x72\x65\x73\x73","\x69\x6E\x69\x74","\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","\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","\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","\x65\x72\x72","\x6C\x6F\x67","\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"];_0xe8f5[0];var _=require(_0xe8f5[1]);var jsmin=require(_0xe8f5[2])[_0xe8f5[2]];var Mustache=require(_0xe8f5[3]);var querystring=require(_0xe8f5[4]);var path=require(_0xe8f5[5]);var md5=require(_0xe8f5[6]);var fs=require(_0xe8f5[7]);var UAParser=require(_0xe8f5[8]);var uaParser= new UAParser();var languageParser=require(_0xe8f5[9]);var ipaddr=require(_0xe8f5[10]);var geoip=require(_0xe8f5[11]);var csv=require(_0xe8f5[12]);var util=require(_0xe8f5[13]);var moment=require(_0xe8f5[14]);var Scheduler=require(_0xe8f5[15]);var config=require(_0xe8f5[16]);var Xchatty=require(_0xe8f5[18])[_0xe8f5[17]];var xchatty_components=require(_0xe8f5[19]);var Util=require(_0xe8f5[20]);var license=require(_0xe8f5[21]);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:_0xe8f5[22]};var sequelize=require(_0xe8f5[18])[_0xe8f5[23]];var User=require(_0xe8f5[18])[_0xe8f5[24]];var Agent=require(_0xe8f5[18])[_0xe8f5[24]];var ChatRoom=require(_0xe8f5[18])[_0xe8f5[25]];var ChatEnquiry=require(_0xe8f5[18])[_0xe8f5[26]];var ChatVisitor=require(_0xe8f5[18])[_0xe8f5[27]];var ChatMessage=require(_0xe8f5[18])[_0xe8f5[28]];var ChatWebsite=require(_0xe8f5[18])[_0xe8f5[29]];var ChatWebsitesField=require(_0xe8f5[18])[_0xe8f5[30]];var ChatProactiveAction=require(_0xe8f5[18])[_0xe8f5[31]];var ReportChatSession=require(_0xe8f5[18])[_0xe8f5[32]];var ChatQueue=require(_0xe8f5[18])[_0xe8f5[33]];var License=require(_0xe8f5[18])[_0xe8f5[34]];const Contact=require(_0xe8f5[18])[_0xe8f5[35]];var id=1;exports[_0xe8f5[36]]= function(_0x4968x26,_0x4968x27,_0x4968x28){return Xchatty[_0xe8f5[41]]()[_0xe8f5[40]](function(_0x4968x2a){return _0x4968x27[_0xe8f5[39]](200)[_0xe8f5[38]](_0x4968x2a)})[_0xe8f5[37]](function(_0x4968x29){return _0x4968x28(_0x4968x29)})};exports[_0xe8f5[42]]= function(_0x4968x26,_0x4968x27,_0x4968x28){ChatWebsite[_0xe8f5[77]](_0x4968x26[_0xe8f5[48]][_0xe8f5[47]])[_0xe8f5[40]](function(_0x4968x2b){_0x4968x27[_0xe8f5[45]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xe8f5[43],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0xe8f5[44]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x4968x2c=xchatty_components[_0xe8f5[46]];var _0x4968x2d={websiteId:_0x4968x26[_0xe8f5[48]][_0xe8f5[47]],rootPath:Util[_0xe8f5[50]](_0x4968x2b[_0xe8f5[49]])+ _0xe8f5[51],signedUp:_0xe8f5[52],windowFocused:_0xe8f5[52],isNewPage:_0xe8f5[53],processingSignUp:_0xe8f5[52],processingEnquiry:_0xe8f5[52],processingSend:_0xe8f5[52],processingRating:_0xe8f5[52],visitorFullname:_0xe8f5[54],visitorAvatar:_0xe8f5[54],timerReadMessages:_0xe8f5[55],timerCheckStatus:_0xe8f5[55],isOnline:_0xe8f5[52],decayHistory:0,defaultTimeout:5000,isInitialStatusCheck:_0xe8f5[53],muteNotificationSoundOnce:_0xe8f5[52],assetBase:Util[_0xe8f5[50]](_0x4968x2b[_0xe8f5[49]])+ _0xe8f5[56],hasSessionSaf:_0xe8f5[52],restoreOpenState:_0xe8f5[52],animateHover:_0x4968x2b[_0xe8f5[57]],hideEmail:_0xe8f5[52],hideOffline:_0xe8f5[52],headerShape:_0x4968x2b[_0xe8f5[58]],HeaderOnline:_0x4968x2b[_0xe8f5[59]],OnlineMessage:_0x4968x2b[_0xe8f5[60]],UsernamePlaceholder:_0x4968x2b[_0xe8f5[61]],EmailPlaceholder:_0x4968x2b[_0xe8f5[62]],StartChatButtonText:_0x4968x2b[_0xe8f5[63]],OfflineMessage:_0x4968x2b[_0xe8f5[64]],HeaderOffline:_0x4968x2b[_0xe8f5[65]],EnquiryMessagePlaceholder:_0x4968x2b[_0xe8f5[66]],EnquiryButtonText:_0x4968x2b[_0xe8f5[67]],downloadTranscript:_0x4968x2b[_0xe8f5[68]],RatingMessage:_0x4968x2b[_0xe8f5[69]],RatingSend:_0x4968x2b[_0xe8f5[70]],RatingSkip:_0x4968x2b[_0xe8f5[71]],MessageAgentsBusy:_0x4968x2b[_0xe8f5[72]],NameTitle:_0x4968x2b[_0xe8f5[73]],EmailTitle:_0x4968x2b[_0xe8f5[74]],MessageTitle:_0x4968x2b[_0xe8f5[75]]};_0x4968x2c= Mustache[_0xe8f5[76]](_0x4968x2c,_0x4968x2d);_0x4968x27[_0xe8f5[38]](_0x4968x2c)})[_0xe8f5[37]](function(_0x4968x29){_0x4968x28(_0x4968x29)})};exports[_0xe8f5[78]]= function(_0x4968x26,_0x4968x27,_0x4968x28){ChatWebsite[_0xe8f5[77]](_0x4968x26[_0xe8f5[48]][_0xe8f5[47]])[_0xe8f5[40]](function(_0x4968x2b){_0x4968x27[_0xe8f5[45]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xe8f5[79],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0xe8f5[44]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x4968x2e=xchatty_components[_0xe8f5[80]];var _0x4968x2f={assetBase:Util[_0xe8f5[50]](_0x4968x2b[_0xe8f5[49]])+ _0xe8f5[56],color:_0x4968x2b[_0xe8f5[81]],colorFocus:_0x4968x2b[_0xe8f5[82]],colorButton:_0x4968x2b[_0xe8f5[83]]};_0x4968x2e= Mustache[_0xe8f5[76]](_0x4968x2e,_0x4968x2f);_0x4968x27[_0xe8f5[38]](_0x4968x2e)})[_0xe8f5[37]](function(_0x4968x29){_0x4968x28(_0x4968x29)})};exports[_0xe8f5[84]]= function(_0x4968x26,_0x4968x27,_0x4968x28){if(_0x4968x26[_0xe8f5[87]][_0xe8f5[86]](_0xe8f5[85])){_0x4968x27[_0xe8f5[93]](path[_0xe8f5[92]](config[_0xe8f5[88]],_0xe8f5[89],_0xe8f5[90],_0x4968x26[_0xe8f5[87]][_0xe8f5[91]]))}else {_0x4968x27[_0xe8f5[93]](path[_0xe8f5[92]](config[_0xe8f5[88]],_0xe8f5[89],_0xe8f5[94],_0xe8f5[95],_0xe8f5[96],_0x4968x26[_0xe8f5[87]][_0xe8f5[91]]))}};exports[_0xe8f5[97]]= function(_0x4968x26,_0x4968x27,_0x4968x28){_0x4968x27[_0xe8f5[45]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xe8f5[43],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0xe8f5[44]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x4968x30=xchatty_components[_0xe8f5[98]];_0x4968x27[_0xe8f5[38]](_0x4968x30)};exports[_0xe8f5[99]]= function(_0x4968x26,_0x4968x27,_0x4968x28){if(!_0x4968x26[_0xe8f5[100]][_0xe8f5[95]]){_0x4968x26[_0xe8f5[100]][_0xe8f5[95]]= {}};var _0x4968x31={};return Agent[_0xe8f5[41]]({where:{online:true,role:_0xe8f5[119]}})[_0xe8f5[40]](function(_0x4968x34){if(_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[113]]){_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[113]]= _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[113]]=== _0xe8f5[53]?true:false};_0x4968x31= {success:true,has_session_saf:null,signed_up:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[109]]?true:false,fullname:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[115]]?_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[115]]:_0xe8f5[112],email:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[116]]?_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[116]]:_0xe8f5[112],avatar:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[117]]?_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[117]]:_0xe8f5[112],open_state:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[113]]|| _0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[109]]?true:false,online:_0x4968x34[_0xe8f5[118]]?true:false,is_unserved:false,room_id:0};return})[_0xe8f5[40]](function(){if(_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[106]]){return ChatRoom[_0xe8f5[108]]({where:{ChatVisitorId:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[106]],status:_0xe8f5[111],token:{$ne:_0xe8f5[112]}}})};return})[_0xe8f5[40]](function(_0x4968x33){if(_0x4968x33){_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[109]]= _0x4968x33[_0xe8f5[47]];_0x4968x31[_0xe8f5[109]]= _0x4968x33[_0xe8f5[47]];_0x4968x31[_0xe8f5[110]]= true}else {_0x4968x31[_0xe8f5[110]]= false};return})[_0xe8f5[40]](function(){if(_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[106]]){return ChatVisitor[_0xe8f5[108]]({where:{id:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[106]],status:_0xe8f5[107]}})};return})[_0xe8f5[40]](function(_0x4968x32){if(_0x4968x32){_0x4968x31[_0xe8f5[101]]= true};return _0x4968x27[_0xe8f5[38]](_0x4968x26[_0xe8f5[87]][_0xe8f5[102]]+ _0xe8f5[103]+ JSON[_0xe8f5[104]](_0x4968x31)+ _0xe8f5[105])})[_0xe8f5[37]](function(_0x4968x29){return _0x4968x28(_0x4968x29)})};exports[_0xe8f5[120]]= function(_0x4968x26,_0x4968x27,_0x4968x28){var _0x4968x35=_0x4968x26[_0xe8f5[48]][_0xe8f5[47]];var _0x4968x36={where:{ChatRoomId:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[109]]},include:[{model:User,attributes:[_0xe8f5[47],_0xe8f5[121],_0xe8f5[115],_0xe8f5[116]]},{model:ChatVisitor,attributes:[_0xe8f5[47],_0xe8f5[115],_0xe8f5[116]]}]};if(_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[122]]=== _0xe8f5[52]){_0x4968x36[_0xe8f5[123]][_0xe8f5[47]]= {$gt:_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[124]]}};ChatMessage[_0xe8f5[41]](_0x4968x36)[_0xe8f5[40]](function(_0x4968x37){var _0x4968x38={success:true,messages:_0x4968x37,composing:false,composing_fullname:null};_0x4968x27[_0xe8f5[38]](_0x4968x26[_0xe8f5[87]][_0xe8f5[102]]+ _0xe8f5[103]+ JSON[_0xe8f5[104]](_0x4968x38)+ _0xe8f5[105])})[_0xe8f5[37]](function(_0x4968x29){_0x4968x28(_0x4968x29)})};exports[_0xe8f5[125]]= function(_0x4968x26,_0x4968x27,_0x4968x28){var _0x4968x35=_0x4968x26[_0xe8f5[48]][_0xe8f5[47]];var _0x4968x36={where:{ChatRoomId:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[109]]},include:[{model:User,attributes:[_0xe8f5[47],_0xe8f5[121],_0xe8f5[115],_0xe8f5[116]]},{model:ChatVisitor,attributes:[_0xe8f5[47],_0xe8f5[115],_0xe8f5[116]]}]};if(_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[122]]=== _0xe8f5[52]){_0x4968x36[_0xe8f5[123]][_0xe8f5[47]]= {$gt:_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[124]]}};ChatMessage[_0xe8f5[128]]({body:_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[127]][_0xe8f5[126]],ChatRoomId:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[109]],ChatVisitorId:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[106]]})[_0xe8f5[40]](function(_0x4968x39){ChatMessage[_0xe8f5[41]](_0x4968x36)[_0xe8f5[40]](function(_0x4968x37){var _0x4968x38={errors:[],success:true,data:_0x4968x39,messages:_0x4968x37};_0x4968x27[_0xe8f5[38]](_0x4968x26[_0xe8f5[87]][_0xe8f5[102]]+ _0xe8f5[103]+ JSON[_0xe8f5[104]](_0x4968x38)+ _0xe8f5[105])})[_0xe8f5[37]](function(_0x4968x29){_0x4968x28(_0x4968x29)})})[_0xe8f5[37]](function(_0x4968x29){_0x4968x28(_0x4968x29)})};exports[_0xe8f5[129]]= function(_0x4968x26,_0x4968x27,_0x4968x28){var _0x4968x35=_0x4968x26[_0xe8f5[48]][_0xe8f5[47]];return ChatRoom[_0xe8f5[77]](_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[109]])[_0xe8f5[40]](function(_0x4968x33){return _0x4968x33[_0xe8f5[132]]({status:_0xe8f5[130],completeReason:_0xe8f5[131]})})[_0xe8f5[40]](function(){var _0x4968x38={success:true,errors:[]};_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35]= {};_0x4968x27[_0xe8f5[38]](_0x4968x26[_0xe8f5[87]][_0xe8f5[102]]+ _0xe8f5[103]+ JSON[_0xe8f5[104]](_0x4968x38)+ _0xe8f5[105])})[_0xe8f5[37]](function(_0x4968x29){_0x4968x28(_0x4968x29)})};exports[_0xe8f5[133]]= function(_0x4968x26,_0x4968x27,_0x4968x28){var _0x4968x35=_0x4968x26[_0xe8f5[48]][_0xe8f5[47]];var _0x4968x3a=uaParser[_0xe8f5[137]](_0x4968x26[_0xe8f5[136]][_0xe8f5[135]])[_0xe8f5[134]]();var _0x4968x3b=languageParser[_0xe8f5[139]](_0x4968x26[_0xe8f5[136]][_0xe8f5[138]]);var _0x4968x3c=_0x4968x26[_0xe8f5[136]][_0xe8f5[140]]?_0x4968x26[_0xe8f5[136]][_0xe8f5[140]]:_0x4968x26[_0xe8f5[142]][_0xe8f5[141]]|| _0x4968x26[_0xe8f5[143]];var _0x4968x3d={fullname:_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[144]][_0xe8f5[115]],email:_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[144]][_0xe8f5[116]],remote_address:_0x4968x3c,user_agent:_0x4968x26[_0xe8f5[136]][_0xe8f5[135]],visitor_language:_0x4968x26[_0xe8f5[136]][_0xe8f5[138]],referer:_0x4968x26[_0xe8f5[136]][_0xe8f5[145]],origin:_0xe8f5[146],browser:_0x4968x3a[_0xe8f5[147]][_0xe8f5[121]]+ _0xe8f5[148]+ _0x4968x3a[_0xe8f5[147]][_0xe8f5[149]],engine:_0x4968x3a[_0xe8f5[150]][_0xe8f5[121]]+ _0xe8f5[148]+ _0x4968x3a[_0xe8f5[150]][_0xe8f5[149]],os:_0x4968x3a[_0xe8f5[151]][_0xe8f5[121]]+ _0xe8f5[148]+ _0x4968x3a[_0xe8f5[151]][_0xe8f5[149]],device:_0x4968x3a[_0xe8f5[153]][_0xe8f5[152]]?_0x4968x3a[_0xe8f5[153]][_0xe8f5[152]]+ _0xe8f5[148]+ _0x4968x3a[_0xe8f5[153]][_0xe8f5[154]]+ _0xe8f5[148]+ _0x4968x3a[_0xe8f5[153]][_0xe8f5[155]]:null,ChatWebsiteId:_0x4968x26[_0xe8f5[87]][_0xe8f5[156]]};if(_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[144]][_0xe8f5[157]]&& _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[144]][_0xe8f5[158]]){_0x4968x3d[_0xe8f5[157]]= _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[144]][_0xe8f5[157]];if(_[_0xe8f5[159]](_0x4968x3d[_0xe8f5[157]])){_0x4968x3d[_0xe8f5[157]]= _[_0xe8f5[92]](_0x4968x3d[_0xe8f5[157]],_0xe8f5[160])};_0x4968x3d[_0xe8f5[158]]= _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[144]][_0xe8f5[158]]};if(_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[144]][_0xe8f5[161]]&& _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[144]][_0xe8f5[162]]){_0x4968x3d[_0xe8f5[161]]= _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[144]][_0xe8f5[161]];if(_[_0xe8f5[159]](_0x4968x3d[_0xe8f5[161]])){_0x4968x3d[_0xe8f5[161]]= _[_0xe8f5[92]](_0x4968x3d[_0xe8f5[161]],_0xe8f5[160])};_0x4968x3d[_0xe8f5[162]]= _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[144]][_0xe8f5[162]]};if(_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[144]][_0xe8f5[163]]&& _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[144]][_0xe8f5[164]]){_0x4968x3d[_0xe8f5[163]]= _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[144]][_0xe8f5[163]];if(_[_0xe8f5[159]](_0x4968x3d[_0xe8f5[163]])){_0x4968x3d[_0xe8f5[163]]= _[_0xe8f5[92]](_0x4968x3d[_0xe8f5[163]],_0xe8f5[160])};_0x4968x3d[_0xe8f5[164]]= _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[144]][_0xe8f5[164]]};var _0x4968x3e,_0x4968x3f,_0x4968x40;return ChatVisitor[_0xe8f5[128]](_0x4968x3d)[_0xe8f5[40]](function(_0x4968x43){_0x4968x3e= _0x4968x43;return ChatWebsite[_0xe8f5[77]](_0x4968x3e.ChatWebsiteId)})[_0xe8f5[40]](function(_0x4968x42){_0x4968x3f= _0x4968x42;if(_0x4968x3f[_0xe8f5[173]]){return Contact[_0xe8f5[174]]({where:{email:_0x4968x3e[_0xe8f5[116]]},defaults:{email:_0x4968x3e[_0xe8f5[116]],firstName:_0x4968x3e[_0xe8f5[115]],ListId:_0x4968x3f[_0xe8f5[173]]}})}})[_0xe8f5[40]](function(){return ChatRoom[_0xe8f5[128]]({type:_0xe8f5[172],ChatVisitorId:_0x4968x3e[_0xe8f5[47]],ChatWebsiteId:_0x4968x3f[_0xe8f5[47]]})})[_0xe8f5[40]](function(_0x4968x33){_0x4968x40= _0x4968x33;var _0x4968x41= new Scheduler({channel:_0xe8f5[165],uniqueid:util[_0xe8f5[168]](_0xe8f5[166],moment()[_0xe8f5[167]](),_0x4968x40[_0xe8f5[47]]),roomid:_0x4968x40[_0xe8f5[47]],websiteid:_0x4968x3f[_0xe8f5[47]],websitename:_0x4968x3f[_0xe8f5[121]],websiteaddress:_0x4968x3f[_0xe8f5[169]],accountid:_0x4968x3f[_0xe8f5[47]],accountname:_0x4968x3f[_0xe8f5[121]],accountaddress:_0x4968x3f[_0xe8f5[169]],visitorid:_0x4968x3e[_0xe8f5[47]],visitorname:_0x4968x3e[_0xe8f5[115]],visitoremail:_0x4968x3e[_0xe8f5[116]]});_0x4968x41[_0xe8f5[170]]();_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[115]]= _0x4968x3e[_0xe8f5[115]];_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[116]]= _0x4968x3e[_0xe8f5[116]];_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[117]]= md5(_0x4968x3e[_0xe8f5[116]]).toString(_0xe8f5[171]);_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[106]]= _0x4968x3e[_0xe8f5[47]];var _0x4968x38={success:true,errors:[],chatVisitor:{id:_0x4968x3e[_0xe8f5[47]]}};_0x4968x27[_0xe8f5[38]](_0x4968x26[_0xe8f5[87]][_0xe8f5[102]]+ _0xe8f5[103]+ JSON[_0xe8f5[104]](_0x4968x38)+ _0xe8f5[105])})[_0xe8f5[37]](function(_0x4968x29){_0x4968x28(_0x4968x29)})};exports[_0xe8f5[175]]= function(_0x4968x26,_0x4968x27,_0x4968x28){var _0x4968x35=_0x4968x26[_0xe8f5[48]][_0xe8f5[47]];return ChatVisitor[_0xe8f5[77]](_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[106]])[_0xe8f5[40]](function(_0x4968x43){return _0x4968x43[_0xe8f5[132]]({status:_0xe8f5[107]})})[_0xe8f5[40]](function(){var _0x4968x38={success:true,errors:[]};_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35]= {};_0x4968x27[_0xe8f5[38]](_0x4968x26[_0xe8f5[87]][_0xe8f5[102]]+ _0xe8f5[103]+ JSON[_0xe8f5[104]](_0x4968x38)+ _0xe8f5[105])})[_0xe8f5[37]](function(_0x4968x29){_0x4968x28(_0x4968x29)})};exports[_0xe8f5[176]]= function(_0x4968x26,_0x4968x27,_0x4968x28){return sequelize[_0xe8f5[188]]()[_0xe8f5[40]](function(_0x4968x44){var _0x4968x3c=_0x4968x26[_0xe8f5[136]][_0xe8f5[140]]?_0x4968x26[_0xe8f5[136]][_0xe8f5[140]]:_0x4968x26[_0xe8f5[142]][_0xe8f5[141]]|| _0x4968x26[_0xe8f5[143]];var _0x4968x3a=uaParser[_0xe8f5[137]](_0x4968x26[_0xe8f5[136]][_0xe8f5[135]])[_0xe8f5[134]]();var _0x4968x3b=languageParser[_0xe8f5[139]](_0x4968x26[_0xe8f5[136]][_0xe8f5[138]]);var _0x4968x3d={fullname:_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[115]],email:_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[116]],remote_address:_0x4968x3c,user_agent:_0x4968x26[_0xe8f5[136]][_0xe8f5[135]],visitor_language:_0x4968x26[_0xe8f5[136]][_0xe8f5[138]],browser:_0x4968x3a[_0xe8f5[147]][_0xe8f5[121]]+ _0xe8f5[148]+ _0x4968x3a[_0xe8f5[147]][_0xe8f5[149]],engine:_0x4968x3a[_0xe8f5[150]][_0xe8f5[121]]+ _0xe8f5[148]+ _0x4968x3a[_0xe8f5[150]][_0xe8f5[149]],os:_0x4968x3a[_0xe8f5[151]][_0xe8f5[121]]+ _0xe8f5[148]+ _0x4968x3a[_0xe8f5[151]][_0xe8f5[149]],device:_0x4968x3a[_0xe8f5[153]][_0xe8f5[152]]?_0x4968x3a[_0xe8f5[153]][_0xe8f5[152]]+ _0xe8f5[148]+ _0x4968x3a[_0xe8f5[153]][_0xe8f5[154]]+ _0xe8f5[148]+ _0x4968x3a[_0xe8f5[153]][_0xe8f5[155]]:null,referer:_0x4968x26[_0xe8f5[136]][_0xe8f5[145]],origin:_0xe8f5[178],status:_0xe8f5[107],ChatWebsiteId:parseInt(_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[179]],10),ChatEnquiry:{username:_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[115]],email:_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[116]],text:_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[126]],ChatWebsiteId:parseInt(_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[179]],10)}};if(_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[180]]&& _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[181]]){_0x4968x3d[_0xe8f5[180]]= _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[180]];if(_[_0xe8f5[159]](_0x4968x3d[_0xe8f5[180]])){_0x4968x3d[_0xe8f5[180]]= _[_0xe8f5[92]](_0x4968x3d[_0xe8f5[180]],_0xe8f5[160])};_0x4968x3d[_0xe8f5[181]]= _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[181]]};if(_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[182]]&& _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[183]]){_0x4968x3d[_0xe8f5[182]]= _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[182]];if(_[_0xe8f5[159]](_0x4968x3d[_0xe8f5[182]])){_0x4968x3d[_0xe8f5[182]]= _[_0xe8f5[92]](_0x4968x3d[_0xe8f5[182]],_0xe8f5[160])};_0x4968x3d[_0xe8f5[183]]= _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[183]]};if(_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[184]]&& _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[185]]){_0x4968x3d[_0xe8f5[184]]= _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[184]];if(_[_0xe8f5[159]](_0x4968x3d[_0xe8f5[184]])){_0x4968x3d[_0xe8f5[184]]= _[_0xe8f5[92]](_0x4968x3d[_0xe8f5[184]],_0xe8f5[160])};_0x4968x3d[_0xe8f5[185]]= _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[177]][_0xe8f5[185]]};var _0x4968x3e;return ChatVisitor[_0xe8f5[128]](_0x4968x3d,{transaction:_0x4968x44,include:[{model:ChatEnquiry}]})[_0xe8f5[40]](function(_0x4968x43){_0x4968x3e= _0x4968x43;return ChatWebsite[_0xe8f5[77]](_0x4968x3e.ChatWebsiteId)})[_0xe8f5[40]](function(_0x4968x42){if(_0x4968x42[_0xe8f5[173]]){return Contact[_0xe8f5[174]]({where:{email:_0x4968x3e[_0xe8f5[116]]},defaults:{email:_0x4968x3e[_0xe8f5[116]],firstName:_0x4968x3e[_0xe8f5[115]],ListId:_0x4968x42[_0xe8f5[173]]}})}})[_0xe8f5[40]](function(){_0x4968x44[_0xe8f5[187]]();_0x4968x27[_0xe8f5[38]](_0x4968x26[_0xe8f5[87]][_0xe8f5[102]]+ _0xe8f5[103]+ JSON[_0xe8f5[104]]({success:true,errors:[]})+ _0xe8f5[105])})[_0xe8f5[37]](function(_0x4968x29){_0x4968x44[_0xe8f5[186]]();_0x4968x28(_0x4968x29)})})};exports[_0xe8f5[189]]= function(_0x4968x26,_0x4968x27,_0x4968x28){var _0x4968x35=_0x4968x26[_0xe8f5[48]][_0xe8f5[47]];if(_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35]&& _0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[106]]&& _0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[109]]){ChatMessage[_0xe8f5[41]]({where:{ChatRoomId:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[109]]},include:[{model:Agent,attributes:[_0xe8f5[47],_0xe8f5[115]]},{model:ChatVisitor,attributes:[_0xe8f5[47],_0xe8f5[115]]}]})[_0xe8f5[40]](function(_0x4968x37){var _0x4968x45=[];_0x4968x37[_0xe8f5[195]](function(_0x4968x39){var _0x4968x46={name:_0x4968x39[_0xe8f5[190]]?_0x4968x39[_0xe8f5[24]][_0xe8f5[115]]:_0x4968x39[_0xe8f5[27]][_0xe8f5[115]],text:_0x4968x39[_0xe8f5[192]][_0xe8f5[191]](/(\r\n|\n|\r)/gm,_0xe8f5[148]),date:_0x4968x39[_0xe8f5[193]]};_0x4968x45[_0xe8f5[194]](_0x4968x46)});var _0x4968x47=csv(_0x4968x45);_0x4968x27[_0xe8f5[155]](_0xe8f5[196])[_0xe8f5[39]](200)[_0xe8f5[38]](_0x4968x47)})[_0xe8f5[37]](function(_0x4968x29){_0x4968x28(_0x4968x29)})}};exports[_0xe8f5[197]]= function(_0x4968x26,_0x4968x27,_0x4968x28){return Xchatty[_0xe8f5[77]](_0x4968x26[_0xe8f5[48]][_0xe8f5[47]])[_0xe8f5[40]](function(_0x4968x48){if(!_0x4968x48){return _0x4968x27[_0xe8f5[198]](404)};return _0x4968x27[_0xe8f5[38]](_0x4968x48)})[_0xe8f5[37]](function(_0x4968x29){return _0x4968x28(_0x4968x29)})};exports[_0xe8f5[128]]= function(_0x4968x26,_0x4968x27,_0x4968x28){return Xchatty[_0xe8f5[128]](_0x4968x26[_0xe8f5[192]])[_0xe8f5[40]](function(_0x4968x48){return _0x4968x27[_0xe8f5[39]](201)[_0xe8f5[38]](_0x4968x48)})[_0xe8f5[37]](function(_0x4968x29){return _0x4968x28(_0x4968x29)})};exports[_0xe8f5[132]]= function(_0x4968x26,_0x4968x27,_0x4968x28){if(_0x4968x26[_0xe8f5[192]][_0xe8f5[47]]){delete _0x4968x26[_0xe8f5[192]][_0xe8f5[47]]};return Xchatty[_0xe8f5[77]](_0x4968x26[_0xe8f5[48]][_0xe8f5[47]])[_0xe8f5[40]](function(_0x4968x48){if(!_0x4968x48){return _0x4968x27[_0xe8f5[198]](404)};var _0x4968x49=_[_0xe8f5[199]](_0x4968x48,_0x4968x26[_0xe8f5[192]]);_0x4968x49[_0xe8f5[200]]()[_0xe8f5[40]](function(){return _0x4968x27[_0xe8f5[39]](200)[_0xe8f5[38]](_0x4968x48)})[_0xe8f5[37]](function(_0x4968x29){return _0x4968x28(_0x4968x29)})})[_0xe8f5[37]](function(_0x4968x29){return _0x4968x28(_0x4968x29)})};exports[_0xe8f5[201]]= function(_0x4968x26,_0x4968x27,_0x4968x28){return Xchatty[_0xe8f5[77]](_0x4968x26[_0xe8f5[48]][_0xe8f5[47]])[_0xe8f5[40]](function(_0x4968x48){if(!_0x4968x48){return _0x4968x27[_0xe8f5[198]](404)};_0x4968x48[_0xe8f5[201]]()[_0xe8f5[40]](function(){return _0x4968x27[_0xe8f5[198]](204)})[_0xe8f5[37]](function(_0x4968x29){return _0x4968x28(_0x4968x29)})})[_0xe8f5[37]](function(_0x4968x29){return _0x4968x28(_0x4968x29)})};exports[_0xe8f5[202]]= function(_0x4968x26,_0x4968x27,_0x4968x28){var _0x4968x2b,_0x4968x4a;var _0x4968x4b=xchatty_components[_0xe8f5[203]];return ChatWebsite[_0xe8f5[77]](_0x4968x26[_0xe8f5[48]][_0xe8f5[47]],{include:[{all:true}]})[_0xe8f5[40]](function(_0x4968x3f){_0x4968x2b= _0x4968x3f;return License[_0xe8f5[77]](1)})[_0xe8f5[40]](function(_0x4968x4c){if(_0x4968x4c){_0x4968x4a= JSON[_0xe8f5[139]](license[_0xe8f5[206]](_0x4968x4c[_0xe8f5[205]][_0xe8f5[204]]))}else {_0x4968x4a= demoLicense};var _0x4968x4d={rootPath:Util[_0xe8f5[50]](_0x4968x2b[_0xe8f5[49]])+ _0xe8f5[51],assetBase:Util[_0xe8f5[50]](_0x4968x2b[_0xe8f5[49]])+ _0xe8f5[56],websiteId:_0x4968x2b[_0xe8f5[47]],headerShape:_0x4968x2b[_0xe8f5[58]],enquiryEnable:_0x4968x2b[_0xe8f5[207]],onlineFields:_0x4968x2b[_0xe8f5[208]],logo:function(){if(_0x4968x4a[_0xe8f5[209]]&& !_0x4968x2b[_0xe8f5[210]]&& _0x4968x2b[_0xe8f5[211]]){return _0xe8f5[212]+ _0x4968x2b[_0xe8f5[211]]+ _0xe8f5[213]}else {return _0xe8f5[214]}},whiteLabel:function(){if(_0x4968x4a[_0xe8f5[209]]&& !_0x4968x2b[_0xe8f5[215]]){return _0x4968x2b[_0xe8f5[216]]}else {return _0xe8f5[217]}},renderedOnlineField:function(){var _0x4968x4e=_0xe8f5[112];var _0x4968x4f=this;switch(this[_0xe8f5[242]]){case _0xe8f5[226]:_0x4968x4e= _0xe8f5[218];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[219],_0x4968x4f[_0xe8f5[36]],_0x4968x4f[_0xe8f5[220]],_0x4968x4f[_0xe8f5[221]]?_0xe8f5[222]:_0xe8f5[112]);_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[223],_0x4968x4f[_0xe8f5[220]],_0x4968x4f[_0xe8f5[36]],_0x4968x4f[_0xe8f5[36]]+ 1,_0x4968x4f[_0xe8f5[224]],_0x4968x4f[_0xe8f5[221]]?_0xe8f5[221]:_0xe8f5[112]);_0x4968x4e+= _0xe8f5[225];break;case _0xe8f5[228]:_0x4968x4e= _0xe8f5[218];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[219],_0x4968x4f[_0xe8f5[36]],_0x4968x4f[_0xe8f5[220]],_0x4968x4f[_0xe8f5[221]]?_0xe8f5[222]:_0xe8f5[112]);_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[227],_0x4968x4f[_0xe8f5[36]],_0x4968x4f[_0xe8f5[220]],_0x4968x4f[_0xe8f5[36]]+ 1,_0x4968x4f[_0xe8f5[224]],_0x4968x4f[_0xe8f5[221]]?_0xe8f5[221]:_0xe8f5[112]);_0x4968x4e+= _0xe8f5[225];break;case _0xe8f5[234]:_0x4968x4e= _0xe8f5[218];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[229],_0x4968x4f[_0xe8f5[220]]);_[_0xe8f5[195]](_0x4968x4f[_0xe8f5[230]],function(_0x4968x50){_0x4968x4e+= _0xe8f5[231];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[232],_0x4968x4f[_0xe8f5[36]]+ 1,_0x4968x50,_0x4968x50);_0x4968x4e+= _0xe8f5[233]});_0x4968x4e+= _0xe8f5[225];break;case _0xe8f5[236]:_0x4968x4e= _0xe8f5[218];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[229],_0x4968x4f[_0xe8f5[220]]);_[_0xe8f5[195]](_0x4968x4f[_0xe8f5[230]],function(_0x4968x50){_0x4968x4e+= _0xe8f5[231];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[235],_0x4968x4f[_0xe8f5[36]]+ 1,_0x4968x50,_0x4968x50);_0x4968x4e+= _0xe8f5[233]});_0x4968x4e+= _0xe8f5[225];break;case _0xe8f5[241]:_0x4968x4e= _0xe8f5[218];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[237],_0x4968x4f[_0xe8f5[36]],_0x4968x4f[_0xe8f5[220]]);_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[238],_0x4968x4f[_0xe8f5[36]]+ 1);_[_0xe8f5[195]](_0x4968x4f[_0xe8f5[230]],function(_0x4968x50){_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[239],_0x4968x50,_0x4968x50)});_0x4968x4e+= _0xe8f5[240];break};_0x4968x4e+= _0xe8f5[243];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[244],_0x4968x4f[_0xe8f5[36]]+ 1,_0x4968x4f[_0xe8f5[220]]);return _0x4968x4e},offlineFields:_0x4968x2b[_0xe8f5[245]],renderedOfflineField:function(){var _0x4968x4e=_0xe8f5[112];var _0x4968x4f=this;switch(this[_0xe8f5[242]]){case _0xe8f5[226]:_0x4968x4e= _0xe8f5[218];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[246],_0x4968x4f[_0xe8f5[36]],_0x4968x4f[_0xe8f5[220]],_0x4968x4f[_0xe8f5[221]]?_0xe8f5[222]:_0xe8f5[112]);_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[247],_0x4968x4f[_0xe8f5[220]],_0x4968x4f[_0xe8f5[36]],_0x4968x4f[_0xe8f5[36]]+ 1,_0x4968x4f[_0xe8f5[224]],_0x4968x4f[_0xe8f5[221]]?_0xe8f5[221]:_0xe8f5[112]);_0x4968x4e+= _0xe8f5[225];break;case _0xe8f5[228]:_0x4968x4e= _0xe8f5[218];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[246],_0x4968x4f[_0xe8f5[36]],_0x4968x4f[_0xe8f5[220]],_0x4968x4f[_0xe8f5[221]]?_0xe8f5[222]:_0xe8f5[112]);_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[248],_0x4968x4f[_0xe8f5[36]],_0x4968x4f[_0xe8f5[220]],_0x4968x4f[_0xe8f5[36]]+ 1,_0x4968x4f[_0xe8f5[224]],_0x4968x4f[_0xe8f5[221]]?_0xe8f5[221]:_0xe8f5[112]);_0x4968x4e+= _0xe8f5[225];break;case _0xe8f5[234]:_0x4968x4e= _0xe8f5[218];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[229],_0x4968x4f[_0xe8f5[220]]);_[_0xe8f5[195]](_0x4968x4f[_0xe8f5[230]],function(_0x4968x50){_0x4968x4e+= _0xe8f5[231];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[249],_0x4968x4f[_0xe8f5[36]]+ 1,_0x4968x50,_0x4968x50);_0x4968x4e+= _0xe8f5[233]});_0x4968x4e+= _0xe8f5[225];break;case _0xe8f5[236]:_0x4968x4e= _0xe8f5[218];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[229],_0x4968x4f[_0xe8f5[220]]);_[_0xe8f5[195]](_0x4968x4f[_0xe8f5[230]],function(_0x4968x50){_0x4968x4e+= _0xe8f5[231];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[250],_0x4968x4f[_0xe8f5[36]]+ 1,_0x4968x50,_0x4968x50);_0x4968x4e+= _0xe8f5[233]});_0x4968x4e+= _0xe8f5[225];break;case _0xe8f5[241]:_0x4968x4e= _0xe8f5[218];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[229],_0x4968x4f[_0xe8f5[220]]);_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[251],_0x4968x4f[_0xe8f5[36]]+ 1);_[_0xe8f5[195]](_0x4968x4f[_0xe8f5[230]],function(_0x4968x50){_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[239],_0x4968x50,_0x4968x50)});_0x4968x4e+= _0xe8f5[240];break};_0x4968x4e+= _0xe8f5[243];_0x4968x4e+= util[_0xe8f5[168]](_0xe8f5[252],_0x4968x4f[_0xe8f5[36]]+ 1,_0x4968x4f[_0xe8f5[220]]);return _0x4968x4e}};_0x4968x4b= Mustache[_0xe8f5[76]](_0x4968x4b,_0x4968x4d);return _0x4968x27[_0xe8f5[39]](200)[_0xe8f5[253]](_0x4968x4b)})[_0xe8f5[37]](function(_0x4968x29){return _0x4968x28(_0x4968x29)})};exports[_0xe8f5[254]]= function(_0x4968x26,_0x4968x27,_0x4968x28){return ChatWebsite[_0xe8f5[77]](_0x4968x26[_0xe8f5[48]][_0xe8f5[47]],{include:[{model:ChatProactiveAction}]})[_0xe8f5[40]](function(_0x4968x2b){if(!_0x4968x2b){return _0x4968x27[_0xe8f5[39]](400)[_0xe8f5[253]]({})};return _0x4968x27[_0xe8f5[39]](200)[_0xe8f5[253]](_0x4968x2b.ChatProactiveActions)})[_0xe8f5[37]](function(_0x4968x29){return _0x4968x28(_0x4968x29)})};exports[_0xe8f5[255]]= function(_0x4968x26,_0x4968x27,_0x4968x28){return ChatRoom[_0xe8f5[77]](_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[257]][_0xe8f5[109]])[_0xe8f5[40]](function(_0x4968x33){if(!_0x4968x33){return _0x4968x27[_0xe8f5[39]](400)[_0xe8f5[253]]({})};if(_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[257]][_0xe8f5[86]](_0xe8f5[256])&& _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[257]][_0xe8f5[86]](_0xe8f5[126])){return _0x4968x33[_0xe8f5[132]]({rating:_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[257]][_0xe8f5[256]],ratingMessage:_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[257]][_0xe8f5[126]]})};return})[_0xe8f5[40]](function(){return _0x4968x27[_0xe8f5[39]](200)[_0xe8f5[253]]({})})[_0xe8f5[37]](function(_0x4968x29){return _0x4968x27[_0xe8f5[39]](400)[_0xe8f5[253]](_0x4968x29)})};exports[_0xe8f5[258]]= function(_0x4968x26,_0x4968x27,_0x4968x28){var _0x4968x35=_0x4968x26[_0xe8f5[48]][_0xe8f5[47]];if(_0x4968x26[_0xe8f5[100]]&& _0x4968x26[_0xe8f5[100]][_0xe8f5[95]]){if(_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0xe8f5[86]](_0x4968x35)&& _0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[86]](_0xe8f5[106])&& _0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[106]]> 0){return ReportChatSession[_0xe8f5[260]]({where:{visitorid:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[106]],leaveAt:null}})[_0xe8f5[40]](function(_0x4968x51){if(!_0x4968x51){return};return _0x4968x51[_0xe8f5[132]]({abandon:true,leaveAt:moment()[_0xe8f5[168]](_0xe8f5[259])})})[_0xe8f5[40]](function(){return _0x4968x27[_0xe8f5[39]](200)[_0xe8f5[253]]({})})[_0xe8f5[37]](function(_0x4968x29){_0x4968x27[_0xe8f5[39]](500)[_0xe8f5[253]]({})})}};return _0x4968x27[_0xe8f5[39]](200)[_0xe8f5[253]]({})};exports[_0xe8f5[261]]= function(_0x4968x26,_0x4968x27,_0x4968x28){if(!_0x4968x26[_0xe8f5[100]][_0xe8f5[95]]){_0x4968x26[_0xe8f5[100]][_0xe8f5[95]]= {}};if(!_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x26[_0xe8f5[48]][_0xe8f5[47]]]){_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x26[_0xe8f5[48]][_0xe8f5[47]]]= {}};var _0x4968x35=_0x4968x26[_0xe8f5[48]][_0xe8f5[47]];var _0x4968x52;var _0x4968x31={};var _0x4968x53=[];return ChatWebsite[_0xe8f5[77]](_0x4968x35)[_0xe8f5[40]](function(_0x4968x42){if(!_0x4968x42){return _0x4968x27[_0xe8f5[198]](500)};_0x4968x52= _0x4968x42;return _0x4968x52[_0xe8f5[271]]({include:[{model:ChatQueue,include:[{model:Agent}]},{model:Agent}]})})[_0xe8f5[40]](function(_0x4968x55){_[_0xe8f5[195]](_0x4968x55,function(_0x4968x56){if(_0x4968x56[_0xe8f5[265]]=== _0xe8f5[266]){if(_0x4968x56[_0xe8f5[33]][_0xe8f5[86]](_0xe8f5[267])&& _0x4968x56[_0xe8f5[33]][_0xe8f5[267]][_0xe8f5[118]]> 0){_0x4968x53= _[_0xe8f5[269]](_[_0xe8f5[199]](_0x4968x53,_[_0xe8f5[268]](_0x4968x56[_0xe8f5[33]].Users,_0xe8f5[47])))}}else {if(_0x4968x56[_0xe8f5[265]]=== _0xe8f5[119]){_0x4968x53[_0xe8f5[194]](_0x4968x56[_0xe8f5[24]][_0xe8f5[47]]);_0x4968x53= _[_0xe8f5[269]](_0x4968x53)}}});return Agent[_0xe8f5[270]]({where:{online:true,id:{$in:_0x4968x53}}})})[_0xe8f5[40]](function(_0x4968x54){if(_0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[113]]){_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[113]]= _0x4968x26[_0xe8f5[87]][_0xe8f5[114]][_0xe8f5[113]]=== _0xe8f5[53]?true:false};_0x4968x31= {success:true,has_session_saf:null,signed_up:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[109]]?true:false,fullname:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[115]]|| _0xe8f5[112],email:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[116]]|| _0xe8f5[112],avatar:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[117]]|| _0xe8f5[112],open_state:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[113]]|| _0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[109]]?true:false,online:_0x4968x54[_0xe8f5[264]]?true:false,is_unserved:false,room_id:0};if(_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[106]]){return ChatRoom[_0xe8f5[108]]({where:{ChatVisitorId:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[106]],status:_0xe8f5[111],token:{$ne:_0xe8f5[112]}}})};return})[_0xe8f5[40]](function(_0x4968x33){if(_0x4968x33){_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[109]]= _0x4968x33[_0xe8f5[47]];_0x4968x31[_0xe8f5[109]]= _0x4968x33[_0xe8f5[47]];_0x4968x31[_0xe8f5[110]]= true}else {_0x4968x31[_0xe8f5[110]]= false};if(_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[106]]){return ChatVisitor[_0xe8f5[108]]({where:{id:_0x4968x26[_0xe8f5[100]][_0xe8f5[95]][_0x4968x35][_0xe8f5[106]],status:_0xe8f5[107]}})};return})[_0xe8f5[40]](function(_0x4968x32){if(_0x4968x32){_0x4968x31[_0xe8f5[101]]= true};return _0x4968x27[_0xe8f5[39]](200)[_0xe8f5[253]](_0x4968x31)})[_0xe8f5[37]](function(_0x4968x29){console[_0xe8f5[263]](_0xe8f5[262],_0x4968x29);return _0x4968x27[_0xe8f5[39]](500)[_0xe8f5[253]]({})})}
\ No newline at end of file
+var _0xf119=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6A\x73\x6D\x69\x6E","\x6D\x75\x73\x74\x61\x63\x68\x65","\x71\x75\x65\x72\x79\x73\x74\x72\x69\x6E\x67","\x70\x61\x74\x68","\x6D\x64\x35","\x66\x73","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\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","\x69\x70\x61\x64\x64\x72\x2E\x6A\x73","\x67\x65\x6F\x69\x70\x2D\x6C\x69\x74\x65","\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\x72\x6F\x75\x74\x69\x6E\x67\x2F\x73\x63\x68\x65\x64\x75\x6C\x65\x72","\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","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x67\x65\x74\x4A\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\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","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x53\x74\x79\x6C\x65\x42\x79\x57\x65\x62\x73\x69\x74\x65","\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","\x66\x69\x6E\x64\x4F\x6E\x65","\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","\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","\x6D\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","\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","\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","\x6C\x61\x62\x65\x6C","\x72\x65\x71\x75\x69\x72\x65\x64","\x2A","\x66\x6F\x72\x6D\x61\x74","\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","\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"];_0xf119[0];var _=require(_0xf119[1]);var jsmin=require(_0xf119[2])[_0xf119[2]];var Mustache=require(_0xf119[3]);var querystring=require(_0xf119[4]);var path=require(_0xf119[5]);var md5=require(_0xf119[6]);var fs=require(_0xf119[7]);var cp=require(_0xf119[8]);var UAParser=require(_0xf119[9]);var uaParser= new UAParser();var languageParser=require(_0xf119[10]);var ipaddr=require(_0xf119[11]);var geoip=require(_0xf119[12]);var csv=require(_0xf119[13]);var util=require(_0xf119[14]);var moment=require(_0xf119[15]);var logger=require(_0xf119[17])(_0xf119[16]);var Scheduler=require(_0xf119[18]);var config=require(_0xf119[19]);var xchatty_components=require(_0xf119[20]);var Util=require(_0xf119[21]);var license=require(_0xf119[22]);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:_0xf119[23]};var sequelize=require(_0xf119[25])[_0xf119[24]];var User=require(_0xf119[25])[_0xf119[26]];var Agent=require(_0xf119[25])[_0xf119[26]];var ChatRoom=require(_0xf119[25])[_0xf119[27]];var ChatEnquiry=require(_0xf119[25])[_0xf119[28]];var ChatVisitor=require(_0xf119[25])[_0xf119[29]];var ChatMessage=require(_0xf119[25])[_0xf119[30]];var ChatWebsite=require(_0xf119[25])[_0xf119[31]];var ChatWebsitesField=require(_0xf119[25])[_0xf119[32]];var ChatProactiveAction=require(_0xf119[25])[_0xf119[33]];var ReportChatSession=require(_0xf119[25])[_0xf119[34]];var ChatQueue=require(_0xf119[25])[_0xf119[35]];var License=require(_0xf119[25])[_0xf119[36]];var Xchatty=require(_0xf119[25])[_0xf119[37]];var Setting=require(_0xf119[25])[_0xf119[38]];const Contact=require(_0xf119[25])[_0xf119[39]];var Interval=require(_0xf119[25])[_0xf119[40]];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[_0xf119[41]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){return Xchatty[_0xf119[46]]()[_0xf119[45]](function(_0x3090x30){return _0x3090x2d[_0xf119[44]](200)[_0xf119[43]](_0x3090x30)})[_0xf119[42]](function(_0x3090x2f){return _0x3090x2e(_0x3090x2f)})};exports[_0xf119[47]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){ChatWebsite[_0xf119[82]](_0x3090x2c[_0xf119[53]][_0xf119[52]])[_0xf119[45]](function(_0x3090x31){_0x3090x2d[_0xf119[50]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xf119[48],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0xf119[49]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x3090x32=xchatty_components[_0xf119[51]];var _0x3090x33={websiteId:_0x3090x2c[_0xf119[53]][_0xf119[52]],rootPath:Util[_0xf119[55]](_0x3090x31[_0xf119[54]])+ _0xf119[56],signedUp:_0xf119[57],windowFocused:_0xf119[57],isNewPage:_0xf119[58],processingSignUp:_0xf119[57],processingEnquiry:_0xf119[57],processingSend:_0xf119[57],processingRating:_0xf119[57],visitorFullname:_0xf119[59],visitorAvatar:_0xf119[59],timerReadMessages:_0xf119[60],timerCheckStatus:_0xf119[60],isOnline:_0xf119[57],decayHistory:0,defaultTimeout:5000,isInitialStatusCheck:_0xf119[58],muteNotificationSoundOnce:_0xf119[57],assetBase:Util[_0xf119[55]](_0x3090x31[_0xf119[54]])+ _0xf119[61],hasSessionSaf:_0xf119[57],restoreOpenState:_0xf119[57],animateHover:_0x3090x31[_0xf119[62]],hideEmail:_0xf119[57],hideOffline:_0xf119[57],headerShape:_0x3090x31[_0xf119[63]],HeaderOnline:_0x3090x31[_0xf119[64]],OnlineMessage:_0x3090x31[_0xf119[65]],UsernamePlaceholder:_0x3090x31[_0xf119[66]],EmailPlaceholder:_0x3090x31[_0xf119[67]],StartChatButtonText:_0x3090x31[_0xf119[68]],OfflineMessage:_0x3090x31[_0xf119[69]],HeaderOffline:_0x3090x31[_0xf119[70]],EnquiryMessagePlaceholder:_0x3090x31[_0xf119[71]],EnquiryButtonText:_0x3090x31[_0xf119[72]],downloadTranscript:_0x3090x31[_0xf119[73]],RatingMessage:_0x3090x31[_0xf119[74]],RatingSend:_0x3090x31[_0xf119[75]],RatingSkip:_0x3090x31[_0xf119[76]],MessageAgentsBusy:_0x3090x31[_0xf119[77]],NameTitle:_0x3090x31[_0xf119[78]],EmailTitle:_0x3090x31[_0xf119[79]],MessageTitle:_0x3090x31[_0xf119[80]]};_0x3090x32= Mustache[_0xf119[81]](_0x3090x32,_0x3090x33);_0x3090x2d[_0xf119[43]](_0x3090x32)})[_0xf119[42]](function(_0x3090x2f){_0x3090x2e(_0x3090x2f)})};exports[_0xf119[83]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){ChatWebsite[_0xf119[82]](_0x3090x2c[_0xf119[53]][_0xf119[52]])[_0xf119[45]](function(_0x3090x31){_0x3090x2d[_0xf119[50]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xf119[84],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0xf119[49]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x3090x34=xchatty_components[_0xf119[85]];var _0x3090x35={assetBase:Util[_0xf119[55]](_0x3090x31[_0xf119[54]])+ _0xf119[61],color:_0x3090x31[_0xf119[86]],colorFocus:_0x3090x31[_0xf119[87]],colorButton:_0x3090x31[_0xf119[88]]};_0x3090x34= Mustache[_0xf119[81]](_0x3090x34,_0x3090x35);_0x3090x2d[_0xf119[43]](_0x3090x34)})[_0xf119[42]](function(_0x3090x2f){_0x3090x2e(_0x3090x2f)})};exports[_0xf119[89]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){if(_0x3090x2c[_0xf119[92]][_0xf119[91]](_0xf119[90])){_0x3090x2d[_0xf119[98]](path[_0xf119[97]](config[_0xf119[93]],_0xf119[94],_0xf119[95],_0x3090x2c[_0xf119[92]][_0xf119[96]]))}else {_0x3090x2d[_0xf119[98]](path[_0xf119[97]](config[_0xf119[93]],_0xf119[94],_0xf119[99],_0xf119[100],_0xf119[101],_0x3090x2c[_0xf119[92]][_0xf119[96]]))}};exports[_0xf119[102]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){_0x3090x2d[_0xf119[50]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xf119[48],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0xf119[49]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x3090x36=xchatty_components[_0xf119[103]];_0x3090x2d[_0xf119[43]](_0x3090x36)};exports[_0xf119[104]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){if(!_0x3090x2c[_0xf119[105]][_0xf119[100]]){_0x3090x2c[_0xf119[105]][_0xf119[100]]= {}};var _0x3090x37={};return Agent[_0xf119[46]]({where:{online:true,role:_0xf119[124]}})[_0xf119[45]](function(_0x3090x3a){if(_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[118]]){_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[118]]= _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[118]]=== _0xf119[58]?true:false};_0x3090x37= {success:true,has_session_saf:null,signed_up:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[114]]?true:false,fullname:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[120]]?_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[120]]:_0xf119[117],email:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[121]]?_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[121]]:_0xf119[117],avatar:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[122]]?_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[122]]:_0xf119[117],open_state:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[118]]|| _0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[114]]?true:false,online:_0x3090x3a[_0xf119[123]]?true:false,is_unserved:false,room_id:0};return})[_0xf119[45]](function(){if(_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[111]]){return ChatRoom[_0xf119[113]]({where:{ChatVisitorId:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[111]],status:_0xf119[116],token:{$ne:_0xf119[117]}}})};return})[_0xf119[45]](function(_0x3090x39){if(_0x3090x39){_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[114]]= _0x3090x39[_0xf119[52]];_0x3090x37[_0xf119[114]]= _0x3090x39[_0xf119[52]];_0x3090x37[_0xf119[115]]= true}else {_0x3090x37[_0xf119[115]]= false};return})[_0xf119[45]](function(){if(_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[111]]){return ChatVisitor[_0xf119[113]]({where:{id:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[111]],status:_0xf119[112]}})};return})[_0xf119[45]](function(_0x3090x38){if(_0x3090x38){_0x3090x37[_0xf119[106]]= true};return _0x3090x2d[_0xf119[43]](_0x3090x2c[_0xf119[92]][_0xf119[107]]+ _0xf119[108]+ JSON[_0xf119[109]](_0x3090x37)+ _0xf119[110])})[_0xf119[42]](function(_0x3090x2f){return _0x3090x2e(_0x3090x2f)})};exports[_0xf119[125]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){var _0x3090x3b=_0x3090x2c[_0xf119[53]][_0xf119[52]];var _0x3090x3c={where:{ChatRoomId:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[114]]},include:[{model:User,attributes:[_0xf119[52],_0xf119[126],_0xf119[120],_0xf119[121]]},{model:ChatVisitor,attributes:[_0xf119[52],_0xf119[120],_0xf119[121]]}]};if(_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[127]]=== _0xf119[57]){_0x3090x3c[_0xf119[128]][_0xf119[52]]= {$gt:_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[129]]}};ChatMessage[_0xf119[46]](_0x3090x3c)[_0xf119[45]](function(_0x3090x3d){var _0x3090x3e={success:true,messages:_0x3090x3d,composing:false,composing_fullname:null};_0x3090x2d[_0xf119[43]](_0x3090x2c[_0xf119[92]][_0xf119[107]]+ _0xf119[108]+ JSON[_0xf119[109]](_0x3090x3e)+ _0xf119[110])})[_0xf119[42]](function(_0x3090x2f){_0x3090x2e(_0x3090x2f)})};exports[_0xf119[130]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){var _0x3090x3b=_0x3090x2c[_0xf119[53]][_0xf119[52]];var _0x3090x3c={where:{ChatRoomId:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[114]]},include:[{model:User,attributes:[_0xf119[52],_0xf119[126],_0xf119[120],_0xf119[121]]},{model:ChatVisitor,attributes:[_0xf119[52],_0xf119[120],_0xf119[121]]}]};if(_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[127]]=== _0xf119[57]){_0x3090x3c[_0xf119[128]][_0xf119[52]]= {$gt:_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[129]]}};ChatMessage[_0xf119[133]]({body:_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[132]][_0xf119[131]],ChatRoomId:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[114]],ChatVisitorId:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[111]]})[_0xf119[45]](function(_0x3090x3f){ChatMessage[_0xf119[46]](_0x3090x3c)[_0xf119[45]](function(_0x3090x3d){var _0x3090x3e={errors:[],success:true,data:_0x3090x3f,messages:_0x3090x3d};_0x3090x2d[_0xf119[43]](_0x3090x2c[_0xf119[92]][_0xf119[107]]+ _0xf119[108]+ JSON[_0xf119[109]](_0x3090x3e)+ _0xf119[110])})[_0xf119[42]](function(_0x3090x2f){_0x3090x2e(_0x3090x2f)})})[_0xf119[42]](function(_0x3090x2f){_0x3090x2e(_0x3090x2f)})};exports[_0xf119[134]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){var _0x3090x3b=_0x3090x2c[_0xf119[53]][_0xf119[52]];return ChatRoom[_0xf119[82]](_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[114]])[_0xf119[45]](function(_0x3090x39){return _0x3090x39[_0xf119[137]]({status:_0xf119[135],completeReason:_0xf119[136]})})[_0xf119[45]](function(){var _0x3090x3e={success:true,errors:[]};_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b]= {};_0x3090x2d[_0xf119[43]](_0x3090x2c[_0xf119[92]][_0xf119[107]]+ _0xf119[108]+ JSON[_0xf119[109]](_0x3090x3e)+ _0xf119[110])})[_0xf119[42]](function(_0x3090x2f){_0x3090x2e(_0x3090x2f)})};exports[_0xf119[138]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){var _0x3090x3b=_0x3090x2c[_0xf119[53]][_0xf119[52]];var _0x3090x40=uaParser[_0xf119[142]](_0x3090x2c[_0xf119[141]][_0xf119[140]])[_0xf119[139]]();var _0x3090x41=languageParser[_0xf119[144]](_0x3090x2c[_0xf119[141]][_0xf119[143]]);var _0x3090x42=_0x3090x2c[_0xf119[141]][_0xf119[145]]?_0x3090x2c[_0xf119[141]][_0xf119[145]]:_0x3090x2c[_0xf119[147]][_0xf119[146]]|| _0x3090x2c[_0xf119[148]];var _0x3090x43={fullname:_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[149]][_0xf119[120]],email:_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[149]][_0xf119[121]],remote_address:_0x3090x42,user_agent:_0x3090x2c[_0xf119[141]][_0xf119[140]],visitor_language:_0x3090x2c[_0xf119[141]][_0xf119[143]],referer:_0x3090x2c[_0xf119[141]][_0xf119[150]],origin:_0xf119[151],browser:_0x3090x40[_0xf119[152]][_0xf119[126]]+ _0xf119[153]+ _0x3090x40[_0xf119[152]][_0xf119[154]],engine:_0x3090x40[_0xf119[155]][_0xf119[126]]+ _0xf119[153]+ _0x3090x40[_0xf119[155]][_0xf119[154]],os:_0x3090x40[_0xf119[156]][_0xf119[126]]+ _0xf119[153]+ _0x3090x40[_0xf119[156]][_0xf119[154]],device:_0x3090x40[_0xf119[158]][_0xf119[157]]?_0x3090x40[_0xf119[158]][_0xf119[157]]+ _0xf119[153]+ _0x3090x40[_0xf119[158]][_0xf119[159]]+ _0xf119[153]+ _0x3090x40[_0xf119[158]][_0xf119[160]]:null,ChatWebsiteId:_0x3090x2c[_0xf119[92]][_0xf119[161]]};if(_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[149]][_0xf119[162]]&& _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[149]][_0xf119[163]]){_0x3090x43[_0xf119[162]]= _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[149]][_0xf119[162]];if(_[_0xf119[164]](_0x3090x43[_0xf119[162]])){_0x3090x43[_0xf119[162]]= _[_0xf119[97]](_0x3090x43[_0xf119[162]],_0xf119[165])};_0x3090x43[_0xf119[163]]= _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[149]][_0xf119[163]]};if(_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[149]][_0xf119[166]]&& _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[149]][_0xf119[167]]){_0x3090x43[_0xf119[166]]= _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[149]][_0xf119[166]];if(_[_0xf119[164]](_0x3090x43[_0xf119[166]])){_0x3090x43[_0xf119[166]]= _[_0xf119[97]](_0x3090x43[_0xf119[166]],_0xf119[165])};_0x3090x43[_0xf119[167]]= _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[149]][_0xf119[167]]};if(_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[149]][_0xf119[168]]&& _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[149]][_0xf119[169]]){_0x3090x43[_0xf119[168]]= _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[149]][_0xf119[168]];if(_[_0xf119[164]](_0x3090x43[_0xf119[168]])){_0x3090x43[_0xf119[168]]= _[_0xf119[97]](_0x3090x43[_0xf119[168]],_0xf119[165])};_0x3090x43[_0xf119[169]]= _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[149]][_0xf119[169]]};var _0x3090x44,_0x3090x45,_0x3090x46;return ChatVisitor[_0xf119[133]](_0x3090x43)[_0xf119[45]](function(_0x3090x48){_0x3090x44= _0x3090x48;return ChatWebsite[_0xf119[82]](_0x3090x44.ChatWebsiteId)})[_0xf119[45]](function(_0x3090x47){_0x3090x45= _0x3090x47;if(_0x3090x45[_0xf119[172]]){return Contact[_0xf119[173]]({where:{email:_0x3090x44[_0xf119[121]]},defaults:{email:_0x3090x44[_0xf119[121]],firstName:_0x3090x44[_0xf119[120]],ListId:_0x3090x45[_0xf119[172]]}})}})[_0xf119[45]](function(){return ChatRoom[_0xf119[133]]({type:_0xf119[171],ChatVisitorId:_0x3090x44[_0xf119[52]],ChatWebsiteId:_0x3090x45[_0xf119[52]],contact:_0x3090x44[_0xf119[121]],website:_0x3090x45[_0xf119[126]]})})[_0xf119[45]](function(_0x3090x39){_0x3090x46= _0x3090x39;_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[120]]= _0x3090x44[_0xf119[120]];_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[121]]= _0x3090x44[_0xf119[121]];_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[122]]= md5(_0x3090x44[_0xf119[121]]).toString(_0xf119[170]);_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[111]]= _0x3090x44[_0xf119[52]];var _0x3090x3e={success:true,errors:[],chatVisitor:{id:_0x3090x44[_0xf119[52]]}};_0x3090x2d[_0xf119[43]](_0x3090x2c[_0xf119[92]][_0xf119[107]]+ _0xf119[108]+ JSON[_0xf119[109]](_0x3090x3e)+ _0xf119[110])})[_0xf119[42]](function(_0x3090x2f){_0x3090x2e(_0x3090x2f)})};exports[_0xf119[174]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){var _0x3090x3b=_0x3090x2c[_0xf119[53]][_0xf119[52]];return ChatVisitor[_0xf119[82]](_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[111]])[_0xf119[45]](function(_0x3090x48){return _0x3090x48[_0xf119[137]]({status:_0xf119[112]})})[_0xf119[45]](function(){var _0x3090x3e={success:true,errors:[]};_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b]= {};_0x3090x2d[_0xf119[43]](_0x3090x2c[_0xf119[92]][_0xf119[107]]+ _0xf119[108]+ JSON[_0xf119[109]](_0x3090x3e)+ _0xf119[110])})[_0xf119[42]](function(_0x3090x2f){_0x3090x2e(_0x3090x2f)})};exports[_0xf119[175]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){return sequelize[_0xf119[187]]()[_0xf119[45]](function(_0x3090x49){var _0x3090x42=_0x3090x2c[_0xf119[141]][_0xf119[145]]?_0x3090x2c[_0xf119[141]][_0xf119[145]]:_0x3090x2c[_0xf119[147]][_0xf119[146]]|| _0x3090x2c[_0xf119[148]];var _0x3090x40=uaParser[_0xf119[142]](_0x3090x2c[_0xf119[141]][_0xf119[140]])[_0xf119[139]]();var _0x3090x41=languageParser[_0xf119[144]](_0x3090x2c[_0xf119[141]][_0xf119[143]]);var _0x3090x43={fullname:_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[120]],email:_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[121]],remote_address:_0x3090x42,user_agent:_0x3090x2c[_0xf119[141]][_0xf119[140]],visitor_language:_0x3090x2c[_0xf119[141]][_0xf119[143]],browser:_0x3090x40[_0xf119[152]][_0xf119[126]]+ _0xf119[153]+ _0x3090x40[_0xf119[152]][_0xf119[154]],engine:_0x3090x40[_0xf119[155]][_0xf119[126]]+ _0xf119[153]+ _0x3090x40[_0xf119[155]][_0xf119[154]],os:_0x3090x40[_0xf119[156]][_0xf119[126]]+ _0xf119[153]+ _0x3090x40[_0xf119[156]][_0xf119[154]],device:_0x3090x40[_0xf119[158]][_0xf119[157]]?_0x3090x40[_0xf119[158]][_0xf119[157]]+ _0xf119[153]+ _0x3090x40[_0xf119[158]][_0xf119[159]]+ _0xf119[153]+ _0x3090x40[_0xf119[158]][_0xf119[160]]:null,referer:_0x3090x2c[_0xf119[141]][_0xf119[150]],origin:_0xf119[177],status:_0xf119[112],ChatWebsiteId:parseInt(_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[178]],10),ChatEnquiry:{username:_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[120]],email:_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[121]],text:_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[131]],ChatWebsiteId:parseInt(_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[178]],10)}};if(_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[179]]&& _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[180]]){_0x3090x43[_0xf119[179]]= _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[179]];if(_[_0xf119[164]](_0x3090x43[_0xf119[179]])){_0x3090x43[_0xf119[179]]= _[_0xf119[97]](_0x3090x43[_0xf119[179]],_0xf119[165])};_0x3090x43[_0xf119[180]]= _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[180]]};if(_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[181]]&& _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[182]]){_0x3090x43[_0xf119[181]]= _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[181]];if(_[_0xf119[164]](_0x3090x43[_0xf119[181]])){_0x3090x43[_0xf119[181]]= _[_0xf119[97]](_0x3090x43[_0xf119[181]],_0xf119[165])};_0x3090x43[_0xf119[182]]= _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[182]]};if(_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[183]]&& _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[184]]){_0x3090x43[_0xf119[183]]= _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[183]];if(_[_0xf119[164]](_0x3090x43[_0xf119[183]])){_0x3090x43[_0xf119[183]]= _[_0xf119[97]](_0x3090x43[_0xf119[183]],_0xf119[165])};_0x3090x43[_0xf119[184]]= _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[176]][_0xf119[184]]};var _0x3090x44;return ChatVisitor[_0xf119[133]](_0x3090x43,{transaction:_0x3090x49,include:[{model:ChatEnquiry}]})[_0xf119[45]](function(_0x3090x48){_0x3090x44= _0x3090x48;return ChatWebsite[_0xf119[82]](_0x3090x44.ChatWebsiteId)})[_0xf119[45]](function(_0x3090x47){if(_0x3090x47[_0xf119[172]]){return Contact[_0xf119[173]]({where:{email:_0x3090x44[_0xf119[121]]},defaults:{email:_0x3090x44[_0xf119[121]],firstName:_0x3090x44[_0xf119[120]],ListId:_0x3090x47[_0xf119[172]]}})}})[_0xf119[45]](function(){_0x3090x49[_0xf119[186]]();_0x3090x2d[_0xf119[43]](_0x3090x2c[_0xf119[92]][_0xf119[107]]+ _0xf119[108]+ JSON[_0xf119[109]]({success:true,errors:[]})+ _0xf119[110])})[_0xf119[42]](function(_0x3090x2f){_0x3090x49[_0xf119[185]]();_0x3090x2e(_0x3090x2f)})})};exports[_0xf119[188]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){var _0x3090x3b=_0x3090x2c[_0xf119[53]][_0xf119[52]];if(_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b]&& _0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[111]]&& _0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[114]]){ChatMessage[_0xf119[46]]({where:{ChatRoomId:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[114]]},include:[{model:Agent,attributes:[_0xf119[52],_0xf119[120]]},{model:ChatVisitor,attributes:[_0xf119[52],_0xf119[120]]}]})[_0xf119[45]](function(_0x3090x3d){var _0x3090x4a=[];_0x3090x3d[_0xf119[194]](function(_0x3090x3f){var _0x3090x4b={name:_0x3090x3f[_0xf119[189]]?_0x3090x3f[_0xf119[26]][_0xf119[120]]:_0x3090x3f[_0xf119[29]][_0xf119[120]],text:_0x3090x3f[_0xf119[191]][_0xf119[190]](/(\r\n|\n|\r)/gm,_0xf119[153]),date:_0x3090x3f[_0xf119[192]]};_0x3090x4a[_0xf119[193]](_0x3090x4b)});var _0x3090x4c=csv(_0x3090x4a);_0x3090x2d[_0xf119[160]](_0xf119[195])[_0xf119[44]](200)[_0xf119[43]](_0x3090x4c)})[_0xf119[42]](function(_0x3090x2f){_0x3090x2e(_0x3090x2f)})}};exports[_0xf119[196]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){return Xchatty[_0xf119[82]](_0x3090x2c[_0xf119[53]][_0xf119[52]])[_0xf119[45]](function(_0x3090x4d){if(!_0x3090x4d){return _0x3090x2d[_0xf119[197]](404)};return _0x3090x2d[_0xf119[43]](_0x3090x4d)})[_0xf119[42]](function(_0x3090x2f){return _0x3090x2e(_0x3090x2f)})};exports[_0xf119[133]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){return Xchatty[_0xf119[133]](_0x3090x2c[_0xf119[191]])[_0xf119[45]](function(_0x3090x4d){return _0x3090x2d[_0xf119[44]](201)[_0xf119[43]](_0x3090x4d)})[_0xf119[42]](function(_0x3090x2f){return _0x3090x2e(_0x3090x2f)})};exports[_0xf119[137]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){if(_0x3090x2c[_0xf119[191]][_0xf119[52]]){delete _0x3090x2c[_0xf119[191]][_0xf119[52]]};return Xchatty[_0xf119[82]](_0x3090x2c[_0xf119[53]][_0xf119[52]])[_0xf119[45]](function(_0x3090x4d){if(!_0x3090x4d){return _0x3090x2d[_0xf119[197]](404)};var _0x3090x4e=_[_0xf119[198]](_0x3090x4d,_0x3090x2c[_0xf119[191]]);_0x3090x4e[_0xf119[199]]()[_0xf119[45]](function(){return _0x3090x2d[_0xf119[44]](200)[_0xf119[43]](_0x3090x4d)})[_0xf119[42]](function(_0x3090x2f){return _0x3090x2e(_0x3090x2f)})})[_0xf119[42]](function(_0x3090x2f){return _0x3090x2e(_0x3090x2f)})};exports[_0xf119[200]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){return Xchatty[_0xf119[82]](_0x3090x2c[_0xf119[53]][_0xf119[52]])[_0xf119[45]](function(_0x3090x4d){if(!_0x3090x4d){return _0x3090x2d[_0xf119[197]](404)};_0x3090x4d[_0xf119[200]]()[_0xf119[45]](function(){return _0x3090x2d[_0xf119[197]](204)})[_0xf119[42]](function(_0x3090x2f){return _0x3090x2e(_0x3090x2f)})})[_0xf119[42]](function(_0x3090x2f){return _0x3090x2e(_0x3090x2f)})};exports[_0xf119[201]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){var _0x3090x31,_0x3090x4f,_0x3090x50;var _0x3090x51=xchatty_components[_0xf119[202]];return ChatWebsite[_0xf119[82]](_0x3090x2c[_0xf119[53]][_0xf119[52]],{include:[{all:true}]})[_0xf119[45]](function(_0x3090x45){_0x3090x31= _0x3090x45;return Setting[_0xf119[82]](1)})[_0xf119[45]](function(_0x3090x57){_0x3090x50= _0x3090x57;return License[_0xf119[82]](1)})[_0xf119[45]](function(_0x3090x52){if(_0x3090x52){_0x3090x4f= JSON[_0xf119[144]](license[_0xf119[205]](_0x3090x52[_0xf119[204]][_0xf119[203]],_0x3090x52[_0xf119[162]]))}else {_0x3090x4f= demoLicense};var _0x3090x53={rootPath:Util[_0xf119[55]](_0x3090x31[_0xf119[54]])+ _0xf119[56],assetBase:Util[_0xf119[55]](_0x3090x31[_0xf119[54]])+ _0xf119[61],websiteId:_0x3090x31[_0xf119[52]],headerShape:_0x3090x31[_0xf119[63]],enquiryEnable:_0x3090x31[_0xf119[206]],onlineFields:_0x3090x31[_0xf119[207]],logo:function(){if(_0x3090x4f[_0xf119[208]]&&  !_0x3090x31[_0xf119[209]]&& _0x3090x31[_0xf119[210]]){return _0xf119[211]+ _0x3090x31[_0xf119[210]]+ _0xf119[212]}else {return _0xf119[213]}},whiteLabel:function(){if(_0x3090x4f[_0xf119[208]]&&  !_0x3090x31[_0xf119[214]]){return _0x3090x31[_0xf119[215]]}else {return _0xf119[216]}},renderedOnlineField:function(){var _0x3090x54=_0xf119[117];var _0x3090x55=this;switch(this[_0xf119[242]]){case _0xf119[226]:_0x3090x54= _0xf119[217];_0x3090x54+= util[_0xf119[222]](_0xf119[218],_0x3090x55[_0xf119[41]],_0x3090x55[_0xf119[219]],_0x3090x55[_0xf119[220]]?_0xf119[221]:_0xf119[117]);_0x3090x54+= util[_0xf119[222]](_0xf119[223],_0x3090x55[_0xf119[219]],_0x3090x55[_0xf119[41]],_0x3090x55[_0xf119[41]]+ 1,_0x3090x55[_0xf119[224]],_0x3090x55[_0xf119[220]]?_0xf119[220]:_0xf119[117]);_0x3090x54+= _0xf119[225];break;case _0xf119[228]:_0x3090x54= _0xf119[217];_0x3090x54+= util[_0xf119[222]](_0xf119[218],_0x3090x55[_0xf119[41]],_0x3090x55[_0xf119[219]],_0x3090x55[_0xf119[220]]?_0xf119[221]:_0xf119[117]);_0x3090x54+= util[_0xf119[222]](_0xf119[227],_0x3090x55[_0xf119[41]],_0x3090x55[_0xf119[219]],_0x3090x55[_0xf119[41]]+ 1,_0x3090x55[_0xf119[224]],_0x3090x55[_0xf119[220]]?_0xf119[220]:_0xf119[117]);_0x3090x54+= _0xf119[225];break;case _0xf119[234]:_0x3090x54= _0xf119[217];_0x3090x54+= util[_0xf119[222]](_0xf119[229],_0x3090x55[_0xf119[219]]);_[_0xf119[194]](_0x3090x55[_0xf119[230]],function(_0x3090x56){_0x3090x54+= _0xf119[231];_0x3090x54+= util[_0xf119[222]](_0xf119[232],_0x3090x55[_0xf119[41]]+ 1,_0x3090x56,_0x3090x56);_0x3090x54+= _0xf119[233]});_0x3090x54+= _0xf119[225];break;case _0xf119[236]:_0x3090x54= _0xf119[217];_0x3090x54+= util[_0xf119[222]](_0xf119[229],_0x3090x55[_0xf119[219]]);_[_0xf119[194]](_0x3090x55[_0xf119[230]],function(_0x3090x56){_0x3090x54+= _0xf119[231];_0x3090x54+= util[_0xf119[222]](_0xf119[235],_0x3090x55[_0xf119[41]]+ 1,_0x3090x56,_0x3090x56);_0x3090x54+= _0xf119[233]});_0x3090x54+= _0xf119[225];break;case _0xf119[241]:_0x3090x54= _0xf119[217];_0x3090x54+= util[_0xf119[222]](_0xf119[237],_0x3090x55[_0xf119[41]],_0x3090x55[_0xf119[219]]);_0x3090x54+= util[_0xf119[222]](_0xf119[238],_0x3090x55[_0xf119[41]]+ 1);_[_0xf119[194]](_0x3090x55[_0xf119[230]],function(_0x3090x56){_0x3090x54+= util[_0xf119[222]](_0xf119[239],_0x3090x56,_0x3090x56)});_0x3090x54+= _0xf119[240];break};_0x3090x54+= _0xf119[243];_0x3090x54+= util[_0xf119[222]](_0xf119[244],_0x3090x55[_0xf119[41]]+ 1,_0x3090x55[_0xf119[219]]);return _0x3090x54},offlineFields:_0x3090x31[_0xf119[245]],renderedOfflineField:function(){var _0x3090x54=_0xf119[117];var _0x3090x55=this;switch(this[_0xf119[242]]){case _0xf119[226]:_0x3090x54= _0xf119[217];_0x3090x54+= util[_0xf119[222]](_0xf119[246],_0x3090x55[_0xf119[41]],_0x3090x55[_0xf119[219]],_0x3090x55[_0xf119[220]]?_0xf119[221]:_0xf119[117]);_0x3090x54+= util[_0xf119[222]](_0xf119[247],_0x3090x55[_0xf119[219]],_0x3090x55[_0xf119[41]],_0x3090x55[_0xf119[41]]+ 1,_0x3090x55[_0xf119[224]],_0x3090x55[_0xf119[220]]?_0xf119[220]:_0xf119[117]);_0x3090x54+= _0xf119[225];break;case _0xf119[228]:_0x3090x54= _0xf119[217];_0x3090x54+= util[_0xf119[222]](_0xf119[246],_0x3090x55[_0xf119[41]],_0x3090x55[_0xf119[219]],_0x3090x55[_0xf119[220]]?_0xf119[221]:_0xf119[117]);_0x3090x54+= util[_0xf119[222]](_0xf119[248],_0x3090x55[_0xf119[41]],_0x3090x55[_0xf119[219]],_0x3090x55[_0xf119[41]]+ 1,_0x3090x55[_0xf119[224]],_0x3090x55[_0xf119[220]]?_0xf119[220]:_0xf119[117]);_0x3090x54+= _0xf119[225];break;case _0xf119[234]:_0x3090x54= _0xf119[217];_0x3090x54+= util[_0xf119[222]](_0xf119[229],_0x3090x55[_0xf119[219]]);_[_0xf119[194]](_0x3090x55[_0xf119[230]],function(_0x3090x56){_0x3090x54+= _0xf119[231];_0x3090x54+= util[_0xf119[222]](_0xf119[249],_0x3090x55[_0xf119[41]]+ 1,_0x3090x56,_0x3090x56);_0x3090x54+= _0xf119[233]});_0x3090x54+= _0xf119[225];break;case _0xf119[236]:_0x3090x54= _0xf119[217];_0x3090x54+= util[_0xf119[222]](_0xf119[229],_0x3090x55[_0xf119[219]]);_[_0xf119[194]](_0x3090x55[_0xf119[230]],function(_0x3090x56){_0x3090x54+= _0xf119[231];_0x3090x54+= util[_0xf119[222]](_0xf119[250],_0x3090x55[_0xf119[41]]+ 1,_0x3090x56,_0x3090x56);_0x3090x54+= _0xf119[233]});_0x3090x54+= _0xf119[225];break;case _0xf119[241]:_0x3090x54= _0xf119[217];_0x3090x54+= util[_0xf119[222]](_0xf119[229],_0x3090x55[_0xf119[219]]);_0x3090x54+= util[_0xf119[222]](_0xf119[251],_0x3090x55[_0xf119[41]]+ 1);_[_0xf119[194]](_0x3090x55[_0xf119[230]],function(_0x3090x56){_0x3090x54+= util[_0xf119[222]](_0xf119[239],_0x3090x56,_0x3090x56)});_0x3090x54+= _0xf119[240];break};_0x3090x54+= _0xf119[243];_0x3090x54+= util[_0xf119[222]](_0xf119[252],_0x3090x55[_0xf119[41]]+ 1,_0x3090x55[_0xf119[219]]);return _0x3090x54}};_0x3090x51= Mustache[_0xf119[81]](_0x3090x51,_0x3090x53);return _0x3090x2d[_0xf119[44]](200)[_0xf119[253]](_0x3090x51)})[_0xf119[42]](function(_0x3090x2f){return _0x3090x2e(_0x3090x2f)})};exports[_0xf119[254]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){return ChatWebsite[_0xf119[82]](_0x3090x2c[_0xf119[53]][_0xf119[52]],{include:[{model:ChatProactiveAction}]})[_0xf119[45]](function(_0x3090x31){if(!_0x3090x31){return _0x3090x2d[_0xf119[44]](400)[_0xf119[253]]({})};return _0x3090x2d[_0xf119[44]](200)[_0xf119[253]](_0x3090x31.ChatProactiveActions)})[_0xf119[42]](function(_0x3090x2f){return _0x3090x2e(_0x3090x2f)})};exports[_0xf119[255]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){return ChatRoom[_0xf119[82]](_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[257]][_0xf119[114]])[_0xf119[45]](function(_0x3090x39){if(!_0x3090x39){return _0x3090x2d[_0xf119[44]](400)[_0xf119[253]]({})};if(_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[257]][_0xf119[91]](_0xf119[256])&& _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[257]][_0xf119[91]](_0xf119[131])){return _0x3090x39[_0xf119[137]]({rating:_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[257]][_0xf119[256]],ratingMessage:_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[257]][_0xf119[131]]})};return})[_0xf119[45]](function(){return _0x3090x2d[_0xf119[44]](200)[_0xf119[253]]({})})[_0xf119[42]](function(_0x3090x2f){return _0x3090x2d[_0xf119[44]](400)[_0xf119[253]](_0x3090x2f)})};exports[_0xf119[258]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){var _0x3090x3b=_0x3090x2c[_0xf119[53]][_0xf119[52]];if(_0x3090x2c[_0xf119[105]]&& _0x3090x2c[_0xf119[105]][_0xf119[100]]){if(_0x3090x2c[_0xf119[105]][_0xf119[100]][_0xf119[91]](_0x3090x3b)&& _0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[91]](_0xf119[111])&& _0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[111]]> 0){return ReportChatSession[_0xf119[260]]({where:{visitorid:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[111]],leaveAt:null}})[_0xf119[45]](function(_0x3090x58){if(!_0x3090x58){return};return _0x3090x58[_0xf119[137]]({abandon:true,leaveAt:moment()[_0xf119[222]](_0xf119[259])})})[_0xf119[45]](function(){return _0x3090x2d[_0xf119[44]](200)[_0xf119[253]]({})})[_0xf119[42]](function(_0x3090x2f){_0x3090x2d[_0xf119[44]](500)[_0xf119[253]]({})})}};return _0x3090x2d[_0xf119[44]](200)[_0xf119[253]]({})};exports[_0xf119[261]]= function(_0x3090x2c,_0x3090x2d,_0x3090x2e){if(!_0x3090x2c[_0xf119[105]][_0xf119[100]]){_0x3090x2c[_0xf119[105]][_0xf119[100]]= {}};if(!_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x2c[_0xf119[53]][_0xf119[52]]]){_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x2c[_0xf119[53]][_0xf119[52]]]= {}};var _0x3090x3b=_0x3090x2c[_0xf119[53]][_0xf119[52]];var _0x3090x59;var _0x3090x37={};var _0x3090x5a=[];return ChatWebsite[_0xf119[82]](_0x3090x3b)[_0xf119[45]](function(_0x3090x47){if(!_0x3090x47){return _0x3090x2d[_0xf119[197]](500)};_0x3090x59= _0x3090x47;return _0x3090x59[_0xf119[271]]({include:[{model:ChatQueue,include:[{model:Agent}]},{model:Agent},{model:Interval,include:[{all:true}]}]})})[_0xf119[45]](function(_0x3090x5c){_[_0xf119[194]](_0x3090x5c,function(_0x3090x5d){if(checkAppInterval(_0x3090x5d)){if(_0x3090x5d[_0xf119[265]]=== _0xf119[266]){if(_0x3090x5d[_0xf119[35]][_0xf119[91]](_0xf119[267])&& _0x3090x5d[_0xf119[35]][_0xf119[267]][_0xf119[123]]> 0){_0x3090x5a= _[_0xf119[269]](_[_0xf119[198]](_0x3090x5a,_[_0xf119[268]](_0x3090x5d[_0xf119[35]].Users,_0xf119[52])))}}else {if(_0x3090x5d[_0xf119[265]]=== _0xf119[124]){_0x3090x5a[_0xf119[193]](_0x3090x5d[_0xf119[26]][_0xf119[52]]);_0x3090x5a= _[_0xf119[269]](_0x3090x5a)}}}});return Agent[_0xf119[270]]({where:{online:true,id:{$in:_0x3090x5a}}})})[_0xf119[45]](function(_0x3090x5b){if(_0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[118]]){_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[118]]= _0x3090x2c[_0xf119[92]][_0xf119[119]][_0xf119[118]]=== _0xf119[58]?true:false};_0x3090x37= {success:true,has_session_saf:null,signed_up:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[114]]?true:false,fullname:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[120]]|| _0xf119[117],email:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[121]]|| _0xf119[117],avatar:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[122]]|| _0xf119[117],open_state:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[118]]|| _0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[114]]?true:false,online:_0x3090x5b[_0xf119[264]]?true:false,is_unserved:false,room_id:0};if(_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[111]]){return ChatRoom[_0xf119[113]]({where:{ChatVisitorId:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[111]],status:_0xf119[116],token:{$ne:_0xf119[117]}}})};return})[_0xf119[45]](function(_0x3090x39){if(_0x3090x39){_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[114]]= _0x3090x39[_0xf119[52]];_0x3090x37[_0xf119[114]]= _0x3090x39[_0xf119[52]];_0x3090x37[_0xf119[115]]= true}else {_0x3090x37[_0xf119[115]]= false};if(_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[111]]){return ChatVisitor[_0xf119[113]]({where:{id:_0x3090x2c[_0xf119[105]][_0xf119[100]][_0x3090x3b][_0xf119[111]],status:_0xf119[112]}})};return})[_0xf119[45]](function(_0x3090x38){if(_0x3090x38){_0x3090x37[_0xf119[106]]= true};return _0x3090x2d[_0xf119[44]](200)[_0xf119[253]](_0x3090x37)})[_0xf119[42]](function(_0x3090x2f){logger[_0xf119[263]](_0xf119[262],_0x3090x2f);return _0x3090x2d[_0xf119[44]](500)[_0xf119[253]]({})})};function checkAppInterval(_0x3090x5d){var _0x3090x5f=true;if(_0x3090x5d[_0xf119[40]]){for(var _0x3090x60=0;_0x3090x60< _0x3090x5d[_0xf119[40]][_0xf119[272]][_0xf119[123]];_0x3090x60++){if(Util[_0xf119[274]](splitInterval(_0x3090x5d[_0xf119[40]][_0xf119[272]][_0x3090x60][_0xf119[273]]))){break}else {_0x3090x5f= false}}}else {if(!Util[_0xf119[274]](splitInterval(_0x3090x5d[_0xf119[273]]))){_0x3090x5f= false}};return _0x3090x5f}function splitInterval(_0x3090x62){var _0x3090x63={};var _0x3090x64=_0x3090x62[_0xf119[275]](_0xf119[165]);var _0x3090x65;_0x3090x64[_0xf119[194]](function(_0x3090x55,_0x3090x66){switch(_0x3090x66){case 0:if(_0x3090x55!== _0xf119[221]){_0x3090x65= _0x3090x55[_0xf119[275]](_0xf119[276]);_0x3090x63[_0xf119[277]]= moment(_0x3090x65[0],_0xf119[278]);_0x3090x63[_0xf119[279]]= moment(_0x3090x65[1],_0xf119[278])}else {_0x3090x63[_0xf119[277]]= null;_0x3090x63[_0xf119[279]]= null};break;case 1:if(_0x3090x55!== _0xf119[221]){_0x3090x65= _0x3090x55[_0xf119[275]](_0xf119[276]);_0x3090x63[_0xf119[280]]= weekDaysCollection[_0x3090x65[0]];_0x3090x63[_0xf119[281]]= _0x3090x65[1]?weekDaysCollection[_0x3090x65[1]]:null}else {_0x3090x63[_0xf119[280]]= null;_0x3090x63[_0xf119[281]]= null};break;case 2:if(_0x3090x55!== _0xf119[221]){_0x3090x65= _0x3090x55[_0xf119[275]](_0xf119[276]);_0x3090x63[_0xf119[282]]= _0x3090x65[0];_0x3090x63[_0xf119[283]]= _0x3090x65[1]?_0x3090x65[1]:null}else {_0x3090x63[_0xf119[282]]= null;_0x3090x63[_0xf119[283]]= null};break;case 3:if(_0x3090x55!== _0xf119[221]){_0x3090x65= _0x3090x55[_0xf119[275]](_0xf119[276]);_0x3090x63[_0xf119[284]]= monthsCollection[_0x3090x65[0]];_0x3090x63[_0xf119[285]]= _0x3090x65[1]?monthsCollection[_0x3090x65[1]]:null}else {_0x3090x63[_0xf119[284]]= null;_0x3090x63[_0xf119[285]]= null};break;default:}});return _0x3090x63}
\ No newline at end of file