Built motion from commit 4cb7c5ded.|1.0.24
[motion.git] / server / api / xchatty / xchatty.controller.js
index 5ef9d82..2d6571b 100644 (file)
@@ -1 +1 @@
-var _0x2993=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x75\x73\x74\x61\x63\x68\x65","\x70\x61\x74\x68","\x6D\x64\x35","\x75\x61\x2D\x70\x61\x72\x73\x65\x72\x2D\x6A\x73","\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65\x2D\x70\x61\x72\x73\x65\x72","\x74\x6F\x2D\x63\x73\x76","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x2F\x78\x63\x68\x61\x74\x74\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x44\x45\x4D\x4F\x20\x4C\x49\x43\x45\x4E\x53\x45","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x73\x46\x69\x65\x6C\x64","\x43\x68\x61\x74\x50\x72\x6F\x61\x63\x74\x69\x76\x65\x41\x63\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x4C\x69\x63\x65\x6E\x73\x65","\x58\x63\x68\x61\x74\x74\x79","\x53\x65\x74\x74\x69\x6E\x67","\x43\x6F\x6E\x74\x61\x63\x74","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x67\x65\x74\x4A\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x78\x43\x68\x61\x74\x74\x79\x20\x4A\x53\x3A","\x6D\x65\x73\x73\x61\x67\x65","\x65\x72\x72\x6F\x72","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74","\x6E\x6F\x77","\x73\x65\x74","\x6A\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x72\x65\x6D\x6F\x74\x65","\x73\x74\x72\x69\x70\x54\x72\x61\x69\x6C\x69\x6E\x67\x53\x6C\x61\x73\x68","\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79\x2F","\x66\x61\x6C\x73\x65","\x74\x72\x75\x65","\x22\x22","\x6E\x75\x6C\x6C","\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79\x2F\x61\x73\x73\x65\x74\x73","\x61\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x68\x65\x61\x64\x65\x72\x5F\x73\x68\x61\x70\x65","\x68\x65\x61\x64\x65\x72\x5F\x6F\x6E\x6C\x69\x6E\x65","\x6F\x6E\x6C\x69\x6E\x65\x5F\x6D\x65\x73\x73\x61\x67\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x65\x6D\x61\x69\x6C\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x73\x74\x61\x72\x74\x5F\x63\x68\x61\x74\x5F\x62\x75\x74\x74\x6F\x6E","\x6F\x66\x66\x6C\x69\x6E\x65\x5F\x6D\x65\x73\x73\x61\x67\x65","\x68\x65\x61\x64\x65\x72\x5F\x6F\x66\x66\x6C\x69\x6E\x65","\x65\x6E\x71\x75\x69\x72\x79\x5F\x6D\x65\x73\x73\x61\x67\x65\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x65\x6E\x71\x75\x69\x72\x79\x5F\x62\x75\x74\x74\x6F\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x5F\x74\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x72\x61\x74\x69\x6E\x67\x5F\x6D\x65\x73\x73\x61\x67\x65","\x72\x61\x74\x69\x6E\x67\x5F\x73\x65\x6E\x64","\x72\x61\x74\x69\x6E\x67\x5F\x73\x6B\x69\x70","\x61\x67\x65\x6E\x74\x73\x5F\x62\x75\x73\x79","\x6E\x61\x6D\x65\x5F\x74\x69\x74\x6C\x65","\x65\x6D\x61\x69\x6C\x5F\x74\x69\x74\x6C\x65","\x6D\x65\x73\x73\x61\x67\x65\x5F\x74\x69\x74\x6C\x65","\x72\x65\x6E\x64\x65\x72","\x57\x65\x62\x73\x69\x74\x65\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x66\x6F\x72\x6D\x61\x74","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x4F\x6E\x65","\x67\x65\x74\x53\x74\x79\x6C\x65\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x78\x43\x68\x61\x74\x74\x79\x20\x43\x53\x53\x3A","\x74\x65\x78\x74\x2F\x63\x73\x73","\x63\x73\x73","\x63\x6F\x6C\x6F\x72","\x63\x6F\x6C\x6F\x72\x5F\x66\x6F\x63\x75\x73","\x63\x6F\x6C\x6F\x72\x5F\x62\x75\x74\x74\x6F\x6E","\x67\x65\x74\x41\x73\x73\x65\x74\x73","\x75\x70\x6C\x6F\x61\x64\x65\x64","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x71\x75\x65\x72\x79","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x72\x65\x73\x6F\x75\x72\x63\x65","\x6A\x6F\x69\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73","\x78\x63\x68\x61\x74\x74\x79","\x61\x73\x73\x65\x74\x73","\x67\x65\x74\x4A\x71\x75\x65\x72\x79\x4C\x69\x62\x72\x61\x72\x79","\x6A\x71\x75\x65\x72\x79","\x67\x65\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x72\x6F\x6F\x6D\x5F\x69\x64","\x73\x65\x73\x73\x69\x6F\x6E","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x69\x73\x5F\x6E\x65\x77\x5F\x70\x61\x67\x65","\x64\x61\x74\x61","\x77\x68\x65\x72\x65","\x6C\x61\x73\x74\x5F\x69\x64","\x45\x72\x72\x6F\x72\x20\x67\x65\x74\x20\x63\x68\x61\x74\x20\x6D\x65\x73\x73\x61\x67\x65\x73\x3A","\x6A\x73\x6F\x6E\x70","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x65\x6E\x64\x4D\x65\x73\x73\x61\x67\x65","\x6C\x65\x6E\x67\x74\x68","\x67\x65\x74","\x4D\x65\x73\x73\x61\x67\x65","\x76\x69\x73\x69\x74\x6F\x72\x5F\x69\x64","\x63\x72\x65\x61\x74\x65","\x73\x69\x67\x6E\x6F\x75\x74\x43\x75\x73\x74\x6F\x6D\x65\x72","\x45\x72\x72\x6F\x72\x20\x76\x69\x73\x69\x74\x6F\x72\x20\x73\x69\x67\x6E\x6F\x75\x74\x3A","\x43\x68\x61\x74\x20\x52\x6F\x6F\x6D\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x43\x4C\x4F\x53\x45\x44","\x72\x65\x71\x75\x65\x73\x74\x65\x72","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64","\x73\x69\x67\x6E\x75\x70\x43\x75\x73\x74\x6F\x6D\x65\x72","\x67\x65\x74\x52\x65\x73\x75\x6C\x74","\x75\x73\x65\x72\x2D\x61\x67\x65\x6E\x74","\x68\x65\x61\x64\x65\x72\x73","\x73\x65\x74\x55\x41","\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65","\x70\x61\x72\x73\x65","\x78\x2D\x66\x6F\x72\x77\x61\x72\x64\x65\x64\x2D\x66\x6F\x72","\x72\x65\x6D\x6F\x74\x65\x41\x64\x64\x72\x65\x73\x73","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x69\x70","\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E","\x72\x65\x66\x65\x72\x65\x72","\x77\x65\x62\x63\x68\x61\x74","\x62\x72\x6F\x77\x73\x65\x72","\x20","\x76\x65\x72\x73\x69\x6F\x6E","\x65\x6E\x67\x69\x6E\x65","\x6F\x73","\x6D\x6F\x64\x65\x6C","\x64\x65\x76\x69\x63\x65","\x76\x65\x6E\x64\x6F\x72","\x74\x79\x70\x65","\x63\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x64\x61\x74\x61\x31","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x31","\x69\x73\x41\x72\x72\x61\x79","\x2C","\x64\x61\x74\x61\x32","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x33","\x45\x72\x72\x6F\x72\x20\x73\x75\x62\x6D\x69\x74\x69\x6E\x67\x20\x65\x6E\x71\x75\x69\x72\x79\x3A","\x61\x76\x61\x74\x61\x72","\x62\x61\x73\x65\x36\x34","\x65\x78\x74\x65\x72\x6E\x61\x6C","\x43\x68\x61\x74\x20\x57\x65\x62\x73\x69\x74\x65\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x4C\x69\x73\x74\x49\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x73\x75\x62\x6D\x69\x74\x45\x6E\x71\x75\x69\x72\x79","\x45\x6E\x71\x75\x69\x72\x79","\x65\x6E\x71\x75\x69\x72\x79","\x75\x6E\x73\x65\x72\x76\x65\x64","\x77\x65\x62\x73\x69\x74\x65\x49\x64","\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x31","\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x31","\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x32","\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x32","\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x33","\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x33","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x63\x6F\x6D\x6D\x69\x74","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x67\x65\x74\x54\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x45\x72\x72\x6F\x72\x20\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x69\x6E\x67\x20\x63\x68\x61\x74\x20\x74\x72\x61\x6E\x73\x63\x72\x69\x70\x74\x3A","\x72\x65\x70\x6C\x61\x63\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","","\x74\x65\x78\x74\x2F\x63\x73\x76","\x67\x65\x74\x48\x74\x6D\x6C\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x48\x54\x4D\x4C\x20\x74\x65\x6D\x70\x6C\x61\x74\x65\x3A","\x6C\x69\x63\x65\x6E\x73\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x64\x65\x63\x72\x79\x70\x74","\x65\x6E\x71\x75\x69\x72\x79\x5F\x65\x6E\x61\x62\x6C\x65","\x4F\x6E\x6C\x69\x6E\x65","\x63\x75\x73\x74\x6F\x6D","\x64\x65\x66\x61\x75\x6C\x74\x4C\x6F\x67\x6F","\x6C\x6F\x67\x6F","\x69\x6D\x61\x67\x65\x73\x2F","\x26\x75\x70\x6C\x6F\x61\x64\x65\x64","\x69\x6D\x61\x67\x65\x73\x2F\x6D\x6F\x74\x69\x6F\x6E\x4C\x6F\x67\x6F\x2E\x70\x6E\x67","\x64\x65\x66\x61\x75\x6C\x74\x57\x68\x69\x74\x65\x4C\x61\x62\x65\x6C","\x77\x68\x69\x74\x65\x4C\x61\x62\x65\x6C","\x3C\x61\x20\x68\x72\x65\x66\x3D\x22\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x78\x63\x61\x6C\x6C\x79\x6D\x6F\x74\x69\x6F\x6E\x2E\x63\x6F\x6D\x2F\x22\x20\x74\x61\x72\x67\x65\x74\x3D\x22\x5F\x62\x6C\x61\x6E\x6B\x22\x3E\x50\x6F\x77\x65\x72\x65\x64\x20\x62\x79\x20\x78\x43\x41\x4C\x4C\x59\x3C\x2F\x61\x3E","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x64\x69\x76\x5F\x67\x72\x6F\x75\x70\x22\x3E","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x20\x66\x6F\x72\x3D\x22\x25\x64\x22\x3E\x25\x73\x20\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x69\x6E\x64\x65\x78","\x6C\x61\x62\x65\x6C","\x72\x65\x71\x75\x69\x72\x65\x64","\x2A","\x3C\x69\x6E\x70\x75\x74\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x22\x20\x69\x64\x3D\x22\x25\x64\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x2F\x3E","\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x3C\x2F\x64\x69\x76\x3E","\x74\x65\x78\x74\x49\x6E\x70\x75\x74","\x3C\x74\x65\x78\x74\x61\x72\x65\x61\x20\x69\x64\x3D\x22\x25\x64\x22\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x3E\x3C\x2F\x74\x65\x78\x74\x61\x72\x65\x61\x3E","\x74\x65\x78\x74\x41\x72\x65\x61","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x3E\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x6F\x70\x74\x69\x6F\x6E\x73","\x3C\x6C\x61\x62\x65\x6C\x20\x73\x74\x79\x6C\x65\x3D\x22\x64\x69\x73\x70\x6C\x61\x79\x3A\x62\x6C\x6F\x63\x6B\x3B\x22\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x63\x68\x65\x63\x6B\x62\x6F\x78\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x63\x68\x65\x63\x6B\x62\x6F\x78","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x72\x61\x64\x69\x6F\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x72\x61\x64\x69\x6F","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x20\x66\x6F\x72\x3D\x22\x25\x64\x22\x3E\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x3C\x73\x65\x6C\x65\x63\x74\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x3E","\x3C\x6F\x70\x74\x69\x6F\x6E\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x25\x73\x3C\x2F\x6F\x70\x74\x69\x6F\x6E\x3E","\x3C\x2F\x73\x65\x6C\x65\x63\x74\x3E\x3C\x2F\x64\x69\x76\x3E","\x73\x65\x6C\x65\x63\x74","\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74","\x3C\x62\x72\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x68\x69\x64\x64\x65\x6E\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E","\x4F\x66\x66\x6C\x69\x6E\x65","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x20\x66\x6F\x72\x3D\x22\x6F\x66\x66\x6C\x69\x6E\x65\x25\x64\x22\x3E\x25\x73\x20\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x22\x20\x69\x64\x3D\x22\x6F\x66\x66\x6C\x69\x6E\x65\x25\x64\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x2F\x3E","\x3C\x74\x65\x78\x74\x61\x72\x65\x61\x20\x69\x64\x3D\x22\x6F\x66\x66\x6C\x69\x6E\x65\x25\x64\x22\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x3E\x3C\x2F\x74\x65\x78\x74\x61\x72\x65\x61\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x63\x68\x65\x63\x6B\x62\x6F\x78\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x72\x61\x64\x69\x6F\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x3C\x73\x65\x6C\x65\x63\x74\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x68\x69\x64\x64\x65\x6E\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x50\x72\x6F\x61\x63\x74\x69\x76\x65\x41\x63\x74\x69\x6F\x6E\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x70\x72\x6F\x61\x63\x74\x69\x76\x65\x20\x61\x63\x74\x69\x6F\x6E\x73\x3A","\x43\x68\x61\x74\x20\x57\x65\x62\x73\x69\x74\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x73\x65\x6C\x65\x63\x74\x6F\x72","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x65\x74\x52\x61\x74\x69\x6E\x67","\x45\x72\x72\x6F\x72\x20\x73\x65\x74\x20\x72\x61\x74\x69\x6E\x67\x3A","\x43\x68\x61\x74\x52\x6F\x6F\x6D\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x52\x61\x74\x69\x6E\x67","\x72\x61\x74\x69\x6E\x67","\x61\x62\x61\x6E\x64\x6F\x6E\x43\x75\x73\x74\x6F\x6D\x65\x72","\x45\x72\x72\x6F\x72\x20\x76\x69\x73\x69\x74\x6F\x72\x20\x61\x62\x61\x6E\x64\x6F\x6E\x3A","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x66\x6F\x72\x20\x76\x69\x73\x69\x74\x6F\x72\x20\x25\x64","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x72\x6F\x6F\x6D\x69\x64","\x67\x65\x74\x53\x74\x61\x74\x75\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x57\x65\x62\x73\x69\x74\x65\x20\x73\x74\x61\x74\x75\x73\x20\x65\x72\x72\x6F\x72","\x69\x73\x5F\x75\x6E\x73\x65\x72\x76\x65\x64","\x73\x69\x67\x6E\x65\x64\x5F\x75\x70","\x6F\x70\x65\x6E\x5F\x73\x74\x61\x74\x65","\x63\x6F\x75\x6E\x74","\x4F\x50\x45\x4E","\x61\x70\x70","\x71\x75\x65\x75\x65","\x55\x73\x65\x72\x73","\x6D\x61\x70","\x6D\x65\x72\x67\x65","\x75\x6E\x69\x71","\x61\x67\x65\x6E\x74","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x67\x65\x74\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x69\x73\x56\x61\x6C\x69\x64\x49\x6E\x74\x65\x72\x76\x61\x6C","\x73\x70\x6C\x69\x74","\x2D","\x74\x5F\x66\x72\x6F\x6D","\x48\x48\x3A\x6D\x6D","\x74\x5F\x74\x6F","\x77\x64\x5F\x66\x72\x6F\x6D","\x77\x64\x5F\x74\x6F","\x6D\x64\x5F\x66\x72\x6F\x6D","\x6D\x64\x5F\x74\x6F","\x6D\x5F\x66\x72\x6F\x6D","\x6D\x5F\x74\x6F"];_0x2993[0];var _=require(_0x2993[1]);var Mustache=require(_0x2993[2]);var path=require(_0x2993[3]);var md5=require(_0x2993[4]);var UAParser=require(_0x2993[5]);var uaParser= new UAParser();var languageParser=require(_0x2993[6]);var csv=require(_0x2993[7]);var util=require(_0x2993[8]);var moment=require(_0x2993[9]);var logger=require(_0x2993[11])(_0x2993[10]);var config=require(_0x2993[12]);var xchatty_components=require(_0x2993[13]);var Util=require(_0x2993[14]);var license=require(_0x2993[15]);var demoLicense={users:1,agents:1,telephones:0,chat:false,mail:false,fax:false,messaging:false,cm:false,dialer:false,jscripty:false,update:false,custom:false,description:_0x2993[16]};var sequelize=require(_0x2993[18])[_0x2993[17]];var User=require(_0x2993[18])[_0x2993[19]];var Agent=require(_0x2993[18])[_0x2993[19]];var ChatRoom=require(_0x2993[18])[_0x2993[20]];var ChatEnquiry=require(_0x2993[18])[_0x2993[21]];var ChatVisitor=require(_0x2993[18])[_0x2993[22]];var ChatMessage=require(_0x2993[18])[_0x2993[23]];var ChatWebsite=require(_0x2993[18])[_0x2993[24]];var ChatWebsitesField=require(_0x2993[18])[_0x2993[25]];var ChatProactiveAction=require(_0x2993[18])[_0x2993[26]];var ReportChatSession=require(_0x2993[18])[_0x2993[27]];var ChatQueue=require(_0x2993[18])[_0x2993[28]];var License=require(_0x2993[18])[_0x2993[29]];var Xchatty=require(_0x2993[18])[_0x2993[30]];var Setting=require(_0x2993[18])[_0x2993[31]];var Contact=require(_0x2993[18])[_0x2993[32]];var Interval=require(_0x2993[18])[_0x2993[33]];const weekDaysCollection={mon:1,tue:2,wed:3,thu:4,fri:5,sat:6,sun:7};const monthsCollection={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12};var id=1;exports[_0x2993[34]]= function(_0x4761x25,_0x4761x26){return ChatWebsite[_0x2993[78]]({where:{id:_0x4761x25[_0x2993[46]][_0x2993[45]]},attributes:[_0x2993[45],_0x2993[47],_0x2993[55],_0x2993[56],_0x2993[57],_0x2993[58],_0x2993[59],_0x2993[60],_0x2993[61],_0x2993[62],_0x2993[63],_0x2993[64],_0x2993[65],_0x2993[66],_0x2993[67],_0x2993[68],_0x2993[69],_0x2993[70],_0x2993[71],_0x2993[72],_0x2993[73]]})[_0x2993[77]](function(_0x4761x28){if(_0x4761x28){_0x4761x26[_0x2993[43]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x2993[41],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x2993[42]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x4761x29=xchatty_components[_0x2993[44]];var _0x4761x2a={websiteId:_0x4761x25[_0x2993[46]][_0x2993[45]],rootPath:Util[_0x2993[48]](_0x4761x28[_0x2993[47]])+ _0x2993[49],signedUp:_0x2993[50],windowFocused:_0x2993[50],isNewPage:_0x2993[51],processingSignUp:_0x2993[50],processingEnquiry:_0x2993[50],processingSend:_0x2993[50],processingRating:_0x2993[50],visitorFullname:_0x2993[52],visitorAvatar:_0x2993[52],timerReadMessages:_0x2993[53],timerCheckStatus:_0x2993[53],isOnline:_0x2993[50],decayHistory:0,defaultTimeout:5000,isInitialStatusCheck:_0x2993[51],muteNotificationSoundOnce:_0x2993[50],assetBase:Util[_0x2993[48]](_0x4761x28[_0x2993[47]])+ _0x2993[54],hasSessionSaf:_0x2993[50],restoreOpenState:_0x2993[50],animateHover:_0x4761x28[_0x2993[55]],hideEmail:_0x2993[50],hideOffline:_0x2993[50],headerShape:_0x4761x28[_0x2993[56]],HeaderOnline:_0x4761x28[_0x2993[57]],OnlineMessage:_0x4761x28[_0x2993[58]],UsernamePlaceholder:_0x4761x28[_0x2993[59]],EmailPlaceholder:_0x4761x28[_0x2993[60]],StartChatButtonText:_0x4761x28[_0x2993[61]],OfflineMessage:_0x4761x28[_0x2993[62]],HeaderOffline:_0x4761x28[_0x2993[63]],EnquiryMessagePlaceholder:_0x4761x28[_0x2993[64]],EnquiryButtonText:_0x4761x28[_0x2993[65]],downloadTranscript:_0x4761x28[_0x2993[66]],RatingMessage:_0x4761x28[_0x2993[67]],RatingSend:_0x4761x28[_0x2993[68]],RatingSkip:_0x4761x28[_0x2993[69]],MessageAgentsBusy:_0x4761x28[_0x2993[70]],NameTitle:_0x4761x28[_0x2993[71]],EmailTitle:_0x4761x28[_0x2993[72]],MessageTitle:_0x4761x28[_0x2993[73]]};_0x4761x29= Mustache[_0x2993[74]](_0x4761x29,_0x4761x2a);return _0x4761x26[_0x2993[38]](_0x4761x29)}else {throw  new Error(util[_0x2993[76]](_0x2993[75],_0x4761x25[_0x2993[46]][_0x2993[45]]))}})[_0x2993[40]](function(_0x4761x27){logger[_0x2993[37]](_0x2993[35],_0x4761x27[_0x2993[36]]);return _0x4761x26[_0x2993[39]](500)[_0x2993[38]](_0x4761x27)})};exports[_0x2993[79]]= function(_0x4761x25,_0x4761x26){ChatWebsite[_0x2993[78]]({where:{id:_0x4761x25[_0x2993[46]][_0x2993[45]]},attributes:[_0x2993[45],_0x2993[47],_0x2993[83],_0x2993[84],_0x2993[85]]})[_0x2993[77]](function(_0x4761x28){if(_0x4761x28){_0x4761x26[_0x2993[43]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x2993[81],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x2993[42]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x4761x2b=xchatty_components[_0x2993[82]];var _0x4761x2c={assetBase:Util[_0x2993[48]](_0x4761x28[_0x2993[47]])+ _0x2993[54],color:_0x4761x28[_0x2993[83]],colorFocus:_0x4761x28[_0x2993[84]],colorButton:_0x4761x28[_0x2993[85]]};_0x4761x2b= Mustache[_0x2993[74]](_0x4761x2b,_0x4761x2c);return _0x4761x26[_0x2993[38]](_0x4761x2b)}else {throw  new Error(util[_0x2993[76]](_0x2993[75],_0x4761x25[_0x2993[46]][_0x2993[45]]))}})[_0x2993[40]](function(_0x4761x27){logger[_0x2993[37]](_0x2993[80],_0x4761x27[_0x2993[36]]);return _0x4761x26[_0x2993[39]](500)[_0x2993[38]](_0x4761x27)})};exports[_0x2993[86]]= function(_0x4761x25,_0x4761x26){if(_0x4761x25[_0x2993[89]][_0x2993[88]](_0x2993[87])){_0x4761x26[_0x2993[95]](path[_0x2993[94]](config[_0x2993[90]],_0x2993[91],_0x2993[92],_0x4761x25[_0x2993[89]][_0x2993[93]]))}else {_0x4761x26[_0x2993[95]](path[_0x2993[94]](config[_0x2993[90]],_0x2993[91],_0x2993[96],_0x2993[97],_0x2993[98],_0x4761x25[_0x2993[89]][_0x2993[93]]))}};exports[_0x2993[99]]= function(_0x4761x25,_0x4761x26){_0x4761x26[_0x2993[43]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x2993[41],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x2993[42]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x4761x2d=xchatty_components[_0x2993[100]];_0x4761x26[_0x2993[38]](_0x4761x2d)};exports[_0x2993[101]]= function(_0x4761x25,_0x4761x26){var _0x4761x2e=_0x4761x25[_0x2993[46]][_0x2993[45]];var _0x4761x2f={where:{ChatRoomId:_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[102]]},attributes:[_0x2993[45],_0x2993[104],_0x2993[105]],include:[{model:User,attributes:[_0x2993[45],_0x2993[106],_0x2993[107],_0x2993[108]]},{model:ChatVisitor,attributes:[_0x2993[45],_0x2993[107],_0x2993[108]]}]};if(_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[109]]=== _0x2993[50]){_0x4761x2f[_0x2993[111]][_0x2993[45]]= {$gt:_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[112]]}};ChatMessage[_0x2993[115]](_0x4761x2f)[_0x2993[77]](function(_0x4761x30){var _0x4761x31={success:true,messages:_0x4761x30,composing:false,composing_fullname:null};return _0x4761x26[_0x2993[39]](200)[_0x2993[114]](_0x4761x31)})[_0x2993[40]](function(_0x4761x27){logger[_0x2993[37]](_0x2993[113],_0x4761x27[_0x2993[36]]);return _0x4761x26[_0x2993[39]](500)[_0x2993[38]](_0x4761x27)})};exports[_0x2993[116]]= function(_0x4761x25,_0x4761x26){var _0x4761x2e=_0x4761x25[_0x2993[46]][_0x2993[45]];var _0x4761x32;var _0x4761x2f={where:{ChatRoomId:_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[102]]},include:[{model:User,attributes:[_0x2993[45],_0x2993[106],_0x2993[107],_0x2993[108]]},{model:ChatVisitor,attributes:[_0x2993[45],_0x2993[107],_0x2993[108]]}]};if(_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[109]]=== _0x2993[50]){_0x4761x2f[_0x2993[111]][_0x2993[45]]= {$gt:_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[112]]}};return ChatMessage[_0x2993[121]]({body:_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[119]][_0x2993[36]],ChatRoomId:_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[102]],ChatVisitorId:_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[120]]})[_0x2993[77]](function(_0x4761x34){return ChatMessage[_0x2993[115]](_0x4761x2f)})[_0x2993[77]](function(_0x4761x30){for(var _0x4761x33=0;_0x4761x33< _0x4761x30[_0x2993[117]];_0x4761x33++){_0x4761x30[_0x4761x33]= _0x4761x30[_0x4761x33][_0x2993[118]]({plain:true})};var _0x4761x31={errors:[],success:true,messages:_0x4761x30?_0x4761x30:[]};return _0x4761x26[_0x2993[39]](200)[_0x2993[114]](_0x4761x31)})[_0x2993[40]](function(_0x4761x27){logger[_0x2993[37]](_0x2993[113],_0x4761x27[_0x2993[36]]);return _0x4761x26[_0x2993[39]](500)[_0x2993[38]](_0x4761x27)})};exports[_0x2993[122]]= function(_0x4761x25,_0x4761x26){var _0x4761x2e=_0x4761x25[_0x2993[46]][_0x2993[45]];return ChatRoom[_0x2993[128]]({where:{id:_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[102]]},attributes:[_0x2993[45]]})[_0x2993[77]](function(_0x4761x35){if(!_0x4761x35){throw  new Error(util[_0x2993[76]](_0x2993[124],_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[102]]))};return _0x4761x35[_0x2993[127]]({status:_0x2993[125],completeReason:_0x2993[126]})})[_0x2993[77]](function(){var _0x4761x31={success:true,errors:[]};_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e]= {};return _0x4761x26[_0x2993[39]](200)[_0x2993[114]](_0x4761x31)})[_0x2993[40]](function(_0x4761x27){logger[_0x2993[37]](_0x2993[123],_0x4761x27[_0x2993[36]]);return _0x4761x26[_0x2993[39]](500)[_0x2993[38]](_0x4761x27)})};exports[_0x2993[129]]= function(_0x4761x25,_0x4761x26){var _0x4761x2e=_0x4761x25[_0x2993[46]][_0x2993[45]];var _0x4761x36=uaParser[_0x2993[133]](_0x4761x25[_0x2993[132]][_0x2993[131]])[_0x2993[130]]();var _0x4761x37=languageParser[_0x2993[135]](_0x4761x25[_0x2993[132]][_0x2993[134]]);var _0x4761x38=_0x4761x25[_0x2993[132]][_0x2993[136]]?_0x4761x25[_0x2993[132]][_0x2993[136]]:_0x4761x25[_0x2993[138]][_0x2993[137]]|| _0x4761x25[_0x2993[139]];var _0x4761x39={fullname:_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[140]][_0x2993[107]],email:_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[140]][_0x2993[108]],remote_address:_0x4761x38,user_agent:_0x4761x25[_0x2993[132]][_0x2993[131]],visitor_language:_0x4761x25[_0x2993[132]][_0x2993[134]],referer:_0x4761x25[_0x2993[132]][_0x2993[141]],origin:_0x2993[142],browser:_0x4761x36[_0x2993[143]][_0x2993[106]]+ _0x2993[144]+ _0x4761x36[_0x2993[143]][_0x2993[145]],engine:_0x4761x36[_0x2993[146]][_0x2993[106]]+ _0x2993[144]+ _0x4761x36[_0x2993[146]][_0x2993[145]],os:_0x4761x36[_0x2993[147]][_0x2993[106]]+ _0x2993[144]+ _0x4761x36[_0x2993[147]][_0x2993[145]],device:_0x4761x36[_0x2993[149]][_0x2993[148]]?_0x4761x36[_0x2993[149]][_0x2993[148]]+ _0x2993[144]+ _0x4761x36[_0x2993[149]][_0x2993[150]]+ _0x2993[144]+ _0x4761x36[_0x2993[149]][_0x2993[151]]:null,ChatWebsiteId:_0x4761x25[_0x2993[89]][_0x2993[152]]};if(_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[140]][_0x2993[153]]&& _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[140]][_0x2993[154]]){_0x4761x39[_0x2993[153]]= _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[140]][_0x2993[153]];if(_[_0x2993[155]](_0x4761x39[_0x2993[153]])){_0x4761x39[_0x2993[153]]= _[_0x2993[94]](_0x4761x39[_0x2993[153]],_0x2993[156])};_0x4761x39[_0x2993[154]]= _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[140]][_0x2993[154]]};if(_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[140]][_0x2993[157]]&& _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[140]][_0x2993[158]]){_0x4761x39[_0x2993[157]]= _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[140]][_0x2993[157]];if(_[_0x2993[155]](_0x4761x39[_0x2993[157]])){_0x4761x39[_0x2993[157]]= _[_0x2993[94]](_0x4761x39[_0x2993[157]],_0x2993[156])};_0x4761x39[_0x2993[158]]= _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[140]][_0x2993[158]]};if(_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[140]][_0x2993[159]]&& _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[140]][_0x2993[160]]){_0x4761x39[_0x2993[159]]= _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[140]][_0x2993[159]];if(_[_0x2993[155]](_0x4761x39[_0x2993[159]])){_0x4761x39[_0x2993[159]]= _[_0x2993[94]](_0x4761x39[_0x2993[159]],_0x2993[156])};_0x4761x39[_0x2993[160]]= _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[140]][_0x2993[160]]};var _0x4761x3a,_0x4761x3b;return ChatVisitor[_0x2993[121]](_0x4761x39)[_0x2993[77]](function(_0x4761x3d){_0x4761x3a= _0x4761x3d;return ChatWebsite[_0x2993[128]]({where:{id:_0x4761x3a[_0x2993[168]]},attributes:[_0x2993[45],_0x2993[106],_0x2993[166]]})})[_0x2993[77]](function(_0x4761x3c){if(!_0x4761x3c){throw  new Error(util[_0x2993[76]](_0x2993[165],_0x4761x3a.ChatWebsiteId))};_0x4761x3b= _0x4761x3c;if(_0x4761x3b[_0x2993[166]]){return Contact[_0x2993[167]]({where:{email:_0x4761x3a[_0x2993[108]]},defaults:{email:_0x4761x3a[_0x2993[108]],firstName:_0x4761x3a[_0x2993[107]],ListId:_0x4761x3b[_0x2993[166]]}})}})[_0x2993[77]](function(){return ChatRoom[_0x2993[121]]({type:_0x2993[164],ChatVisitorId:_0x4761x3a[_0x2993[45]],ChatWebsiteId:_0x4761x3b[_0x2993[45]],contact:_0x4761x3a[_0x2993[108]],website:_0x4761x3b[_0x2993[106]]})})[_0x2993[77]](function(_0x4761x35){_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[107]]= _0x4761x3a[_0x2993[107]];_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[108]]= _0x4761x3a[_0x2993[108]];_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[162]]= md5(_0x4761x3a[_0x2993[108]]).toString(_0x2993[163]);_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[120]]= _0x4761x3a[_0x2993[45]];var _0x4761x31={success:true,errors:[],chatVisitor:{id:_0x4761x3a[_0x2993[45]]}};return _0x4761x26[_0x2993[39]](200)[_0x2993[114]](_0x4761x31)})[_0x2993[40]](function(_0x4761x27){logger[_0x2993[37]](_0x2993[161],_0x4761x27[_0x2993[36]]);return _0x4761x26[_0x2993[39]](500)[_0x2993[38]](_0x4761x27)})};exports[_0x2993[169]]= function(_0x4761x25,_0x4761x26){return sequelize[_0x2993[182]]()[_0x2993[77]](function(_0x4761x3e){var _0x4761x38=_0x4761x25[_0x2993[132]][_0x2993[136]]?_0x4761x25[_0x2993[132]][_0x2993[136]]:_0x4761x25[_0x2993[138]][_0x2993[137]]|| _0x4761x25[_0x2993[139]];var _0x4761x36=uaParser[_0x2993[133]](_0x4761x25[_0x2993[132]][_0x2993[131]])[_0x2993[130]]();var _0x4761x37=languageParser[_0x2993[135]](_0x4761x25[_0x2993[132]][_0x2993[134]]);var _0x4761x39={fullname:_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[107]],email:_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[108]],remote_address:_0x4761x38,user_agent:_0x4761x25[_0x2993[132]][_0x2993[131]],visitor_language:_0x4761x25[_0x2993[132]][_0x2993[134]],browser:_0x4761x36[_0x2993[143]][_0x2993[106]]+ _0x2993[144]+ _0x4761x36[_0x2993[143]][_0x2993[145]],engine:_0x4761x36[_0x2993[146]][_0x2993[106]]+ _0x2993[144]+ _0x4761x36[_0x2993[146]][_0x2993[145]],os:_0x4761x36[_0x2993[147]][_0x2993[106]]+ _0x2993[144]+ _0x4761x36[_0x2993[147]][_0x2993[145]],device:_0x4761x36[_0x2993[149]][_0x2993[148]]?_0x4761x36[_0x2993[149]][_0x2993[148]]+ _0x2993[144]+ _0x4761x36[_0x2993[149]][_0x2993[150]]+ _0x2993[144]+ _0x4761x36[_0x2993[149]][_0x2993[151]]:null,referer:_0x4761x25[_0x2993[132]][_0x2993[141]],origin:_0x2993[171],status:_0x2993[172],ChatWebsiteId:parseInt(_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[173]],10),ChatEnquiry:{username:_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[107]],email:_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[108]],text:_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[36]],ChatWebsiteId:parseInt(_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[173]],10)}};if(_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[174]]&& _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[175]]){_0x4761x39[_0x2993[174]]= _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[174]];if(_[_0x2993[155]](_0x4761x39[_0x2993[174]])){_0x4761x39[_0x2993[174]]= _[_0x2993[94]](_0x4761x39[_0x2993[174]],_0x2993[156])};_0x4761x39[_0x2993[175]]= _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[175]]};if(_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[176]]&& _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[177]]){_0x4761x39[_0x2993[176]]= _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[176]];if(_[_0x2993[155]](_0x4761x39[_0x2993[176]])){_0x4761x39[_0x2993[176]]= _[_0x2993[94]](_0x4761x39[_0x2993[176]],_0x2993[156])};_0x4761x39[_0x2993[177]]= _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[177]]};if(_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[178]]&& _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[179]]){_0x4761x39[_0x2993[178]]= _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[178]];if(_[_0x2993[155]](_0x4761x39[_0x2993[178]])){_0x4761x39[_0x2993[178]]= _[_0x2993[94]](_0x4761x39[_0x2993[178]],_0x2993[156])};_0x4761x39[_0x2993[179]]= _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[170]][_0x2993[179]]};var _0x4761x3a;return ChatVisitor[_0x2993[121]](_0x4761x39,{transaction:_0x4761x3e,include:[{model:ChatEnquiry}]})[_0x2993[77]](function(_0x4761x3d){_0x4761x3a= _0x4761x3d;return ChatWebsite[_0x2993[78]]({where:{id:_0x4761x3a[_0x2993[168]]},attributes:[_0x2993[45],_0x2993[166]]})})[_0x2993[77]](function(_0x4761x3c){if(!_0x4761x3c){throw  new Error(util[_0x2993[76]](_0x2993[165],_0x4761x3a.ChatWebsiteId))};if(_0x4761x3c[_0x2993[166]]){return Contact[_0x2993[167]]({where:{email:_0x4761x3a[_0x2993[108]]},defaults:{email:_0x4761x3a[_0x2993[108]],firstName:_0x4761x3a[_0x2993[107]],ListId:_0x4761x3c[_0x2993[166]]}})};return})[_0x2993[77]](function(){_0x4761x3e[_0x2993[181]]();return _0x4761x26[_0x2993[39]](200)[_0x2993[114]]({success:true,errors:[]})})[_0x2993[40]](function(_0x4761x27){_0x4761x3e[_0x2993[180]]();logger[_0x2993[37]](_0x2993[161],_0x4761x27[_0x2993[36]]);return _0x4761x26[_0x2993[39]](500)[_0x2993[38]](_0x4761x27)})})};exports[_0x2993[183]]= function(_0x4761x25,_0x4761x26){var _0x4761x2e=_0x4761x25[_0x2993[46]][_0x2993[45]];if(_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e]&& _0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[120]]&& _0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[102]]){ChatMessage[_0x2993[115]]({where:{ChatRoomId:_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[102]]},attributes:[_0x2993[45],_0x2993[104],_0x2993[105]],include:[{model:Agent,attributes:[_0x2993[45],_0x2993[107]]},{model:ChatVisitor,attributes:[_0x2993[45],_0x2993[107]]}]})[_0x2993[77]](function(_0x4761x30){var _0x4761x3f=[];if(_0x4761x30&& _0x4761x30[_0x2993[117]]> 0){_0x4761x30[_0x2993[187]](function(_0x4761x34){_0x4761x34= _0x4761x34[_0x2993[118]]({plain:true});var _0x4761x40={name:_0x4761x34[_0x2993[19]]?_0x4761x34[_0x2993[19]][_0x2993[107]]:_0x4761x34[_0x2993[22]][_0x2993[107]],text:_0x4761x34[_0x2993[104]][_0x2993[185]](/(\r\n|\n|\r)/gm,_0x2993[144]),date:_0x4761x34[_0x2993[105]]};_0x4761x3f[_0x2993[186]](_0x4761x40)})}else {_0x4761x3f[_0x2993[186]]({name:_0x2993[188],text:_0x2993[188],date:_0x2993[188]})};var _0x4761x41=csv(_0x4761x3f);_0x4761x26[_0x2993[151]](_0x2993[189])[_0x2993[39]](200)[_0x2993[38]](_0x4761x41)})[_0x2993[40]](function(_0x4761x27){logger[_0x2993[37]](_0x2993[184],_0x4761x27[_0x2993[36]]);return _0x4761x26[_0x2993[39]](500)[_0x2993[38]](_0x4761x27)})}};exports[_0x2993[190]]= function(_0x4761x25,_0x4761x26){var _0x4761x28,_0x4761x42,_0x4761x43;var _0x4761x44=xchatty_components[_0x2993[191]];return ChatWebsite[_0x2993[243]](_0x4761x25[_0x2993[46]][_0x2993[45]],{include:[{model:ChatWebsitesField,as:_0x2993[197]},{model:ChatWebsitesField,as:_0x2993[235]}],attributes:[_0x2993[45],_0x2993[47],_0x2993[56],_0x2993[196],_0x2993[199],_0x2993[200],_0x2993[204]]})[_0x2993[77]](function(_0x4761x3b){if(!_0x4761x3b){throw  new Error(util[_0x2993[76]](_0x2993[165],_0x4761x25[_0x2993[46]][_0x2993[45]]))};_0x4761x28= _0x4761x3b;return License[_0x2993[243]](1)})[_0x2993[77]](function(_0x4761x45){if(_0x4761x45){_0x4761x42= JSON[_0x2993[135]](license[_0x2993[195]](_0x4761x45[_0x2993[194]][_0x2993[193]],_0x4761x45[_0x2993[153]]))}else {_0x4761x42= demoLicense};var _0x4761x46={rootPath:Util[_0x2993[48]](_0x4761x28[_0x2993[47]])+ _0x2993[49],assetBase:Util[_0x2993[48]](_0x4761x28[_0x2993[47]])+ _0x2993[54],websiteId:_0x4761x28[_0x2993[45]],headerShape:_0x4761x28[_0x2993[56]],enquiryEnable:_0x4761x28[_0x2993[196]],onlineFields:_0x4761x28[_0x2993[197]],logo:function(){if(_0x4761x42[_0x2993[198]]&&  !_0x4761x28[_0x2993[199]]&& _0x4761x28[_0x2993[200]]){return _0x2993[201]+ _0x4761x28[_0x2993[200]]+ _0x2993[202]}else {return _0x2993[203]}},whiteLabel:function(){if(_0x4761x42[_0x2993[198]]&&  !_0x4761x28[_0x2993[204]]){return _0x4761x28[_0x2993[205]]}else {return _0x2993[206]}},renderedOnlineField:function(){var _0x4761x47=_0x2993[188];var _0x4761x48=this;switch(this[_0x2993[232]]){case _0x2993[216]:_0x4761x47= _0x2993[207];_0x4761x47+= util[_0x2993[76]](_0x2993[208],_0x4761x48[_0x2993[209]],_0x4761x48[_0x2993[210]],_0x4761x48[_0x2993[211]]?_0x2993[212]:_0x2993[188]);_0x4761x47+= util[_0x2993[76]](_0x2993[213],_0x4761x48[_0x2993[210]],_0x4761x48[_0x2993[209]],_0x4761x48[_0x2993[209]]+ 1,_0x4761x48[_0x2993[214]],_0x4761x48[_0x2993[211]]?_0x2993[211]:_0x2993[188]);_0x4761x47+= _0x2993[215];break;case _0x2993[218]:_0x4761x47= _0x2993[207];_0x4761x47+= util[_0x2993[76]](_0x2993[208],_0x4761x48[_0x2993[209]],_0x4761x48[_0x2993[210]],_0x4761x48[_0x2993[211]]?_0x2993[212]:_0x2993[188]);_0x4761x47+= util[_0x2993[76]](_0x2993[217],_0x4761x48[_0x2993[209]],_0x4761x48[_0x2993[210]],_0x4761x48[_0x2993[209]]+ 1,_0x4761x48[_0x2993[214]],_0x4761x48[_0x2993[211]]?_0x2993[211]:_0x2993[188]);_0x4761x47+= _0x2993[215];break;case _0x2993[224]:_0x4761x47= _0x2993[207];_0x4761x47+= util[_0x2993[76]](_0x2993[219],_0x4761x48[_0x2993[210]]);_[_0x2993[187]](_0x4761x48[_0x2993[220]],function(_0x4761x49){_0x4761x47+= _0x2993[221];_0x4761x47+= util[_0x2993[76]](_0x2993[222],_0x4761x48[_0x2993[209]]+ 1,_0x4761x49,_0x4761x49);_0x4761x47+= _0x2993[223]});_0x4761x47+= _0x2993[215];break;case _0x2993[226]:_0x4761x47= _0x2993[207];_0x4761x47+= util[_0x2993[76]](_0x2993[219],_0x4761x48[_0x2993[210]]);_[_0x2993[187]](_0x4761x48[_0x2993[220]],function(_0x4761x49){_0x4761x47+= _0x2993[221];_0x4761x47+= util[_0x2993[76]](_0x2993[225],_0x4761x48[_0x2993[209]]+ 1,_0x4761x49,_0x4761x49);_0x4761x47+= _0x2993[223]});_0x4761x47+= _0x2993[215];break;case _0x2993[231]:_0x4761x47= _0x2993[207];_0x4761x47+= util[_0x2993[76]](_0x2993[227],_0x4761x48[_0x2993[209]],_0x4761x48[_0x2993[210]]);_0x4761x47+= util[_0x2993[76]](_0x2993[228],_0x4761x48[_0x2993[209]]+ 1);_[_0x2993[187]](_0x4761x48[_0x2993[220]],function(_0x4761x49){_0x4761x47+= util[_0x2993[76]](_0x2993[229],_0x4761x49,_0x4761x49)});_0x4761x47+= _0x2993[230];break};_0x4761x47+= _0x2993[233];_0x4761x47+= util[_0x2993[76]](_0x2993[234],_0x4761x48[_0x2993[209]]+ 1,_0x4761x48[_0x2993[210]]);return _0x4761x47},offlineFields:_0x4761x28[_0x2993[235]],renderedOfflineField:function(){var _0x4761x47=_0x2993[188];var _0x4761x48=this;switch(this[_0x2993[232]]){case _0x2993[216]:_0x4761x47= _0x2993[207];_0x4761x47+= util[_0x2993[76]](_0x2993[236],_0x4761x48[_0x2993[209]],_0x4761x48[_0x2993[210]],_0x4761x48[_0x2993[211]]?_0x2993[212]:_0x2993[188]);_0x4761x47+= util[_0x2993[76]](_0x2993[237],_0x4761x48[_0x2993[210]],_0x4761x48[_0x2993[209]],_0x4761x48[_0x2993[209]]+ 1,_0x4761x48[_0x2993[214]],_0x4761x48[_0x2993[211]]?_0x2993[211]:_0x2993[188]);_0x4761x47+= _0x2993[215];break;case _0x2993[218]:_0x4761x47= _0x2993[207];_0x4761x47+= util[_0x2993[76]](_0x2993[236],_0x4761x48[_0x2993[209]],_0x4761x48[_0x2993[210]],_0x4761x48[_0x2993[211]]?_0x2993[212]:_0x2993[188]);_0x4761x47+= util[_0x2993[76]](_0x2993[238],_0x4761x48[_0x2993[209]],_0x4761x48[_0x2993[210]],_0x4761x48[_0x2993[209]]+ 1,_0x4761x48[_0x2993[214]],_0x4761x48[_0x2993[211]]?_0x2993[211]:_0x2993[188]);_0x4761x47+= _0x2993[215];break;case _0x2993[224]:_0x4761x47= _0x2993[207];_0x4761x47+= util[_0x2993[76]](_0x2993[219],_0x4761x48[_0x2993[210]]);_[_0x2993[187]](_0x4761x48[_0x2993[220]],function(_0x4761x49){_0x4761x47+= _0x2993[221];_0x4761x47+= util[_0x2993[76]](_0x2993[239],_0x4761x48[_0x2993[209]]+ 1,_0x4761x49,_0x4761x49);_0x4761x47+= _0x2993[223]});_0x4761x47+= _0x2993[215];break;case _0x2993[226]:_0x4761x47= _0x2993[207];_0x4761x47+= util[_0x2993[76]](_0x2993[219],_0x4761x48[_0x2993[210]]);_[_0x2993[187]](_0x4761x48[_0x2993[220]],function(_0x4761x49){_0x4761x47+= _0x2993[221];_0x4761x47+= util[_0x2993[76]](_0x2993[240],_0x4761x48[_0x2993[209]]+ 1,_0x4761x49,_0x4761x49);_0x4761x47+= _0x2993[223]});_0x4761x47+= _0x2993[215];break;case _0x2993[231]:_0x4761x47= _0x2993[207];_0x4761x47+= util[_0x2993[76]](_0x2993[219],_0x4761x48[_0x2993[210]]);_0x4761x47+= util[_0x2993[76]](_0x2993[241],_0x4761x48[_0x2993[209]]+ 1);_[_0x2993[187]](_0x4761x48[_0x2993[220]],function(_0x4761x49){_0x4761x47+= util[_0x2993[76]](_0x2993[229],_0x4761x49,_0x4761x49)});_0x4761x47+= _0x2993[230];break};_0x4761x47+= _0x2993[233];_0x4761x47+= util[_0x2993[76]](_0x2993[242],_0x4761x48[_0x2993[209]]+ 1,_0x4761x48[_0x2993[210]]);return _0x4761x47}};_0x4761x44= Mustache[_0x2993[74]](_0x4761x44,_0x4761x46);return _0x4761x26[_0x2993[39]](200)[_0x2993[114]](_0x4761x44)})[_0x2993[40]](function(_0x4761x27){logger[_0x2993[37]](_0x2993[192],_0x4761x27[_0x2993[36]]);return _0x4761x26[_0x2993[39]](500)[_0x2993[114]]({message:_0x4761x27[_0x2993[36]]})})};exports[_0x2993[244]]= function(_0x4761x25,_0x4761x26){return ChatWebsite[_0x2993[243]](_0x4761x25[_0x2993[46]][_0x2993[45]],{include:[{model:ChatProactiveAction,attributes:[_0x2993[151],_0x2993[247],_0x2993[248]]}],attributes:[_0x2993[45]]})[_0x2993[77]](function(_0x4761x28){if(!_0x4761x28){logger[_0x2993[37]](_0x2993[246],_0x4761x25[_0x2993[46]][_0x2993[45]]);return _0x4761x26[_0x2993[39]](400)[_0x2993[114]]({})};return _0x4761x26[_0x2993[39]](200)[_0x2993[114]](_0x4761x28.ChatProactiveActions)})[_0x2993[40]](function(_0x4761x27){logger[_0x2993[37]](_0x2993[245],_0x4761x27[_0x2993[36]]);return _0x4761x26[_0x2993[39]](500)[_0x2993[114]]({message:_0x4761x27[_0x2993[36]]})})};exports[_0x2993[249]]= function(_0x4761x25,_0x4761x26){return ChatRoom[_0x2993[128]]({where:{id:_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[252]][_0x2993[102]]},attributes:[_0x2993[45]]})[_0x2993[77]](function(_0x4761x35){if(!_0x4761x35){throw  new Error(util[_0x2993[76]](_0x2993[251],_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[252]][_0x2993[102]]))};if(_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[252]][_0x2993[88]](_0x2993[253])&& _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[252]][_0x2993[88]](_0x2993[36])){return _0x4761x35[_0x2993[127]]({rating:_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[252]][_0x2993[253]],ratingMessage:_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[252]][_0x2993[36]]})};return})[_0x2993[77]](function(){return _0x4761x26[_0x2993[39]](200)[_0x2993[114]]({})})[_0x2993[40]](function(_0x4761x27){logger[_0x2993[37]](_0x2993[250],_0x4761x27[_0x2993[36]]);return _0x4761x26[_0x2993[39]](500)[_0x2993[114]]({message:_0x4761x27[_0x2993[36]]})})};exports[_0x2993[254]]= function(_0x4761x25,_0x4761x26){var _0x4761x2e=_0x4761x25[_0x2993[46]][_0x2993[45]];if(_0x4761x25[_0x2993[103]]&& _0x4761x25[_0x2993[103]][_0x2993[97]]){if(_0x4761x25[_0x2993[103]][_0x2993[97]][_0x2993[88]](_0x4761x2e)&& _0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[88]](_0x2993[120])&& _0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[120]]> 0){return ReportChatSession[_0x2993[128]]({where:{visitorid:_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[120]],leaveAt:null},attributes:[_0x2993[45],_0x2993[258]]})[_0x2993[77]](function(_0x4761x4a){if(!_0x4761x4a){throw  new Error(util[_0x2993[76]](_0x2993[256],_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[120]]))};return _0x4761x4a[_0x2993[127]]({abandon:true,leaveAt:moment()[_0x2993[76]](_0x2993[257])})})[_0x2993[77]](function(){return _0x4761x26[_0x2993[39]](200)[_0x2993[114]]({})})[_0x2993[40]](function(_0x4761x27){logger[_0x2993[37]](_0x2993[255],_0x4761x27[_0x2993[36]]);return _0x4761x26[_0x2993[39]](500)[_0x2993[114]]({message:_0x4761x27[_0x2993[36]]})})}};return _0x4761x26[_0x2993[39]](200)[_0x2993[114]]({})};exports[_0x2993[259]]= function(_0x4761x25,_0x4761x26){if(!_0x4761x25[_0x2993[103]][_0x2993[97]]){_0x4761x25[_0x2993[103]][_0x2993[97]]= {}};if(!_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x25[_0x2993[46]][_0x2993[45]]]){_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x25[_0x2993[46]][_0x2993[45]]]= {}};var _0x4761x2e=_0x4761x25[_0x2993[46]][_0x2993[45]];var _0x4761x4b={};var _0x4761x4c=[];return ChatWebsite[_0x2993[78]]({where:{id:_0x4761x2e},attributes:[_0x2993[45]]})[_0x2993[77]](function(_0x4761x3c){if(!_0x4761x3c){logger[_0x2993[37]](_0x2993[246],_0x4761x25[_0x2993[46]][_0x2993[45]]);throw  new Error(_0x2993[246],_0x4761x25[_0x2993[46]][_0x2993[45]])};return _0x4761x3c[_0x2993[276]]({attributes:[_0x2993[45],_0x2993[266],_0x2993[274]],include:[{model:ChatQueue,attributes:[_0x2993[45],_0x2993[106]],include:[{model:Agent,attributes:[_0x2993[45],_0x2993[106]]}]},{model:Agent,attributes:[_0x2993[45],_0x2993[106]]},{model:Interval,attributes:[_0x2993[274]],include:[{model:Interval,as:_0x2993[275],attributes:[_0x2993[274]]}]}]})})[_0x2993[77]](function(_0x4761x4f){_[_0x2993[187]](_0x4761x4f,function(_0x4761x50){if(checkAppInterval(_0x4761x50)){if(_0x4761x50[_0x2993[266]]=== _0x2993[267]){if(_0x4761x50[_0x2993[28]][_0x2993[88]](_0x2993[268])&& _0x4761x50[_0x2993[28]][_0x2993[268]][_0x2993[117]]> 0){_0x4761x4c= _[_0x2993[271]](_[_0x2993[270]](_0x4761x4c,_[_0x2993[269]](_0x4761x50[_0x2993[28]].Users,_0x2993[45])))}}else {if(_0x4761x50[_0x2993[266]]=== _0x2993[272]){_0x4761x4c[_0x2993[186]](_0x4761x50[_0x2993[19]][_0x2993[45]]);_0x4761x4c= _[_0x2993[271]](_0x4761x4c)}}}});return Agent[_0x2993[273]]({where:{online:true,id:{$in:_0x4761x4c}},attributes:[_0x2993[45]]})})[_0x2993[77]](function(_0x4761x4e){if(_0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[263]]){_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[263]]= _0x4761x25[_0x2993[89]][_0x2993[110]][_0x2993[263]]=== _0x2993[51]?true:false};_0x4761x4b= {success:true,has_session_saf:null,signed_up:_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[102]]?true:false,fullname:_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[107]]|| _0x2993[188],email:_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[108]]|| _0x2993[188],avatar:_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[162]]|| _0x2993[188],open_state:_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[263]]|| _0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[102]]?true:false,online:_0x4761x4e[_0x2993[264]]?true:false,is_unserved:false,room_id:0};if(_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[120]]){return ChatRoom[_0x2993[78]]({where:{ChatVisitorId:_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[120]],status:_0x2993[265],token:{$ne:_0x2993[188]}},attributes:[_0x2993[45]]})};return})[_0x2993[77]](function(_0x4761x35){if(_0x4761x35){_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[102]]= _0x4761x35[_0x2993[45]];_0x4761x4b[_0x2993[102]]= _0x4761x35[_0x2993[45]];_0x4761x4b[_0x2993[262]]= true}else {_0x4761x4b[_0x2993[262]]= false};if(_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[120]]){return ChatVisitor[_0x2993[78]]({where:{id:_0x4761x25[_0x2993[103]][_0x2993[97]][_0x4761x2e][_0x2993[120]],status:_0x2993[172]},attributes:[_0x2993[45]]})};return})[_0x2993[77]](function(_0x4761x4d){if(_0x4761x4d){_0x4761x4b[_0x2993[261]]= true};return _0x4761x26[_0x2993[39]](200)[_0x2993[114]](_0x4761x4b)})[_0x2993[40]](function(_0x4761x27){logger[_0x2993[37]](_0x2993[260],_0x4761x27);return _0x4761x26[_0x2993[39]](500)[_0x2993[114]]({})})};function checkAppInterval(_0x4761x50){var _0x4761x52=true;if(_0x4761x50[_0x2993[33]]){for(var _0x4761x53=0;_0x4761x53< _0x4761x50[_0x2993[33]][_0x2993[275]][_0x2993[117]];_0x4761x53++){if(Util[_0x2993[277]](splitInterval(_0x4761x50[_0x2993[33]][_0x2993[275]][_0x4761x53][_0x2993[274]]))){break}else {_0x4761x52= false}}}else {if(!Util[_0x2993[277]](splitInterval(_0x4761x50[_0x2993[274]]))){_0x4761x52= false}};return _0x4761x52}function splitInterval(_0x4761x55){var _0x4761x56={};var _0x4761x57=_0x4761x55[_0x2993[278]](_0x2993[156]);var _0x4761x58;_0x4761x57[_0x2993[187]](function(_0x4761x48,_0x4761x59){switch(_0x4761x59){case 0:if(_0x4761x48!== _0x2993[212]){_0x4761x58= _0x4761x48[_0x2993[278]](_0x2993[279]);_0x4761x56[_0x2993[280]]= moment(_0x4761x58[0],_0x2993[281]);_0x4761x56[_0x2993[282]]= moment(_0x4761x58[1],_0x2993[281])}else {_0x4761x56[_0x2993[280]]= null;_0x4761x56[_0x2993[282]]= null};break;case 1:if(_0x4761x48!== _0x2993[212]){_0x4761x58= _0x4761x48[_0x2993[278]](_0x2993[279]);_0x4761x56[_0x2993[283]]= weekDaysCollection[_0x4761x58[0]];_0x4761x56[_0x2993[284]]= _0x4761x58[1]?weekDaysCollection[_0x4761x58[1]]:null}else {_0x4761x56[_0x2993[283]]= null;_0x4761x56[_0x2993[284]]= null};break;case 2:if(_0x4761x48!== _0x2993[212]){_0x4761x58= _0x4761x48[_0x2993[278]](_0x2993[279]);_0x4761x56[_0x2993[285]]= _0x4761x58[0];_0x4761x56[_0x2993[286]]= _0x4761x58[1]?_0x4761x58[1]:null}else {_0x4761x56[_0x2993[285]]= null;_0x4761x56[_0x2993[286]]= null};break;case 3:if(_0x4761x48!== _0x2993[212]){_0x4761x58= _0x4761x48[_0x2993[278]](_0x2993[279]);_0x4761x56[_0x2993[287]]= monthsCollection[_0x4761x58[0]];_0x4761x56[_0x2993[288]]= _0x4761x58[1]?monthsCollection[_0x4761x58[1]]:null}else {_0x4761x56[_0x2993[287]]= null;_0x4761x56[_0x2993[288]]= null};break;default:}});return _0x4761x56}
\ No newline at end of file
+var _0xeb7f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x75\x73\x74\x61\x63\x68\x65","\x70\x61\x74\x68","\x6D\x64\x35","\x75\x61\x2D\x70\x61\x72\x73\x65\x72\x2D\x6A\x73","\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65\x2D\x70\x61\x72\x73\x65\x72","\x74\x6F\x2D\x63\x73\x76","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x2F\x78\x63\x68\x61\x74\x74\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x44\x45\x4D\x4F\x20\x4C\x49\x43\x45\x4E\x53\x45","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x73\x46\x69\x65\x6C\x64","\x43\x68\x61\x74\x50\x72\x6F\x61\x63\x74\x69\x76\x65\x41\x63\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x4C\x69\x63\x65\x6E\x73\x65","\x58\x63\x68\x61\x74\x74\x79","\x53\x65\x74\x74\x69\x6E\x67","\x43\x6F\x6E\x74\x61\x63\x74","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x67\x65\x74\x4A\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x78\x43\x68\x61\x74\x74\x79\x20\x4A\x53\x3A","\x6D\x65\x73\x73\x61\x67\x65","\x65\x72\x72\x6F\x72","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74","\x6E\x6F\x77","\x73\x65\x74","\x6A\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x72\x65\x6D\x6F\x74\x65","\x73\x74\x72\x69\x70\x54\x72\x61\x69\x6C\x69\x6E\x67\x53\x6C\x61\x73\x68","\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79\x2F","\x66\x61\x6C\x73\x65","\x74\x72\x75\x65","\x22\x22","\x6E\x75\x6C\x6C","\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79\x2F\x61\x73\x73\x65\x74\x73","\x61\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x68\x65\x61\x64\x65\x72\x5F\x73\x68\x61\x70\x65","\x68\x65\x61\x64\x65\x72\x5F\x6F\x6E\x6C\x69\x6E\x65","\x6F\x6E\x6C\x69\x6E\x65\x5F\x6D\x65\x73\x73\x61\x67\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x65\x6D\x61\x69\x6C\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x73\x74\x61\x72\x74\x5F\x63\x68\x61\x74\x5F\x62\x75\x74\x74\x6F\x6E","\x6F\x66\x66\x6C\x69\x6E\x65\x5F\x6D\x65\x73\x73\x61\x67\x65","\x68\x65\x61\x64\x65\x72\x5F\x6F\x66\x66\x6C\x69\x6E\x65","\x65\x6E\x71\x75\x69\x72\x79\x5F\x6D\x65\x73\x73\x61\x67\x65\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x65\x6E\x71\x75\x69\x72\x79\x5F\x62\x75\x74\x74\x6F\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x5F\x74\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x72\x61\x74\x69\x6E\x67\x5F\x6D\x65\x73\x73\x61\x67\x65","\x72\x61\x74\x69\x6E\x67\x5F\x73\x65\x6E\x64","\x72\x61\x74\x69\x6E\x67\x5F\x73\x6B\x69\x70","\x61\x67\x65\x6E\x74\x73\x5F\x62\x75\x73\x79","\x6E\x61\x6D\x65\x5F\x74\x69\x74\x6C\x65","\x65\x6D\x61\x69\x6C\x5F\x74\x69\x74\x6C\x65","\x6D\x65\x73\x73\x61\x67\x65\x5F\x74\x69\x74\x6C\x65","\x72\x65\x6E\x64\x65\x72","\x57\x65\x62\x73\x69\x74\x65\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x66\x6F\x72\x6D\x61\x74","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x4F\x6E\x65","\x67\x65\x74\x53\x74\x79\x6C\x65\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x78\x43\x68\x61\x74\x74\x79\x20\x43\x53\x53\x3A","\x74\x65\x78\x74\x2F\x63\x73\x73","\x63\x73\x73","\x63\x6F\x6C\x6F\x72","\x63\x6F\x6C\x6F\x72\x5F\x66\x6F\x63\x75\x73","\x63\x6F\x6C\x6F\x72\x5F\x62\x75\x74\x74\x6F\x6E","\x67\x65\x74\x41\x73\x73\x65\x74\x73","\x75\x70\x6C\x6F\x61\x64\x65\x64","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x71\x75\x65\x72\x79","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x72\x65\x73\x6F\x75\x72\x63\x65","\x6A\x6F\x69\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73","\x78\x63\x68\x61\x74\x74\x79","\x61\x73\x73\x65\x74\x73","\x67\x65\x74\x4A\x71\x75\x65\x72\x79\x4C\x69\x62\x72\x61\x72\x79","\x6A\x71\x75\x65\x72\x79","\x67\x65\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x72\x6F\x6F\x6D\x5F\x69\x64","\x73\x65\x73\x73\x69\x6F\x6E","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x69\x73\x5F\x6E\x65\x77\x5F\x70\x61\x67\x65","\x64\x61\x74\x61","\x77\x68\x65\x72\x65","\x6C\x61\x73\x74\x5F\x69\x64","\x45\x72\x72\x6F\x72\x20\x67\x65\x74\x20\x63\x68\x61\x74\x20\x6D\x65\x73\x73\x61\x67\x65\x73\x3A","\x6A\x73\x6F\x6E\x70","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x65\x6E\x64\x4D\x65\x73\x73\x61\x67\x65","\x6C\x65\x6E\x67\x74\x68","\x67\x65\x74","\x4D\x65\x73\x73\x61\x67\x65","\x76\x69\x73\x69\x74\x6F\x72\x5F\x69\x64","\x63\x72\x65\x61\x74\x65","\x73\x69\x67\x6E\x6F\x75\x74\x43\x75\x73\x74\x6F\x6D\x65\x72","\x45\x72\x72\x6F\x72\x20\x76\x69\x73\x69\x74\x6F\x72\x20\x73\x69\x67\x6E\x6F\x75\x74\x3A","\x43\x68\x61\x74\x20\x52\x6F\x6F\x6D\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x43\x4C\x4F\x53\x45\x44","\x72\x65\x71\x75\x65\x73\x74\x65\x72","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64","\x73\x69\x67\x6E\x75\x70\x43\x75\x73\x74\x6F\x6D\x65\x72","\x67\x65\x74\x52\x65\x73\x75\x6C\x74","\x75\x73\x65\x72\x2D\x61\x67\x65\x6E\x74","\x68\x65\x61\x64\x65\x72\x73","\x73\x65\x74\x55\x41","\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65","\x70\x61\x72\x73\x65","\x78\x2D\x66\x6F\x72\x77\x61\x72\x64\x65\x64\x2D\x66\x6F\x72","\x72\x65\x6D\x6F\x74\x65\x41\x64\x64\x72\x65\x73\x73","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x69\x70","\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E","\x72\x65\x66\x65\x72\x65\x72","\x77\x65\x62\x63\x68\x61\x74","\x62\x72\x6F\x77\x73\x65\x72","\x20","\x76\x65\x72\x73\x69\x6F\x6E","\x65\x6E\x67\x69\x6E\x65","\x6F\x73","\x6D\x6F\x64\x65\x6C","\x64\x65\x76\x69\x63\x65","\x76\x65\x6E\x64\x6F\x72","\x74\x79\x70\x65","\x63\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x64\x61\x74\x61\x31","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x31","\x69\x73\x41\x72\x72\x61\x79","\x2C","\x64\x61\x74\x61\x32","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x33","\x45\x72\x72\x6F\x72\x20\x73\x75\x62\x6D\x69\x74\x69\x6E\x67\x20\x65\x6E\x71\x75\x69\x72\x79\x3A","\x61\x76\x61\x74\x61\x72","\x62\x61\x73\x65\x36\x34","\x65\x78\x74\x65\x72\x6E\x61\x6C","\x43\x68\x61\x74\x20\x57\x65\x62\x73\x69\x74\x65\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x4C\x69\x73\x74\x49\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x73\x75\x62\x6D\x69\x74\x45\x6E\x71\x75\x69\x72\x79","\x45\x6E\x71\x75\x69\x72\x79","\x65\x6E\x71\x75\x69\x72\x79","\x75\x6E\x73\x65\x72\x76\x65\x64","\x77\x65\x62\x73\x69\x74\x65\x49\x64","\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x31","\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x31","\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x32","\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x32","\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x33","\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x33","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x63\x6F\x6D\x6D\x69\x74","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x67\x65\x74\x54\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x45\x72\x72\x6F\x72\x20\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x69\x6E\x67\x20\x63\x68\x61\x74\x20\x74\x72\x61\x6E\x73\x63\x72\x69\x70\x74\x3A","\x72\x65\x70\x6C\x61\x63\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","","\x74\x65\x78\x74\x2F\x63\x73\x76","\x67\x65\x74\x48\x74\x6D\x6C\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x48\x54\x4D\x4C\x20\x74\x65\x6D\x70\x6C\x61\x74\x65\x3A","\x6C\x69\x63\x65\x6E\x73\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x64\x65\x63\x72\x79\x70\x74","\x65\x6E\x71\x75\x69\x72\x79\x5F\x65\x6E\x61\x62\x6C\x65","\x4F\x6E\x6C\x69\x6E\x65","\x63\x75\x73\x74\x6F\x6D","\x64\x65\x66\x61\x75\x6C\x74\x4C\x6F\x67\x6F","\x6C\x6F\x67\x6F","\x69\x6D\x61\x67\x65\x73\x2F","\x26\x75\x70\x6C\x6F\x61\x64\x65\x64","\x69\x6D\x61\x67\x65\x73\x2F\x6D\x6F\x74\x69\x6F\x6E\x4C\x6F\x67\x6F\x2E\x70\x6E\x67","\x64\x65\x66\x61\x75\x6C\x74\x57\x68\x69\x74\x65\x4C\x61\x62\x65\x6C","\x77\x68\x69\x74\x65\x4C\x61\x62\x65\x6C","\x3C\x61\x20\x68\x72\x65\x66\x3D\x22\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x78\x63\x61\x6C\x6C\x79\x6D\x6F\x74\x69\x6F\x6E\x2E\x63\x6F\x6D\x2F\x22\x20\x74\x61\x72\x67\x65\x74\x3D\x22\x5F\x62\x6C\x61\x6E\x6B\x22\x3E\x50\x6F\x77\x65\x72\x65\x64\x20\x62\x79\x20\x78\x43\x41\x4C\x4C\x59\x3C\x2F\x61\x3E","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x64\x69\x76\x5F\x67\x72\x6F\x75\x70\x22\x3E","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x20\x66\x6F\x72\x3D\x22\x25\x64\x22\x3E\x25\x73\x20\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x69\x6E\x64\x65\x78","\x6C\x61\x62\x65\x6C","\x72\x65\x71\x75\x69\x72\x65\x64","\x2A","\x3C\x69\x6E\x70\x75\x74\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x22\x20\x69\x64\x3D\x22\x25\x64\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x2F\x3E","\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x3C\x2F\x64\x69\x76\x3E","\x74\x65\x78\x74\x49\x6E\x70\x75\x74","\x3C\x74\x65\x78\x74\x61\x72\x65\x61\x20\x69\x64\x3D\x22\x25\x64\x22\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x3E\x3C\x2F\x74\x65\x78\x74\x61\x72\x65\x61\x3E","\x74\x65\x78\x74\x41\x72\x65\x61","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x3E\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x6F\x70\x74\x69\x6F\x6E\x73","\x3C\x6C\x61\x62\x65\x6C\x20\x73\x74\x79\x6C\x65\x3D\x22\x64\x69\x73\x70\x6C\x61\x79\x3A\x62\x6C\x6F\x63\x6B\x3B\x22\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x63\x68\x65\x63\x6B\x62\x6F\x78\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x63\x68\x65\x63\x6B\x62\x6F\x78","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x72\x61\x64\x69\x6F\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x72\x61\x64\x69\x6F","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x20\x66\x6F\x72\x3D\x22\x25\x64\x22\x3E\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x3C\x73\x65\x6C\x65\x63\x74\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x64\x61\x74\x61\x25\x64\x5D\x22\x3E","\x3C\x6F\x70\x74\x69\x6F\x6E\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x25\x73\x3C\x2F\x6F\x70\x74\x69\x6F\x6E\x3E","\x3C\x2F\x73\x65\x6C\x65\x63\x74\x3E\x3C\x2F\x64\x69\x76\x3E","\x73\x65\x6C\x65\x63\x74","\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74","\x3C\x62\x72\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x68\x69\x64\x64\x65\x6E\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E\x5D\x5B\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E","\x4F\x66\x66\x6C\x69\x6E\x65","\x3C\x6C\x61\x62\x65\x6C\x20\x63\x6C\x61\x73\x73\x3D\x22\x78\x63\x5F\x6C\x61\x62\x65\x6C\x22\x20\x66\x6F\x72\x3D\x22\x6F\x66\x66\x6C\x69\x6E\x65\x25\x64\x22\x3E\x25\x73\x20\x25\x73\x3C\x2F\x6C\x61\x62\x65\x6C\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x22\x20\x69\x64\x3D\x22\x6F\x66\x66\x6C\x69\x6E\x65\x25\x64\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x2F\x3E","\x3C\x74\x65\x78\x74\x61\x72\x65\x61\x20\x69\x64\x3D\x22\x6F\x66\x66\x6C\x69\x6E\x65\x25\x64\x22\x20\x64\x61\x74\x61\x2D\x6C\x61\x62\x65\x6C\x3D\x22\x25\x73\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x3D\x22\x25\x73\x22\x20\x25\x73\x3E\x3C\x2F\x74\x65\x78\x74\x61\x72\x65\x61\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x63\x68\x65\x63\x6B\x62\x6F\x78\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x72\x61\x64\x69\x6F\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E\x20\x25\x73\x3C\x62\x72\x3E","\x3C\x73\x65\x6C\x65\x63\x74\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x3E","\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D\x22\x68\x69\x64\x64\x65\x6E\x22\x20\x6E\x61\x6D\x65\x3D\x22\x64\x61\x74\x61\x5B\x45\x6E\x71\x75\x69\x72\x79\x5D\x5B\x6C\x61\x62\x65\x6C\x4F\x66\x66\x6C\x69\x6E\x65\x44\x61\x74\x61\x25\x64\x5D\x22\x20\x76\x61\x6C\x75\x65\x3D\x22\x25\x73\x22\x3E","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x50\x72\x6F\x61\x63\x74\x69\x76\x65\x41\x63\x74\x69\x6F\x6E\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x76\x69\x6E\x67\x20\x70\x72\x6F\x61\x63\x74\x69\x76\x65\x20\x61\x63\x74\x69\x6F\x6E\x73\x3A","\x43\x68\x61\x74\x20\x57\x65\x62\x73\x69\x74\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x73\x65\x6C\x65\x63\x74\x6F\x72","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x65\x74\x52\x61\x74\x69\x6E\x67","\x45\x72\x72\x6F\x72\x20\x73\x65\x74\x20\x72\x61\x74\x69\x6E\x67\x3A","\x43\x68\x61\x74\x52\x6F\x6F\x6D\x20\x25\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x52\x61\x74\x69\x6E\x67","\x72\x61\x74\x69\x6E\x67","\x61\x62\x61\x6E\x64\x6F\x6E\x43\x75\x73\x74\x6F\x6D\x65\x72","\x45\x72\x72\x6F\x72\x20\x76\x69\x73\x69\x74\x6F\x72\x20\x61\x62\x61\x6E\x64\x6F\x6E\x3A","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x66\x6F\x72\x20\x76\x69\x73\x69\x74\x6F\x72\x20\x25\x64","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x72\x6F\x6F\x6D\x69\x64","\x67\x65\x74\x53\x74\x61\x74\x75\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x57\x65\x62\x73\x69\x74\x65\x20\x73\x74\x61\x74\x75\x73\x20\x65\x72\x72\x6F\x72","\x69\x73\x5F\x75\x6E\x73\x65\x72\x76\x65\x64","\x73\x69\x67\x6E\x65\x64\x5F\x75\x70","\x6F\x70\x65\x6E\x5F\x73\x74\x61\x74\x65","\x63\x6F\x75\x6E\x74","\x4F\x50\x45\x4E","\x61\x70\x70","\x71\x75\x65\x75\x65","\x55\x73\x65\x72\x73","\x6D\x61\x70","\x6D\x65\x72\x67\x65","\x75\x6E\x69\x71","\x61\x67\x65\x6E\x74","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x67\x65\x74\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x69\x73\x56\x61\x6C\x69\x64\x49\x6E\x74\x65\x72\x76\x61\x6C","\x73\x70\x6C\x69\x74","\x2D","\x74\x5F\x66\x72\x6F\x6D","\x48\x48\x3A\x6D\x6D","\x74\x5F\x74\x6F","\x77\x64\x5F\x66\x72\x6F\x6D","\x77\x64\x5F\x74\x6F","\x6D\x64\x5F\x66\x72\x6F\x6D","\x6D\x64\x5F\x74\x6F","\x6D\x5F\x66\x72\x6F\x6D","\x6D\x5F\x74\x6F"];_0xeb7f[0];var _=require(_0xeb7f[1]);var Mustache=require(_0xeb7f[2]);var path=require(_0xeb7f[3]);var md5=require(_0xeb7f[4]);var UAParser=require(_0xeb7f[5]);var uaParser= new UAParser();var languageParser=require(_0xeb7f[6]);var csv=require(_0xeb7f[7]);var util=require(_0xeb7f[8]);var moment=require(_0xeb7f[9]);var logger=require(_0xeb7f[11])(_0xeb7f[10]);var config=require(_0xeb7f[12]);var xchatty_components=require(_0xeb7f[13]);var Util=require(_0xeb7f[14]);var license=require(_0xeb7f[15]);var demoLicense={users:1,agents:1,telephones:0,chat:false,mail:false,fax:false,messaging:false,cm:false,dialer:false,jscripty:false,update:false,custom:false,description:_0xeb7f[16]};var sequelize=require(_0xeb7f[18])[_0xeb7f[17]];var User=require(_0xeb7f[18])[_0xeb7f[19]];var Agent=require(_0xeb7f[18])[_0xeb7f[19]];var ChatRoom=require(_0xeb7f[18])[_0xeb7f[20]];var ChatEnquiry=require(_0xeb7f[18])[_0xeb7f[21]];var ChatVisitor=require(_0xeb7f[18])[_0xeb7f[22]];var ChatMessage=require(_0xeb7f[18])[_0xeb7f[23]];var ChatWebsite=require(_0xeb7f[18])[_0xeb7f[24]];var ChatWebsitesField=require(_0xeb7f[18])[_0xeb7f[25]];var ChatProactiveAction=require(_0xeb7f[18])[_0xeb7f[26]];var ReportChatSession=require(_0xeb7f[18])[_0xeb7f[27]];var ChatQueue=require(_0xeb7f[18])[_0xeb7f[28]];var License=require(_0xeb7f[18])[_0xeb7f[29]];var Xchatty=require(_0xeb7f[18])[_0xeb7f[30]];var Setting=require(_0xeb7f[18])[_0xeb7f[31]];var Contact=require(_0xeb7f[18])[_0xeb7f[32]];var Interval=require(_0xeb7f[18])[_0xeb7f[33]];const weekDaysCollection={mon:1,tue:2,wed:3,thu:4,fri:5,sat:6,sun:7};const monthsCollection={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12};var id=1;exports[_0xeb7f[34]]= function(_0x31fcx25,_0x31fcx26){return ChatWebsite[_0xeb7f[78]]({where:{id:_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]]},attributes:[_0xeb7f[45],_0xeb7f[47],_0xeb7f[55],_0xeb7f[56],_0xeb7f[57],_0xeb7f[58],_0xeb7f[59],_0xeb7f[60],_0xeb7f[61],_0xeb7f[62],_0xeb7f[63],_0xeb7f[64],_0xeb7f[65],_0xeb7f[66],_0xeb7f[67],_0xeb7f[68],_0xeb7f[69],_0xeb7f[70],_0xeb7f[71],_0xeb7f[72],_0xeb7f[73]]})[_0xeb7f[77]](function(_0x31fcx28){if(_0x31fcx28){_0x31fcx26[_0xeb7f[43]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xeb7f[41],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0xeb7f[42]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x31fcx29=xchatty_components[_0xeb7f[44]];var _0x31fcx2a={websiteId:_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]],rootPath:Util[_0xeb7f[48]](_0x31fcx28[_0xeb7f[47]])+ _0xeb7f[49],signedUp:_0xeb7f[50],windowFocused:_0xeb7f[50],isNewPage:_0xeb7f[51],processingSignUp:_0xeb7f[50],processingEnquiry:_0xeb7f[50],processingSend:_0xeb7f[50],processingRating:_0xeb7f[50],visitorFullname:_0xeb7f[52],visitorAvatar:_0xeb7f[52],timerReadMessages:_0xeb7f[53],timerCheckStatus:_0xeb7f[53],isOnline:_0xeb7f[50],decayHistory:0,defaultTimeout:5000,isInitialStatusCheck:_0xeb7f[51],muteNotificationSoundOnce:_0xeb7f[50],assetBase:Util[_0xeb7f[48]](_0x31fcx28[_0xeb7f[47]])+ _0xeb7f[54],hasSessionSaf:_0xeb7f[50],restoreOpenState:_0xeb7f[50],animateHover:_0x31fcx28[_0xeb7f[55]],hideEmail:_0xeb7f[50],hideOffline:_0xeb7f[50],headerShape:_0x31fcx28[_0xeb7f[56]],HeaderOnline:_0x31fcx28[_0xeb7f[57]],OnlineMessage:_0x31fcx28[_0xeb7f[58]],UsernamePlaceholder:_0x31fcx28[_0xeb7f[59]],EmailPlaceholder:_0x31fcx28[_0xeb7f[60]],StartChatButtonText:_0x31fcx28[_0xeb7f[61]],OfflineMessage:_0x31fcx28[_0xeb7f[62]],HeaderOffline:_0x31fcx28[_0xeb7f[63]],EnquiryMessagePlaceholder:_0x31fcx28[_0xeb7f[64]],EnquiryButtonText:_0x31fcx28[_0xeb7f[65]],downloadTranscript:_0x31fcx28[_0xeb7f[66]],RatingMessage:_0x31fcx28[_0xeb7f[67]],RatingSend:_0x31fcx28[_0xeb7f[68]],RatingSkip:_0x31fcx28[_0xeb7f[69]],MessageAgentsBusy:_0x31fcx28[_0xeb7f[70]],NameTitle:_0x31fcx28[_0xeb7f[71]],EmailTitle:_0x31fcx28[_0xeb7f[72]],MessageTitle:_0x31fcx28[_0xeb7f[73]]};_0x31fcx29= Mustache[_0xeb7f[74]](_0x31fcx29,_0x31fcx2a);return _0x31fcx26[_0xeb7f[38]](_0x31fcx29)}else {throw  new Error(util[_0xeb7f[76]](_0xeb7f[75],_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]]))}})[_0xeb7f[40]](function(_0x31fcx27){logger[_0xeb7f[37]](_0xeb7f[35],_0x31fcx27[_0xeb7f[36]]);return _0x31fcx26[_0xeb7f[39]](500)[_0xeb7f[38]](_0x31fcx27)})};exports[_0xeb7f[79]]= function(_0x31fcx25,_0x31fcx26){ChatWebsite[_0xeb7f[78]]({where:{id:_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]]},attributes:[_0xeb7f[45],_0xeb7f[47],_0xeb7f[83],_0xeb7f[84],_0xeb7f[85]]})[_0xeb7f[77]](function(_0x31fcx28){if(_0x31fcx28){_0x31fcx26[_0xeb7f[43]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xeb7f[81],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0xeb7f[42]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x31fcx2b=xchatty_components[_0xeb7f[82]];var _0x31fcx2c={assetBase:Util[_0xeb7f[48]](_0x31fcx28[_0xeb7f[47]])+ _0xeb7f[54],color:_0x31fcx28[_0xeb7f[83]],colorFocus:_0x31fcx28[_0xeb7f[84]],colorButton:_0x31fcx28[_0xeb7f[85]]};_0x31fcx2b= Mustache[_0xeb7f[74]](_0x31fcx2b,_0x31fcx2c);return _0x31fcx26[_0xeb7f[38]](_0x31fcx2b)}else {throw  new Error(util[_0xeb7f[76]](_0xeb7f[75],_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]]))}})[_0xeb7f[40]](function(_0x31fcx27){logger[_0xeb7f[37]](_0xeb7f[80],_0x31fcx27[_0xeb7f[36]]);return _0x31fcx26[_0xeb7f[39]](500)[_0xeb7f[38]](_0x31fcx27)})};exports[_0xeb7f[86]]= function(_0x31fcx25,_0x31fcx26){if(_0x31fcx25[_0xeb7f[89]][_0xeb7f[88]](_0xeb7f[87])){_0x31fcx26[_0xeb7f[95]](path[_0xeb7f[94]](config[_0xeb7f[90]],_0xeb7f[91],_0xeb7f[92],_0x31fcx25[_0xeb7f[89]][_0xeb7f[93]]))}else {_0x31fcx26[_0xeb7f[95]](path[_0xeb7f[94]](config[_0xeb7f[90]],_0xeb7f[91],_0xeb7f[96],_0xeb7f[97],_0xeb7f[98],_0x31fcx25[_0xeb7f[89]][_0xeb7f[93]]))}};exports[_0xeb7f[99]]= function(_0x31fcx25,_0x31fcx26){_0x31fcx26[_0xeb7f[43]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xeb7f[41],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0xeb7f[42]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x31fcx2d=xchatty_components[_0xeb7f[100]];_0x31fcx26[_0xeb7f[38]](_0x31fcx2d)};exports[_0xeb7f[101]]= function(_0x31fcx25,_0x31fcx26){var _0x31fcx2e=_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]];var _0x31fcx2f={where:{ChatRoomId:_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[102]]},attributes:[_0xeb7f[45],_0xeb7f[104],_0xeb7f[105]],include:[{model:User,attributes:[_0xeb7f[45],_0xeb7f[106],_0xeb7f[107],_0xeb7f[108]]},{model:ChatVisitor,attributes:[_0xeb7f[45],_0xeb7f[107],_0xeb7f[108]]}]};if(_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[109]]=== _0xeb7f[50]){_0x31fcx2f[_0xeb7f[111]][_0xeb7f[45]]= {$gt:_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[112]]}};ChatMessage[_0xeb7f[115]](_0x31fcx2f)[_0xeb7f[77]](function(_0x31fcx30){var _0x31fcx31={success:true,messages:_0x31fcx30,composing:false,composing_fullname:null};return _0x31fcx26[_0xeb7f[39]](200)[_0xeb7f[114]](_0x31fcx31)})[_0xeb7f[40]](function(_0x31fcx27){logger[_0xeb7f[37]](_0xeb7f[113],_0x31fcx27[_0xeb7f[36]]);return _0x31fcx26[_0xeb7f[39]](500)[_0xeb7f[38]](_0x31fcx27)})};exports[_0xeb7f[116]]= function(_0x31fcx25,_0x31fcx26){var _0x31fcx2e=_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]];var _0x31fcx32;var _0x31fcx2f={where:{ChatRoomId:_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[102]]},include:[{model:User,attributes:[_0xeb7f[45],_0xeb7f[106],_0xeb7f[107],_0xeb7f[108]]},{model:ChatVisitor,attributes:[_0xeb7f[45],_0xeb7f[107],_0xeb7f[108]]}]};if(_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[109]]=== _0xeb7f[50]){_0x31fcx2f[_0xeb7f[111]][_0xeb7f[45]]= {$gt:_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[112]]}};return ChatMessage[_0xeb7f[121]]({body:_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[119]][_0xeb7f[36]],ChatRoomId:_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[102]],ChatVisitorId:_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[120]]})[_0xeb7f[77]](function(_0x31fcx34){return ChatMessage[_0xeb7f[115]](_0x31fcx2f)})[_0xeb7f[77]](function(_0x31fcx30){for(var _0x31fcx33=0;_0x31fcx33< _0x31fcx30[_0xeb7f[117]];_0x31fcx33++){_0x31fcx30[_0x31fcx33]= _0x31fcx30[_0x31fcx33][_0xeb7f[118]]({plain:true})};var _0x31fcx31={errors:[],success:true,messages:_0x31fcx30?_0x31fcx30:[]};return _0x31fcx26[_0xeb7f[39]](200)[_0xeb7f[114]](_0x31fcx31)})[_0xeb7f[40]](function(_0x31fcx27){logger[_0xeb7f[37]](_0xeb7f[113],_0x31fcx27[_0xeb7f[36]]);return _0x31fcx26[_0xeb7f[39]](500)[_0xeb7f[38]](_0x31fcx27)})};exports[_0xeb7f[122]]= function(_0x31fcx25,_0x31fcx26){var _0x31fcx2e=_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]];return ChatRoom[_0xeb7f[128]]({where:{id:_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[102]]},attributes:[_0xeb7f[45]]})[_0xeb7f[77]](function(_0x31fcx35){if(!_0x31fcx35){throw  new Error(util[_0xeb7f[76]](_0xeb7f[124],_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[102]]))};return _0x31fcx35[_0xeb7f[127]]({status:_0xeb7f[125],completeReason:_0xeb7f[126]})})[_0xeb7f[77]](function(){var _0x31fcx31={success:true,errors:[]};_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e]= {};return _0x31fcx26[_0xeb7f[39]](200)[_0xeb7f[114]](_0x31fcx31)})[_0xeb7f[40]](function(_0x31fcx27){logger[_0xeb7f[37]](_0xeb7f[123],_0x31fcx27[_0xeb7f[36]]);return _0x31fcx26[_0xeb7f[39]](500)[_0xeb7f[38]](_0x31fcx27)})};exports[_0xeb7f[129]]= function(_0x31fcx25,_0x31fcx26){var _0x31fcx2e=_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]];var _0x31fcx36=uaParser[_0xeb7f[133]](_0x31fcx25[_0xeb7f[132]][_0xeb7f[131]])[_0xeb7f[130]]();var _0x31fcx37=languageParser[_0xeb7f[135]](_0x31fcx25[_0xeb7f[132]][_0xeb7f[134]]);var _0x31fcx38=_0x31fcx25[_0xeb7f[132]][_0xeb7f[136]]?_0x31fcx25[_0xeb7f[132]][_0xeb7f[136]]:_0x31fcx25[_0xeb7f[138]][_0xeb7f[137]]|| _0x31fcx25[_0xeb7f[139]];var _0x31fcx39={fullname:_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[140]][_0xeb7f[107]],email:_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[140]][_0xeb7f[108]],remote_address:_0x31fcx38,user_agent:_0x31fcx25[_0xeb7f[132]][_0xeb7f[131]],visitor_language:_0x31fcx25[_0xeb7f[132]][_0xeb7f[134]],referer:_0x31fcx25[_0xeb7f[132]][_0xeb7f[141]],origin:_0xeb7f[142],browser:_0x31fcx36[_0xeb7f[143]][_0xeb7f[106]]+ _0xeb7f[144]+ _0x31fcx36[_0xeb7f[143]][_0xeb7f[145]],engine:_0x31fcx36[_0xeb7f[146]][_0xeb7f[106]]+ _0xeb7f[144]+ _0x31fcx36[_0xeb7f[146]][_0xeb7f[145]],os:_0x31fcx36[_0xeb7f[147]][_0xeb7f[106]]+ _0xeb7f[144]+ _0x31fcx36[_0xeb7f[147]][_0xeb7f[145]],device:_0x31fcx36[_0xeb7f[149]][_0xeb7f[148]]?_0x31fcx36[_0xeb7f[149]][_0xeb7f[148]]+ _0xeb7f[144]+ _0x31fcx36[_0xeb7f[149]][_0xeb7f[150]]+ _0xeb7f[144]+ _0x31fcx36[_0xeb7f[149]][_0xeb7f[151]]:null,ChatWebsiteId:_0x31fcx25[_0xeb7f[89]][_0xeb7f[152]]};if(_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[140]][_0xeb7f[153]]&& _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[140]][_0xeb7f[154]]){_0x31fcx39[_0xeb7f[153]]= _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[140]][_0xeb7f[153]];if(_[_0xeb7f[155]](_0x31fcx39[_0xeb7f[153]])){_0x31fcx39[_0xeb7f[153]]= _[_0xeb7f[94]](_0x31fcx39[_0xeb7f[153]],_0xeb7f[156])};_0x31fcx39[_0xeb7f[154]]= _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[140]][_0xeb7f[154]]};if(_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[140]][_0xeb7f[157]]&& _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[140]][_0xeb7f[158]]){_0x31fcx39[_0xeb7f[157]]= _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[140]][_0xeb7f[157]];if(_[_0xeb7f[155]](_0x31fcx39[_0xeb7f[157]])){_0x31fcx39[_0xeb7f[157]]= _[_0xeb7f[94]](_0x31fcx39[_0xeb7f[157]],_0xeb7f[156])};_0x31fcx39[_0xeb7f[158]]= _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[140]][_0xeb7f[158]]};if(_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[140]][_0xeb7f[159]]&& _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[140]][_0xeb7f[160]]){_0x31fcx39[_0xeb7f[159]]= _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[140]][_0xeb7f[159]];if(_[_0xeb7f[155]](_0x31fcx39[_0xeb7f[159]])){_0x31fcx39[_0xeb7f[159]]= _[_0xeb7f[94]](_0x31fcx39[_0xeb7f[159]],_0xeb7f[156])};_0x31fcx39[_0xeb7f[160]]= _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[140]][_0xeb7f[160]]};var _0x31fcx3a,_0x31fcx3b;return ChatVisitor[_0xeb7f[121]](_0x31fcx39)[_0xeb7f[77]](function(_0x31fcx3d){_0x31fcx3a= _0x31fcx3d;return ChatWebsite[_0xeb7f[128]]({where:{id:_0x31fcx3a[_0xeb7f[168]]},attributes:[_0xeb7f[45],_0xeb7f[106],_0xeb7f[166]]})})[_0xeb7f[77]](function(_0x31fcx3c){if(!_0x31fcx3c){throw  new Error(util[_0xeb7f[76]](_0xeb7f[165],_0x31fcx3a.ChatWebsiteId))};_0x31fcx3b= _0x31fcx3c;if(_0x31fcx3b[_0xeb7f[166]]){return Contact[_0xeb7f[167]]({where:{email:_0x31fcx3a[_0xeb7f[108]]},defaults:{email:_0x31fcx3a[_0xeb7f[108]],firstName:_0x31fcx3a[_0xeb7f[107]],ListId:_0x31fcx3b[_0xeb7f[166]]}})}})[_0xeb7f[77]](function(){return ChatRoom[_0xeb7f[121]]({type:_0xeb7f[164],ChatVisitorId:_0x31fcx3a[_0xeb7f[45]],ChatWebsiteId:_0x31fcx3b[_0xeb7f[45]],contact:_0x31fcx3a[_0xeb7f[108]],website:_0x31fcx3b[_0xeb7f[106]]})})[_0xeb7f[77]](function(_0x31fcx35){_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[107]]= _0x31fcx3a[_0xeb7f[107]];_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[108]]= _0x31fcx3a[_0xeb7f[108]];_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[162]]= md5(_0x31fcx3a[_0xeb7f[108]]).toString(_0xeb7f[163]);_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[120]]= _0x31fcx3a[_0xeb7f[45]];var _0x31fcx31={success:true,errors:[],chatVisitor:{id:_0x31fcx3a[_0xeb7f[45]]}};return _0x31fcx26[_0xeb7f[39]](200)[_0xeb7f[114]](_0x31fcx31)})[_0xeb7f[40]](function(_0x31fcx27){logger[_0xeb7f[37]](_0xeb7f[161],_0x31fcx27[_0xeb7f[36]]);return _0x31fcx26[_0xeb7f[39]](500)[_0xeb7f[38]](_0x31fcx27)})};exports[_0xeb7f[169]]= function(_0x31fcx25,_0x31fcx26){return sequelize[_0xeb7f[182]]()[_0xeb7f[77]](function(_0x31fcx3e){var _0x31fcx38=_0x31fcx25[_0xeb7f[132]][_0xeb7f[136]]?_0x31fcx25[_0xeb7f[132]][_0xeb7f[136]]:_0x31fcx25[_0xeb7f[138]][_0xeb7f[137]]|| _0x31fcx25[_0xeb7f[139]];var _0x31fcx36=uaParser[_0xeb7f[133]](_0x31fcx25[_0xeb7f[132]][_0xeb7f[131]])[_0xeb7f[130]]();var _0x31fcx37=languageParser[_0xeb7f[135]](_0x31fcx25[_0xeb7f[132]][_0xeb7f[134]]);var _0x31fcx39={fullname:_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[107]],email:_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[108]],remote_address:_0x31fcx38,user_agent:_0x31fcx25[_0xeb7f[132]][_0xeb7f[131]],visitor_language:_0x31fcx25[_0xeb7f[132]][_0xeb7f[134]],browser:_0x31fcx36[_0xeb7f[143]][_0xeb7f[106]]+ _0xeb7f[144]+ _0x31fcx36[_0xeb7f[143]][_0xeb7f[145]],engine:_0x31fcx36[_0xeb7f[146]][_0xeb7f[106]]+ _0xeb7f[144]+ _0x31fcx36[_0xeb7f[146]][_0xeb7f[145]],os:_0x31fcx36[_0xeb7f[147]][_0xeb7f[106]]+ _0xeb7f[144]+ _0x31fcx36[_0xeb7f[147]][_0xeb7f[145]],device:_0x31fcx36[_0xeb7f[149]][_0xeb7f[148]]?_0x31fcx36[_0xeb7f[149]][_0xeb7f[148]]+ _0xeb7f[144]+ _0x31fcx36[_0xeb7f[149]][_0xeb7f[150]]+ _0xeb7f[144]+ _0x31fcx36[_0xeb7f[149]][_0xeb7f[151]]:null,referer:_0x31fcx25[_0xeb7f[132]][_0xeb7f[141]],origin:_0xeb7f[171],status:_0xeb7f[172],ChatWebsiteId:parseInt(_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[173]],10),ChatEnquiry:{username:_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[107]],email:_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[108]],text:_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[36]],ChatWebsiteId:parseInt(_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[173]],10)}};if(_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[174]]&& _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[175]]){_0x31fcx39[_0xeb7f[174]]= _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[174]];if(_[_0xeb7f[155]](_0x31fcx39[_0xeb7f[174]])){_0x31fcx39[_0xeb7f[174]]= _[_0xeb7f[94]](_0x31fcx39[_0xeb7f[174]],_0xeb7f[156])};_0x31fcx39[_0xeb7f[175]]= _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[175]]};if(_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[176]]&& _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[177]]){_0x31fcx39[_0xeb7f[176]]= _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[176]];if(_[_0xeb7f[155]](_0x31fcx39[_0xeb7f[176]])){_0x31fcx39[_0xeb7f[176]]= _[_0xeb7f[94]](_0x31fcx39[_0xeb7f[176]],_0xeb7f[156])};_0x31fcx39[_0xeb7f[177]]= _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[177]]};if(_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[178]]&& _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[179]]){_0x31fcx39[_0xeb7f[178]]= _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[178]];if(_[_0xeb7f[155]](_0x31fcx39[_0xeb7f[178]])){_0x31fcx39[_0xeb7f[178]]= _[_0xeb7f[94]](_0x31fcx39[_0xeb7f[178]],_0xeb7f[156])};_0x31fcx39[_0xeb7f[179]]= _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[170]][_0xeb7f[179]]};var _0x31fcx3a;return ChatVisitor[_0xeb7f[121]](_0x31fcx39,{transaction:_0x31fcx3e,include:[{model:ChatEnquiry}]})[_0xeb7f[77]](function(_0x31fcx3d){_0x31fcx3a= _0x31fcx3d;return ChatWebsite[_0xeb7f[78]]({where:{id:_0x31fcx3a[_0xeb7f[168]]},attributes:[_0xeb7f[45],_0xeb7f[166]]})})[_0xeb7f[77]](function(_0x31fcx3c){if(!_0x31fcx3c){throw  new Error(util[_0xeb7f[76]](_0xeb7f[165],_0x31fcx3a.ChatWebsiteId))};if(_0x31fcx3c[_0xeb7f[166]]){return Contact[_0xeb7f[167]]({where:{email:_0x31fcx3a[_0xeb7f[108]]},defaults:{email:_0x31fcx3a[_0xeb7f[108]],firstName:_0x31fcx3a[_0xeb7f[107]],ListId:_0x31fcx3c[_0xeb7f[166]]}})};return})[_0xeb7f[77]](function(){_0x31fcx3e[_0xeb7f[181]]();return _0x31fcx26[_0xeb7f[39]](200)[_0xeb7f[114]]({success:true,errors:[]})})[_0xeb7f[40]](function(_0x31fcx27){_0x31fcx3e[_0xeb7f[180]]();logger[_0xeb7f[37]](_0xeb7f[161],_0x31fcx27[_0xeb7f[36]]);return _0x31fcx26[_0xeb7f[39]](500)[_0xeb7f[38]](_0x31fcx27)})})};exports[_0xeb7f[183]]= function(_0x31fcx25,_0x31fcx26){var _0x31fcx2e=_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]];if(_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e]&& _0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[120]]&& _0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[102]]){ChatMessage[_0xeb7f[115]]({where:{ChatRoomId:_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[102]]},attributes:[_0xeb7f[45],_0xeb7f[104],_0xeb7f[105]],include:[{model:Agent,attributes:[_0xeb7f[45],_0xeb7f[107]]},{model:ChatVisitor,attributes:[_0xeb7f[45],_0xeb7f[107]]}]})[_0xeb7f[77]](function(_0x31fcx30){var _0x31fcx3f=[];if(_0x31fcx30&& _0x31fcx30[_0xeb7f[117]]> 0){_0x31fcx30[_0xeb7f[187]](function(_0x31fcx34){_0x31fcx34= _0x31fcx34[_0xeb7f[118]]({plain:true});var _0x31fcx40={name:_0x31fcx34[_0xeb7f[19]]?_0x31fcx34[_0xeb7f[19]][_0xeb7f[107]]:_0x31fcx34[_0xeb7f[22]][_0xeb7f[107]],text:_0x31fcx34[_0xeb7f[104]][_0xeb7f[185]](/(\r\n|\n|\r)/gm,_0xeb7f[144]),date:_0x31fcx34[_0xeb7f[105]]};_0x31fcx3f[_0xeb7f[186]](_0x31fcx40)})}else {_0x31fcx3f[_0xeb7f[186]]({name:_0xeb7f[188],text:_0xeb7f[188],date:_0xeb7f[188]})};var _0x31fcx41=csv(_0x31fcx3f);_0x31fcx26[_0xeb7f[151]](_0xeb7f[189])[_0xeb7f[39]](200)[_0xeb7f[38]](_0x31fcx41)})[_0xeb7f[40]](function(_0x31fcx27){logger[_0xeb7f[37]](_0xeb7f[184],_0x31fcx27[_0xeb7f[36]]);return _0x31fcx26[_0xeb7f[39]](500)[_0xeb7f[38]](_0x31fcx27)})}};exports[_0xeb7f[190]]= function(_0x31fcx25,_0x31fcx26){var _0x31fcx28,_0x31fcx42,_0x31fcx43;var _0x31fcx44=xchatty_components[_0xeb7f[191]];return ChatWebsite[_0xeb7f[243]](_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]],{include:[{model:ChatWebsitesField,as:_0xeb7f[197]},{model:ChatWebsitesField,as:_0xeb7f[235]}],attributes:[_0xeb7f[45],_0xeb7f[47],_0xeb7f[56],_0xeb7f[196],_0xeb7f[199],_0xeb7f[200],_0xeb7f[204]]})[_0xeb7f[77]](function(_0x31fcx3b){if(!_0x31fcx3b){throw  new Error(util[_0xeb7f[76]](_0xeb7f[165],_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]]))};_0x31fcx28= _0x31fcx3b;return License[_0xeb7f[243]](1)})[_0xeb7f[77]](function(_0x31fcx45){if(_0x31fcx45){_0x31fcx42= JSON[_0xeb7f[135]](license[_0xeb7f[195]](_0x31fcx45[_0xeb7f[194]][_0xeb7f[193]],_0x31fcx45[_0xeb7f[153]]))}else {_0x31fcx42= demoLicense};var _0x31fcx46={rootPath:Util[_0xeb7f[48]](_0x31fcx28[_0xeb7f[47]])+ _0xeb7f[49],assetBase:Util[_0xeb7f[48]](_0x31fcx28[_0xeb7f[47]])+ _0xeb7f[54],websiteId:_0x31fcx28[_0xeb7f[45]],headerShape:_0x31fcx28[_0xeb7f[56]],enquiryEnable:_0x31fcx28[_0xeb7f[196]],onlineFields:_0x31fcx28[_0xeb7f[197]],logo:function(){if(_0x31fcx42[_0xeb7f[198]]&&  !_0x31fcx28[_0xeb7f[199]]&& _0x31fcx28[_0xeb7f[200]]){return _0xeb7f[201]+ _0x31fcx28[_0xeb7f[200]]+ _0xeb7f[202]}else {return _0xeb7f[203]}},whiteLabel:function(){if(_0x31fcx42[_0xeb7f[198]]&&  !_0x31fcx28[_0xeb7f[204]]){return _0x31fcx28[_0xeb7f[205]]}else {return _0xeb7f[206]}},renderedOnlineField:function(){var _0x31fcx47=_0xeb7f[188];var _0x31fcx48=this;switch(this[_0xeb7f[232]]){case _0xeb7f[216]:_0x31fcx47= _0xeb7f[207];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[208],_0x31fcx48[_0xeb7f[209]],_0x31fcx48[_0xeb7f[210]],_0x31fcx48[_0xeb7f[211]]?_0xeb7f[212]:_0xeb7f[188]);_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[213],_0x31fcx48[_0xeb7f[210]],_0x31fcx48[_0xeb7f[209]],_0x31fcx48[_0xeb7f[209]]+ 1,_0x31fcx48[_0xeb7f[214]],_0x31fcx48[_0xeb7f[211]]?_0xeb7f[211]:_0xeb7f[188]);_0x31fcx47+= _0xeb7f[215];break;case _0xeb7f[218]:_0x31fcx47= _0xeb7f[207];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[208],_0x31fcx48[_0xeb7f[209]],_0x31fcx48[_0xeb7f[210]],_0x31fcx48[_0xeb7f[211]]?_0xeb7f[212]:_0xeb7f[188]);_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[217],_0x31fcx48[_0xeb7f[209]],_0x31fcx48[_0xeb7f[210]],_0x31fcx48[_0xeb7f[209]]+ 1,_0x31fcx48[_0xeb7f[214]],_0x31fcx48[_0xeb7f[211]]?_0xeb7f[211]:_0xeb7f[188]);_0x31fcx47+= _0xeb7f[215];break;case _0xeb7f[224]:_0x31fcx47= _0xeb7f[207];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[219],_0x31fcx48[_0xeb7f[210]]);_[_0xeb7f[187]](_0x31fcx48[_0xeb7f[220]],function(_0x31fcx49){_0x31fcx47+= _0xeb7f[221];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[222],_0x31fcx48[_0xeb7f[209]]+ 1,_0x31fcx49,_0x31fcx49);_0x31fcx47+= _0xeb7f[223]});_0x31fcx47+= _0xeb7f[215];break;case _0xeb7f[226]:_0x31fcx47= _0xeb7f[207];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[219],_0x31fcx48[_0xeb7f[210]]);_[_0xeb7f[187]](_0x31fcx48[_0xeb7f[220]],function(_0x31fcx49){_0x31fcx47+= _0xeb7f[221];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[225],_0x31fcx48[_0xeb7f[209]]+ 1,_0x31fcx49,_0x31fcx49);_0x31fcx47+= _0xeb7f[223]});_0x31fcx47+= _0xeb7f[215];break;case _0xeb7f[231]:_0x31fcx47= _0xeb7f[207];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[227],_0x31fcx48[_0xeb7f[209]],_0x31fcx48[_0xeb7f[210]]);_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[228],_0x31fcx48[_0xeb7f[209]]+ 1);_[_0xeb7f[187]](_0x31fcx48[_0xeb7f[220]],function(_0x31fcx49){_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[229],_0x31fcx49,_0x31fcx49)});_0x31fcx47+= _0xeb7f[230];break};_0x31fcx47+= _0xeb7f[233];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[234],_0x31fcx48[_0xeb7f[209]]+ 1,_0x31fcx48[_0xeb7f[210]]);return _0x31fcx47},offlineFields:_0x31fcx28[_0xeb7f[235]],renderedOfflineField:function(){var _0x31fcx47=_0xeb7f[188];var _0x31fcx48=this;switch(this[_0xeb7f[232]]){case _0xeb7f[216]:_0x31fcx47= _0xeb7f[207];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[236],_0x31fcx48[_0xeb7f[209]],_0x31fcx48[_0xeb7f[210]],_0x31fcx48[_0xeb7f[211]]?_0xeb7f[212]:_0xeb7f[188]);_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[237],_0x31fcx48[_0xeb7f[210]],_0x31fcx48[_0xeb7f[209]],_0x31fcx48[_0xeb7f[209]]+ 1,_0x31fcx48[_0xeb7f[214]],_0x31fcx48[_0xeb7f[211]]?_0xeb7f[211]:_0xeb7f[188]);_0x31fcx47+= _0xeb7f[215];break;case _0xeb7f[218]:_0x31fcx47= _0xeb7f[207];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[236],_0x31fcx48[_0xeb7f[209]],_0x31fcx48[_0xeb7f[210]],_0x31fcx48[_0xeb7f[211]]?_0xeb7f[212]:_0xeb7f[188]);_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[238],_0x31fcx48[_0xeb7f[209]],_0x31fcx48[_0xeb7f[210]],_0x31fcx48[_0xeb7f[209]]+ 1,_0x31fcx48[_0xeb7f[214]],_0x31fcx48[_0xeb7f[211]]?_0xeb7f[211]:_0xeb7f[188]);_0x31fcx47+= _0xeb7f[215];break;case _0xeb7f[224]:_0x31fcx47= _0xeb7f[207];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[219],_0x31fcx48[_0xeb7f[210]]);_[_0xeb7f[187]](_0x31fcx48[_0xeb7f[220]],function(_0x31fcx49){_0x31fcx47+= _0xeb7f[221];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[239],_0x31fcx48[_0xeb7f[209]]+ 1,_0x31fcx49,_0x31fcx49);_0x31fcx47+= _0xeb7f[223]});_0x31fcx47+= _0xeb7f[215];break;case _0xeb7f[226]:_0x31fcx47= _0xeb7f[207];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[219],_0x31fcx48[_0xeb7f[210]]);_[_0xeb7f[187]](_0x31fcx48[_0xeb7f[220]],function(_0x31fcx49){_0x31fcx47+= _0xeb7f[221];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[240],_0x31fcx48[_0xeb7f[209]]+ 1,_0x31fcx49,_0x31fcx49);_0x31fcx47+= _0xeb7f[223]});_0x31fcx47+= _0xeb7f[215];break;case _0xeb7f[231]:_0x31fcx47= _0xeb7f[207];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[219],_0x31fcx48[_0xeb7f[210]]);_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[241],_0x31fcx48[_0xeb7f[209]]+ 1);_[_0xeb7f[187]](_0x31fcx48[_0xeb7f[220]],function(_0x31fcx49){_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[229],_0x31fcx49,_0x31fcx49)});_0x31fcx47+= _0xeb7f[230];break};_0x31fcx47+= _0xeb7f[233];_0x31fcx47+= util[_0xeb7f[76]](_0xeb7f[242],_0x31fcx48[_0xeb7f[209]]+ 1,_0x31fcx48[_0xeb7f[210]]);return _0x31fcx47}};_0x31fcx44= Mustache[_0xeb7f[74]](_0x31fcx44,_0x31fcx46);return _0x31fcx26[_0xeb7f[39]](200)[_0xeb7f[114]](_0x31fcx44)})[_0xeb7f[40]](function(_0x31fcx27){logger[_0xeb7f[37]](_0xeb7f[192],_0x31fcx27[_0xeb7f[36]]);return _0x31fcx26[_0xeb7f[39]](500)[_0xeb7f[114]]({message:_0x31fcx27[_0xeb7f[36]]})})};exports[_0xeb7f[244]]= function(_0x31fcx25,_0x31fcx26){return ChatWebsite[_0xeb7f[243]](_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]],{include:[{model:ChatProactiveAction,attributes:[_0xeb7f[151],_0xeb7f[247],_0xeb7f[248]]}],attributes:[_0xeb7f[45]]})[_0xeb7f[77]](function(_0x31fcx28){if(!_0x31fcx28){logger[_0xeb7f[37]](_0xeb7f[246],_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]]);return _0x31fcx26[_0xeb7f[39]](400)[_0xeb7f[114]]({})};return _0x31fcx26[_0xeb7f[39]](200)[_0xeb7f[114]](_0x31fcx28.ChatProactiveActions)})[_0xeb7f[40]](function(_0x31fcx27){logger[_0xeb7f[37]](_0xeb7f[245],_0x31fcx27[_0xeb7f[36]]);return _0x31fcx26[_0xeb7f[39]](500)[_0xeb7f[114]]({message:_0x31fcx27[_0xeb7f[36]]})})};exports[_0xeb7f[249]]= function(_0x31fcx25,_0x31fcx26){return ChatRoom[_0xeb7f[128]]({where:{id:_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[252]][_0xeb7f[102]]},attributes:[_0xeb7f[45]]})[_0xeb7f[77]](function(_0x31fcx35){if(!_0x31fcx35){throw  new Error(util[_0xeb7f[76]](_0xeb7f[251],_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[252]][_0xeb7f[102]]))};if(_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[252]][_0xeb7f[88]](_0xeb7f[253])&& _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[252]][_0xeb7f[88]](_0xeb7f[36])){return _0x31fcx35[_0xeb7f[127]]({rating:_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[252]][_0xeb7f[253]],ratingMessage:_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[252]][_0xeb7f[36]]})};return})[_0xeb7f[77]](function(){return _0x31fcx26[_0xeb7f[39]](200)[_0xeb7f[114]]({})})[_0xeb7f[40]](function(_0x31fcx27){logger[_0xeb7f[37]](_0xeb7f[250],_0x31fcx27[_0xeb7f[36]]);return _0x31fcx26[_0xeb7f[39]](500)[_0xeb7f[114]]({message:_0x31fcx27[_0xeb7f[36]]})})};exports[_0xeb7f[254]]= function(_0x31fcx25,_0x31fcx26){var _0x31fcx2e=_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]];if(_0x31fcx25[_0xeb7f[103]]&& _0x31fcx25[_0xeb7f[103]][_0xeb7f[97]]){if(_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0xeb7f[88]](_0x31fcx2e)&& _0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[88]](_0xeb7f[120])&& _0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[120]]> 0){return ReportChatSession[_0xeb7f[128]]({where:{visitorid:_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[120]],leaveAt:null},attributes:[_0xeb7f[45],_0xeb7f[258]]})[_0xeb7f[77]](function(_0x31fcx4a){if(!_0x31fcx4a){throw  new Error(util[_0xeb7f[76]](_0xeb7f[256],_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[120]]))};return _0x31fcx4a[_0xeb7f[127]]({abandon:true,leaveAt:moment()[_0xeb7f[76]](_0xeb7f[257])})})[_0xeb7f[77]](function(){return _0x31fcx26[_0xeb7f[39]](200)[_0xeb7f[114]]({})})[_0xeb7f[40]](function(_0x31fcx27){logger[_0xeb7f[37]](_0xeb7f[255],_0x31fcx27[_0xeb7f[36]]);return _0x31fcx26[_0xeb7f[39]](500)[_0xeb7f[114]]({message:_0x31fcx27[_0xeb7f[36]]})})}};return _0x31fcx26[_0xeb7f[39]](200)[_0xeb7f[114]]({})};exports[_0xeb7f[259]]= function(_0x31fcx25,_0x31fcx26){if(!_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]]){_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]]= {}};if(!_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]]]){_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]]]= {}};var _0x31fcx2e=_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]];var _0x31fcx4b={};var _0x31fcx4c=[];return ChatWebsite[_0xeb7f[78]]({where:{id:_0x31fcx2e},attributes:[_0xeb7f[45]]})[_0xeb7f[77]](function(_0x31fcx3c){if(!_0x31fcx3c){logger[_0xeb7f[37]](_0xeb7f[246],_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]]);throw  new Error(_0xeb7f[246],_0x31fcx25[_0xeb7f[46]][_0xeb7f[45]])};return _0x31fcx3c[_0xeb7f[276]]({attributes:[_0xeb7f[45],_0xeb7f[266],_0xeb7f[274]],include:[{model:ChatQueue,attributes:[_0xeb7f[45],_0xeb7f[106]],include:[{model:Agent,attributes:[_0xeb7f[45],_0xeb7f[106]]}]},{model:Agent,attributes:[_0xeb7f[45],_0xeb7f[106]]},{model:Interval,attributes:[_0xeb7f[274]],include:[{model:Interval,as:_0xeb7f[275],attributes:[_0xeb7f[274]]}]}]})})[_0xeb7f[77]](function(_0x31fcx4f){_[_0xeb7f[187]](_0x31fcx4f,function(_0x31fcx50){if(checkAppInterval(_0x31fcx50)){if(_0x31fcx50[_0xeb7f[266]]=== _0xeb7f[267]){if(_0x31fcx50[_0xeb7f[28]][_0xeb7f[88]](_0xeb7f[268])&& _0x31fcx50[_0xeb7f[28]][_0xeb7f[268]][_0xeb7f[117]]> 0){_0x31fcx4c= _[_0xeb7f[271]](_[_0xeb7f[270]](_0x31fcx4c,_[_0xeb7f[269]](_0x31fcx50[_0xeb7f[28]].Users,_0xeb7f[45])))}}else {if(_0x31fcx50[_0xeb7f[266]]=== _0xeb7f[272]){_0x31fcx4c[_0xeb7f[186]](_0x31fcx50[_0xeb7f[19]][_0xeb7f[45]]);_0x31fcx4c= _[_0xeb7f[271]](_0x31fcx4c)}}}});return Agent[_0xeb7f[273]]({where:{online:true,id:{$in:_0x31fcx4c}},attributes:[_0xeb7f[45]]})})[_0xeb7f[77]](function(_0x31fcx4e){if(_0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[263]]){_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[263]]= _0x31fcx25[_0xeb7f[89]][_0xeb7f[110]][_0xeb7f[263]]=== _0xeb7f[51]?true:false};_0x31fcx4b= {success:true,has_session_saf:null,signed_up:_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[102]]?true:false,fullname:_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[107]]|| _0xeb7f[188],email:_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[108]]|| _0xeb7f[188],avatar:_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[162]]|| _0xeb7f[188],open_state:_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[263]]|| _0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[102]]?true:false,online:_0x31fcx4e[_0xeb7f[264]]?true:false,is_unserved:false,room_id:0};if(_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[120]]){return ChatRoom[_0xeb7f[78]]({where:{ChatVisitorId:_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[120]],status:_0xeb7f[265],token:{$ne:_0xeb7f[188]}},attributes:[_0xeb7f[45]]})};return})[_0xeb7f[77]](function(_0x31fcx35){if(_0x31fcx35){_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[102]]= _0x31fcx35[_0xeb7f[45]];_0x31fcx4b[_0xeb7f[102]]= _0x31fcx35[_0xeb7f[45]];_0x31fcx4b[_0xeb7f[262]]= true}else {_0x31fcx4b[_0xeb7f[262]]= false};if(_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[120]]){return ChatVisitor[_0xeb7f[78]]({where:{id:_0x31fcx25[_0xeb7f[103]][_0xeb7f[97]][_0x31fcx2e][_0xeb7f[120]],status:_0xeb7f[172]},attributes:[_0xeb7f[45]]})};return})[_0xeb7f[77]](function(_0x31fcx4d){if(_0x31fcx4d){_0x31fcx4b[_0xeb7f[261]]= true};return _0x31fcx26[_0xeb7f[39]](200)[_0xeb7f[114]](_0x31fcx4b)})[_0xeb7f[40]](function(_0x31fcx27){logger[_0xeb7f[37]](_0xeb7f[260],_0x31fcx27);return _0x31fcx26[_0xeb7f[39]](500)[_0xeb7f[114]]({})})};function checkAppInterval(_0x31fcx50){var _0x31fcx52=true;if(_0x31fcx50[_0xeb7f[33]]){for(var _0x31fcx53=0;_0x31fcx53< _0x31fcx50[_0xeb7f[33]][_0xeb7f[275]][_0xeb7f[117]];_0x31fcx53++){if(Util[_0xeb7f[277]](splitInterval(_0x31fcx50[_0xeb7f[33]][_0xeb7f[275]][_0x31fcx53][_0xeb7f[274]]))){break}else {_0x31fcx52= false}}}else {if(!Util[_0xeb7f[277]](splitInterval(_0x31fcx50[_0xeb7f[274]]))){_0x31fcx52= false}};return _0x31fcx52}function splitInterval(_0x31fcx55){var _0x31fcx56={};var _0x31fcx57=_0x31fcx55[_0xeb7f[278]](_0xeb7f[156]);var _0x31fcx58;_0x31fcx57[_0xeb7f[187]](function(_0x31fcx48,_0x31fcx59){switch(_0x31fcx59){case 0:if(_0x31fcx48!== _0xeb7f[212]){_0x31fcx58= _0x31fcx48[_0xeb7f[278]](_0xeb7f[279]);_0x31fcx56[_0xeb7f[280]]= moment(_0x31fcx58[0],_0xeb7f[281]);_0x31fcx56[_0xeb7f[282]]= moment(_0x31fcx58[1],_0xeb7f[281])}else {_0x31fcx56[_0xeb7f[280]]= null;_0x31fcx56[_0xeb7f[282]]= null};break;case 1:if(_0x31fcx48!== _0xeb7f[212]){_0x31fcx58= _0x31fcx48[_0xeb7f[278]](_0xeb7f[279]);_0x31fcx56[_0xeb7f[283]]= weekDaysCollection[_0x31fcx58[0]];_0x31fcx56[_0xeb7f[284]]= _0x31fcx58[1]?weekDaysCollection[_0x31fcx58[1]]:null}else {_0x31fcx56[_0xeb7f[283]]= null;_0x31fcx56[_0xeb7f[284]]= null};break;case 2:if(_0x31fcx48!== _0xeb7f[212]){_0x31fcx58= _0x31fcx48[_0xeb7f[278]](_0xeb7f[279]);_0x31fcx56[_0xeb7f[285]]= _0x31fcx58[0];_0x31fcx56[_0xeb7f[286]]= _0x31fcx58[1]?_0x31fcx58[1]:null}else {_0x31fcx56[_0xeb7f[285]]= null;_0x31fcx56[_0xeb7f[286]]= null};break;case 3:if(_0x31fcx48!== _0xeb7f[212]){_0x31fcx58= _0x31fcx48[_0xeb7f[278]](_0xeb7f[279]);_0x31fcx56[_0xeb7f[287]]= monthsCollection[_0x31fcx58[0]];_0x31fcx56[_0xeb7f[288]]= _0x31fcx58[1]?monthsCollection[_0x31fcx58[1]]:null}else {_0x31fcx56[_0xeb7f[287]]= null;_0x31fcx56[_0xeb7f[288]]= null};break;default:}});return _0x31fcx56}
\ No newline at end of file