1 var _0xdf66=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x66\x73","\x70\x61\x74\x68","\x2E\x2E\x2F\x75\x74\x69\x6C","\x2E\x2F\x75\x74\x69\x6C\x73","\x65\x78\x65\x63","\x63\x68\x69\x6C\x64\x2D\x70\x72\x6F\x63\x65\x73\x73\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x66\x73\x2D\x65\x78\x74\x72\x61","\x6B\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C\x73\x2F\x72\x65\x70\x6F\x72\x74\x5F\x62\x75\x69\x6C\x64","\x61\x6D\x69","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x66\x61\x78","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2F\x65\x76\x65\x6E\x74\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x76\x6F\x69\x63\x65","\x63\x68\x61\x74","\x6D\x61\x69\x6C","\x73\x6D\x73","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x45\x72\x72\x6F\x72\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x74\x72\x75\x6E\x6B\x73\x20\x61\x72\x72\x61\x79\x3A","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6E\x61\x6D\x65","\x64\x65\x66\x61\x75\x6C\x74\x75\x73\x65\x72","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x54\x72\x75\x6E\x6B","\x70\x6F\x72\x74","\x61\x73\x74\x65\x72\x69\x73\x6B","\x68\x6F\x73\x74","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x61\x73\x74\x65\x72\x69\x73\x6B\x2D\x6D\x61\x6E\x61\x67\x65\x72","\x61\x63\x74\x69\x6F\x6E","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x71","\x69\x70","\x72\x65\x64\x69\x73\x50\x77\x64","\x61\x75\x74\x68","\x72\x65\x64\x69\x73","\x6F\x70\x74\x69\x6F\x6E\x73","\x63\x72\x65\x61\x74\x65\x51\x75\x65\x75\x65","\x65\x76\x65\x6E\x74\x73","\x66\x69\x6E\x61\x6C\x6C\x79","\x65\x76\x74","\x64\x61\x74\x61","\x6E\x65\x65\x64\x41\x6D\x69","\x6A\x6F\x62\x20\x65\x72\x72\x6F\x72","\x70\x72\x6F\x63\x65\x73\x73","\x6E\x6F\x77","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x6B\x75\x65\x20\x71\x75\x65\x75\x65\x20\x6A\x6F\x62\x20\x65\x72\x72\x6F\x72","\x73\x61\x76\x65","\x72\x65\x6D\x6F\x76\x65\x4F\x6E\x43\x6F\x6D\x70\x6C\x65\x74\x65","\x63\x72\x65\x61\x74\x65","\x56\x6F\x69\x63\x65\x20\x71\x75\x65\x75\x65\x73\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6F\x6E","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x6B\x65\x65\x70\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x67\x63","\x47\x61\x72\x62\x61\x67\x65\x20\x63\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E\x20\x75\x6E\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x2E\x20\x20\x50\x61\x73\x73\x20\x2D\x2D\x65\x78\x70\x6F\x73\x65\x2D\x67\x63\x20","\x77\x68\x65\x6E\x20\x6C\x61\x75\x6E\x63\x68\x69\x6E\x67\x20\x6E\x6F\x64\x65\x20\x74\x6F\x20\x65\x6E\x61\x62\x6C\x65\x20\x66\x6F\x72\x63\x65\x64\x20\x67\x61\x72\x62\x61\x67\x65\x20\x63\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E\x2E","\x77\x61\x72\x6E","\x65\x78\x69\x74","\x63\x6F\x64\x65\x20\x65\x78\x69\x74","\x64\x65\x62\x75\x67","\x6F\x6E","\x63\x6F\x6E\x6E\x65\x63\x74","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x63\x6C\x6F\x73\x65","\x63\x64\x72\x69\x6E\x66\x6F","\x63\x64\x72","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x63\x64\x72\x69\x6E\x66\x6F\x20\x65\x72\x72\x6F\x72\x3A","\x64\x65\x76\x69\x63\x65\x73\x74\x61\x74\x65\x63\x68\x61\x6E\x67\x65","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x64\x65\x76\x69\x63\x65\x73\x74\x61\x74\x65\x63\x68\x61\x6E\x67\x65\x20\x65\x72\x72\x6F\x72\x3A","\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73\x20\x65\x72\x72\x6F\x72\x3A","\x72\x65\x67\x69\x73\x74\x72\x79","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x72\x65\x67\x69\x73\x74\x72\x79\x20\x65\x72\x72\x6F\x72\x3A","\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x65\x78\x74\x72\x61\x76\x61\x72","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64\x20\x65\x72\x72\x6F\x72\x3A","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x74\x72\x61\x6E\x73\x66\x65\x72\x55\x49\x44","\x68\x61\x73\x51\x75\x65\x75\x65","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x20\x65\x72\x72\x6F\x72\x3A","\x68\x61\x6E\x67\x75\x70\x72\x65\x71\x75\x65\x73\x74","\x6C\x69\x6E\x6B\x65\x64\x69\x64","\x70\x72\x65\x76\x69\x6F\x75\x73\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x71\x75\x65\x75\x65","\x6C\x61\x73\x74\x61\x67\x69\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x64\x65\x73\x74\x69\x6E\x61\x74\x69\x6F\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x2C","\x73\x70\x6C\x69\x74","\x6C\x61\x73\x74\x64\x61\x74\x61","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x68\x61\x6E\x67\x75\x70\x72\x65\x71\x75\x65\x73\x74\x20\x65\x72\x72\x6F\x72\x3A","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74","\x46\x6F\x75\x6E\x64\x20\x76\x69\x64\x65\x6F\x6F\x6E\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x20\x66\x6F\x72\x20\x75\x6E\x69\x71\x75\x65\x69\x64","\x63\x61\x6C\x6C\x69\x6E\x67\x20\x74\x72\x69\x67\x67\x65\x72\x2E\x2E\x2E","\x76\x69\x64\x65\x6F\x4F\x6E\x55\x72\x6C","\x76\x69\x64\x65\x6F\x4F\x6E","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x20\x65\x72\x72\x6F\x72\x3A","\x61\x67\x65\x6E\x74\x64\x75\x6D\x70","\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x64\x65\x73\x74\x63\x68\x61\x6E\x6E\x65\x6C","\x64\x69\x61\x6C\x65\x6E\x64","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x72\x65\x6A\x65\x63\x74\x65\x64","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x61\x64\x64\x65\x64","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x61\x64\x64\x65\x64\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x61\x75\x73\x65","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x61\x75\x73\x65\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x65\x6E\x61\x6C\x74\x79","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x65\x6E\x61\x6C\x74\x79\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x72\x65\x6D\x6F\x76\x65\x64","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x72\x65\x6D\x6F\x76\x65\x64\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x72\x69\x6E\x67\x69\x6E\x75\x73\x65","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x72\x69\x6E\x67\x69\x6E\x75\x73\x65\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x74\x72\x61\x6E\x73\x66\x65\x72","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x74\x72\x61\x6E\x73\x66\x65\x72\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65\x20\x65\x72\x72\x6F\x72\x3A","\x62\x6C\x69\x6E\x64\x74\x72\x61\x6E\x73\x66\x65\x72","\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x72\x6C\x69\x6E\x6B\x65\x64\x69\x64","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74\x72\x65\x61\x73\x6F\x6E","\x74\x72\x61\x6E\x73\x66\x65\x72","\x74\x72\x61\x6E\x73\x66\x65\x72\x74\x79\x70\x65","\x62\x6C\x69\x6E\x64","\x74\x72\x61\x6E\x73\x66\x65\x72\x75\x6E\x69\x71\x75\x65\x69\x64","\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x65\x75\x6E\x69\x71\x75\x65\x69\x64","\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x63\x6C\x6F\x6E\x65","\x65\x6D\x69\x74","\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x64","\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x72\x63\x68\x61\x6E\x6E\x65\x6C","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x62\x6C\x69\x6E\x64\x74\x72\x61\x6E\x73\x66\x65\x72\x20\x65\x72\x72\x6F\x72\x3A","\x61\x74\x74\x65\x6E\x64\x65\x64\x74\x72\x61\x6E\x73\x66\x65\x72","\x73\x65\x63\x6F\x6E\x64\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x72\x75\x6E\x69\x71\x75\x65\x69\x64","\x6F\x72\x69\x67\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x72\x63\x68\x61\x6E\x6E\x65\x6C","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x61\x74\x74\x65\x6E\x64\x65\x64\x74\x72\x61\x6E\x73\x66\x65\x72\x20\x65\x72\x72\x6F\x72\x3A","\x64\x69\x61\x6C\x62\x65\x67\x69\x6E","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x64\x69\x61\x6C\x62\x65\x67\x69\x6E\x20\x65\x72\x72\x6F\x72\x3A","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x64\x69\x61\x6C\x65\x6E\x64\x20\x65\x72\x72\x6F\x72\x3A","\x72\x65\x63\x65\x69\x76\x65\x66\x61\x78","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x72\x65\x63\x65\x69\x76\x65\x66\x61\x78\x20\x65\x72\x72\x6F\x72\x3A","\x73\x65\x6E\x64\x66\x61\x78","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x73\x65\x6E\x64\x66\x61\x78\x20\x65\x72\x72\x6F\x72\x3A","\x66\x61\x78\x73\x74\x61\x74\x75\x73","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x66\x61\x78\x73\x74\x61\x74\x75\x73\x20\x65\x72\x72\x6F\x72\x3A","\x51\x75\x65\x75\x65\x53\x74\x61\x74\x75\x73","\x73\x65\x74","\x61\x67\x69","\x64\x69\x61\x6C","\x70\x6C\x61\x79\x62\x61\x63\x6B","\x4E\x4F\x20\x41\x4E\x53\x57\x45\x52","\x46\x41\x49\x4C\x45\x44","\x41\x4E\x53\x57\x45\x52\x45\x44","\x42\x55\x53\x59","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x2D\x2D","\x61\x63\x63\x6F\x75\x6E\x74\x63\x6F\x64\x65","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x65\x78\x74\x65\x6E","\x63\x6F\x6E\x74\x65\x78\x74","\x22\x25\x73\x22\x20\x3C\x25\x73\x3E","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x63\x68\x61\x6E\x6E\x65\x6C","","\x63\x68\x61\x6E\x6E\x65\x6C\x73\x74\x61\x74\x65","\x74\x6F\x4E\x75\x6D\x62\x65\x72","\x44\x4F\x43\x55\x4D\x45\x4E\x54\x41\x54\x49\x4F\x4E","\x36","\x61\x6E\x73\x77\x65\x72\x74\x69\x6D\x65","\x64\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x69\x6E\x62\x6F\x75\x6E\x64","\x74\x69\x67\x65\x72\x64\x69\x61\x6C","\x74\x79\x70\x65","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x73\x6F\x75\x72\x63\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x75\x6D","\x63\x61\x6C\x6C\x65\x72\x69\x64","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x61\x6D\x65","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x71\x75\x65\x75\x65\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x65\x78\x69\x74\x77\x69\x74\x68\x6B\x65\x79","\x71\x75\x65\x75\x65\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x61\x70\x70\x64\x61\x74\x61","\x63\x64\x72\x28","\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68","\x3D","\x6D\x61\x74\x63\x68","\x63\x61\x6C\x6C\x65\x72\x69\x64\x28\x6E\x75\x6D\x29","\x64\x65\x73\x74\x69\x6E\x61\x74\x69\x6F\x6E","\x63\x61\x6C\x6C\x65\x72\x69\x64\x28\x6E\x61\x6D\x65\x29","\x6C\x61\x73\x74\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x6D\x6F\x74\x69\x6F\x6E\x5F\x76\x69\x64\x65\x6F\x5F\x72\x6F\x6F\x6D\x5F\x69\x64","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x76\x61\x72\x69\x61\x62\x6C\x65","\x53\x65\x74\x74\x69\x6E\x67\x20\x76\x69\x64\x65\x6F\x6F\x6E\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x20\x66\x6F\x72\x20\x75\x6E\x69\x71\x75\x65\x69\x64","\x76\x61\x6C\x75\x65","\x72\x65\x70\x6C\x61\x63\x65","\x71\x75\x65\x75\x65\x73\x74\x61\x74\x75\x73","\x6A\x6F\x69\x6E\x65\x6D\x70\x74\x79","\x65\x6E\x64\x74\x69\x6D\x65","\x64\x75\x72\x61\x74\x69\x6F\x6E","\x73\x74\x61\x72\x74\x74\x69\x6D\x65","\x73\x65\x63\x6F\x6E\x64\x73","\x64\x69\x66\x66","\x62\x69\x6C\x6C\x61\x62\x6C\x65\x73\x65\x63\x6F\x6E\x64\x73","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x20\x65\x72\x72\x6F\x72\x3A","\x6E\x65\x77\x63\x68\x61\x6E\x6E\x65\x6C","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x6E\x65\x77\x63\x68\x61\x6E\x6E\x65\x6C\x20\x65\x72\x72\x6F\x72\x3A","\x6E\x65\x77\x73\x74\x61\x74\x65","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x6E\x65\x77\x73\x74\x61\x74\x65\x20\x65\x72\x72\x6F\x72\x3A","\x6E\x65\x77\x65\x78\x74\x65\x6E","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x6E\x65\x77\x65\x78\x74\x65\x6E\x20\x65\x72\x72\x6F\x72\x3A","\x76\x61\x72\x73\x65\x74","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x76\x61\x72\x73\x65\x74\x20\x65\x72\x72\x6F\x72\x3A","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E\x20\x65\x72\x72\x6F\x72\x3A","\x68\x61\x6E\x67\x75\x70","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x68\x61\x6E\x67\x75\x70\x20\x65\x72\x72\x6F\x72\x3A","\x6C\x61\x73\x74\x50\x61\x75\x73\x65\x41\x74","\x62\x6F\x64\x79","\x64\x61\x74\x61\x34","\x64\x61\x74\x61\x31","\x23","\x73\x6C\x69\x63\x65","\x69\x64","\x76\x6F\x69\x63\x65\x50\x61\x75\x73\x65","\x66\x69\x6C\x74\x65\x72","\x25\x73\x2F\x25\x73","\x53\x49\x50","\x50\x41\x55\x53\x45","\x64\x61\x74\x61\x32","\x72\x6F\x6C\x65","\x64\x61\x74\x61\x33","\x70\x75\x73\x68","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72","\x75\x70\x64\x61\x74\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x65\x72\x67\x65","\x61\x67\x65\x6E\x74\x55\x70\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x41\x43\x57","\x71\x75\x65\x75\x65\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x61\x63\x77","\x41\x6C\x72\x65\x61\x64\x79\x20\x50\x61\x75\x73\x65\x20\x4F\x66\x66","\x66\x69\x6E\x64\x4F\x6E\x65","\x25\x73\x25\x73","\x50\x61\x75\x73\x65","\x61\x6C\x6C","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x4C\x4F\x47\x49\x4E","\x6D\x65\x73\x73\x61\x67\x65","\x55\x6E\x61\x62\x6C\x65\x20\x74\x6F\x20\x61\x64\x64\x20\x69\x6E\x74\x65\x72\x66\x61\x63\x65\x3A\x20\x41\x6C\x72\x65\x61\x64\x79\x20\x74\x68\x65\x72\x65","\x4C\x6F\x67\x69\x6E\x20\x51\x75\x65\x75\x65\x41\x64\x64\x20\x65\x72\x72\x6F\x72\x20\x66\x6F\x72","\x51\x75\x65\x75\x65\x41\x64\x64","\x70\x65\x6E\x61\x6C\x74\x79","\x6C\x6F\x67\x69\x6E\x49\x6E\x50\x61\x75\x73\x65","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x61\x73\x73\x69\x67\x6E","\x72\x65\x73\x6F\x6C\x76\x65","\x51\x75\x65\x75\x65\x52\x65\x6D\x6F\x76\x65","\x61\x67\x65\x6E\x74","\x53\x49\x50\x2F\x25\x73","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x71\x75\x65\x75\x65\x73","\x52\x65\x61\x6C\x74\x69\x6D\x65\x20\x51\x75\x65\x75\x65\x41\x64\x64\x20\x65\x72\x72\x6F\x72\x20\x66\x6F\x72","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x53\x6D\x73\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x46\x61\x78\x51\x75\x65\x75\x65","\x76\x6F\x69\x63\x65\x20\x71\x75\x65\x75\x65\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x20\x3A","\x64\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x74\x20\x71\x75\x65\x75\x65\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x20\x3A","\x71\x75\x65\x75\x65\x49\x64","\x6D\x61\x69\x6C\x20\x71\x75\x65\x75\x65\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x20\x3A","\x73\x6D\x73\x20\x71\x75\x65\x75\x65\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x20\x3A","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x20\x71\x75\x65\x75\x65\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x20\x3A","\x66\x61\x78\x20\x71\x75\x65\x75\x65\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x20\x3A","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x41\x67\x65\x6E\x74","\x66\x69\x6E\x64\x42\x79\x49\x64","\x55\x73\x65\x72","\x70\x61\x75\x73\x65","\x75\x6E\x70\x61\x75\x73\x65","\x6C\x6F\x67\x69\x6E","\x6C\x6F\x67\x6F\x75\x74","\x47\x65\x6E\x65\x72\x61\x6C\x20\x51\x75\x65\x75\x65\x41\x64\x64\x20\x65\x72\x72\x6F\x72","\x71\x75\x65\x75\x65\x41\x64\x64","\x51\x75\x65\x75\x65\x52\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72","\x71\x75\x65\x75\x65\x52\x65\x6D\x6F\x76\x65","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x41\x63\x74\x69\x6F\x6E","\x52\x65\x6D\x6F\x76\x69\x6E\x67\x20\x69\x6E\x61\x63\x74\x69\x76\x65\x20\x63\x61\x6C\x6C\x73\x2E\x2E\x2E","\x49\x6E\x61\x63\x74\x69\x76\x65\x20\x63\x61\x6C\x6C\x73\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x3A","\x49\x6E\x61\x63\x74\x69\x76\x65\x20\x63\x61\x6C\x6C\x73\x20\x63\x6C\x65\x61\x6E\x69\x6E\x67\x20\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64\x21","\x65\x6E\x74\x65\x72\x41\x74","\x75\x6E\x6B\x6E\x6F\x77\x6E","\x55\x4E\x4B\x4E\x4F\x57\x4E","\x54\x41\x4C\x4B\x49\x4E\x47","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x6E\x6F","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C","\x52\x65\x70\x6F\x72\x74\x53\x71\x75\x61\x72\x65","\x63\x6F\x6E\x74\x65\x6E\x74","\x0A","\x21","\x6C\x65\x6E\x67\x74\x68","\x70\x6F\x70","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x43\x6F\x6D\x6D\x61\x6E\x64","\x63\x6F\x72\x65\x20\x73\x68\x6F\x77\x20\x63\x68\x61\x6E\x6E\x65\x6C\x73\x20\x63\x6F\x6E\x63\x69\x73\x65","\x49\x6E\x61\x63\x74\x69\x76\x65\x20","\x20\x73\x65\x73\x73\x69\x6F\x6E\x73\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x3A","\x20\x73\x65\x73\x73\x69\x6F\x6E\x73\x20\x63\x6C\x65\x61\x6E\x69\x6E\x67\x20\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64\x21","\x74\x69\x6D\x65\x73\x6C\x6F\x74","\x61\x64\x64","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x69\x73\x53\x61\x6D\x65\x4F\x72\x41\x66\x74\x65\x72","\x72\x6F\x6F\x6D\x69\x64","\x75\x6E\x69\x71","\x52\x6F\x6F\x6D\x20\x49\x44\x73\x20\x74\x6F\x20\x63\x6C\x65\x61\x6E","\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74","\x53\x65\x73\x73\x69\x6F\x6E","\x43\x68\x61\x74","\x4D\x61\x69\x6C","\x46\x61\x78","\x53\x6D\x73","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x45\x72\x72\x6F\x72\x20\x77\x72\x69\x74\x69\x6E\x67\x20\x6C\x6F\x63\x61\x6C\x6E\x65\x74\x3A","\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x6C\x6F\x63\x61\x6C\x6E\x65\x74\x2E\x63\x6F\x6E\x66","\x6C\x6F\x63\x61\x6C\x6E\x65\x74\x20\x3D\x20\x25\x73\x0A","\x61\x73\x74\x65\x72\x69\x73\x6B\x43\x6F\x6E\x66","\x6A\x6F\x69\x6E","\x77","\x30\x37\x37\x37","\x73\x69\x70\x20\x72\x65\x6C\x6F\x61\x64","\x4C\x6F\x63\x61\x6C\x6E\x65\x74\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x77\x72\x69\x74\x65\x46\x69\x6C\x65","\x6C\x6F\x63\x61\x6C\x6E\x65\x74","\x73\x63\x6F\x70\x65","\x4E\x65\x74\x77\x6F\x72\x6B","\x45\x72\x72\x6F\x72\x20\x77\x72\x69\x74\x69\x6E\x67\x20\x65\x78\x74\x65\x72\x6E\x69\x70\x3A","\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x65\x78\x74\x65\x72\x6E\x69\x70\x2E\x63\x6F\x6E\x66","\x65\x78\x74\x65\x72\x6E\x69\x70\x20\x3D\x20\x25\x73\x0A","\x45\x78\x74\x65\x72\x6E\x69\x70\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x65\x78\x74\x65\x72\x6E\x69\x70","\x54\x79\x70\x65\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x3A","\x41\x73\x74\x65\x72\x69\x73\x6B\x20","\x72\x65\x67\x69\x73\x74\x65\x72\x20\x3D\x3E\x20\x25\x73\x0A","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x61\x63\x74\x69\x76\x65","\x73\x74\x61\x74\x75\x73","\x65\x6E\x63\x72\x79\x70\x74\x69\x6F\x6E","\x79\x65\x73","\x61\x76\x70\x66","\x64\x74\x6C\x73\x65\x6E\x61\x62\x6C\x65","\x64\x74\x6C\x73\x76\x65\x72\x69\x66\x79","\x64\x74\x6C\x73\x63\x65\x72\x74\x66\x69\x6C\x65","\x2F\x65\x74\x63\x2F\x70\x6B\x69\x2F\x74\x6C\x73\x2F\x63\x65\x72\x74\x73\x2F\x6D\x6F\x74\x69\x6F\x6E\x2E\x63\x72\x74","\x64\x74\x6C\x73\x6B\x65\x79\x66\x69\x6C\x65","\x2F\x65\x74\x63\x2F\x70\x6B\x69\x2F\x74\x6C\x73\x2F\x70\x72\x69\x76\x61\x74\x65\x2F\x6D\x6F\x74\x69\x6F\x6E\x2E\x6B\x65\x79","\x64\x74\x6C\x73\x73\x65\x74\x75\x70","\x61\x63\x74\x70\x61\x73\x73","\x64\x74\x6C\x73\x72\x65\x6B\x65\x79","\x30","\x5B\x25\x73\x5D\x0A","\x6F\x74\x68\x65\x72\x46\x69\x65\x6C\x64\x73","\x3B","\x25\x73\x3D\x25\x73\x0A","\x61\x6C\x6C\x6F\x77","\x25\x73\x0A","\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x74\x72\x75\x6E\x6B\x73\x2E\x63\x6F\x6E\x66","\x54\x72\x75\x6E\x6B\x73\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x72\x65\x67\x69\x73\x74\x65\x72\x73\x2E\x63\x6F\x6E\x66","\x54\x72\x75\x6E\x6B\x73\x20\x72\x65\x67\x69\x73\x74\x65\x72\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x5B\x25\x73\x5D\x0A\x69\x6E\x63\x6C\x75\x64\x65\x20\x3D\x3E\x20\x25\x73\x2D\x63\x75\x73\x74\x6F\x6D\x0A\x73\x77\x69\x74\x63\x68\x20\x3D\x3E\x20\x52\x65\x61\x6C\x74\x69\x6D\x65\x0A","\x52\x65\x77\x72\x69\x74\x65\x43\x6F\x6E\x74\x65\x78\x74\x73","\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x63\x6F\x6E\x74\x65\x78\x74\x73\x2E\x63\x6F\x6E\x66","\x43\x6F\x6E\x74\x65\x78\x74\x73\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x64\x69\x61\x6C\x70\x6C\x61\x6E\x20\x72\x65\x6C\x6F\x61\x64","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74","\x63\x72\x65\x61\x74\x65\x20\x63\x6F\x6E\x74\x65\x78\x74\x20\x68\x61\x6E\x67\x75\x70","\x68","\x31","\x73\x79\x73\x74\x65\x6D","\x48\x61\x6E\x67\x75\x70","\x66\x61\x69\x6C\x65\x64","\x43\x72\x65\x61\x74\x65\x48\x61\x6E\x67\x75\x70","\x68\x61\x6E\x67\x75\x70\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x20\x63\x72\x65\x61\x74\x65\x64","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x72\x74\x70\x5F\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6E\x66","\x77\x72\x69\x74\x65\x46\x69\x6C\x65\x53\x79\x6E\x63","\x72\x74\x70\x20\x78\x63\x61\x6C\x6C\x79\x20\x63\x6F\x6E\x66\x20\x66\x69\x6C\x65\x20\x75\x70\x64\x61\x74\x65\x64\x21","\x72\x65\x6C\x6F\x61\x64","\x45\x72\x72\x6F\x72\x20\x72\x65\x77\x72\x69\x74\x69\x6E\x67\x20\x72\x74\x70\x20\x78\x63\x61\x6C\x6C\x79\x20\x63\x6F\x6E\x66\x20\x66\x69\x6C\x65","\x4E\x6F\x20\x64\x61\x74\x61\x20\x70\x72\x6F\x76\x69\x64\x65\x64\x20\x66\x6F\x72\x20\x72\x74\x70\x20\x66\x69\x6C\x65","\x57\x65\x62\x6F\x6F\x6B\x20\x72\x65\x71\x75\x65\x73\x74\x20\x66\x61\x69\x6C\x65\x64\x21","\x57\x65\x62\x68\x6F\x6F\x6B\x20\x72\x65\x71\x75\x65\x73\x74\x20\x73\x75\x63\x63\x65\x73\x73\x66\x75\x6C\x21","\x73\x65\x6E\x64\x52\x65\x71\x75\x65\x73\x74","\x61\x63\x63\x65\x70\x74\x4D\x65\x74\x68\x6F\x64","\x61\x63\x63\x65\x70\x74\x55\x72\x6C","\x46\x61\x78\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x3C","\x3E\x20\x65\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x61\x63\x63\x65\x70\x74\x20\x77\x65\x62\x68\x6F\x6F\x6B","\x61\x63\x74\x69\x6F\x6E\x73","\x65\x6E\x61\x62\x6C\x65\x64","\x65\x78\x65\x63\x41\x63\x74\x69\x6F\x6E","\x61\x63\x63\x65\x70\x74","\x72\x65\x6A\x65\x63\x74\x4D\x65\x74\x68\x6F\x64","\x72\x65\x6A\x65\x63\x74\x55\x72\x6C","\x3E\x20\x65\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x72\x65\x6A\x65\x63\x74\x20\x77\x65\x62\x68\x6F\x6F\x6B","\x72\x65\x6A\x65\x63\x74","\x63\x6C\x6F\x73\x65\x4D\x65\x74\x68\x6F\x64","\x63\x6C\x6F\x73\x65\x55\x72\x6C","\x3E\x20\x65\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x63\x6C\x6F\x73\x65\x20\x77\x65\x62\x68\x6F\x6F\x6B","\x57\x65\x62\x68\x6F\x6F\x6B\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64","\x46\x61\x78\x52\x6F\x6F\x6D\x49\x64","\x46\x61\x78\x52\x6F\x6F\x6D","\x66\x69\x72\x73\x74","\x43\x4C\x4F\x53\x45\x44","\x74\x6F","\x50\x45\x4E\x44\x49\x4E\x47","\x44\x45\x53\x43","\x53\x45\x4E\x44\x49\x4E\x47","\x5B\x46\x61\x78\x5D\x20\x53\x65\x6E\x64\x69\x6E\x67\x20\x66\x61\x78\x20\x66\x72\x6F\x6D\x20\x25\x73\x20\x74\x6F\x20\x25\x73","\x66\x72\x6F\x6D","\x69\x6E\x66\x6F","\x5B\x46\x61\x78\x5D\x20\x45\x72\x72\x6F\x72\x20\x73\x65\x6E\x64\x69\x6E\x67\x20\x6D\x65\x73\x73\x61\x67\x65\x3A","\x5B\x46\x61\x78\x5D\x20\x4D\x65\x73\x73\x61\x67\x65\x3A","\x5B\x46\x61\x78\x5D\x20\x53\x74\x61\x63\x6B\x3A","\x5B\x46\x61\x78\x5D\x20\x45\x72\x72\x6F\x72\x20\x75\x70\x64\x61\x74\x69\x6E\x67\x20\x65\x72\x72\x6F\x72\x20\x73\x74\x61\x74\x75\x73\x3A","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x5B\x46\x61\x78\x5D\x20\x46\x61\x78\x20\x6D\x65\x73\x73\x61\x67\x65\x20\x63\x6F\x72\x72\x65\x63\x74\x6C\x79\x20\x73\x65\x6E\x74","\x5B\x46\x61\x78\x5D\x20\x52\x65\x73\x70\x6F\x6E\x73\x65\x20\x74\x6F\x20\x41\x4D\x49\x20\x41\x63\x74\x69\x6F\x6E\x20\x4F\x72\x69\x67\x69\x6E\x61\x74\x65","\x6F\x72\x69\x67\x69\x6E\x61\x74\x65","\x25\x73\x2F\x25\x73\x2F\x25\x73","\x74\x65\x63\x68","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64","\x65\x63\x6D","\x68\x65\x61\x64\x65\x72\x69\x6E\x66\x6F","\x6D\x69\x6E\x72\x61\x74\x65","\x6D\x61\x78\x72\x61\x74\x65","\x22\x25\x73\x22","\x6D\x6F\x64\x65\x6D","\x67\x61\x74\x65\x77\x61\x79","\x74\x33\x38\x74\x69\x6D\x65\x6F\x75\x74","\x63\x68\x6D\x6F\x64\x53\x79\x6E\x63","\x5B\x46\x61\x78\x5D\x20\x46\x69\x6C\x65\x20\x63\x6F\x72\x72\x65\x63\x74\x6C\x79\x20\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x20\x61\x6E\x64\x20\x72\x65\x61\x64\x79\x20\x74\x6F\x20\x75\x73\x65","\x46\x61\x78\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x70\x64\x66","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x2F","\x70\x61\x72\x73\x65","\x2E\x74\x69\x66","\x67\x73\x20\x2D\x71\x20\x2D\x64\x4E\x4F\x50\x41\x55\x53\x45\x20\x2D\x64\x42\x41\x54\x43\x48\x20\x2D\x73\x44\x45\x56\x49\x43\x45\x3D\x74\x69\x66\x66\x67\x34\x20\x2D\x73\x50\x41\x50\x45\x52\x53\x49\x5A\x45\x3D\x6C\x65\x74\x74\x65\x72\x20\x2D\x73\x4F\x75\x74\x70\x75\x74\x46\x69\x6C\x65\x3D","\x20","\x62\x61\x73\x65","\x63\x6F\x70\x79\x53\x79\x6E\x63","\x73\x70\x72\x65\x61\x64","\x4C\x69\x73\x74\x49\x64","\x43\x6F\x6E\x74\x61\x63\x74","\x5B\x46\x61\x78\x5D\x20\x52\x6F\x6F\x6D\x20\x75\x70\x64\x61\x74\x65\x64\x3A","\x61\x64\x64\x55\x73\x65\x72","\x66\x61\x78\x4F\x75\x74","\x75\x73\x65\x72","\x5B\x46\x61\x78\x5D\x20\x52\x6F\x6F\x6D\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x5B\x46\x61\x78\x5D\x20\x52\x6F\x6F\x6D\x3A","\x61\x64\x64\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x5B\x46\x61\x78\x5D\x20\x54\x72\x75\x6E\x6B\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x5B\x46\x61\x78\x5D\x20\x54\x72\x75\x6E\x6B\x20\x66\x6F\x75\x6E\x64\x3A","\x5B\x46\x61\x78\x5D\x20\x41\x63\x63\x6F\x75\x6E\x74\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x5B\x46\x61\x78\x5D\x20\x41\x63\x63\x6F\x75\x6E\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x54\x72\x75\x6E\x6B\x4E\x61\x6D\x65","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x63\x68\x61\x6E\x67\x65\x64","\x72\x65\x74\x72\x79","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x66\x69\x6E\x64","\x41\x63\x74\x69\x6F\x6E","\x46\x61\x78\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6F\x6E","\x75\x6E\x73\x68\x69\x66\x74","\x72\x65\x6D\x6F\x76\x65","\x7B\x22\x74\x69\x74\x6C\x65\x22\x3A\x22\x44\x61\x73\x68\x62\x6F\x61\x72\x64\x22\x7D","\x72\x6F\x77\x73","\x63\x6F\x6C\x75\x6D\x6E\x73","\x77\x69\x64\x67\x65\x74\x73","\x6D\x61\x70","\x66\x6C\x61\x74\x74\x65\x6E","\x74\x61\x62\x6C\x65","\x70\x69\x65\x2D\x63\x68\x61\x72\x74","\x63\x6F\x75\x6E\x74\x65\x72","\x73\x65\x6C\x65\x63\x74","\x63\x6F\x6E\x66\x69\x67","\x66\x69\x65\x6C\x64\x73","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x5F\x68\x69\x73\x74\x6F\x72\x79","\x72\x65\x70\x6F\x72\x74","\x77\x69\x64","\x75\x73\x65\x72\x73","\x63\x6D\x5F\x63\x6F\x6E\x74\x61\x63\x74\x73","\x76\x6F\x69\x63\x65\x5F\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x73","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x73","\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x73","\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x73","\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x73","\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x73\x6D\x73\x5F\x72\x6F\x6F\x6D\x73","\x73\x6D\x73\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x72\x6F\x6F\x6D\x73","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x45\x72\x72\x6F\x72\x20\x62\x75\x69\x6C\x64\x69\x6E\x67\x20\x71\x75\x65\x72\x79\x20\x66\x6F\x72\x20\x63\x6F\x75\x6E\x74\x65\x72\x20\x77\x69\x64\x67\x65\x74","\x53\x45\x4C\x45\x43\x54\x20\x25\x73\x20\x46\x52\x4F\x4D\x20\x25\x73","\x6E\x75\x6C\x6C","\x20\x57\x48\x45\x52\x45\x20\x25\x73","\x20\x41\x4E\x44\x20\x63\x72\x65\x61\x74\x65\x64\x41\x74\x20\x3E\x3D\x20\x27\x25\x73\x27","\x20\x57\x48\x45\x52\x45\x20\x63\x72\x65\x61\x74\x65\x64\x41\x74\x20\x3E\x3D\x20\x27\x25\x73\x27","\x64\x61\x79","\x73\x74\x61\x72\x74\x4F\x66","\x65\x6D\x70\x74\x79","\x20\x41\x4E\x44\x20","\x20\x57\x48\x45\x52\x45\x20","\x20\x3D\x3D\x3D\x3D\x20\x52\x45\x53\x55\x4C\x54\x49\x4E\x47\x20\x51\x55\x45\x52\x59\x20\x3D\x3D\x3D\x3D","\x20\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D","\x20\x3D\x3D\x3D\x3D\x57\x49\x44\x47\x45\x54\x20\x52\x45\x53\x55\x4C\x54\x49\x4E\x47\x20\x51\x55\x45\x52\x59\x20\x3D\x3D\x3D\x3D","\x4E\x4F\x20\x53\x55\x46\x46\x49\x43\x49\x45\x4E\x54\x20\x50\x45\x52\x4D\x49\x53\x53\x49\x4F\x4E\x53","\x62\x75\x69\x6C\x64\x46\x69\x6C\x74\x65\x72","\x45\x72\x72\x6F\x72\x20\x62\x75\x69\x6C\x64\x69\x6E\x67\x20\x71\x75\x65\x72\x79\x20\x66\x6F\x72\x20\x70\x69\x65\x2D\x63\x68\x61\x72\x74\x20\x77\x69\x64\x67\x65\x74","\x69\x73\x41\x72\x72\x61\x79","\x63\x6F\x6C\x75\x6D\x6E","\x61\x6C\x69\x61\x73","\x20\x41\x53\x20\x22","\x22","\x69\x73\x53\x74\x72\x69\x6E\x67","\x2A","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x53\x45\x4C\x45\x43\x54\x20\x25\x73\x20\x46\x52\x4F\x4D\x20\x25\x73\x25\x73","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x65\x76\x69\x6E\x67\x20\x43\x75\x73\x74\x6F\x6D\x20\x44\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x76\x61\x6C\x75\x65\x73\x20\x77\x69\x74\x68\x20\x69\x64","\x69\x73\x45\x6D\x70\x74\x79","\x77\x69\x64\x67\x65\x74\x56\x61\x6C\x75\x65\x73","\x43\x75\x73\x74\x6F\x6D\x20\x44\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x77\x69\x74\x68\x20\x69\x64","\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x6D\x6F\x64\x65\x6C","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x65\x76\x69\x6E\x67\x20\x77\x69\x64\x67\x65\x74\x20\x71\x75\x65\x72\x79\x20\x77\x69\x74\x68\x20\x69\x64","\x53\x45\x4C\x45\x43\x54","\x51\x75\x65\x72\x79\x54\x79\x70\x65\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65\x5F\x72\x65\x61\x64\x4F\x6E\x6C\x79","\x71\x75\x65\x72\x79","\x44\x61\x73\x68\x62\x6F\x61\x72\x64","\x6E\x65\x74\x77\x6F\x72\x6B\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x6E\x65\x74\x77\x6F\x72\x6B\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x64\x6F\x63","\x6E\x65\x74\x77\x6F\x72\x6B\x41\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74\x20\x2D\x20\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x76\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74\x20\x2D\x20\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x76\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74\x41\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x66\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x66\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x41\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x72\x75\x6E\x6B\x73\x52\x65\x77\x72\x69\x74\x65","\x72\x74\x70\x52\x65\x77\x72\x69\x74\x65","\x66\x61\x78\x4D\x65\x73\x73\x61\x67\x65\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x66\x61\x78\x4D\x65\x73\x73\x61\x67\x65\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x66\x61\x78\x52\x6F\x6F\x6D\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x73\x6F\x63\x6B\x65\x74","\x63\x6F\x6E\x73\x6F\x6C\x65","\x72\x65\x73\x75\x6C\x74","\x63\x6F\x6D\x6D\x61\x6E\x64","\x41\x67\x65\x6E\x74\x20\x25\x73\x20\x25\x73\x20\x65\x72\x72\x6F\x72\x3A","\x70\x61\x75\x73\x65\x64","\x41\x67\x65\x6E\x74\x20\x25\x73\x20\x25\x73","\x75\x6E\x70\x61\x75\x73\x65\x64","\x51\x75\x65\x75\x65\x50\x61\x75\x73\x65","\x61\x63\x63\x6F\x75\x6E\x74\x69\x64","\x72\x65\x70\x6F\x72\x74\x46\x61\x78\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x63\x74\x69\x6F\x6E\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x72\x65\x61\x6C\x74\x69\x6D\x65\x51\x75\x65\x75\x65\x4D\x65\x6D\x62\x65\x72\x73","\x74\x72\x69\x67\x67\x65\x72\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x74\x72\x69\x67\x67\x65\x72\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x74\x72\x69\x67\x67\x65\x72\x41\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x6F\x6F\x6C\x73\x41\x63\x74\x69\x6F\x6E\x41\x66\x74\x65\x72\x42\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x74\x6F\x6F\x6C\x73\x41\x63\x74\x69\x6F\x6E\x41\x66\x74\x65\x72\x42\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x74\x6F\x6F\x6C\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x41\x66\x74\x65\x72\x42\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x74\x6F\x6F\x6C\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x41\x66\x74\x65\x72\x42\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x41\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x54\x72\x69\x67\x67\x65\x72\x73","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x41\x4D\x49\x20\x50\x72\x75\x6E\x65\x20\x65\x72\x72\x6F\x72","\x70\x72\x75\x6E\x65","\x63\x68\x61\x74\x52\x6F\x6F\x6D\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x6D\x73\x4D\x65\x73\x73\x61\x67\x65\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x6D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x63\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x63\x72\x65\x61\x74\x65\x43\x68\x61\x74\x51\x75\x65\x75\x65\x53\x65\x73\x73\x69\x6F\x6E","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x4D\x65\x73\x73\x61\x67\x65\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x63\x72\x65\x61\x74\x65\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x53\x65\x73\x73\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65\x46\x61\x78\x51\x75\x65\x75\x65\x53\x65\x73\x73\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x53\x65\x73\x73\x69\x6F\x6E","\x63\x68\x65\x63\x6B\x54\x72\x69\x67\x67\x65\x72\x73","\x63\x72\x65\x61\x74\x65\x53\x6D\x73\x51\x75\x65\x75\x65\x53\x65\x73\x73\x69\x6F\x6E","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x49\x6E\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C","\x69\x6E\x62\x6F\x75\x6E\x64\x49\x6E\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65","\x72\x65\x70\x6F\x72\x74\x4D\x6F\x76\x65","\x61\x67\x69\x4E\x65\x77\x45\x78\x74\x65\x6E","\x76\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x76\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x76\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x41\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x75\x73\x74\x6F\x6D\x44\x61\x73\x68\x62\x6F\x61\x72\x64\x56\x61\x6C\x75\x65\x73","\x72\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x55\x70\x64\x61\x74\x65","\x72\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65"];_0xdf66[0];var _=require(_0xdf66[1]);var BPromise=require(_0xdf66[2]);var util=require(_0xdf66[3]);var moment=require(_0xdf66[4]);var fs=require(_0xdf66[5]);var path=require(_0xdf66[6]);var Util=require(_0xdf66[7]);var amiUtil=require(_0xdf66[8]);var exec=require(_0xdf66[10])[_0xdf66[9]];var fse=require(_0xdf66[11]);var kue=require(_0xdf66[12]);var reportBuildUtils=require(_0xdf66[13]);var logger=require(_0xdf66[15])(_0xdf66[14]);var faxLogger=require(_0xdf66[15])(_0xdf66[16]);var config=require(_0xdf66[17]);var events=require(_0xdf66[18]);var models=require(_0xdf66[19]);var channels=[_0xdf66[20],_0xdf66[21],_0xdf66[22],_0xdf66[16],_0xdf66[23],_0xdf66[24]];var faxaccounts=[];var bill=[];var voiceQueues=[];var activeTrunks={};var videoOnUrls={};var extraVars={};models[_0xdf66[34]][_0xdf66[33]]({where:{active:true},attributes:[_0xdf66[29],_0xdf66[30]],raw:true})[_0xdf66[32]](function(_0xc052x1a){_[_0xdf66[31]](_0xc052x1a,function(_0xc052x1b){activeTrunks[_0xc052x1b[_0xdf66[29]]]= _0xc052x1b[_0xdf66[30]]})})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[25],_0xc052x19[_0xdf66[26]])});var ami= new require(_0xdf66[40])(config[_0xdf66[36]][_0xdf66[35]],config[_0xdf66[36]][_0xdf66[37]],config[_0xdf66[36]][_0xdf66[38]],config[_0xdf66[36]][_0xdf66[39]],true);var amiAction=BPromise[_0xdf66[42]](ami[_0xdf66[41]]);var kueConfig={prefix:_0xdf66[43],jobEvents:false,redis:{port:6379,host:config[_0xdf66[44]]}};if(config[_0xdf66[45]]){kueConfig[_0xdf66[47]][_0xdf66[46]]= _0xdf66[39];kueConfig[_0xdf66[47]][_0xdf66[48]]= {password:config[_0xdf66[45]]}};var q=kue[_0xdf66[49]](kueConfig);q[_0xdf66[56]](_0xdf66[50],function(_0xc052x20,_0xc052x21){try{events[_0xc052x20[_0xdf66[53]][_0xdf66[29]]](_0xc052x20[_0xdf66[53]][_0xdf66[52]],_0xc052x20[_0xdf66[53]][_0xdf66[54]]?amiAction:undefined)[_0xdf66[51]](function(){_0xc052x21()})}catch(e){logger[_0xdf66[27]](_0xdf66[55],_0xc052x20[_0xdf66[53]][_0xdf66[29]],e)}});function addToQueue(_0xc052x23,_0xc052x24,_0xc052x25){_0xc052x24[_0xdf66[57]]= moment()[_0xdf66[59]](_0xdf66[58]);q[_0xdf66[63]](_0xdf66[50],{name:_0xc052x23,evt:_0xc052x24,needAmi:_0xc052x25})[_0xdf66[62]](true)[_0xdf66[61]](function(_0xc052x19){if(_0xc052x19){logger[_0xdf66[27]](_0xdf66[60],_0xc052x19)}else {}})}models[_0xdf66[65]][_0xdf66[33]]({raw:true})[_0xdf66[32]](function(_0xc052x26){voiceQueues= _0xc052x26})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[64],_0xc052x19)});ami[_0xdf66[66]]();setInterval(function(){if(global[_0xdf66[67]]){global[_0xdf66[67]]()}else {logger[_0xdf66[70]](_0xdf66[68]+ _0xdf66[69])}},20000);process[_0xdf66[74]](_0xdf66[71],function(_0xc052x27){logger[_0xdf66[73]](_0xdf66[72],_0xc052x27)});ami[_0xdf66[74]](_0xdf66[75],events[_0xdf66[75]]);ami[_0xdf66[74]](_0xdf66[76],events[_0xdf66[76]]);ami[_0xdf66[74]](_0xdf66[77],events[_0xdf66[77]]);ami[_0xdf66[74]](_0xdf66[27],events[_0xdf66[27]]);ami[_0xdf66[74]](_0xdf66[78],function(_0xc052x24){try{addToQueue(_0xdf66[79],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[80],err)}});ami[_0xdf66[74]](_0xdf66[81],function(_0xc052x24){try{addToQueue(_0xdf66[81],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[82],err)}});ami[_0xdf66[74]](_0xdf66[83],function(_0xc052x24){try{addToQueue(_0xdf66[83],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[84],err)}});ami[_0xdf66[74]](_0xdf66[85],function(_0xc052x24){try{addToQueue(_0xdf66[85],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[86],err)}});ami[_0xdf66[74]](_0xdf66[87],function(_0xc052x24){try{if(extraVars[_0xc052x24[_0xdf66[88]]]){_0xc052x24[_0xdf66[89]]= extraVars[_0xc052x24[_0xdf66[88]]]};addToQueue(_0xdf66[87],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[90],err)}});ami[_0xdf66[74]](_0xdf66[91],function(_0xc052x24){try{if(extraVars[_0xc052x24[_0xdf66[88]]]){_0xc052x24[_0xdf66[89]]= extraVars[_0xc052x24[_0xdf66[88]]]};if(bill[_0xc052x24[_0xdf66[88]]]&& bill[_0xc052x24[_0xdf66[88]]][_0xdf66[88]]!== _0xc052x24[_0xdf66[88]]){if(!bill[_0xc052x24[_0xdf66[88]]][_0xdf66[92]]){bill[_0xc052x24[_0xdf66[88]]][_0xdf66[92]]= true}else {delete bill[_0xc052x24[_0xdf66[88]]][_0xdf66[93]];_0xc052x24[_0xdf66[88]]= bill[_0xc052x24[_0xdf66[88]]][_0xdf66[88]]}};addToQueue(_0xdf66[91],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[94],err)}});ami[_0xdf66[74]](_0xdf66[95],function(_0xc052x24){try{if(bill[_0xc052x24[_0xdf66[96]]]&& (bill[_0xc052x24[_0xdf66[96]]][_0xdf66[97]]=== _0xdf66[98]|| bill[_0xc052x24[_0xdf66[96]]][_0xdf66[99]]=== _0xdf66[98])&& bill[_0xc052x24[_0xdf66[96]]][_0xdf66[100]]){_0xc052x24[_0xdf66[98]]= bill[_0xc052x24[_0xdf66[96]]][_0xdf66[103]][_0xdf66[102]](_0xdf66[101])[0];_0xc052x24[_0xdf66[104]]= bill[_0xc052x24[_0xdf66[96]]][_0xdf66[100]][_0xdf66[102]](/\/|-/)[1];addToQueue(_0xdf66[95],_0xc052x24,true)}}catch(err){logger[_0xdf66[27]](_0xdf66[105],err)}});ami[_0xdf66[74]](_0xdf66[106],function(_0xc052x24){try{if(videoOnUrls[_0xc052x24[_0xdf66[88]]]){logger[_0xdf66[73]](_0xdf66[107],_0xc052x24[_0xdf66[88]],_0xdf66[108]);_0xc052x24[_0xdf66[109]]= videoOnUrls[_0xc052x24[_0xdf66[88]]];events[_0xdf66[110]](_0xc052x24)};if(extraVars[_0xc052x24[_0xdf66[88]]]){_0xc052x24[_0xdf66[89]]= extraVars[_0xc052x24[_0xdf66[88]]]};addToQueue(_0xdf66[106],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[111],err)}});ami[_0xdf66[74]](_0xdf66[112],events[_0xdf66[112]]);ami[_0xdf66[74]](_0xdf66[113],function(_0xc052x24){try{if(bill[_0xc052x24[_0xdf66[88]]]){var _0xc052x28=_0xc052x24[_0xdf66[114]][_0xdf66[102]](/\/|-/)[1];if(bill[_0xc052x24[_0xdf66[88]]][_0xdf66[115]][_0xc052x28]){_0xc052x24[_0xdf66[116]]= _0xdf66[117];delete bill[_0xc052x24[_0xdf66[88]]][_0xdf66[115]][_0xc052x28]}else {_0xc052x24[_0xdf66[116]]= _0xdf66[113]}};addToQueue(_0xdf66[113],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[118],err)}});ami[_0xdf66[74]](_0xdf66[119],function(_0xc052x24){try{addToQueue(_0xdf66[119],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[120],err)}});ami[_0xdf66[74]](_0xdf66[121],function(_0xc052x24){try{addToQueue(_0xdf66[121],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[122],err)}});ami[_0xdf66[74]](_0xdf66[123],function(_0xc052x24){try{addToQueue(_0xdf66[123],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[124],err)}});ami[_0xdf66[74]](_0xdf66[125],function(_0xc052x24){try{addToQueue(_0xdf66[125],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[126],err)}});ami[_0xdf66[74]](_0xdf66[127],function(_0xc052x24){try{addToQueue(_0xdf66[127],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[128],err)}});ami[_0xdf66[74]](_0xdf66[129],function(_0xc052x24){try{addToQueue(_0xdf66[129],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[130],err)}});ami[_0xdf66[74]](_0xdf66[131],function(_0xc052x24){try{addToQueue(_0xdf66[131],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[132],err)}});ami[_0xdf66[74]](_0xdf66[133],function(_0xc052x24){try{if(bill[_0xc052x24[_0xdf66[88]]]){bill[_0xc052x24[_0xdf66[88]]][_0xdf66[98]]= _0xc052x24[_0xdf66[98]];bill[_0xc052x24[_0xdf66[88]]][_0xdf66[93]]= true};addToQueue(_0xdf66[133],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[134],err)}});ami[_0xdf66[74]](_0xdf66[135],function(_0xc052x24){try{if(bill[_0xc052x24[_0xdf66[88]]]){_0xc052x24[_0xdf66[88]]= bill[_0xc052x24[_0xdf66[88]]][_0xdf66[88]]};addToQueue(_0xdf66[135],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[136],err)}});ami[_0xdf66[74]](_0xdf66[137],function(_0xc052x24){try{if(bill[_0xc052x24[_0xdf66[138]]]){bill[_0xc052x24[_0xdf66[138]]][_0xdf66[139]]= _0xdf66[137];bill[_0xc052x24[_0xdf66[138]]][_0xdf66[140]]= true;bill[_0xc052x24[_0xdf66[138]]][_0xdf66[141]]= _0xdf66[142];bill[_0xc052x24[_0xdf66[138]]][_0xdf66[143]]= _0xc052x24[_0xdf66[144]];bill[_0xc052x24[_0xdf66[138]]][_0xdf66[145]]= _0xc052x24[_0xdf66[146]];ami[_0xdf66[148]](_0xdf66[131],_[_0xdf66[147]](bill[_0xc052x24[_0xdf66[138]]]));bill[_0xc052x24[_0xdf66[138]]][_0xdf66[115]]= {};delete bill[_0xc052x24[_0xdf66[138]]][_0xdf66[139]];bill[_0xc052x24[_0xdf66[138]]][_0xdf66[149]]= true;_0xc052x24[_0xdf66[98]]= bill[_0xc052x24[_0xdf66[138]]][_0xdf66[98]]|| null};_0xc052x24[_0xdf66[104]]= _0xc052x24[_0xdf66[150]][_0xdf66[102]](/\/|-/)[1];addToQueue(_0xdf66[137],_0xc052x24,true)}catch(err){logger[_0xdf66[27]](_0xdf66[151],err)}});ami[_0xdf66[74]](_0xdf66[152],function(_0xc052x24){try{if(bill[_0xc052x24[_0xdf66[153]]]){bill[_0xc052x24[_0xdf66[153]]][_0xdf66[139]]= _0xdf66[152];bill[_0xc052x24[_0xdf66[153]]][_0xdf66[88]]= _0xc052x24[_0xdf66[144]];bill[_0xc052x24[_0xdf66[144]]]&& (bill[_0xc052x24[_0xdf66[144]]][_0xdf66[88]]= _0xc052x24[_0xdf66[153]]);ami[_0xdf66[148]](_0xdf66[131],_[_0xdf66[147]](bill[_0xc052x24[_0xdf66[153]]]));delete bill[_0xc052x24[_0xdf66[153]]][_0xdf66[93]];delete bill[_0xc052x24[_0xdf66[153]]][_0xdf66[139]];_0xc052x24[_0xdf66[98]]= bill[_0xc052x24[_0xdf66[153]]][_0xdf66[98]]|| null};_0xc052x24[_0xdf66[104]]= _0xc052x24[_0xdf66[154]][_0xdf66[102]](/\/|-/)[1];addToQueue(_0xdf66[152],_0xc052x24,true)}catch(err){logger[_0xdf66[27]](_0xdf66[155],err)}});ami[_0xdf66[74]](_0xdf66[156],function(_0xc052x24){try{addToQueue(_0xdf66[156],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[157],err)}});ami[_0xdf66[74]](_0xdf66[115],function(_0xc052x24){try{if(bill[_0xc052x24[_0xdf66[88]]]){var _0xc052x28=_0xc052x24[_0xdf66[114]][_0xdf66[102]](/\/|-/)[1];bill[_0xc052x24[_0xdf66[88]]][_0xdf66[115]][_0xc052x28]= bill[_0xc052x24[_0xdf66[88]]][_0xdf66[115]][_0xc052x28]?false:true};addToQueue(_0xdf66[115],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[158],err)}});ami[_0xdf66[74]](_0xdf66[159],function(_0xc052x24){try{addToQueue(_0xdf66[159],_0xc052x24)}catch(err){faxLogger[_0xdf66[27]](_0xdf66[160],err)}});ami[_0xdf66[74]](_0xdf66[161],function(_0xc052x24){try{addToQueue(_0xdf66[161],_0xc052x24)}catch(err){faxLogger[_0xdf66[27]](_0xdf66[162],err)}});ami[_0xdf66[74]](_0xdf66[163],function(_0xc052x24){try{addToQueue(_0xdf66[163],_0xc052x24)}catch(err){faxLogger[_0xdf66[27]](_0xdf66[164],err)}});amiAction({action:_0xdf66[165]});var applications=[_0xdf66[166],_0xdf66[98],_0xdf66[167],_0xdf66[168],_0xdf66[169]];var dispositions=[_0xdf66[170],_0xdf66[171],_0xdf66[171],_0xdf66[170],_0xdf66[170],_0xdf66[170],_0xdf66[172],_0xdf66[173],_0xdf66[171],_0xdf66[171],_0xdf66[171]];function newchannel(_0xc052x24){if(!bill[_0xc052x24[_0xdf66[88]]]&& !bill[_0xc052x24[_0xdf66[96]]]){bill[_0xc052x24[_0xdf66[88]]]= {uniqueid:_0xc052x24[_0xdf66[88]],linkedid:_0xc052x24[_0xdf66[96]],type:_0xdf66[174],tag:_0xdf66[175],accountcode:_0xc052x24[_0xdf66[176]],source:_0xc052x24[_0xdf66[177]],destination:_0xc052x24[_0xdf66[178]],destinationcontext:_0xc052x24[_0xdf66[179]],callerid:util[_0xdf66[59]](_0xdf66[180],_0xc052x24[_0xdf66[181]],_0xc052x24[_0xdf66[177]]),channel:_0xc052x24[_0xdf66[182]],destinationchannel:_0xdf66[183],lastapplication:_0xdf66[183],lastdata:_0xdf66[183],starttime:moment()[_0xdf66[59]](_0xdf66[58]),answertime:_0xdf66[183],endtime:_0xdf66[183],duration:0,billableseconds:0,disposition:dispositions[_[_0xdf66[185]](_0xc052x24[_0xdf66[184]])],amaflags:_0xdf66[186],unmanaged:false,calleridnum:_0xc052x24[_0xdf66[177]],calleridname:_0xc052x24[_0xdf66[181]],dialend:{}}}}function newstate(_0xc052x24){if(bill[_0xc052x24[_0xdf66[96]]]&& _0xc052x24[_0xdf66[88]]!== _0xc052x24[_0xdf66[96]]&& _0xc052x24[_0xdf66[184]]=== _0xdf66[187]){bill[_0xc052x24[_0xdf66[96]]][_0xdf66[188]]= moment()[_0xdf66[59]](_0xdf66[58]);delete bill[_0xc052x24[_0xdf66[96]]][_0xdf66[93]];bill[_0xc052x24[_0xdf66[96]]][_0xdf66[189]]= dispositions[_[_0xdf66[185]](_0xc052x24[_0xdf66[184]])];if(_[_0xdf66[193]]([_0xdf66[190],_0xdf66[191]],bill[_0xc052x24[_0xdf66[96]]][_0xdf66[192]])){bill[_0xc052x24[_0xdf66[96]]][_0xdf66[176]]= _0xc052x24[_0xdf66[176]]};if(!_[_0xdf66[193]]([_0xdf66[194],_0xdf66[191]],bill[_0xc052x24[_0xdf66[96]]][_0xdf66[192]])){bill[_0xc052x24[_0xdf66[96]]][_0xdf66[195]]= _0xc052x24[_0xdf66[196]];bill[_0xc052x24[_0xdf66[96]]][_0xdf66[197]]= util[_0xdf66[59]](_0xdf66[180],_0xc052x24[_0xdf66[198]],_0xc052x24[_0xdf66[196]])};bill[_0xc052x24[_0xdf66[96]]][_0xdf66[96]]= _0xc052x24[_0xdf66[88]];bill[_0xc052x24[_0xdf66[96]]][_0xdf66[100]]= _0xc052x24[_0xdf66[182]];bill[_0xc052x24[_0xdf66[96]]][_0xdf66[199]]= false}}function newexten(_0xc052x24,_0xc052x2e){if(bill[_0xc052x24[_0xdf66[88]]]){_0xc052x24[_0xdf66[200]]= _0xc052x24[_0xdf66[200]][_0xdf66[201]]();if(bill[_0xc052x24[_0xdf66[88]]][_0xdf66[97]]=== _0xdf66[98]|| bill[_0xc052x24[_0xdf66[88]]][_0xdf66[99]]=== _0xdf66[98]){if(bill[_0xc052x24[_0xdf66[88]]][_0xdf66[93]]&& !bill[_0xc052x24[_0xdf66[88]]][_0xdf66[149]]){if(bill[_0xc052x24[_0xdf66[88]]][_0xdf66[202]]){ami[_0xdf66[148]](_0xdf66[203],_[_0xdf66[147]](bill[_0xc052x24[_0xdf66[88]]]))}else {if(!bill[_0xc052x24[_0xdf66[88]]][_0xdf66[199]]){bill[_0xc052x24[_0xdf66[88]]][_0xdf66[199]]= true;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[139]]= _0xdf66[204]};ami[_0xdf66[148]](_0xdf66[205],_[_0xdf66[147]](bill[_0xc052x24[_0xdf66[88]]]))}};bill[_0xc052x24[_0xdf66[88]]][_0xdf66[99]]= null;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[199]]= false;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[202]]= false;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[139]]= null;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[206]]= null;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[207]]= null;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[208]]= null};delete bill[_0xc052x24[_0xdf66[88]]][_0xdf66[93]];if(!_0xc052x2e){bill[_0xc052x24[_0xdf66[88]]][_0xdf66[97]]= _0xc052x24[_0xdf66[200]];if(_[_0xdf66[193]](applications,_0xc052x24[_0xdf66[200]])){if(_0xc052x24[_0xdf66[200]]=== _0xdf66[166]){var _0xc052x2f=_0xc052x24[_0xdf66[209]][_0xdf66[201]]();if(_[_0xdf66[211]](_0xc052x2f,_0xdf66[210])){_0xc052x2f= _0xc052x2f[_0xdf66[102]](_0xdf66[212]);var _0xc052x30=_0xc052x2f[0][_0xdf66[213]](/cdr\((.*)\)/);if(_0xc052x30){bill[_0xc052x24[_0xdf66[88]]][_0xc052x30[1]]= _0xc052x2f[1];if(_0xc052x30[1]=== _0xdf66[192]&& _0xc052x2f[1]=== _0xdf66[191]){var _0xc052x31=bill[_0xc052x24[_0xdf66[88]]][_0xdf66[182]][_0xdf66[102]](/\/|-/)[1];activeTrunks[_0xc052x31]&& (bill[_0xc052x24[_0xdf66[88]]][_0xdf66[195]]= activeTrunks[_0xc052x31])}}}else {if(_[_0xdf66[211]](_0xc052x2f,_0xdf66[214])){bill[_0xc052x24[_0xdf66[88]]][_0xdf66[177]]= _0xc052x2f[_0xdf66[102]](_0xdf66[212])[1];bill[_0xc052x24[_0xdf66[88]]][_0xdf66[197]]= util[_0xdf66[59]](_0xdf66[180],bill[_0xc052x24[_0xdf66[88]]][_0xdf66[181]],bill[_0xc052x24[_0xdf66[88]]][_0xdf66[177]]);bill[_0xc052x24[_0xdf66[88]]][_0xdf66[192]]=== _0xdf66[191]&& (bill[_0xc052x24[_0xdf66[88]]][_0xdf66[215]]= bill[_0xc052x24[_0xdf66[88]]][_0xdf66[177]])}else {if(_[_0xdf66[211]](_0xc052x2f,_0xdf66[216])){bill[_0xc052x24[_0xdf66[88]]][_0xdf66[181]]= _0xc052x2f[_0xdf66[102]](_0xdf66[212])[1];bill[_0xc052x24[_0xdf66[88]]][_0xdf66[197]]= util[_0xdf66[59]](_0xdf66[180],bill[_0xc052x24[_0xdf66[88]]][_0xdf66[181]],bill[_0xc052x24[_0xdf66[88]]][_0xdf66[177]])}}}};bill[_0xc052x24[_0xdf66[88]]][_0xdf66[217]]= _0xc052x24[_0xdf66[200]];bill[_0xc052x24[_0xdf66[88]]][_0xdf66[103]]= _0xc052x24[_0xdf66[209]]};if(_0xc052x24[_0xdf66[200]]=== _0xdf66[98]){bill[_0xc052x24[_0xdf66[88]]][_0xdf66[98]]= _0xc052x24[_0xdf66[209]][_0xdf66[102]](_0xdf66[101])[0];bill[_0xc052x24[_0xdf66[88]]][_0xdf66[93]]= true}}else {bill[_0xc052x24[_0xdf66[88]]][_0xdf66[99]]= _0xc052x24[_0xdf66[200]][_0xdf66[201]]();if(_0xc052x24[_0xdf66[200]]=== _0xdf66[98]){bill[_0xc052x24[_0xdf66[88]]][_0xdf66[98]]= _0xc052x24[_0xdf66[98]];bill[_0xc052x24[_0xdf66[88]]][_0xdf66[93]]= true}}}}function varset(_0xc052x24){if(_0xc052x24[_0xdf66[220]][_0xdf66[219]](_0xdf66[218])){logger[_0xdf66[73]](_0xdf66[221],_0xc052x24[_0xdf66[88]],_0xc052x24[_0xdf66[222]]);videoOnUrls[_0xc052x24[_0xdf66[88]]]= _0xc052x24[_0xdf66[222]][_0xdf66[223]](/\\/g,_0xdf66[183])}else {if(_0xc052x24[_0xdf66[220]][_0xdf66[219]](_0xdf66[89])){extraVars[_0xc052x24[_0xdf66[88]]]= _0xc052x24[_0xdf66[222]]}};if(bill[_0xc052x24[_0xdf66[88]]]){if(_0xc052x24[_0xdf66[220]][_0xdf66[219]](_0xdf66[224])){bill[_0xc052x24[_0xdf66[88]]][_0xdf66[199]]= true;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[202]]= false;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[149]]= false;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[139]]= _0xc052x24[_0xdf66[222]][_0xdf66[201]]();if(bill[_0xc052x24[_0xdf66[88]]][_0xdf66[139]]=== _0xdf66[225]){bill[_0xc052x24[_0xdf66[88]]][_0xdf66[63]]= true;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[179]]= _0xc052x24[_0xdf66[179]];bill[_0xc052x24[_0xdf66[88]]][_0xdf66[178]]= _0xc052x24[_0xdf66[178]];ami[_0xdf66[148]](_0xdf66[205],_[_0xdf66[147]](bill[_0xc052x24[_0xdf66[88]]]));delete bill[_0xc052x24[_0xdf66[88]]][_0xdf66[93]];bill[_0xc052x24[_0xdf66[88]]][_0xdf66[63]]= false;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[199]]= false;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[202]]= false;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[139]]= null;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[206]]= null;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[207]]= null;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[208]]= null}}}}function queuecallerabandon(_0xc052x24){if(bill[_0xc052x24[_0xdf66[88]]]&& !bill[_0xc052x24[_0xdf66[88]]][_0xdf66[199]]){bill[_0xc052x24[_0xdf66[88]]][_0xdf66[202]]= true;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[149]]= false;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[206]]= _0xc052x24[_0xdf66[206]];bill[_0xc052x24[_0xdf66[88]]][_0xdf66[207]]= _0xc052x24[_0xdf66[207]];bill[_0xc052x24[_0xdf66[88]]][_0xdf66[208]]= _0xc052x24[_0xdf66[208]]}}function hangup(_0xc052x24){if(bill[_0xc052x24[_0xdf66[88]]]){var _0xc052x35=moment();bill[_0xc052x24[_0xdf66[88]]][_0xdf66[226]]= _0xc052x35[_0xdf66[59]](_0xdf66[58]);bill[_0xc052x24[_0xdf66[88]]][_0xdf66[227]]= _0xc052x35[_0xdf66[230]](bill[_0xc052x24[_0xdf66[88]]][_0xdf66[228]],_0xdf66[229]);if(bill[_0xc052x24[_0xdf66[88]]][_0xdf66[188]]){bill[_0xc052x24[_0xdf66[88]]][_0xdf66[231]]= _0xc052x35[_0xdf66[230]](bill[_0xc052x24[_0xdf66[88]]][_0xdf66[188]],_0xdf66[229])};ami[_0xdf66[148]](_0xdf66[78],bill[_0xc052x24[_0xdf66[88]]]);if(bill[_0xc052x24[_0xdf66[88]]][_0xdf66[93]]|| (bill[_0xc052x24[_0xdf66[88]]][_0xdf66[149]]&& !bill[_0xc052x24[_0xdf66[88]]][_0xdf66[188]])){if(bill[_0xc052x24[_0xdf66[88]]][_0xdf66[202]]){ami[_0xdf66[148]](_0xdf66[203],bill[_0xc052x24[_0xdf66[88]]])}else {if(!bill[_0xc052x24[_0xdf66[88]]][_0xdf66[199]]){bill[_0xc052x24[_0xdf66[88]]][_0xdf66[199]]= true;bill[_0xc052x24[_0xdf66[88]]][_0xdf66[139]]= _0xdf66[204]};ami[_0xdf66[148]](_0xdf66[205],bill[_0xc052x24[_0xdf66[88]]])}};delete bill[_0xc052x24[_0xdf66[88]]]}}ami[_0xdf66[74]](_0xdf66[205],function(_0xc052x24){try{addToQueue(_0xdf66[232],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[233],err)}});ami[_0xdf66[74]](_0xdf66[203],function(_0xc052x24){try{addToQueue(_0xdf66[234],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[235],err)}});ami[_0xdf66[74]](_0xdf66[236],function(_0xc052x24){try{newchannel(_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[237],err)}});ami[_0xdf66[74]](_0xdf66[238],function(_0xc052x24){try{newstate(_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[239],err)}});ami[_0xdf66[74]](_0xdf66[240],function(_0xc052x24){try{newexten(_0xc052x24,false)}catch(err){logger[_0xdf66[27]](_0xdf66[241],err)}});ami[_0xdf66[74]](_0xdf66[242],function(_0xc052x24){try{varset(_0xc052x24);addToQueue(_0xdf66[242],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[243],err)}});ami[_0xdf66[74]](_0xdf66[234],function(_0xc052x24){try{queuecallerabandon(_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[244],err)}});ami[_0xdf66[74]](_0xdf66[245],function(_0xc052x24){try{delete videoOnUrls[_0xc052x24[_0xdf66[88]]];delete extraVars[_0xc052x24[_0xdf66[88]]];hangup(_0xc052x24);addToQueue(_0xdf66[245],_0xc052x24)}catch(err){logger[_0xdf66[27]](_0xdf66[246],err)}});function handlePause(_0xc052x37,_0xc052x38){return function(_0xc052x39){var _0xc052x3a=_0xc052x39[_0xdf66[247]];var _0xc052x3b=false;var _0xc052x3c,_0xc052x3d;_0xc052x3c= _0xc052x3d= _0xc052x37[_0xdf66[248]][_0xdf66[192]]|| _0xc052x38[_0xdf66[249]]|| _0xc052x38[_0xdf66[250]];if(_[_0xdf66[211]](_0xc052x3d,_0xdf66[251])){_0xc052x3d= _0xc052x3d[_0xdf66[252]](1);_0xc052x3b= true};var _0xc052x3e={id:_0xc052x39[_0xdf66[253]],voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,openchannelPause:true,pauseType:_0xc052x3c,lastPauseAt:moment()[_0xdf66[59]](_0xdf66[58])};return _0xc052x39[_0xdf66[269]](_0xc052x3e)[_0xdf66[32]](function(_0xc052x44){if(_0xc052x44){return events[_0xdf66[268]](_[_0xdf66[267]]({newValues:_0xc052x3e},_0xc052x44[_0xdf66[266]]))}})[_0xdf66[32]](function(){var _0xc052x43=moment()[_0xdf66[59]](_0xdf66[58]);return models[_0xdf66[264]][_0xdf66[265]]({duration:moment(_0xc052x43)[_0xdf66[230]](moment(_0xc052x3a),_0xdf66[229]),exitAt:_0xc052x43},{where:{membername:_0xc052x39[_0xdf66[29]],interface:util[_0xdf66[59]](_0xdf66[256],_0xdf66[257],_0xc052x39[_0xdf66[29]]),type:_0xdf66[258],exitAt:null}})})[_0xdf66[32]](function(){var _0xc052x3f=(_0xc052x3e[_0xdf66[254]]&& !_0xc052x3b)?channels:_[_0xdf66[255]](channels,function(_0xc052x40){return _0xc052x40!== _0xdf66[20]});var _0xc052x41=[];_0xc052x3f[_0xdf66[31]](function(_0xc052x42){_0xc052x41[_0xdf66[262]]({channel:_0xc052x42,membername:_0xc052x39[_0xdf66[29]],interface:util[_0xdf66[59]](_0xdf66[256],_0xdf66[257],_0xc052x39[_0xdf66[29]]),type:_0xdf66[258],enterAt:moment()[_0xdf66[59]](_0xdf66[58]),data1:_0xc052x3d,data2:_0xc052x38[_0xdf66[259]],data4:_0xc052x3d,role:_0xc052x39[_0xdf66[260]],internal:_0xc052x39[_0xdf66[174]],uniqueid:_0xc052x38[_0xdf66[261]]})});return models[_0xdf66[264]][_0xdf66[263]](_0xc052x41,{raw:true,individualHooks:true})})}}function handleUnpause(_0xc052x37,_0xc052x38){return function(_0xc052x39){var _0xc052x3e;if(!_0xc052x37[_0xdf66[248]]){_0xc052x37[_0xdf66[248]]= {}};if(_0xc052x37[_0xdf66[248]][_0xdf66[192]]!== _0xdf66[270]){events[_0xdf66[272]](_0xc052x39[_0xdf66[29]],_0xc052x39[_0xdf66[271]],false)};switch(_0xc052x37[_0xdf66[248]][_0xdf66[182]]){case _0xdf66[20]:_0xc052x3e= {id:_0xc052x39[_0xdf66[253]],voicePause:false};return _0xc052x39[_0xdf66[269]](_0xc052x3e)[_0xdf66[32]](function(_0xc052x44){return events[_0xdf66[268]](_[_0xdf66[267]]({newValues:_0xc052x3e},_0xc052x44[_0xdf66[266]]))})[_0xdf66[32]](function(){return models[_0xdf66[264]][_0xdf66[274]]({where:{channel:_0xc052x37[_0xdf66[248]][_0xdf66[182]],membername:_0xc052x39[_0xdf66[29]],interface:util[_0xdf66[59]](_0xdf66[256],_0xdf66[257],_0xc052x39[_0xdf66[29]]),type:_0xdf66[258],exitAt:null}})})[_0xdf66[32]](handleEntityNotFound({message:_0xdf66[273]}))[_0xdf66[32]](function(_0xc052x46){return _0xc052x46[_0xdf66[269]]({exitAt:moment()[_0xdf66[59]](_0xdf66[58])})})[_0xdf66[32]](function(){return _0xc052x39});case _0xdf66[21]:;case _0xdf66[22]:;case _0xdf66[16]:;case _0xdf66[23]:;case _0xdf66[24]:var _0xc052x47={};_0xc052x47[util[_0xdf66[59]](_0xdf66[275],_0xc052x37[_0xdf66[248]][_0xdf66[182]],_0xdf66[276])]= false;return _0xc052x39[_0xdf66[269]](_0xc052x47)[_0xdf66[32]](function(_0xc052x39){_0xc052x47[_0xdf66[253]]= _0xc052x39[_0xdf66[253]];return events[_0xdf66[268]](_[_0xdf66[267]]({newValues:_0xc052x47},_0xc052x39[_0xdf66[266]]))})[_0xdf66[32]](function(){return models[_0xdf66[264]][_0xdf66[274]]({where:{channel:_0xc052x37[_0xdf66[248]][_0xdf66[182]],membername:_0xc052x39[_0xdf66[29]],interface:util[_0xdf66[59]](_0xdf66[256],_0xdf66[257],_0xc052x39[_0xdf66[29]]),type:_0xdf66[258],exitAt:null}})})[_0xdf66[32]](handleEntityNotFound({message:_0xdf66[273]}))[_0xdf66[32]](function(_0xc052x46){return _0xc052x46[_0xdf66[269]]({exitAt:moment()[_0xdf66[59]](_0xdf66[58])})})[_0xdf66[32]](function(){return _0xc052x39});default:_0xc052x3e= {id:_0xc052x39[_0xdf66[253]],voicePause:false,mailPause:false,chatPause:false,faxPause:false,smsPause:false,openchannelPause:false};return _0xc052x39[_0xdf66[269]](_0xc052x3e)[_0xdf66[32]](function(_0xc052x44){return events[_0xdf66[268]](_[_0xdf66[267]]({newValues:_0xc052x3e},_0xc052x39[_0xdf66[266]]))})[_0xdf66[32]](function(){return models[_0xdf66[264]][_0xdf66[33]]({where:{membername:_0xc052x39[_0xdf66[29]],interface:util[_0xdf66[59]](_0xdf66[256],_0xdf66[257],_0xc052x39[_0xdf66[29]]),type:_0xdf66[258],exitAt:null}})})[_0xdf66[32]](function(_0xc052x48){var _0xc052x49=[];_0xc052x48[_0xdf66[31]](function(_0xc052x4a){_0xc052x49[_0xdf66[262]](_0xc052x4a[_0xdf66[269]]({exitAt:moment()[_0xdf66[59]](_0xdf66[58])}))});return BPromise[_0xdf66[277]](_0xc052x49)})[_0xdf66[32]](function(){return _0xc052x39})}}}function queueAddUpdate(_0xc052x4c,_0xc052x4d){return models[_0xdf66[278]][_0xdf66[274]]({where:{queue:_0xc052x4c,membername:_0xc052x4d}})[_0xdf66[32]](function(_0xc052x4e){if(_0xc052x4e){return _0xc052x4e[_0xdf66[269]]({logged:true,loggedAt:moment()[_0xdf66[59]](_0xdf66[58])})}})}function handleLogin(_0xc052x37,_0xc052x38){return function(_0xc052x39){return BPromise[_0xdf66[288]]()[_0xdf66[32]](function(){return events[_0xdf66[268]](_[_0xdf66[287]]({newValues:_0xc052x39[_0xdf66[266]]},_0xc052x39[_0xdf66[266]]))})[_0xdf66[32]](function(){return _0xc052x39[_0xdf66[286]]()})[_0xdf66[32]](function(voiceQueues){var _0xc052x50=[];voiceQueues[_0xdf66[31]](function(_0xc052x51){_0xc052x50[_0xdf66[262]](amiAction({action:_0xdf66[283],queue:_0xc052x51[_0xdf66[29]],interface:util[_0xdf66[59]](_0xdf66[256],_0xdf66[257],_0xc052x39[_0xdf66[29]]),membername:_0xc052x39[_0xdf66[29]],penalty:_0xc052x51[_0xdf66[278]][_0xdf66[284]],paused:_0xc052x39[_0xdf66[285]]})[_0xdf66[28]](function(_0xc052x19){if(_0xc052x19[_0xdf66[280]]=== _0xdf66[281]){return queueAddUpdate(_0xc052x51[_0xdf66[29]],_0xc052x39[_0xdf66[29]])};logger[_0xdf66[27]](_0xdf66[282],_0xc052x51[_0xdf66[29]],_0xc052x19)}))});return _0xc052x50})[_0xdf66[277]]()[_0xdf66[32]](function(){return models[_0xdf66[264]][_0xdf66[33]]({where:{membername:_0xc052x39[_0xdf66[29]],interface:util[_0xdf66[59]](_0xdf66[256],_0xdf66[257],_0xc052x39[_0xdf66[29]]),type:_0xdf66[279],exitAt:null}})})[_0xdf66[32]](function(_0xc052x48){var _0xc052x49=[];_0xc052x48[_0xdf66[31]](function(_0xc052x4a){_0xc052x49[_0xdf66[262]](_0xc052x4a[_0xdf66[269]]({exitAt:moment()[_0xdf66[59]](_0xdf66[58])}))});return BPromise[_0xdf66[277]](_0xc052x49)})[_0xdf66[32]](function(){var _0xc052x41=[];channels[_0xdf66[31]](function(_0xc052x42){_0xc052x41[_0xdf66[262]]({channel:_0xc052x42,membername:_0xc052x39[_0xdf66[29]],interface:util[_0xdf66[59]](_0xdf66[256],_0xdf66[257],_0xc052x39[_0xdf66[29]]),type:_0xdf66[279],enterAt:moment()[_0xdf66[59]](_0xdf66[58]),role:_0xc052x39[_0xdf66[260]],internal:_0xc052x39[_0xdf66[174]]})});return models[_0xdf66[264]][_0xdf66[263]](_0xc052x41,{raw:true,individualHooks:true})})[_0xdf66[32]](function(){return _0xc052x39})}}function logoutAgent(_0xc052x39){return BPromise[_0xdf66[288]]()[_0xdf66[32]](function(){return events[_0xdf66[268]](_[_0xdf66[287]]({newValues:{id:_0xc052x39[_0xdf66[253]],online:false}},_0xc052x39[_0xdf66[266]],{online:false}))})[_0xdf66[32]](function(){return models[_0xdf66[65]][_0xdf66[33]]()})[_0xdf66[32]](function(voiceQueues){var _0xc052x50=[];voiceQueues[_0xdf66[31]](function(_0xc052x51){_0xc052x50[_0xdf66[262]](amiAction({action:_0xdf66[289],queue:_0xc052x51[_0xdf66[29]],interface:util[_0xdf66[59]](_0xdf66[256],_0xdf66[257],_0xc052x39[_0xdf66[29]])})[_0xdf66[28]](function(_0xc052x19){}))});return BPromise[_0xdf66[277]](_0xc052x50)})[_0xdf66[32]](function(_0xc052x53){return models[_0xdf66[264]][_0xdf66[33]]({where:{membername:_0xc052x39[_0xdf66[29]],interface:util[_0xdf66[59]](_0xdf66[256],_0xdf66[257],_0xc052x39[_0xdf66[29]]),type:_0xdf66[279],exitAt:null}})})[_0xdf66[32]](function(_0xc052x48){var _0xc052x49=[];_0xc052x48[_0xdf66[31]](function(_0xc052x4a){_0xc052x49[_0xdf66[262]](_0xc052x4a[_0xdf66[269]]({exitAt:moment()[_0xdf66[59]](_0xdf66[58])}))});return BPromise[_0xdf66[277]](_0xc052x49)})}function handleLogout(_0xc052x37,_0xc052x38){return function(_0xc052x39){return BPromise[_0xdf66[288]]()[_0xdf66[32]](function(){if(_0xc052x39[_0xdf66[260]]=== _0xdf66[290]){return logoutAgent(_0xc052x39)}})[_0xdf66[32]](function(){return _0xc052x39[_0xdf66[269]]({online:false})})}}function handleQueueAdd(_0xc052x37,_0xc052x38){return function(_0xc052x39){var _0xc052x56=[];switch(_0xc052x37[_0xdf66[248]][_0xdf66[182]]){case _0xdf66[20]:_0xc052x37[_0xdf66[248]][_0xdf66[293]][_0xdf66[31]](function(_0xc052x4c){_0xc052x56[_0xdf66[262]](models[_0xdf66[278]][_0xdf66[292]]({where:{UserId:_0xc052x39[_0xdf66[253]],queue:_0xc052x4c},defaults:{queue:_0xc052x4c,location:util[_0xdf66[59]](_0xdf66[291],_0xc052x39[_0xdf66[29]]),membername:_0xc052x39[_0xdf66[29]],UserId:_0xc052x39[_0xdf66[253]],penalty:_0xc052x38[_0xdf66[259]]},individualHooks:true,raw:true}))});return BPromise[_0xdf66[277]](_0xc052x56)[_0xdf66[32]](function(){var _0xc052x50=[];_0xc052x37[_0xdf66[248]][_0xdf66[293]][_0xdf66[31]](function(_0xc052x4c){_0xc052x50[_0xdf66[262]](amiAction({action:_0xdf66[283],queue:_0xc052x4c,paused:_0xc052x39[_0xdf66[254]],interface:util[_0xdf66[59]](_0xdf66[256],_0xdf66[257],_0xc052x39[_0xdf66[29]]),membername:_0xc052x39[_0xdf66[29]]})[_0xdf66[28]](function(_0xc052x19){if(_0xc052x19[_0xdf66[280]]=== _0xdf66[281]){return queueAddUpdate(_0xc052x4c,_0xc052x39[_0xdf66[29]])};logger[_0xdf66[27]](_0xdf66[294],_0xc052x4c,_0xc052x19)}))});return BPromise[_0xdf66[277]](_0xc052x50)});case _0xdf66[21]:_0xc052x37[_0xdf66[248]][_0xdf66[293]][_0xdf66[31]](function(_0xc052x4c){_0xc052x56[_0xdf66[262]](models[_0xdf66[295]][_0xdf66[292]]({where:{UserId:_0xc052x39[_0xdf66[253]],ChatQueueId:_0xc052x4c[_0xdf66[253]]},defaults:{ChatQueueId:_0xc052x4c[_0xdf66[253]],queue:_0xc052x4c[_0xdf66[29]],UserId:_0xc052x39[_0xdf66[253]],penalty:_0xc052x38[_0xdf66[259]]},individualHooks:true,raw:true}))});return BPromise[_0xdf66[277]](_0xc052x56);case _0xdf66[22]:_0xc052x37[_0xdf66[248]][_0xdf66[293]][_0xdf66[31]](function(_0xc052x4c){_0xc052x56[_0xdf66[262]](models[_0xdf66[296]][_0xdf66[292]]({where:{UserId:_0xc052x39[_0xdf66[253]],MailQueueId:_0xc052x4c[_0xdf66[253]]},defaults:{MailQueueId:_0xc052x4c[_0xdf66[253]],queue:_0xc052x4c[_0xdf66[29]],UserId:_0xc052x39[_0xdf66[253]],penalty:_0xc052x38[_0xdf66[259]]},individualHooks:true,raw:true}))});return BPromise[_0xdf66[277]](_0xc052x56);case _0xdf66[23]:_0xc052x37[_0xdf66[248]][_0xdf66[293]][_0xdf66[31]](function(_0xc052x4c){_0xc052x56[_0xdf66[262]](models[_0xdf66[297]][_0xdf66[292]]({where:{UserId:_0xc052x39[_0xdf66[253]],SmsQueueId:_0xc052x4c[_0xdf66[253]]},defaults:{SmsQueueId:_0xc052x4c[_0xdf66[253]],queue:_0xc052x4c[_0xdf66[29]],UserId:_0xc052x39[_0xdf66[253]],penalty:_0xc052x38[_0xdf66[259]]},individualHooks:true,raw:true}))});return BPromise[_0xdf66[277]](_0xc052x56);case _0xdf66[24]:_0xc052x37[_0xdf66[248]][_0xdf66[293]][_0xdf66[31]](function(_0xc052x4c){_0xc052x56[_0xdf66[262]](models[_0xdf66[298]][_0xdf66[292]]({where:{UserId:_0xc052x39[_0xdf66[253]],OpenchannelQueueId:_0xc052x4c[_0xdf66[253]]},defaults:{OpenchannelQueueId:_0xc052x4c[_0xdf66[253]],queue:_0xc052x4c[_0xdf66[29]],UserId:_0xc052x39[_0xdf66[253]],penalty:_0xc052x38[_0xdf66[259]]},individualHooks:true,raw:true}))});return BPromise[_0xdf66[277]](_0xc052x56);case _0xdf66[16]:_0xc052x37[_0xdf66[248]][_0xdf66[293]][_0xdf66[31]](function(_0xc052x4c){_0xc052x56[_0xdf66[262]](models[_0xdf66[299]][_0xdf66[292]]({where:{UserId:_0xc052x39[_0xdf66[253]],FaxQueueId:_0xc052x4c[_0xdf66[253]]},defaults:{faxQueueId:_0xc052x4c[_0xdf66[253]],queue:_0xc052x4c[_0xdf66[29]],UserId:_0xc052x39[_0xdf66[253]],penalty:_0xc052x38[_0xdf66[259]]},individualHooks:true,raw:true}))});return BPromise[_0xdf66[277]](_0xc052x56);default:}}}function handleQueueRemove(_0xc052x37,_0xc052x38){return function(_0xc052x39){switch(_0xc052x37[_0xdf66[248]][_0xdf66[182]]){case _0xdf66[20]:return models[_0xdf66[278]][_0xdf66[301]]({where:{UserId:_0xc052x39[_0xdf66[253]],queue:_0xc052x37[_0xdf66[248]][_0xdf66[98]]},individualHooks:true,raw:true})[_0xdf66[32]](function(){return amiAction({action:_0xdf66[289],queue:_0xc052x37[_0xdf66[248]][_0xdf66[98]],interface:util[_0xdf66[59]](_0xdf66[256],_0xdf66[257],_0xc052x39[_0xdf66[29]])})})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[300],_0xc052x19[_0xdf66[26]])});case _0xdf66[21]:return models[_0xdf66[295]][_0xdf66[274]]({where:{UserId:_0xc052x39[_0xdf66[253]],ChatQueueId:_0xc052x37[_0xdf66[248]][_0xdf66[303]]}})[_0xdf66[32]](function(_0xc052x58){if(_0xc052x58){return _0xc052x58[_0xdf66[301]]()}})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[302],_0xc052x19)});case _0xdf66[22]:return models[_0xdf66[296]][_0xdf66[274]]({where:{UserId:_0xc052x39[_0xdf66[253]],MailQueueId:_0xc052x37[_0xdf66[248]][_0xdf66[303]]}})[_0xdf66[32]](function(_0xc052x58){if(_0xc052x58){return _0xc052x58[_0xdf66[301]]()}})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[304],_0xc052x19)});case _0xdf66[23]:return models[_0xdf66[297]][_0xdf66[274]]({where:{UserId:_0xc052x39[_0xdf66[253]],SmsQueueId:_0xc052x37[_0xdf66[248]][_0xdf66[303]]}})[_0xdf66[32]](function(_0xc052x58){if(_0xc052x58){return _0xc052x58[_0xdf66[301]]()}})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[305],_0xc052x19)});case _0xdf66[24]:return models[_0xdf66[298]][_0xdf66[274]]({where:{UserId:_0xc052x39[_0xdf66[253]],OpenchannelQueueId:_0xc052x37[_0xdf66[248]][_0xdf66[303]]}})[_0xdf66[32]](function(_0xc052x58){if(_0xc052x58){return _0xc052x58[_0xdf66[301]]()}})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[306],_0xc052x19)});case _0xdf66[16]:return models[_0xdf66[299]][_0xdf66[274]]({where:{UserId:_0xc052x39[_0xdf66[253]],FaxQueueId:_0xc052x37[_0xdf66[248]][_0xdf66[303]]}})[_0xdf66[32]](function(_0xc052x58){if(_0xc052x58){return _0xc052x58[_0xdf66[301]]()}})[_0xdf66[28]](function(_0xc052x19){faxLogger[_0xdf66[27]](_0xdf66[307],_0xc052x19)});default:}}}function handleEntityNotFound(_0xc052x5a){return function(_0xc052x5b){if(!_0xc052x5b){throw _0xc052x5a};return _0xc052x5b}}function onSave(_0xc052x38,_0xc052x37){switch(_0xc052x38[_0xdf66[29]]){case _0xdf66[311]:return models[_0xdf66[310]][_0xdf66[309]](_0xc052x37[_0xdf66[248]][_0xdf66[290]])[_0xdf66[32]](handleEntityNotFound({message:_0xdf66[308]}))[_0xdf66[32]](handlePause(_0xc052x37,_0xc052x38));case _0xdf66[312]:return models[_0xdf66[310]][_0xdf66[309]](_0xc052x37[_0xdf66[248]][_0xdf66[290]])[_0xdf66[32]](handleEntityNotFound({message:_0xdf66[308]}))[_0xdf66[32]](handleUnpause(_0xc052x37,_0xc052x38));case _0xdf66[313]:return models[_0xdf66[310]][_0xdf66[309]](_0xc052x38[_0xdf66[250]])[_0xdf66[32]](handleEntityNotFound({message:_0xdf66[308]}))[_0xdf66[32]](handleLogin(_0xc052x37,_0xc052x38))[_0xdf66[32]](function(_0xc052x5d){return _0xc052x5d});case _0xdf66[314]:return models[_0xdf66[310]][_0xdf66[309]](_0xc052x38[_0xdf66[250]])[_0xdf66[32]](handleEntityNotFound({message:_0xdf66[308]}))[_0xdf66[32]](handleUnpause(_0xc052x37,_0xc052x38))[_0xdf66[32]](handleLogout(_0xc052x37,_0xc052x38));case _0xdf66[283]:return models[_0xdf66[310]][_0xdf66[309]](_0xc052x37[_0xdf66[248]][_0xdf66[290]])[_0xdf66[32]](handleEntityNotFound({message:_0xdf66[308]}))[_0xdf66[32]](handleQueueAdd(_0xc052x37,_0xc052x38))[_0xdf66[32]](function(_0xc052x58){if(_0xc052x37[_0xdf66[248]][_0xdf66[182]]!== _0xdf66[20]){return events[_0xdf66[316]](_0xc052x58,_0xc052x37[_0xdf66[248]][_0xdf66[182]])}})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[315],_0xc052x19[_0xdf66[26]])});case _0xdf66[289]:return models[_0xdf66[310]][_0xdf66[309]](_0xc052x37[_0xdf66[248]][_0xdf66[290]])[_0xdf66[32]](handleEntityNotFound({message:_0xdf66[308]}))[_0xdf66[32]](handleQueueRemove(_0xc052x37,_0xc052x38))[_0xdf66[32]](function(_0xc052x58){if(_0xc052x37[_0xdf66[248]][_0xdf66[182]]!== _0xdf66[20]){return events[_0xdf66[318]](_0xc052x58,_0xc052x37[_0xdf66[248]][_0xdf66[182]])}})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[317],_0xc052x19[_0xdf66[26]])});default:throw {message:_0xdf66[319]}}}function clean(channels){removeInactiveCalls();_[_0xdf66[31]](channels,function(_0xc052x42){removeExpiredApplications(_0xc052x42)})}function removeInactiveCalls(){logger[_0xdf66[73]](_0xdf66[320]);var _0xc052x60=[],_0xc052x61=[],_0xc052x62=moment()[_0xdf66[59]](_0xdf66[58]);return amiAction({action:_0xdf66[337],command:_0xdf66[338]})[_0xdf66[32]](function(_0xc052x6a){var _0xc052x6b;if(_0xc052x6a&& _0xc052x6a[_0xdf66[331]]){var _0xc052x58=_0xc052x6a[_0xdf66[331]][_0xdf66[102]](_0xdf66[332]);_[_0xdf66[31]](_0xc052x58,function(_0xc052x40){if(_0xc052x40){_0xc052x6b= _0xc052x40[_0xdf66[102]](_0xdf66[333]);_0xc052x6b[_0xdf66[334]]=== 14&& _0xc052x61[_0xdf66[262]](_0xc052x6b[_0xdf66[335]]())}})};return models[_0xdf66[336]][_0xdf66[33]]({where:{$or:[{queuecallerleaveAt:null,queuecallerexit:false},{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null}}]}})})[_0xdf66[32]](function(_0xc052x69){_[_0xdf66[31]](_0xc052x69,function(_0xc052x66){if(!_[_0xdf66[193]](_0xc052x61,_0xc052x66[_0xdf66[88]])){_0xc052x60[_0xdf66[262]](_0xc052x66[_0xdf66[269]]({queuecallerleaveAt:_0xc052x62,queuecallerexitAt:_0xc052x62,queuecallerexit:true,queuecallerexitreason:_0xdf66[324]}))}});return models[_0xdf66[330]][_0xdf66[33]]({where:{leaveAt:null}})})[_0xdf66[32]](function(_0xc052x68){_[_0xdf66[31]](_0xc052x68,function(_0xc052x66){if(!_[_0xdf66[193]](_0xc052x61,_0xc052x66[_0xdf66[88]])){_0xc052x60[_0xdf66[262]](_0xc052x66[_0xdf66[269]]({leaveAt:_0xc052x62,network:_0xdf66[328]}))}});return models[_0xdf66[329]][_0xdf66[33]]({where:{endtime:null}})})[_0xdf66[32]](function(_0xc052x67){_[_0xdf66[31]](_0xc052x67,function(_0xc052x66){if(!_[_0xdf66[193]](_0xc052x61,_0xc052x66[_0xdf66[88]])){_0xc052x60[_0xdf66[262]](_0xc052x66[_0xdf66[269]]({endtime:_0xc052x62,dialstatus:_0xdf66[325]}))}});return models[_0xdf66[327]][_0xdf66[33]]({where:{agentcomplete:false,agentringnoanswer:false,agentdump:false}})})[_0xdf66[32]](function(_0xc052x65){_[_0xdf66[31]](_0xc052x65,function(_0xc052x66){if(!_[_0xdf66[193]](_0xc052x61,_0xc052x66[_0xdf66[88]])){_0xc052x60[_0xdf66[262]](_0xc052x66[_0xdf66[269]]({lastevent:_0xdf66[199],agentringnoanswer:true,agentringnoanswerAt:_0xc052x62,reason:_0xdf66[325]}))}});return models[_0xdf66[264]][_0xdf66[33]]({where:{type:_0xdf66[326],enterAt:{$ne:null},exitAt:null}})})[_0xdf66[32]](function(_0xc052x63){_[_0xdf66[31]](_0xc052x63,function(_0xc052x64){if(!_[_0xdf66[193]](_0xc052x61,_0xc052x64[_0xdf66[88]])){_0xc052x60[_0xdf66[262]](_0xc052x64[_0xdf66[269]]({exitAt:_0xc052x64[_0xdf66[323]],data4:_0xdf66[324]}))}});return _0xc052x60})[_0xdf66[277]]()[_0xdf66[32]](function(){logger[_0xdf66[73]](_0xdf66[322])})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[321],_0xc052x19[_0xdf66[26]])})}function removeExpiredApplications(_0xc052x42){return models[_0xdf66[350]+ _0xc052x42+ _0xdf66[351]][_0xdf66[33]]({where:{leaveAt:null,timeslot:{$ne:null}}})[_0xdf66[32]](function(_0xc052x6d){var _0xc052x6e,_0xc052x6f=[],_0xc052x70=[];_[_0xdf66[31]](_0xc052x6d,function(_0xc052x71){_0xc052x6e= moment(_0xc052x71[_0xdf66[344]])[_0xdf66[343]](_0xc052x71[_0xdf66[342]],_0xdf66[229]);if(moment()[_0xdf66[345]](_0xc052x6e)){_0xc052x70[_0xdf66[262]](_0xc052x71[_0xdf66[346]]);_0xc052x6f[_0xdf66[262]](_0xc052x71[_0xdf66[269]]({timeout:true,leaveAt:moment()[_0xdf66[59]](_0xdf66[58])}))}});if(_0xc052x70[_0xdf66[334]]> 0){_0xc052x70= _[_0xdf66[347]](_0xc052x70);logger[_0xdf66[73]](_0xdf66[348],_0xc052x70);_0xc052x6f[_0xdf66[262]](models[_0xc052x42+ _0xdf66[349]][_0xdf66[265]]({waiting:false},{where:{id:_0xc052x70},individualHooks:true}))};return _0xc052x6f})[_0xdf66[277]]()[_0xdf66[32]](function(){logger[_0xdf66[73]](_0xdf66[339]+ _0xc052x42+ _0xdf66[341])})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[339]+ _0xc052x42+ _0xdf66[340],_0xc052x19)})}var channelModels=[_0xdf66[352],_0xdf66[353],_0xdf66[354],_0xdf66[355],_0xdf66[356]];clean(channelModels);setInterval(function(){clean(channelModels)},10* 60* 1000);function networkRewrite(_0xc052x74){switch(_0xc052x74[_0xdf66[192]]){case _0xdf66[367]:return models[_0xdf66[369]][_0xdf66[368]](_0xdf66[367])[_0xdf66[33]]()[_0xdf66[32]](function(_0xc052x75){var _0xc052x76=_0xdf66[183];var _0xc052x77=_0xdf66[358];_0xc052x75[_0xdf66[31]](function(_0xc052x78){_0xc052x76+= util[_0xdf66[59]](_0xdf66[359],_0xc052x78[_0xdf66[222]])});fs[_0xdf66[366]](path[_0xdf66[361]](config[_0xdf66[360]],_0xc052x77),_0xc052x76,{flags:_0xdf66[362],mode:parseInt(_0xdf66[363],8)},function(_0xc052x19){if(_0xc052x19){throw _0xc052x19};amiCommand(_0xdf66[364]);logger[_0xdf66[73]](_0xdf66[365])})})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[357],_0xc052x19)});case _0xdf66[374]:return models[_0xdf66[369]][_0xdf66[368]](_0xdf66[374])[_0xdf66[33]]()[_0xdf66[32]](function(_0xc052x79){var _0xc052x7a=_0xdf66[183];var _0xc052x7b=_0xdf66[371];_0xc052x79[_0xdf66[31]](function(_0xc052x7c){_0xc052x7a+= util[_0xdf66[59]](_0xdf66[372],_0xc052x7c[_0xdf66[222]])});fs[_0xdf66[366]](path[_0xdf66[361]](config[_0xdf66[360]],_0xc052x7b),_0xc052x7a,{flags:_0xdf66[362],mode:parseInt(_0xdf66[363],8)},function(_0xc052x19){if(_0xc052x19){throw _0xc052x19};amiCommand(_0xdf66[364]);logger[_0xdf66[73]](_0xdf66[373])})})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[370],_0xc052x19)});default:logger[_0xdf66[27]](_0xdf66[375],_0xc052x74[_0xdf66[192]])}}function amiCommand(_0xc052x7e){return amiAction({Action:_0xdf66[337],command:_0xc052x7e})[_0xdf66[32]](function(_0xc052x58){logger[_0xdf66[73]](_0xdf66[376],_0xc052x7e,_0xc052x58)})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[376],_0xc052x7e,_0xc052x19)})}function trunksRewrite(){var _0xc052x80=_0xdf66[183];var _0xc052x81=_0xdf66[183];var _0xc052x82=_0xdf66[377];return models[_0xdf66[34]][_0xdf66[33]]({where:{active:true},raw:true})[_0xdf66[32]](function(_0xc052x1a){activeTrunks= {};var _0xc052x83;_0xc052x1a[_0xdf66[31]](function(_0xc052x84){_0xc052x83= null;activeTrunks[_0xc052x84[_0xdf66[29]]]= _0xc052x84[_0xdf66[30]];delete _0xc052x84[_0xdf66[378]];delete _0xc052x84[_0xdf66[344]];delete _0xc052x84[_0xdf66[379]];delete _0xc052x84[_0xdf66[380]];delete _0xc052x84[_0xdf66[83]];if(_0xc052x84[_0xdf66[381]]&& _0xc052x84[_0xdf66[381]]=== _0xdf66[382]){_0xc052x84[_0xdf66[383]]= _0xdf66[382];_0xc052x84[_0xdf66[384]]= _0xdf66[382];_0xc052x84[_0xdf66[385]]= _0xdf66[328];_0xc052x84[_0xdf66[386]]= _0xdf66[387];_0xc052x84[_0xdf66[388]]= _0xdf66[389];_0xc052x84[_0xdf66[390]]= _0xdf66[391];_0xc052x84[_0xdf66[392]]= _0xdf66[393]}else {_0xc052x84[_0xdf66[381]]= _0xdf66[328]};if(_0xc052x84[_0xdf66[85]]){_0xc052x81+= util[_0xdf66[59]](_0xc052x82,_0xc052x84[_0xdf66[85]])};delete _0xc052x84[_0xdf66[85]];_0xc052x80+= util[_0xdf66[59]](_0xdf66[394],_0xc052x84[_0xdf66[29]]);if(_0xc052x84[_0xdf66[395]]){_0xc052x83= _0xc052x84[_0xdf66[395]];delete _0xc052x84[_0xdf66[395]]};for(var _0xc052x30 in _0xc052x84){if(_0xc052x84[_0xc052x30]){switch(_0xc052x30){case _0xdf66[398]:var _0xc052x85=_0xc052x84[_0xc052x30][_0xdf66[102]](_0xdf66[396]);_0xc052x85[_0xdf66[31]](function(_0xc052x40){_0xc052x80+= util[_0xdf66[59]](_0xdf66[397],_0xc052x30,_0xc052x40)});break;default:_0xc052x80+= util[_0xdf66[59]](_0xdf66[397],_0xc052x30,_0xc052x84[_0xc052x30])}}};if(_0xc052x83){_0xc052x80+= util[_0xdf66[59]](_0xdf66[399],_0xc052x83)}});fs[_0xdf66[366]](path[_0xdf66[361]](config[_0xdf66[360]],_0xdf66[400]),_0xc052x80,{flags:_0xdf66[362],mode:parseInt(_0xdf66[363],8)},function(_0xc052x19){if(_0xc052x19){throw _0xc052x19};logger[_0xdf66[73]](_0xdf66[401]);fs[_0xdf66[366]](path[_0xdf66[361]](config[_0xdf66[360]],_0xdf66[402]),_0xc052x81,{flags:_0xdf66[362],mode:parseInt(_0xdf66[363],8)},function(_0xc052x19){if(_0xc052x19){throw _0xc052x19};amiCommand(_0xdf66[364]);logger[_0xdf66[73]](_0xdf66[403])})})})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xc052x19)})}function rewriteContexts(_0xc052x74,_0xc052x87){return function(){var _0xc052x88=_0xdf66[183];if(!_0xc052x87){_0xc052x88= util[_0xdf66[59]](_0xdf66[404],_0xc052x74[_0xdf66[29]],_0xc052x74[_0xdf66[29]])};return models[_0xdf66[409]][_0xdf66[33]]({where:{id:{$ne:_0xc052x74[_0xdf66[253]]}}})[_0xdf66[32]](function(_0xc052x89){_0xc052x89[_0xdf66[31]](function(_0xc052x84){_0xc052x88+= util[_0xdf66[59]](_0xdf66[404],_0xc052x84[_0xdf66[29]],_0xc052x84[_0xdf66[29]])});fs[_0xdf66[366]](path[_0xdf66[361]](config[_0xdf66[360]],_0xdf66[406]),_0xc052x88,{flags:_0xdf66[362],mode:parseInt(_0xdf66[363],8)},function(_0xc052x19){if(_0xc052x19){throw _0xc052x19};logger[_0xdf66[73]](_0xdf66[407]);amiCommand(_0xdf66[408])})})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[405],_0xc052x19)})}}function createHangup(_0xc052x74){return function(){logger[_0xdf66[73]](_0xdf66[410],_0xc052x74[_0xdf66[29]]);var _0xc052x47=[{context:_0xc052x74[_0xdf66[29]],exten:_0xdf66[411],priority:_0xdf66[412],VoiceContextId:_0xc052x74[_0xdf66[253]],type:_0xdf66[413],app:_0xdf66[414]},{context:_0xc052x74[_0xdf66[29]],exten:_0xdf66[415],priority:_0xdf66[412],VoiceContextId:_0xc052x74[_0xdf66[253]],type:_0xdf66[413],app:_0xdf66[414]}];return models[_0xdf66[418]][_0xdf66[263]](_0xc052x47)[_0xdf66[32]](function(){logger[_0xdf66[73]](_0xdf66[417])})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[416],_0xc052x19)})}}function rtpRewrite(_0xc052x47){if(_0xc052x47){var _0xc052x8c=_0xdf66[183];for(var _0xc052x30 in _0xc052x47){_0xc052x47[_0xc052x30]&& (_0xc052x8c+= util[_0xdf66[59]](_0xdf66[397],_0xc052x30,_0xc052x47[_0xc052x30]))};try{fs[_0xdf66[420]](path[_0xdf66[361]](config[_0xdf66[360]],_0xdf66[419]),_0xc052x8c,{flag:_0xdf66[362],mode:parseInt(_0xdf66[363],8)});logger[_0xdf66[73]](_0xdf66[421]);amiCommand(_0xdf66[422])}catch(err){logger[_0xdf66[27]](_0xdf66[423],err)}}else {logger[_0xdf66[27]](_0xdf66[424])}}function execRequest(_0xc052x74,_0xc052x8e,_0xc052x8f){return Util[_0xdf66[427]](_0xc052x74,_0xc052x8e,_0xc052x8f)[_0xdf66[32]](function(_0xc052x90){faxLogger[_0xdf66[73]](_0xdf66[426])})[_0xdf66[28]](function(_0xc052x19){faxLogger[_0xdf66[27]](_0xdf66[425],_0xc052x19)})}function webhook(_0xc052x74,_0xc052x92,_0xc052x93){switch(_0xc052x93){case _0xdf66[435]:if(_0xc052x92[_0xdf66[428]]&& _0xc052x92[_0xdf66[429]]){faxLogger[_0xdf66[73]](_0xdf66[430]+ _0xc052x92[_0xdf66[29]]+ _0xdf66[431]);execRequest(_0xc052x74,_0xc052x92[_0xdf66[428]],_0xc052x92[_0xdf66[429]])};if(_0xc052x92[_0xdf66[432]][_0xdf66[334]]){_[_0xdf66[31]](_0xc052x92[_0xdf66[432]],function(_0xc052x38){if(_0xc052x38[_0xdf66[433]]){Util[_0xdf66[434]](_0xc052x38,_0xc052x74)}})};break;case _0xdf66[439]:if(_0xc052x92[_0xdf66[436]]&& _0xc052x92[_0xdf66[437]]){faxLogger[_0xdf66[73]](_0xdf66[430]+ _0xc052x92[_0xdf66[29]]+ _0xdf66[438]);execRequest(_0xc052x74,_0xc052x92[_0xdf66[436]],_0xc052x92[_0xdf66[437]])};break;case _0xdf66[77]:if(_0xc052x92[_0xdf66[440]]&& _0xc052x92[_0xdf66[441]]){faxLogger[_0xdf66[73]](_0xdf66[430]+ _0xc052x92[_0xdf66[29]]+ _0xdf66[442]);execRequest(_0xc052x74,_0xc052x92[_0xdf66[440]],_0xc052x92[_0xdf66[441]])};break;default:faxLogger[_0xdf66[27]](_0xdf66[443])}}function getFaxRoom(){return function(_0xc052x92,_0xc052x95){if(_0xc052x95[_0xdf66[444]]){return models[_0xdf66[445]][_0xdf66[309]](_0xc052x95.FaxRoomId)}else {return models[_0xdf66[445]][_0xdf66[33]]({limit:1,where:{contact:_0xc052x95[_0xdf66[448]],FaxAccountId:_0xc052x92[_0xdf66[253]]},order:[[_0xdf66[378],_0xdf66[450]]]})[_0xdf66[32]](function(_0xc052x96){var _0xc052x97=_[_0xdf66[446]](_0xc052x96);if(!_0xc052x97|| _0xc052x97[_0xdf66[380]]=== _0xdf66[447]){return models[_0xdf66[445]][_0xdf66[63]]({contact:_0xc052x95[_0xdf66[448]],account:_0xc052x92[_0xdf66[29]],status:_0xdf66[449],FaxAccountId:_0xc052x92[_0xdf66[253]]})}else {return _0xc052x97}})}}}function sendFax(_0xc052x99,_0xc052x9a,_0xc052x9b){if(_0xc052x99[_0xdf66[380]]=== _0xdf66[451]){faxLogger[_0xdf66[454]](util[_0xdf66[59]](_0xdf66[452],_0xc052x99[_0xdf66[453]],_0xc052x99[_0xdf66[448]]));var _0xc052x9c;var _0xc052x9d=_0xc052x99;var _0xc052x9e=_0xc052x99[_0xdf66[453]];var _0xc052x9f=_0xc052x99[_0xdf66[448]];var _0xc052xa0;var _0xc052xa1;var _0xc052xa2,_0xc052xa3;return models[_0xdf66[505]][_0xdf66[274]]({where:{localstationid:_0xc052x9d[_0xdf66[453]]}})[_0xdf66[32]](function(_0xc052xa7){if(!_0xc052xa7){throw new Error(_0xdf66[502])};faxLogger[_0xdf66[73]](_0xdf66[503],_0xc052xa7[_0xdf66[466]]);_0xc052xa0= _[_0xdf66[147]](_0xc052xa7[_0xdf66[266]]);return models[_0xdf66[34]][_0xdf66[274]]({where:{name:_0xc052xa0[_0xdf66[504]]},attributes:[_0xdf66[29]]})})[_0xdf66[32]](function(_0xc052x1b){if(!_0xc052x1b){throw new Error(_0xdf66[500])};faxLogger[_0xdf66[73]](_0xdf66[501],_0xc052x1b[_0xdf66[29]]);_0xc052xa1= _[_0xdf66[147]](_0xc052x1b[_0xdf66[266]]);return})[_0xdf66[32]](function(){return [_0xc052xa0,_0xc052x9d]})[_0xdf66[490]](getFaxRoom())[_0xdf66[32]](function(_0xc052xa6){if(!_0xc052xa6){throw new Error(_0xdf66[497])};faxLogger[_0xdf66[73]](_0xdf66[498],_0xc052xa6[_0xdf66[253]]);_0xc052x9c= _0xc052xa6;return _0xc052x9c[_0xdf66[499]](_0xc052x9d[_0xdf66[253]])})[_0xdf66[32]](function(){return _0xc052x9c[_0xdf66[269]]({status:_0xdf66[449],lastEvent:_0xdf66[451],lastEventAt:moment()[_0xdf66[59]](_0xdf66[58]),faxOut:++_0xc052x9c[_0xdf66[495]]},{individualHooks:true,user:_0xc052x9b[_0xdf66[496]]})})[_0xdf66[32]](function(_0xc052x47){faxLogger[_0xdf66[73]](_0xdf66[493],_0xc052x47[_0xdf66[253]]);return _0xc052x9c[_0xdf66[494]](_0xc052x9d.UserId)})[_0xdf66[32]](function(){return models[_0xdf66[310]][_0xdf66[309]](_0xc052x9d.UserId)})[_0xdf66[32]](function(){if(_0xc052xa0[_0xdf66[491]]){return models[_0xdf66[492]][_0xdf66[292]]({where:{ListId:_0xc052xa0[_0xdf66[491]],$or:[{phone:_0xc052x9f},{fax:_0xc052x9f}]},defaults:{fax:_0xc052x9f,phone:_0xc052x9f,firstName:_0xc052x9f,ListId:_0xc052xa0[_0xdf66[491]]}})}else {return []}})[_0xdf66[490]](function(_0xc052xa4,_0xc052xa5){if(_0xc052xa5!== undefined&& !_0xc052xa5){return _0xc052xa4[_0xdf66[269]]({fax:_0xc052x9f})};return})[_0xdf66[32]](function(){_0xc052xa2= _0xc052x9d[_0xdf66[477]][0][_0xdf66[6]];if(_0xc052x9d[_0xdf66[477]][0][_0xdf66[192]]=== _0xdf66[478]){_0xc052xa3= path[_0xdf66[361]](config[_0xdf66[479]],_0xdf66[480],_0xdf66[481],_0xdf66[16],_0xdf66[194],_0xdf66[482],_0xdf66[483],path[_0xdf66[484]](_0xc052xa2)[_0xdf66[29]]+ _0xdf66[485]);return exec(_0xdf66[486]+ _0xc052xa3+ _0xdf66[487]+ _0xc052xa2)}else {_0xc052xa3= path[_0xdf66[361]](config[_0xdf66[479]],_0xdf66[480],_0xdf66[481],_0xdf66[16],_0xdf66[194],_0xdf66[482],_0xdf66[483],path[_0xdf66[484]](_0xc052xa2)[_0xdf66[488]]);fse[_0xdf66[489]](_0xc052xa2,_0xc052xa3);return}})[_0xdf66[32]](function(){fs[_0xdf66[475]](_0xc052xa3,511);faxLogger[_0xdf66[73]](_0xdf66[476]);return models[_0xdf66[459]][_0xdf66[265]]({filename:_0xc052xa3,localstationid:_0xc052x9d[_0xdf66[453]],retry:_0xc052x9a},{where:{id:_0xc052x9d[_0xdf66[253]]}})})[_0xdf66[32]](function(_0xc052x99){return amiAction({action:_0xdf66[462],channel:util[_0xdf66[59]](_0xdf66[463],_0xc052xa0[_0xdf66[464]],_0xc052xa1[_0xdf66[29]],_0xc052x9f),exten:_0xc052x9f,context:_0xdf66[465],priority:1,callerid:util[_0xdf66[59]](_0xdf66[180],_0xc052xa0[_0xdf66[466]],_0xc052xa0[_0xdf66[466]]),variable:{FAXNAME:_0xc052xa0[_0xdf66[29]],FAXNUMBER:_0xc052x9f,FAXECM:_0xc052xa0[_0xdf66[467]],FAXHEADERINFO:_0xc052xa0[_0xdf66[468]],FAXLOCALSTATIONID:_0xc052xa0[_0xdf66[466]],FAXMINRATE:_0xc052xa0[_0xdf66[469]],FAXMAXRATE:_0xc052xa0[_0xdf66[470]],FAXMODEM:util[_0xdf66[59]](_0xdf66[471],_0xc052xa0[_0xdf66[472]]),FAXGATEWAY:_0xc052xa0[_0xdf66[473]],FAXT38TIMEOUT:_0xc052xa0[_0xdf66[474]],FAXOUTFILE:_0xc052xa3},account:_0xc052xa0[_0xdf66[466]]})})[_0xdf66[32]](function(_0xc052x58){faxLogger[_0xdf66[454]](_0xdf66[460]);faxLogger[_0xdf66[73]](_0xdf66[461],_0xc052x58)})[_0xdf66[28]](function(_0xc052x19){faxLogger[_0xdf66[27]](_0xdf66[455],_0xc052x19);faxLogger[_0xdf66[27]](_0xdf66[456],_0xc052x19[_0xdf66[280]]);faxLogger[_0xdf66[27]](_0xdf66[457],_0xc052x19[_0xdf66[26]]);return models[_0xdf66[459]][_0xdf66[265]]({status:_0xdf66[171]},{where:{id:_0xc052x9d[_0xdf66[253]]}})[_0xdf66[32]](function(_0xc052x47){if(_0xc052x9c){return _0xc052x9c[_0xdf66[269]]({lastEvent:_0xdf66[171]})};return})[_0xdf66[28]](function(_0xc052x19){faxLogger[_0xdf66[27]](_0xdf66[458],_0xc052x19);faxLogger[_0xdf66[27]](_0xdf66[456],_0xc052x19[_0xdf66[280]]);faxLogger[_0xdf66[27]](_0xdf66[457],_0xc052x19[_0xdf66[26]])})})}}models[_0xdf66[459]][_0xdf66[506]](function(_0xc052x74,_0xc052x37){sendFax(_0xc052x74[_0xdf66[266]],0,_0xc052x37)});models[_0xdf66[459]][_0xdf66[509]](function(_0xc052x74,_0xc052x37){if(_0xc052x74[_0xdf66[507]](_0xdf66[380])&& _0xc052x74[_0xdf66[380]]=== _0xdf66[451]){sendFax(_0xc052x74[_0xdf66[266]],_0xc052x74[_0xdf66[508]]+ 1,_0xc052x37)}});models[_0xdf66[445]][_0xdf66[509]](function(_0xc052x74){var _0xc052xa8=_[_0xdf66[511]](faxaccounts,{id:_0xc052x74[_0xdf66[510]]});if(_0xc052xa8&& _0xc052x74[_0xdf66[507]](_0xdf66[380])&& _0xc052x74[_0xdf66[380]]=== _0xdf66[447]){webhook(_0xc052x74[_0xdf66[266]],_0xc052xa8,_0xdf66[77])}});models[_0xdf66[512]][_0xdf66[506]](function(_0xc052x74,_0xc052x37){onSave(_0xc052x74,_0xc052x37)});models[_0xdf66[505]][_0xdf66[33]]({raw:true})[_0xdf66[32]](function(_0xc052xa9){faxaccounts= _0xc052xa9})[_0xdf66[28]](function(_0xc052x19){faxLogger[_0xdf66[27]](_0xdf66[513],_0xc052x19)});function addToCollection(_0xc052xab,_0xc052xac){_0xc052xab[_0xdf66[262]](_0xc052xac)}function updateCollection(_0xc052xab,_0xc052xac){var _0xc052xae=_[_0xdf66[511]](_0xc052xab,{id:_0xc052xac[_0xdf66[253]]});if(_0xc052xae){_[_0xdf66[267]](_0xc052xae,_0xc052xac)}else {_0xc052xab[_0xdf66[514]](_0xc052xac)}}function removeFromCollection(_0xc052xab,_0xc052xac){_[_0xdf66[515]](_0xc052xab,{id:_0xc052xac[_0xdf66[253]]})}function getWidgets(_0xc052xb1){_0xc052xb1= JSON[_0xdf66[484]](_0xc052xb1|| _0xdf66[516]);var _0xc052xb2=[];if(_0xc052xb1[_0xdf66[517]]){_[_0xdf66[31]](_0xc052xb1[_0xdf66[517]],function(_0xc052xb3){_0xc052xb2[_0xdf66[262]](_[_0xdf66[521]](_[_0xdf66[520]](_0xc052xb3[_0xdf66[518]],_0xdf66[519])))});if(_0xc052xb2[_0xdf66[334]]){var _0xc052xb4=[];_[_0xdf66[31]](_0xc052xb2,function(_0xc052xb5){_[_0xdf66[31]](_0xc052xb5,function(_0xc052xb6){_[_0xdf66[193]]([_0xdf66[522],_0xdf66[523],_0xdf66[524]],_0xc052xb6[_0xdf66[192]])&& _0xc052xb4[_0xdf66[262]]({config:{select:_0xc052xb6[_0xdf66[526]][_0xdf66[525]],fields:_0xc052xb6[_0xdf66[526]][_0xdf66[527]],condition:_0xc052xb6[_0xdf66[526]][_0xdf66[528]],table:_0xc052xb6[_0xdf66[526]][_0xdf66[530]][_0xdf66[223]](_0xdf66[529],_0xdf66[183])},id:_0xc052xb6[_0xdf66[531]],type:_0xc052xb6[_0xdf66[192]]})})});return (_0xc052xb4[_0xdf66[334]]?_0xc052xb4:null)};return null};return null}function toAddDate(_0xc052xb8){switch(_0xc052xb8){case _0xdf66[532]:;case _0xdf66[533]:;case _0xdf66[534]:;case _0xdf66[535]:;case _0xdf66[536]:;case _0xdf66[537]:;case _0xdf66[538]:;case _0xdf66[539]:;case _0xdf66[540]:;case _0xdf66[541]:;case _0xdf66[542]:;case _0xdf66[543]:;case _0xdf66[544]:;case _0xdf66[545]:return false;default:return true}}function getCounterWidgetQuery(_0xc052xba,_0xc052x5d){return Promise[_0xdf66[288]]()[_0xdf66[32]](function(){return _0xc052xba[_0xdf66[522]]})[_0xdf66[32]](reportBuildUtils[_0xdf66[561]](_0xc052x5d))[_0xdf66[32]](function(_0xc052xbb){var _0xc052xbc=util[_0xdf66[59]](_0xdf66[547],_0xc052xba[_0xdf66[525]],_0xc052xba[_0xdf66[522]]);if(_0xc052xba[_0xdf66[528]]&& _0xc052xba[_0xdf66[528]]!== _0xdf66[548]){_0xc052xbc+= util[_0xdf66[59]](_0xdf66[549],decodeURIComponent(_0xc052xba[_0xdf66[528]]))};if(toAddDate(_0xc052xba[_0xdf66[522]])){_0xc052xbc+= util[_0xdf66[59]]((_0xc052xba[_0xdf66[528]]&& _0xc052xba[_0xdf66[528]]!== _0xdf66[548])?_0xdf66[550]:_0xdf66[551],moment()[_0xdf66[553]](_0xdf66[552])[_0xdf66[59]](_0xdf66[58]))};if(!_0xc052xbb|| _0xc052xbb!== _0xdf66[554]){if(_0xc052xbb){_0xc052xbc+= _0xc052xba[_0xdf66[528]]?_0xdf66[555]+ _0xc052xbb:_0xdf66[556]+ _0xc052xbb};logger[_0xdf66[73]](_0xdf66[557]);logger[_0xdf66[73]](_0xc052xbc);logger[_0xdf66[73]](_0xdf66[558]);return _0xc052xbc}else {logger[_0xdf66[27]](_0xdf66[559]);logger[_0xdf66[27]](_0xdf66[560]);logger[_0xdf66[27]](_0xdf66[558]);return []}})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[546],_0xc052x19[_0xdf66[26]])})}function getPieChartWidgetQuery(_0xc052xba,_0xc052x5d){return Promise[_0xdf66[277]]([])[_0xdf66[32]](function(){return _0xc052xba[_0xdf66[522]]})[_0xdf66[32]](reportBuildUtils[_0xdf66[561]](_0xc052x5d))[_0xdf66[32]](function(_0xc052xbb){var _0xc052xbe=[];var _0xc052x40;if(_0xc052xba[_0xdf66[527]]){if(_[_0xdf66[563]](_0xc052xba[_0xdf66[527]])){_0xc052xba[_0xdf66[527]][_0xdf66[31]](function(_0xc052x84){if(_0xc052x84[_0xdf66[564]]&& _0xc052x84[_0xdf66[565]]){_0xc052xbe[_0xdf66[262]](_0xc052x84[_0xdf66[564]]+ _0xdf66[566]+ _0xc052x84[_0xdf66[565]]+ _0xdf66[567])}})}else {if(_[_0xdf66[568]](_0xc052xba[_0xdf66[527]])){var _0xc052x84=JSON[_0xdf66[484]](_0xc052xba[_0xdf66[527]]);if(_0xc052x84[_0xdf66[564]]&& _0xc052x84[_0xdf66[565]]){_0xc052xbe[_0xdf66[262]](_0xc052x84[_0xdf66[564]]+ _0xdf66[566]+ _0xc052x84[_0xdf66[565]]+ _0xdf66[567])}}}};var _0xc052xbf=_0xc052xbe[_0xdf66[334]]?_0xc052xbe[_0xdf66[361]](_0xdf66[101]):_0xdf66[569];var _0xc052xc0=_0xdf66[183];if(_0xc052xba[_0xdf66[528]]&& _0xc052xba[_0xdf66[528]]!== _0xdf66[570]&& _0xc052xba[_0xdf66[528]]!== _0xdf66[548]){_0xc052xc0= util[_0xdf66[59]](_0xdf66[549],decodeURIComponent(_0xc052xba[_0xdf66[528]]))};if(toAddDate(_0xc052xba[_0xdf66[522]])){_0xc052xc0+= util[_0xdf66[59]]((_0xc052xba[_0xdf66[528]]&& _0xc052xba[_0xdf66[528]]!== _0xdf66[548])?_0xdf66[550]:_0xdf66[551],moment()[_0xdf66[553]](_0xdf66[552])[_0xdf66[59]](_0xdf66[58]))};if(!_0xc052xbb|| _0xc052xbb!== _0xdf66[554]){if(_0xc052xbb){_0xc052xc0+= _0xc052xc0?_0xdf66[555]+ _0xc052xbb:_0xdf66[556]+ _0xc052xbb};var _0xc052xbc=util[_0xdf66[59]](_0xdf66[571],_0xc052xbf,_0xc052xba[_0xdf66[522]],_0xc052xc0);logger[_0xdf66[73]](_0xdf66[557]);logger[_0xdf66[73]](_0xc052xbc);logger[_0xdf66[73]](_0xdf66[558]);return _0xc052xbc}else {logger[_0xdf66[27]](_0xdf66[559]);logger[_0xdf66[27]](_0xdf66[560]);logger[_0xdf66[27]](_0xdf66[558]);return []}})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[562],_0xc052x19[_0xdf66[26]])})}function getWidgetQuery(_0xc052xba,_0xc052x5d){switch(_0xc052xba[_0xdf66[192]]){case _0xdf66[524]:return getCounterWidgetQuery(_0xc052xba[_0xdf66[526]],_0xc052x5d);case _0xdf66[523]:return getPieChartWidgetQuery(_0xc052xba[_0xdf66[526]],_0xc052x5d);default:return Promise[_0xdf66[288]]()[_0xdf66[32]](function(){return null})}}function getCustomDashboardValues(_0xc052xc3,_0xc052x5d){var _0xc052xc4={};var _0xc052xc5=[],_0xc052xc6=[],_0xc052xbc;return models[_0xdf66[583]][_0xdf66[309]](_0xc052xc3)[_0xdf66[32]](function(_0xc052xc7){if(!_0xc052xc7){logger[_0xdf66[27]](_0xdf66[575],_0xc052xc3,_0xdf66[576]);return};var _0xc052xb4=getWidgets(_0xc052xc7[_0xdf66[577]]);if(_0xc052xb4){_[_0xdf66[31]](_0xc052xb4,function(_0xc052xba){_0xc052xc5[_0xdf66[262]](getWidgetQuery(_0xc052xba,_0xc052x5d)[_0xdf66[32]](function(_0xc052xbc){_0xc052xc6[_0xdf66[262]](Promise[_0xdf66[288]]()[_0xdf66[32]](function(){if(_0xc052xbc){return models[_0xdf66[581]][_0xdf66[582]](_0xc052xbc,{type:models[_0xdf66[581]][_0xdf66[580]][_0xdf66[579]]})}else {return []}})[_0xdf66[32]](function(_0xc052x58){_0xc052xc4[_0xc052xba[_0xdf66[253]]]= _0xc052x58})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[578],_0xc052xba[_0xdf66[253]],_0xc052x19);_0xc052xc4[_0xc052xba[_0xdf66[253]]]= []}))}))});return _0xc052xc5};return []})[_0xdf66[277]]()[_0xdf66[32]](function(){return _0xc052xc6})[_0xdf66[277]]()[_0xdf66[32]](function(){if(!_[_0xdf66[573]](_0xc052xc4)){return events[_0xdf66[574]](_0xc052xc4,_0xc052x5d)}})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[572],_0xc052xc3,_0xc052x19)})}process[_0xdf66[74]](_0xdf66[280],function(_0xc052xc8){switch(_0xc052xc8[_0xdf66[280]]){case _0xdf66[584]:;case _0xdf66[585]:;case _0xdf66[587]:networkRewrite(_0xc052xc8[_0xdf66[586]]);break;case _0xdf66[589]:return BPromise[_0xdf66[288]]()[_0xdf66[32]](rewriteContexts(_0xc052xc8[_0xdf66[586]],false))[_0xdf66[32]](createHangup(_0xc052xc8[_0xdf66[586]]))[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[588],_0xc052x19)});case _0xdf66[591]:return BPromise[_0xdf66[288]]()[_0xdf66[32]](rewriteContexts(_0xc052xc8[_0xdf66[586]],true))[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[590],_0xc052x19)});case _0xdf66[592]:addToCollection(faxaccounts,_0xc052xc8[_0xdf66[586]]);break;case _0xdf66[593]:updateCollection(faxaccounts,_0xc052xc8[_0xdf66[586]]);break;case _0xdf66[594]:removeFromCollection(faxaccounts,_0xc052xc8[_0xdf66[586]]);break;case _0xdf66[595]:trunksRewrite();break;case _0xdf66[596]:rtpRewrite(_0xc052xc8[_0xdf66[586]]);break;case _0xdf66[597]:;case _0xdf66[598]:sendFax(_0xc052xc8[_0xdf66[586]],0,_0xc052xc8[_0xdf66[48]]);break;case _0xdf66[599]:var _0xc052xa8=_[_0xdf66[511]](faxaccounts,{id:_0xc052xc8[_0xdf66[586]][_0xdf66[510]]});if(_0xc052xa8){webhook(_0xc052xc8[_0xdf66[586]],_0xc052xa8,_0xc052xc8[_0xdf66[41]])};break;case _0xdf66[601]:return amiAction({action:_0xdf66[337],command:_0xc052xc8[_0xdf66[603]]})[_0xdf66[32]](function(_0xc052x6a){return events[_0xdf66[601]]({type:_0xdf66[602],data:_0xc052x6a,socket:_0xc052xc8[_0xdf66[600]]})})[_0xdf66[28]](function(_0xc052x19){events[_0xdf66[601]]({type:_0xdf66[27],data:_0xc052x19,socket:_0xc052xc8[_0xdf66[600]]})});case _0xdf66[608]:return amiAction(_0xc052xc8[_0xdf66[41]])[_0xdf66[32]](function(_0xc052x6a){events[_0xdf66[272]](_0xc052xc8[_0xdf66[290]],_0xc052xc8[_0xdf66[271]],_0xc052xc8[_0xdf66[41]][_0xdf66[605]]);logger[_0xdf66[454]](util[_0xdf66[59]](_0xdf66[606],_0xc052xc8[_0xdf66[290]],_0xc052xc8[_0xdf66[41]][_0xdf66[605]]?_0xdf66[605]:_0xdf66[607]))})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](util[_0xdf66[59]](_0xdf66[604],_0xc052xc8[_0xdf66[290]],_0xc052xc8[_0xdf66[41]][_0xdf66[605]]?_0xdf66[311]:_0xdf66[312]),_0xc052x19)});case _0xdf66[610]:var _0xc052x92=_[_0xdf66[511]](faxaccounts,{id:parseInt(_0xc052xc8[_0xdf66[586]][_0xdf66[609]])});if(_0xc052x92){webhook(_0xc052xc8[_0xdf66[586]],_0xc052x92,_0xc052xc8[_0xdf66[41]])};break;case _0xdf66[611]:return onSave(_0xc052xc8[_0xdf66[586]],_0xc052xc8[_0xdf66[48]]);case _0xdf66[612]:return events[_0xdf66[612]](_0xc052xc8[_0xdf66[293]]);case _0xdf66[613]:;case _0xdf66[614]:;case _0xdf66[615]:;case _0xdf66[616]:;case _0xdf66[617]:;case _0xdf66[618]:;case _0xdf66[619]:;case _0xdf66[620]:;case _0xdf66[621]:;case _0xdf66[622]:;case _0xdf66[623]:;case _0xdf66[625]:return events[_0xdf66[624]](_0xc052xc8);case _0xdf66[627]:return BPromise[_0xdf66[288]]()[_0xdf66[32]](function(){return amiUtil[_0xdf66[627]](amiAction,_0xc052xc8[_0xdf66[586]])})[_0xdf66[28]](function(_0xc052x19){logger[_0xdf66[27]](_0xdf66[626],_0xc052x19)});case _0xdf66[628]:;case _0xdf66[629]:;case _0xdf66[630]:;case _0xdf66[631]:;case _0xdf66[632]:;case _0xdf66[633]:;case _0xdf66[634]:;case _0xdf66[635]:;case _0xdf66[636]:;case _0xdf66[638]:return events[_0xdf66[637]](_0xc052xc8);case _0xdf66[643]:switch(_0xc052xc8[_0xdf66[522]]){case _0xdf66[640]:return events[_0xdf66[639]]();case _0xdf66[642]:return events[_0xdf66[641]]();default:};break;case _0xdf66[644]:newexten(_0xc052xc8[_0xdf66[52]],true);break;case _0xdf66[645]:addToCollection(voiceQueues,_0xc052xc8[_0xdf66[586]]);break;case _0xdf66[646]:updateCollection(voiceQueues,_0xc052xc8[_0xdf66[586]]);break;case _0xdf66[647]:removeFromCollection(voiceQueues,_0xc052xc8[_0xdf66[586]]);break;case _0xdf66[648]:getCustomDashboardValues(_0xc052xc8[_0xdf66[253]],_0xc052xc8[_0xdf66[496]]);break;case _0xdf66[650]:return events[_0xdf66[649]](_0xc052xc8[_0xdf66[586]]);default:}})