1 var _0x622b=["\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\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","\x66\x61\x78","\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","\x6B\x75\x65\x20\x71\x75\x65\x75\x65\x20\x6A\x6F\x62\x20\x65\x72\x72\x6F\x72","\x73\x61\x76\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","\x6C\x6F\x67","\x65\x78\x69\x74","\x63\x6F\x64\x65\x20\x65\x78\x69\x74","\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","\x64\x65\x76\x69\x63\x65\x73\x74\x61\x74\x65\x63\x68\x61\x6E\x67\x65","\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73","\x72\x65\x67\x69\x73\x74\x72\x79","\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x75\x6E\x69\x71\x75\x65\x69\x64","\x74\x72\x61\x6E\x73\x66\x65\x72\x55\x49\x44","\x68\x61\x73\x51\x75\x65\x75\x65","\x68\x61\x6E\x67\x75\x70\x72\x65\x71\x75\x65\x73\x74","\x6C\x69\x6E\x6B\x65\x64\x69\x64","\x6C\x61\x73\x74\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x71\x75\x65\x75\x65","\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","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74","\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","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x61\x64\x64\x65\x64","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x61\x75\x73\x65","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x65\x6E\x61\x6C\x74\x79","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x72\x65\x6D\x6F\x76\x65\x64","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x72\x69\x6E\x67\x69\x6E\x75\x73\x65","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72","\x71\x75\x65\x75\x65\x74\x72\x61\x6E\x73\x66\x65\x72","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65","\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","\x61\x6E\x73\x77\x65\x72\x74\x69\x6D\x65","\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","\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","\x64\x69\x61\x6C\x62\x65\x67\x69\x6E","\x64\x69\x61\x6C\x65\x6E\x64","\x72\x65\x63\x65\x69\x76\x65\x66\x61\x78","\x73\x65\x6E\x64\x66\x61\x78","\x66\x61\x78\x73\x74\x61\x74\x75\x73","\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","\x66\x6F\x72\x6D\x61\x74","\x63\x68\x61\x6E\x6E\x65\x6C","","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\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","\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","\x70\x72\x65\x76\x69\x6F\x75\x73\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x6C\x61\x73\x74\x61\x67\x69\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\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","\x71\x75\x65\x75\x65\x73\x74\x61\x74\x75\x73","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x6C\x75\x65","\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","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x6E\x65\x77\x63\x68\x61\x6E\x6E\x65\x6C","\x6E\x65\x77\x73\x74\x61\x74\x65","\x6E\x65\x77\x65\x78\x74\x65\x6E","\x76\x61\x72\x73\x65\x74","\x68\x61\x6E\x67\x75\x70","\x6C\x61\x73\x74\x50\x61\x75\x73\x65\x41\x74","\x69\x64","\x62\x6F\x64\x79","\x64\x61\x74\x61\x34","\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\x31","\x64\x61\x74\x61\x32","\x72\x6F\x6C\x65","\x64\x61\x74\x61\x33","\x70\x75\x73\x68","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\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","\x61\x67\x65\x6E\x74\x55\x70\x64\x61\x74\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x65\x72\x67\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x41\x43\x57","\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","\x6F\x6E\x6C\x69\x6E\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","\x5A\x4F\x4D\x42\x49\x45","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x6E\x6F","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C","\x7A\x6F\x6D\x62\x69\x65","\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","\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","\x5B\x25\x73\x5D\x0A","\x6F\x74\x68\x65\x72\x46\x69\x65\x6C\x64\x73","\x25\x73\x0A","\x3B","\x25\x73\x3D\x25\x73\x0A","\x61\x6C\x6C\x6F\x77","\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","\x72\x65\x71\x75\x65\x73\x74\x20\x66\x61\x69\x6C\x65\x64\x21","\x72\x65\x71\x75\x65\x73\x74\x20\x73\x75\x63\x63\x65\x73\x73\x65\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","\x66\x72\x6F\x6D","\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\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","\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\x65\x63\x6B\x54\x72\x69\x67\x67\x65\x72\x73","\x63\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\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","\x74\x61\x62\x6C\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"];_0x622b[0];var _=require(_0x622b[1]);var BPromise=require(_0x622b[2]);var util=require(_0x622b[3]);var moment=require(_0x622b[4]);var fs=require(_0x622b[5]);var path=require(_0x622b[6]);var Util=require(_0x622b[7]);var amiUtil=require(_0x622b[8]);var exec=require(_0x622b[10])[_0x622b[9]];var fse=require(_0x622b[11]);var kue=require(_0x622b[12]);var config=require(_0x622b[13]);var events=require(_0x622b[14]);var models=require(_0x622b[15]);var channels=[_0x622b[16],_0x622b[17],_0x622b[18],_0x622b[19],_0x622b[20],_0x622b[21]];var faxaccounts=[];var bill=[];var voiceQueues=[];var activeTrunks={};models[_0x622b[31]][_0x622b[30]]({where:{active:true},attributes:[_0x622b[26],_0x622b[27]],raw:true})[_0x622b[29]](function(_0x4330x15){_[_0x622b[28]](_0x4330x15,function(_0x4330x16){activeTrunks[_0x4330x16[_0x622b[26]]]= _0x4330x16[_0x622b[27]]})})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[22],_0x4330x14[_0x622b[23]])});var ami= new require(_0x622b[37])(config[_0x622b[33]][_0x622b[32]],config[_0x622b[33]][_0x622b[34]],config[_0x622b[33]][_0x622b[35]],config[_0x622b[33]][_0x622b[36]],true);var amiAction=BPromise[_0x622b[39]](ami[_0x622b[38]]);var kueConfig={prefix:_0x622b[40],redis:{port:6379,host:config[_0x622b[41]]}};if(config[_0x622b[42]]){kueConfig[_0x622b[44]][_0x622b[43]]= _0x622b[36];kueConfig[_0x622b[44]][_0x622b[45]]= {password:config[_0x622b[42]]}};var q=kue[_0x622b[46]](kueConfig);q[_0x622b[53]](_0x622b[47],function(_0x4330x1b,_0x4330x1c){try{events[_0x4330x1b[_0x622b[50]][_0x622b[26]]](_0x4330x1b[_0x622b[50]][_0x622b[49]],_0x4330x1b[_0x622b[50]][_0x622b[51]]?amiAction:undefined)[_0x622b[48]](function(){_0x4330x1c()})}catch(e){console[_0x622b[24]](_0x622b[52],_0x4330x1b[_0x622b[50]][_0x622b[26]],e)}});function addToQueue(_0x4330x1e,_0x4330x1f,_0x4330x20){q[_0x622b[56]](_0x622b[47],{name:_0x4330x1e,evt:_0x4330x1f,needAmi:_0x4330x20})[_0x622b[55]](function(_0x4330x14){if(_0x4330x14){console[_0x622b[24]](_0x622b[54],_0x4330x14)}else {}})}models[_0x622b[58]][_0x622b[30]]({raw:true})[_0x622b[29]](function(_0x4330x21){voiceQueues= _0x4330x21})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[57],_0x4330x14)});ami[_0x622b[59]]();setInterval(function(){if(global[_0x622b[60]]){global[_0x622b[60]]()}else {console[_0x622b[63]](_0x622b[61]+ _0x622b[62])}},20000);process[_0x622b[66]](_0x622b[64],function(_0x4330x22){console[_0x622b[63]](_0x622b[65],_0x4330x22)});ami[_0x622b[66]](_0x622b[67],events[_0x622b[67]]);ami[_0x622b[66]](_0x622b[68],events[_0x622b[68]]);ami[_0x622b[66]](_0x622b[69],events[_0x622b[69]]);ami[_0x622b[66]](_0x622b[24],events[_0x622b[24]]);ami[_0x622b[66]](_0x622b[70],function(_0x4330x1f){addToQueue(_0x622b[71],_0x4330x1f)});ami[_0x622b[66]](_0x622b[72],function(_0x4330x1f){addToQueue(_0x622b[72],_0x4330x1f)});ami[_0x622b[66]](_0x622b[73],function(_0x4330x1f){addToQueue(_0x622b[73],_0x4330x1f)});ami[_0x622b[66]](_0x622b[74],function(_0x4330x1f){addToQueue(_0x622b[74],_0x4330x1f)});ami[_0x622b[66]](_0x622b[75],function(_0x4330x1f){addToQueue(_0x622b[75],_0x4330x1f)});ami[_0x622b[66]](_0x622b[76],function(_0x4330x1f){if(bill[_0x4330x1f[_0x622b[77]]]&& bill[_0x4330x1f[_0x622b[77]]][_0x622b[77]]!== _0x4330x1f[_0x622b[77]]){if(!bill[_0x4330x1f[_0x622b[77]]][_0x622b[78]]){bill[_0x4330x1f[_0x622b[77]]][_0x622b[78]]= true}else {delete bill[_0x4330x1f[_0x622b[77]]][_0x622b[79]];_0x4330x1f[_0x622b[77]]= bill[_0x4330x1f[_0x622b[77]]][_0x622b[77]]}};addToQueue(_0x622b[76],_0x4330x1f)});ami[_0x622b[66]](_0x622b[80],function(_0x4330x1f){if(bill[_0x4330x1f[_0x622b[81]]]&& bill[_0x4330x1f[_0x622b[81]]][_0x622b[82]]=== _0x622b[83]&& bill[_0x4330x1f[_0x622b[81]]][_0x622b[84]]){_0x4330x1f[_0x622b[83]]= bill[_0x4330x1f[_0x622b[81]]][_0x622b[87]][_0x622b[86]](_0x622b[85])[0];_0x4330x1f[_0x622b[88]]= bill[_0x4330x1f[_0x622b[81]]][_0x622b[84]][_0x622b[86]](/\/|-/)[1];addToQueue(_0x622b[80],_0x4330x1f,true)}});ami[_0x622b[66]](_0x622b[89],function(_0x4330x1f){addToQueue(_0x622b[89],_0x4330x1f)});ami[_0x622b[66]](_0x622b[90],events[_0x622b[90]]);ami[_0x622b[66]](_0x622b[91],function(_0x4330x1f){addToQueue(_0x622b[91],_0x4330x1f)});ami[_0x622b[66]](_0x622b[92],function(_0x4330x1f){addToQueue(_0x622b[92],_0x4330x1f)});ami[_0x622b[66]](_0x622b[93],function(_0x4330x1f){addToQueue(_0x622b[93],_0x4330x1f)});ami[_0x622b[66]](_0x622b[94],function(_0x4330x1f){addToQueue(_0x622b[94],_0x4330x1f)});ami[_0x622b[66]](_0x622b[95],function(_0x4330x1f){addToQueue(_0x622b[95],_0x4330x1f)});ami[_0x622b[66]](_0x622b[96],function(_0x4330x1f){addToQueue(_0x622b[96],_0x4330x1f)});ami[_0x622b[66]](_0x622b[97],function(_0x4330x1f){addToQueue(_0x622b[97],_0x4330x1f)});ami[_0x622b[66]](_0x622b[98],function(_0x4330x1f){addToQueue(_0x622b[98],_0x4330x1f)});ami[_0x622b[66]](_0x622b[99],function(_0x4330x1f){if(bill[_0x4330x1f[_0x622b[77]]]){bill[_0x4330x1f[_0x622b[77]]][_0x622b[83]]= _0x4330x1f[_0x622b[83]];bill[_0x4330x1f[_0x622b[77]]][_0x622b[79]]= true};addToQueue(_0x622b[99],_0x4330x1f)});ami[_0x622b[66]](_0x622b[100],function(_0x4330x1f){if(bill[_0x4330x1f[_0x622b[77]]]){_0x4330x1f[_0x622b[77]]= bill[_0x4330x1f[_0x622b[77]]][_0x622b[77]]};addToQueue(_0x622b[100],_0x4330x1f)});ami[_0x622b[66]](_0x622b[101],function(_0x4330x1f){if(bill[_0x4330x1f[_0x622b[102]]]){bill[_0x4330x1f[_0x622b[102]]][_0x622b[103]]= _0x622b[101];bill[_0x4330x1f[_0x622b[102]]][_0x622b[104]]= true;bill[_0x4330x1f[_0x622b[102]]][_0x622b[105]]= _0x622b[106];bill[_0x4330x1f[_0x622b[102]]][_0x622b[107]]= _0x4330x1f[_0x622b[108]];bill[_0x4330x1f[_0x622b[102]]][_0x622b[109]]= _0x4330x1f[_0x622b[110]];ami[_0x622b[112]](_0x622b[98],_[_0x622b[111]](bill[_0x4330x1f[_0x622b[102]]]));delete bill[_0x4330x1f[_0x622b[102]]][_0x622b[113]];delete bill[_0x4330x1f[_0x622b[102]]][_0x622b[103]];bill[_0x4330x1f[_0x622b[102]]][_0x622b[114]]= true;_0x4330x1f[_0x622b[83]]= bill[_0x4330x1f[_0x622b[102]]][_0x622b[83]]|| null};_0x4330x1f[_0x622b[88]]= _0x4330x1f[_0x622b[115]][_0x622b[86]](/\/|-/)[1];addToQueue(_0x622b[101],_0x4330x1f,true)});ami[_0x622b[66]](_0x622b[116],function(_0x4330x1f){if(bill[_0x4330x1f[_0x622b[117]]]){bill[_0x4330x1f[_0x622b[117]]][_0x622b[103]]= _0x622b[116];bill[_0x4330x1f[_0x622b[117]]][_0x622b[77]]= _0x4330x1f[_0x622b[108]];bill[_0x4330x1f[_0x622b[108]]][_0x622b[77]]= _0x4330x1f[_0x622b[117]];ami[_0x622b[112]](_0x622b[98],_[_0x622b[111]](bill[_0x4330x1f[_0x622b[117]]]));delete bill[_0x4330x1f[_0x622b[117]]][_0x622b[79]];delete bill[_0x4330x1f[_0x622b[117]]][_0x622b[103]];_0x4330x1f[_0x622b[83]]= bill[_0x4330x1f[_0x622b[117]]][_0x622b[83]]|| null};_0x4330x1f[_0x622b[88]]= _0x4330x1f[_0x622b[118]][_0x622b[86]](/\/|-/)[1];addToQueue(_0x622b[116],_0x4330x1f,true)});ami[_0x622b[66]](_0x622b[119],function(_0x4330x1f){addToQueue(_0x622b[119],_0x4330x1f)});ami[_0x622b[66]](_0x622b[120],function(_0x4330x1f){addToQueue(_0x622b[120],_0x4330x1f)});ami[_0x622b[66]](_0x622b[121],function(_0x4330x1f){addToQueue(_0x622b[121],_0x4330x1f)});ami[_0x622b[66]](_0x622b[122],function(_0x4330x1f){addToQueue(_0x622b[122],_0x4330x1f)});ami[_0x622b[66]](_0x622b[123],function(_0x4330x1f){addToQueue(_0x622b[123],_0x4330x1f)});amiAction({action:_0x622b[124]});var applications=[_0x622b[125],_0x622b[83],_0x622b[126],_0x622b[127],_0x622b[128]];var dispositions=[_0x622b[129],_0x622b[130],_0x622b[130],_0x622b[129],_0x622b[129],_0x622b[129],_0x622b[131],_0x622b[132],_0x622b[130],_0x622b[130],_0x622b[130]];function newchannel(_0x4330x1f){if(!bill[_0x4330x1f[_0x622b[77]]]&& !bill[_0x4330x1f[_0x622b[81]]]){bill[_0x4330x1f[_0x622b[77]]]= {uniqueid:_0x4330x1f[_0x622b[77]],linkedid:_0x4330x1f[_0x622b[81]],type:_0x622b[133],tag:_0x622b[134],accountcode:_0x4330x1f[_0x622b[135]],source:_0x4330x1f[_0x622b[136]],destination:_0x4330x1f[_0x622b[137]],destinationcontext:_0x4330x1f[_0x622b[138]],callerid:util[_0x622b[141]](_0x622b[139],_0x4330x1f[_0x622b[140]],_0x4330x1f[_0x622b[136]]),channel:_0x4330x1f[_0x622b[142]],destinationchannel:_0x622b[143],lastapplication:_0x622b[143],lastdata:_0x622b[143],starttime:moment()[_0x622b[141]](_0x622b[144]),answertime:_0x622b[143],endtime:_0x622b[143],duration:0,billableseconds:0,disposition:dispositions[_[_0x622b[146]](_0x4330x1f[_0x622b[145]])],amaflags:_0x622b[147],unmanaged:false,calleridnum:_0x4330x1f[_0x622b[136]],calleridname:_0x4330x1f[_0x622b[140]]}}}function newstate(_0x4330x1f){if(bill[_0x4330x1f[_0x622b[81]]]&& _0x4330x1f[_0x622b[77]]!== _0x4330x1f[_0x622b[81]]&& _0x4330x1f[_0x622b[145]]=== _0x622b[148]){bill[_0x4330x1f[_0x622b[81]]][_0x622b[113]]= moment()[_0x622b[141]](_0x622b[144]);delete bill[_0x4330x1f[_0x622b[81]]][_0x622b[79]];bill[_0x4330x1f[_0x622b[81]]][_0x622b[149]]= dispositions[_[_0x622b[146]](_0x4330x1f[_0x622b[145]])];if(_[_0x622b[153]]([_0x622b[150],_0x622b[151]],bill[_0x4330x1f[_0x622b[81]]][_0x622b[152]])){bill[_0x4330x1f[_0x622b[81]]][_0x622b[135]]= _0x4330x1f[_0x622b[135]]};if(!_[_0x622b[153]]([_0x622b[154],_0x622b[151]],bill[_0x4330x1f[_0x622b[81]]][_0x622b[152]])){bill[_0x4330x1f[_0x622b[81]]][_0x622b[155]]= _0x4330x1f[_0x622b[156]];bill[_0x4330x1f[_0x622b[81]]][_0x622b[157]]= util[_0x622b[141]](_0x622b[139],_0x4330x1f[_0x622b[158]],_0x4330x1f[_0x622b[156]])};bill[_0x4330x1f[_0x622b[81]]][_0x622b[81]]= _0x4330x1f[_0x622b[77]];bill[_0x4330x1f[_0x622b[81]]][_0x622b[84]]= _0x4330x1f[_0x622b[142]];bill[_0x4330x1f[_0x622b[81]]][_0x622b[159]]= false}}function newexten(_0x4330x1f,_0x4330x28){if(bill[_0x4330x1f[_0x622b[77]]]){_0x4330x1f[_0x622b[160]]= _0x4330x1f[_0x622b[160]][_0x622b[161]]();if(bill[_0x4330x1f[_0x622b[77]]][_0x622b[162]]=== _0x622b[83]|| bill[_0x4330x1f[_0x622b[77]]][_0x622b[163]]=== _0x622b[83]){if(bill[_0x4330x1f[_0x622b[77]]][_0x622b[79]]&& !bill[_0x4330x1f[_0x622b[77]]][_0x622b[114]]){if(bill[_0x4330x1f[_0x622b[77]]][_0x622b[164]]){ami[_0x622b[112]](_0x622b[165],_[_0x622b[111]](bill[_0x4330x1f[_0x622b[77]]]))}else {if(!bill[_0x4330x1f[_0x622b[77]]][_0x622b[159]]){bill[_0x4330x1f[_0x622b[77]]][_0x622b[159]]= true;bill[_0x4330x1f[_0x622b[77]]][_0x622b[103]]= _0x622b[166]};ami[_0x622b[112]](_0x622b[167],_[_0x622b[111]](bill[_0x4330x1f[_0x622b[77]]]))}};bill[_0x4330x1f[_0x622b[77]]][_0x622b[163]]= null;bill[_0x4330x1f[_0x622b[77]]][_0x622b[159]]= false;bill[_0x4330x1f[_0x622b[77]]][_0x622b[164]]= false;bill[_0x4330x1f[_0x622b[77]]][_0x622b[103]]= null;bill[_0x4330x1f[_0x622b[77]]][_0x622b[168]]= null;bill[_0x4330x1f[_0x622b[77]]][_0x622b[169]]= null;bill[_0x4330x1f[_0x622b[77]]][_0x622b[170]]= null};bill[_0x4330x1f[_0x622b[77]]][_0x622b[162]]= _0x4330x1f[_0x622b[160]];delete bill[_0x4330x1f[_0x622b[77]]][_0x622b[79]];if(!_0x4330x28){if(_[_0x622b[153]](applications,_0x4330x1f[_0x622b[160]])){if(_0x4330x1f[_0x622b[160]]=== _0x622b[125]){var _0x4330x29=_0x4330x1f[_0x622b[171]][_0x622b[161]]();if(_[_0x622b[173]](_0x4330x29,_0x622b[172])){_0x4330x29= _0x4330x29[_0x622b[86]](_0x622b[174]);var _0x4330x2a=_0x4330x29[0][_0x622b[175]](/cdr\((.*)\)/);if(_0x4330x2a){bill[_0x4330x1f[_0x622b[77]]][_0x4330x2a[1]]= _0x4330x29[1];if(_0x4330x2a[1]=== _0x622b[152]&& _0x4330x29[1]=== _0x622b[151]){var _0x4330x2b=bill[_0x4330x1f[_0x622b[77]]][_0x622b[142]][_0x622b[86]](/\/|-/)[1];activeTrunks[_0x4330x2b]&& (bill[_0x4330x1f[_0x622b[77]]][_0x622b[155]]= activeTrunks[_0x4330x2b])}}}else {if(_[_0x622b[173]](_0x4330x29,_0x622b[176])){bill[_0x4330x1f[_0x622b[77]]][_0x622b[136]]= _0x4330x29[_0x622b[86]](_0x622b[174])[1];bill[_0x4330x1f[_0x622b[77]]][_0x622b[157]]= util[_0x622b[141]](_0x622b[139],bill[_0x4330x1f[_0x622b[77]]][_0x622b[140]],bill[_0x4330x1f[_0x622b[77]]][_0x622b[136]]);bill[_0x4330x1f[_0x622b[77]]][_0x622b[152]]=== _0x622b[151]&& (bill[_0x4330x1f[_0x622b[77]]][_0x622b[177]]= bill[_0x4330x1f[_0x622b[77]]][_0x622b[136]])}else {if(_[_0x622b[173]](_0x4330x29,_0x622b[178])){bill[_0x4330x1f[_0x622b[77]]][_0x622b[140]]= _0x4330x29[_0x622b[86]](_0x622b[174])[1];bill[_0x4330x1f[_0x622b[77]]][_0x622b[157]]= util[_0x622b[141]](_0x622b[139],bill[_0x4330x1f[_0x622b[77]]][_0x622b[140]],bill[_0x4330x1f[_0x622b[77]]][_0x622b[136]])}}}};bill[_0x4330x1f[_0x622b[77]]][_0x622b[82]]= _0x4330x1f[_0x622b[160]];bill[_0x4330x1f[_0x622b[77]]][_0x622b[87]]= _0x4330x1f[_0x622b[171]]};if(_0x4330x1f[_0x622b[160]]=== _0x622b[83]){bill[_0x4330x1f[_0x622b[77]]][_0x622b[83]]= _0x4330x1f[_0x622b[171]][_0x622b[86]](_0x622b[85])[0];bill[_0x4330x1f[_0x622b[77]]][_0x622b[79]]= true}}else {bill[_0x4330x1f[_0x622b[77]]][_0x622b[163]]= _0x4330x1f[_0x622b[160]][_0x622b[161]]();if(_0x4330x1f[_0x622b[160]]=== _0x622b[83]){bill[_0x4330x1f[_0x622b[77]]][_0x622b[83]]= _0x4330x1f[_0x622b[83]];bill[_0x4330x1f[_0x622b[77]]][_0x622b[79]]= true}}}}function varset(_0x4330x1f){if(bill[_0x4330x1f[_0x622b[77]]]){if(_0x4330x1f[_0x622b[181]][_0x622b[180]](_0x622b[179])){bill[_0x4330x1f[_0x622b[77]]][_0x622b[159]]= true;bill[_0x4330x1f[_0x622b[77]]][_0x622b[164]]= false;bill[_0x4330x1f[_0x622b[77]]][_0x622b[114]]= false;bill[_0x4330x1f[_0x622b[77]]][_0x622b[103]]= _0x4330x1f[_0x622b[182]][_0x622b[161]]();if(bill[_0x4330x1f[_0x622b[77]]][_0x622b[103]]=== _0x622b[183]){bill[_0x4330x1f[_0x622b[77]]][_0x622b[56]]= true;bill[_0x4330x1f[_0x622b[77]]][_0x622b[138]]= _0x4330x1f[_0x622b[138]];bill[_0x4330x1f[_0x622b[77]]][_0x622b[137]]= _0x4330x1f[_0x622b[137]];ami[_0x622b[112]](_0x622b[167],_[_0x622b[111]](bill[_0x4330x1f[_0x622b[77]]]));delete bill[_0x4330x1f[_0x622b[77]]][_0x622b[79]];bill[_0x4330x1f[_0x622b[77]]][_0x622b[56]]= false;bill[_0x4330x1f[_0x622b[77]]][_0x622b[159]]= false;bill[_0x4330x1f[_0x622b[77]]][_0x622b[164]]= false;bill[_0x4330x1f[_0x622b[77]]][_0x622b[103]]= null;bill[_0x4330x1f[_0x622b[77]]][_0x622b[168]]= null;bill[_0x4330x1f[_0x622b[77]]][_0x622b[169]]= null;bill[_0x4330x1f[_0x622b[77]]][_0x622b[170]]= null}}}}function queuecallerabandon(_0x4330x1f){if(bill[_0x4330x1f[_0x622b[77]]]&& !bill[_0x4330x1f[_0x622b[77]]][_0x622b[159]]){bill[_0x4330x1f[_0x622b[77]]][_0x622b[164]]= true;bill[_0x4330x1f[_0x622b[77]]][_0x622b[114]]= false;bill[_0x4330x1f[_0x622b[77]]][_0x622b[168]]= _0x4330x1f[_0x622b[168]];bill[_0x4330x1f[_0x622b[77]]][_0x622b[169]]= _0x4330x1f[_0x622b[169]];bill[_0x4330x1f[_0x622b[77]]][_0x622b[170]]= _0x4330x1f[_0x622b[170]]}}function hangup(_0x4330x1f){if(bill[_0x4330x1f[_0x622b[77]]]){var _0x4330x2f=moment();bill[_0x4330x1f[_0x622b[77]]][_0x622b[184]]= _0x4330x2f[_0x622b[141]](_0x622b[144]);bill[_0x4330x1f[_0x622b[77]]][_0x622b[185]]= _0x4330x2f[_0x622b[188]](bill[_0x4330x1f[_0x622b[77]]][_0x622b[186]],_0x622b[187]);if(bill[_0x4330x1f[_0x622b[77]]][_0x622b[113]]){bill[_0x4330x1f[_0x622b[77]]][_0x622b[189]]= _0x4330x2f[_0x622b[188]](bill[_0x4330x1f[_0x622b[77]]][_0x622b[113]],_0x622b[187])};ami[_0x622b[112]](_0x622b[70],bill[_0x4330x1f[_0x622b[77]]]);if(bill[_0x4330x1f[_0x622b[77]]][_0x622b[79]]|| (bill[_0x4330x1f[_0x622b[77]]][_0x622b[114]]&& !bill[_0x4330x1f[_0x622b[77]]][_0x622b[113]])){if(bill[_0x4330x1f[_0x622b[77]]][_0x622b[164]]){ami[_0x622b[112]](_0x622b[165],bill[_0x4330x1f[_0x622b[77]]])}else {if(!bill[_0x4330x1f[_0x622b[77]]][_0x622b[159]]){bill[_0x4330x1f[_0x622b[77]]][_0x622b[159]]= true;bill[_0x4330x1f[_0x622b[77]]][_0x622b[103]]= _0x622b[166]};ami[_0x622b[112]](_0x622b[167],bill[_0x4330x1f[_0x622b[77]]])}};delete bill[_0x4330x1f[_0x622b[77]]]}}ami[_0x622b[66]](_0x622b[167],function(_0x4330x1f){addToQueue(_0x622b[190],_0x4330x1f)});ami[_0x622b[66]](_0x622b[165],function(_0x4330x1f){addToQueue(_0x622b[191],_0x4330x1f)});ami[_0x622b[66]](_0x622b[192],newchannel);ami[_0x622b[66]](_0x622b[193],newstate);ami[_0x622b[66]](_0x622b[194],function(_0x4330x1f){newexten(_0x4330x1f,false)});ami[_0x622b[66]](_0x622b[195],function(_0x4330x1f){varset(_0x4330x1f);addToQueue(_0x622b[195],_0x4330x1f)});ami[_0x622b[66]](_0x622b[191],queuecallerabandon);ami[_0x622b[66]](_0x622b[196],function(_0x4330x1f){hangup(_0x4330x1f);addToQueue(_0x622b[196],_0x4330x1f)});function handlePause(_0x4330x31,_0x4330x32){return function(_0x4330x33){var _0x4330x34=_0x4330x33[_0x622b[197]];var _0x4330x35={id:_0x4330x33[_0x622b[198]],voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,openchannelPause:true,pauseType:_0x4330x31[_0x622b[199]][_0x622b[152]]|| _0x4330x32[_0x622b[200]],lastPauseAt:moment()[_0x622b[141]](_0x622b[144])};return _0x4330x33[_0x622b[218]](_0x4330x35,{transaction:_0x4330x31[_0x622b[211]]|| null})[_0x622b[29]](function(_0x4330x3b){if(_0x4330x3b){return addToQueue(_0x622b[215],_[_0x622b[217]]({newValues:_0x4330x35},_0x4330x3b[_0x622b[216]]))}})[_0x622b[29]](function(){var _0x4330x3a=moment()[_0x622b[141]](_0x622b[144]);return models[_0x622b[213]][_0x622b[214]]({duration:moment(_0x4330x3a)[_0x622b[188]](moment(_0x4330x34),_0x622b[187]),exitAt:_0x4330x3a},{where:{membername:_0x4330x33[_0x622b[26]],interface:util[_0x622b[141]](_0x622b[203],_0x622b[204],_0x4330x33[_0x622b[26]]),type:_0x622b[205],exitAt:null}})})[_0x622b[29]](function(){var _0x4330x36=_0x4330x35[_0x622b[201]]?channels:_[_0x622b[202]](channels,function(_0x4330x37){return _0x4330x37!== _0x622b[16]});var _0x4330x38=[];_0x4330x36[_0x622b[28]](function(_0x4330x39){_0x4330x38[_0x622b[210]]({channel:_0x4330x39,membername:_0x4330x33[_0x622b[26]],interface:util[_0x622b[141]](_0x622b[203],_0x622b[204],_0x4330x33[_0x622b[26]]),type:_0x622b[205],enterAt:moment()[_0x622b[141]](_0x622b[144]),data1:_0x4330x31[_0x622b[199]][_0x622b[152]]|| _0x4330x32[_0x622b[206]],data2:_0x4330x32[_0x622b[207]],data4:_0x4330x32[_0x622b[200]],role:_0x4330x33[_0x622b[208]],internal:_0x4330x33[_0x622b[133]],uniqueid:_0x4330x32[_0x622b[209]]})});return models[_0x622b[213]][_0x622b[212]](_0x4330x38,{raw:true,individualHooks:true,transaction:_0x4330x31[_0x622b[211]]|| null})})}}function handleUnpause(_0x4330x31,_0x4330x32){return function(_0x4330x33){var _0x4330x35;if(!_0x4330x31[_0x622b[199]]){_0x4330x31[_0x622b[199]]= {}};if(_0x4330x31[_0x622b[199]][_0x622b[152]]!== _0x622b[219]){events[_0x622b[220]](_0x4330x33[_0x622b[26]])};switch(_0x4330x31[_0x622b[199]][_0x622b[142]]){case _0x622b[16]:_0x4330x35= {id:_0x4330x33[_0x622b[198]],voicePause:false};return _0x4330x33[_0x622b[218]](_0x4330x35,{transaction:_0x4330x31[_0x622b[211]]|| null})[_0x622b[29]](function(_0x4330x3b){return addToQueue(_0x622b[215],_[_0x622b[217]]({newValues:_0x4330x35},_0x4330x3b[_0x622b[216]]))})[_0x622b[29]](function(){return models[_0x622b[213]][_0x622b[222]]({where:{channel:_0x4330x31[_0x622b[199]][_0x622b[142]],membername:_0x4330x33[_0x622b[26]],interface:util[_0x622b[141]](_0x622b[203],_0x622b[204],_0x4330x33[_0x622b[26]]),type:_0x622b[205],exitAt:null}})})[_0x622b[29]](handleEntityNotFound({message:_0x622b[221]}))[_0x622b[29]](function(_0x4330x3d){return _0x4330x3d[_0x622b[218]]({exitAt:moment()[_0x622b[141]](_0x622b[144])},{transaction:_0x4330x31[_0x622b[211]]|| null})})[_0x622b[29]](function(){return _0x4330x33});case _0x622b[17]:;case _0x622b[18]:;case _0x622b[19]:;case _0x622b[20]:;case _0x622b[21]:var _0x4330x3e={};_0x4330x3e[util[_0x622b[141]](_0x622b[223],_0x4330x31[_0x622b[199]][_0x622b[142]],_0x622b[224])]= false;return _0x4330x33[_0x622b[218]](_0x4330x3e,{transaction:_0x4330x31[_0x622b[211]]|| null})[_0x622b[29]](function(_0x4330x33){_0x4330x3e[_0x622b[198]]= _0x4330x33[_0x622b[198]];return addToQueue(_0x622b[215],_[_0x622b[217]]({newValues:_0x4330x3e},_0x4330x33[_0x622b[216]]))})[_0x622b[29]](function(){return models[_0x622b[213]][_0x622b[222]]({where:{channel:_0x4330x31[_0x622b[199]][_0x622b[142]],membername:_0x4330x33[_0x622b[26]],interface:util[_0x622b[141]](_0x622b[203],_0x622b[204],_0x4330x33[_0x622b[26]]),type:_0x622b[205],exitAt:null}})})[_0x622b[29]](handleEntityNotFound({message:_0x622b[221]}))[_0x622b[29]](function(_0x4330x3d){return _0x4330x3d[_0x622b[218]]({exitAt:moment()[_0x622b[141]](_0x622b[144])},{transaction:_0x4330x31[_0x622b[211]]|| null})})[_0x622b[29]](function(){return _0x4330x33});default:_0x4330x35= {id:_0x4330x33[_0x622b[198]],voicePause:false,mailPause:false,chatPause:false,faxPause:false,smsPause:false,openchannelPause:false};return _0x4330x33[_0x622b[218]](_0x4330x35,{transaction:_0x4330x31[_0x622b[211]]|| null})[_0x622b[29]](function(_0x4330x3b){return addToQueue(_0x622b[215],_[_0x622b[217]]({newValues:_0x4330x35},_0x4330x33[_0x622b[216]]))})[_0x622b[29]](function(){return models[_0x622b[213]][_0x622b[30]]({where:{membername:_0x4330x33[_0x622b[26]],interface:util[_0x622b[141]](_0x622b[203],_0x622b[204],_0x4330x33[_0x622b[26]]),type:_0x622b[205],exitAt:null}})})[_0x622b[29]](function(_0x4330x3f){var _0x4330x40=[];_0x4330x3f[_0x622b[28]](function(_0x4330x41){_0x4330x40[_0x622b[210]](_0x4330x41[_0x622b[218]]({exitAt:moment()[_0x622b[141]](_0x622b[144])}))});return BPromise[_0x622b[225]](_0x4330x40)})[_0x622b[29]](function(){return _0x4330x33})}}}function queueAddUpdate(_0x4330x43,_0x4330x44){return models[_0x622b[226]][_0x622b[222]]({where:{queue:_0x4330x43,membername:_0x4330x44}})[_0x622b[29]](function(_0x4330x45){if(_0x4330x45){return _0x4330x45[_0x622b[218]]({logged:true,loggedAt:moment()[_0x622b[141]](_0x622b[144])})}})}function handleLogin(_0x4330x31,_0x4330x32){return function(_0x4330x33){var _0x4330x35={id:_0x4330x33[_0x622b[198]],online:true,lastLoginAt:moment()[_0x622b[141]](_0x622b[144])};if(!_0x4330x33[_0x622b[227]]){return BPromise[_0x622b[237]]()[_0x622b[29]](function(){return addToQueue(_0x622b[215],_[_0x622b[236]]({newValues:_0x4330x35},_0x4330x33[_0x622b[216]],_0x4330x35))})[_0x622b[29]](function(){return _0x4330x33[_0x622b[235]]()})[_0x622b[29]](function(voiceQueues){var _0x4330x47=[];voiceQueues[_0x622b[28]](function(_0x4330x48){_0x4330x47[_0x622b[210]](amiAction({action:_0x622b[232],queue:_0x4330x48[_0x622b[26]],interface:util[_0x622b[141]](_0x622b[203],_0x622b[204],_0x4330x33[_0x622b[26]]),membername:_0x4330x33[_0x622b[26]],penalty:_0x4330x48[_0x622b[226]][_0x622b[233]],paused:_0x4330x33[_0x622b[234]]})[_0x622b[25]](function(_0x4330x14){if(_0x4330x14[_0x622b[229]]=== _0x622b[230]){return queueAddUpdate(_0x4330x48[_0x622b[26]],_0x4330x33[_0x622b[26]])};console[_0x622b[24]](_0x622b[231],_0x4330x48[_0x622b[26]],_0x4330x14)}))});return _0x4330x47})[_0x622b[225]]()[_0x622b[29]](function(){var _0x4330x38=[];channels[_0x622b[28]](function(_0x4330x39){_0x4330x38[_0x622b[210]]({channel:_0x4330x39,membername:_0x4330x33[_0x622b[26]],interface:util[_0x622b[141]](_0x622b[203],_0x622b[204],_0x4330x33[_0x622b[26]]),type:_0x622b[228],enterAt:moment()[_0x622b[141]](_0x622b[144]),role:_0x4330x33[_0x622b[208]],internal:_0x4330x33[_0x622b[133]]})});return models[_0x622b[213]][_0x622b[212]](_0x4330x38,{raw:true,individualHooks:true})})[_0x622b[29]](function(){return _0x4330x33[_0x622b[218]](_0x4330x35)})}}}function logoutAgent(_0x4330x33){return BPromise[_0x622b[237]]()[_0x622b[29]](function(){return addToQueue(_0x622b[215],_[_0x622b[236]]({newValues:{id:_0x4330x33[_0x622b[198]],online:false}},_0x4330x33[_0x622b[216]],{online:false}))})[_0x622b[29]](function(){return models[_0x622b[58]][_0x622b[30]]()})[_0x622b[29]](function(voiceQueues){var _0x4330x47=[];voiceQueues[_0x622b[28]](function(_0x4330x48){_0x4330x47[_0x622b[210]](amiAction({action:_0x622b[238],queue:_0x4330x48[_0x622b[26]],interface:util[_0x622b[141]](_0x622b[203],_0x622b[204],_0x4330x33[_0x622b[26]])})[_0x622b[25]](function(_0x4330x14){}))});return BPromise[_0x622b[225]](_0x4330x47)})[_0x622b[29]](function(_0x4330x4a){return models[_0x622b[213]][_0x622b[30]]({where:{membername:_0x4330x33[_0x622b[26]],interface:util[_0x622b[141]](_0x622b[203],_0x622b[204],_0x4330x33[_0x622b[26]]),type:_0x622b[228],exitAt:null}})})[_0x622b[29]](function(_0x4330x3f){var _0x4330x40=[];_0x4330x3f[_0x622b[28]](function(_0x4330x41){_0x4330x40[_0x622b[210]](_0x4330x41[_0x622b[218]]({exitAt:moment()[_0x622b[141]](_0x622b[144])}))});return BPromise[_0x622b[225]](_0x4330x40)})}function handleLogout(_0x4330x31,_0x4330x32){return function(_0x4330x33){if(_0x4330x33[_0x622b[227]]){return BPromise[_0x622b[237]]()[_0x622b[29]](function(){if(_0x4330x33[_0x622b[208]]=== _0x622b[239]){return logoutAgent(_0x4330x33)}})[_0x622b[29]](function(){return _0x4330x33[_0x622b[218]]({online:false})})}}}function handleQueueAdd(_0x4330x31,_0x4330x32){return function(_0x4330x33){var _0x4330x4d=[];switch(_0x4330x31[_0x622b[199]][_0x622b[142]]){case _0x622b[16]:_0x4330x31[_0x622b[199]][_0x622b[242]][_0x622b[28]](function(_0x4330x43){_0x4330x4d[_0x622b[210]](models[_0x622b[226]][_0x622b[241]]({where:{UserId:_0x4330x33[_0x622b[198]],queue:_0x4330x43},defaults:{queue:_0x4330x43,location:util[_0x622b[141]](_0x622b[240],_0x4330x33[_0x622b[26]]),membername:_0x4330x33[_0x622b[26]],UserId:_0x4330x33[_0x622b[198]],penalty:_0x4330x32[_0x622b[207]]},transaction:_0x4330x31[_0x622b[211]]|| null,individualHooks:true,raw:true}))});return BPromise[_0x622b[225]](_0x4330x4d)[_0x622b[29]](function(){var _0x4330x47=[];_0x4330x31[_0x622b[199]][_0x622b[242]][_0x622b[28]](function(_0x4330x43){_0x4330x47[_0x622b[210]](amiAction({action:_0x622b[232],queue:_0x4330x43,paused:_0x4330x33[_0x622b[201]],interface:util[_0x622b[141]](_0x622b[203],_0x622b[204],_0x4330x33[_0x622b[26]]),membername:_0x4330x33[_0x622b[26]]})[_0x622b[25]](function(_0x4330x14){if(_0x4330x14[_0x622b[229]]=== _0x622b[230]){return queueAddUpdate(_0x4330x43,_0x4330x33[_0x622b[26]])};console[_0x622b[24]](_0x622b[243],_0x4330x43,_0x4330x14)}))});return BPromise[_0x622b[225]](_0x4330x47)});case _0x622b[17]:_0x4330x31[_0x622b[199]][_0x622b[242]][_0x622b[28]](function(_0x4330x43){_0x4330x4d[_0x622b[210]](models[_0x622b[244]][_0x622b[241]]({where:{UserId:_0x4330x33[_0x622b[198]],ChatQueueId:_0x4330x43[_0x622b[198]]},defaults:{ChatQueueId:_0x4330x43[_0x622b[198]],queue:_0x4330x43[_0x622b[26]],UserId:_0x4330x33[_0x622b[198]],penalty:_0x4330x32[_0x622b[207]]},transaction:_0x4330x31[_0x622b[211]]|| null,individualHooks:true,raw:true}))});return BPromise[_0x622b[225]](_0x4330x4d);case _0x622b[18]:_0x4330x31[_0x622b[199]][_0x622b[242]][_0x622b[28]](function(_0x4330x43){_0x4330x4d[_0x622b[210]](models[_0x622b[245]][_0x622b[241]]({where:{UserId:_0x4330x33[_0x622b[198]],MailQueueId:_0x4330x43[_0x622b[198]]},defaults:{MailQueueId:_0x4330x43[_0x622b[198]],queue:_0x4330x43[_0x622b[26]],UserId:_0x4330x33[_0x622b[198]],penalty:_0x4330x32[_0x622b[207]]},transaction:_0x4330x31[_0x622b[211]]|| null,individualHooks:true,raw:true}))});return BPromise[_0x622b[225]](_0x4330x4d);case _0x622b[20]:_0x4330x31[_0x622b[199]][_0x622b[242]][_0x622b[28]](function(_0x4330x43){_0x4330x4d[_0x622b[210]](models[_0x622b[246]][_0x622b[241]]({where:{UserId:_0x4330x33[_0x622b[198]],SmsQueueId:_0x4330x43[_0x622b[198]]},defaults:{SmsQueueId:_0x4330x43[_0x622b[198]],queue:_0x4330x43[_0x622b[26]],UserId:_0x4330x33[_0x622b[198]],penalty:_0x4330x32[_0x622b[207]]},transaction:_0x4330x31[_0x622b[211]]|| null,individualHooks:true,raw:true}))});return BPromise[_0x622b[225]](_0x4330x4d);case _0x622b[21]:_0x4330x31[_0x622b[199]][_0x622b[242]][_0x622b[28]](function(_0x4330x43){_0x4330x4d[_0x622b[210]](models[_0x622b[247]][_0x622b[241]]({where:{UserId:_0x4330x33[_0x622b[198]],OpenchannelQueueId:_0x4330x43[_0x622b[198]]},defaults:{OpenchannelQueueId:_0x4330x43[_0x622b[198]],queue:_0x4330x43[_0x622b[26]],UserId:_0x4330x33[_0x622b[198]],penalty:_0x4330x32[_0x622b[207]]},transaction:_0x4330x31[_0x622b[211]]|| null,individualHooks:true,raw:true}))});return BPromise[_0x622b[225]](_0x4330x4d);case _0x622b[19]:_0x4330x31[_0x622b[199]][_0x622b[242]][_0x622b[28]](function(_0x4330x43){_0x4330x4d[_0x622b[210]](models[_0x622b[248]][_0x622b[241]]({where:{UserId:_0x4330x33[_0x622b[198]],FaxQueueId:_0x4330x43[_0x622b[198]]},defaults:{faxQueueId:_0x4330x43[_0x622b[198]],queue:_0x4330x43[_0x622b[26]],UserId:_0x4330x33[_0x622b[198]],penalty:_0x4330x32[_0x622b[207]]},transaction:_0x4330x31[_0x622b[211]]|| null,individualHooks:true,raw:true}))});return BPromise[_0x622b[225]](_0x4330x4d);default:}}}function handleQueueRemove(_0x4330x31,_0x4330x32){return function(_0x4330x33){switch(_0x4330x31[_0x622b[199]][_0x622b[142]]){case _0x622b[16]:return models[_0x622b[226]][_0x622b[250]]({where:{UserId:_0x4330x33[_0x622b[198]],queue:_0x4330x31[_0x622b[199]][_0x622b[83]]},transaction:_0x4330x31[_0x622b[211]]|| null,individualHooks:true,raw:true})[_0x622b[29]](function(){return amiAction({action:_0x622b[238],queue:_0x4330x31[_0x622b[199]][_0x622b[83]],interface:util[_0x622b[141]](_0x622b[203],_0x622b[204],_0x4330x33[_0x622b[26]])})})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[249],_0x4330x14[_0x622b[23]])});case _0x622b[17]:return models[_0x622b[244]][_0x622b[222]]({where:{UserId:_0x4330x33[_0x622b[198]],ChatQueueId:_0x4330x31[_0x622b[199]][_0x622b[252]]}})[_0x622b[29]](function(_0x4330x4f){if(_0x4330x4f){return _0x4330x4f[_0x622b[250]]({transaction:_0x4330x31[_0x622b[211]]|| null})}})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[251],_0x4330x14)});case _0x622b[18]:return models[_0x622b[245]][_0x622b[222]]({where:{UserId:_0x4330x33[_0x622b[198]],MailQueueId:_0x4330x31[_0x622b[199]][_0x622b[252]]}})[_0x622b[29]](function(_0x4330x4f){if(_0x4330x4f){return _0x4330x4f[_0x622b[250]]({transaction:_0x4330x31[_0x622b[211]]|| null})}})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[253],_0x4330x14)});case _0x622b[20]:return models[_0x622b[246]][_0x622b[222]]({where:{UserId:_0x4330x33[_0x622b[198]],SmsQueueId:_0x4330x31[_0x622b[199]][_0x622b[252]]}})[_0x622b[29]](function(_0x4330x4f){if(_0x4330x4f){return _0x4330x4f[_0x622b[250]]({transaction:_0x4330x31[_0x622b[211]]|| null})}})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[254],_0x4330x14)});case _0x622b[21]:return models[_0x622b[247]][_0x622b[222]]({where:{UserId:_0x4330x33[_0x622b[198]],OpenchannelQueueId:_0x4330x31[_0x622b[199]][_0x622b[252]]}})[_0x622b[29]](function(_0x4330x4f){if(_0x4330x4f){return _0x4330x4f[_0x622b[250]]({transaction:_0x4330x31[_0x622b[211]]|| null})}})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[255],_0x4330x14)});case _0x622b[19]:return models[_0x622b[248]][_0x622b[222]]({where:{UserId:_0x4330x33[_0x622b[198]],FaxQueueId:_0x4330x31[_0x622b[199]][_0x622b[252]]}})[_0x622b[29]](function(_0x4330x4f){if(_0x4330x4f){return _0x4330x4f[_0x622b[250]]({transaction:_0x4330x31[_0x622b[211]]|| null})}})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[256],_0x4330x14)});default:}}}function handleEntityNotFound(_0x4330x51){return function(_0x4330x52){if(!_0x4330x52){throw _0x4330x51};return _0x4330x52}}function onSave(_0x4330x32,_0x4330x31){switch(_0x4330x32[_0x622b[26]]){case _0x622b[260]:return models[_0x622b[259]][_0x622b[258]](_0x4330x31[_0x622b[199]][_0x622b[239]])[_0x622b[29]](handleEntityNotFound({message:_0x622b[257]}))[_0x622b[29]](handlePause(_0x4330x31,_0x4330x32));case _0x622b[261]:return models[_0x622b[259]][_0x622b[258]](_0x4330x31[_0x622b[199]][_0x622b[239]])[_0x622b[29]](handleEntityNotFound({message:_0x622b[257]}))[_0x622b[29]](handleUnpause(_0x4330x31,_0x4330x32));case _0x622b[262]:return models[_0x622b[259]][_0x622b[258]](_0x4330x32[_0x622b[206]])[_0x622b[29]](handleEntityNotFound({message:_0x622b[257]}))[_0x622b[29]](handleLogin(_0x4330x31,_0x4330x32))[_0x622b[29]](function(_0x4330x54){return _0x4330x54});case _0x622b[263]:return models[_0x622b[259]][_0x622b[258]](_0x4330x32[_0x622b[206]])[_0x622b[29]](handleEntityNotFound({message:_0x622b[257]}))[_0x622b[29]](handleUnpause(_0x4330x31,_0x4330x32))[_0x622b[29]](handleLogout(_0x4330x31,_0x4330x32));case _0x622b[232]:return models[_0x622b[259]][_0x622b[258]](_0x4330x31[_0x622b[199]][_0x622b[239]])[_0x622b[29]](handleEntityNotFound({message:_0x622b[257]}))[_0x622b[29]](handleQueueAdd(_0x4330x31,_0x4330x32))[_0x622b[29]](function(_0x4330x4f){if(_0x4330x31[_0x622b[199]][_0x622b[142]]!== _0x622b[16]){return events[_0x622b[265]](_0x4330x4f,_0x4330x31[_0x622b[199]][_0x622b[142]])}})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[264],_0x4330x14[_0x622b[23]])});case _0x622b[238]:return models[_0x622b[259]][_0x622b[258]](_0x4330x31[_0x622b[199]][_0x622b[239]])[_0x622b[29]](handleEntityNotFound({message:_0x622b[257]}))[_0x622b[29]](handleQueueRemove(_0x4330x31,_0x4330x32))[_0x622b[29]](function(_0x4330x4f){if(_0x4330x31[_0x622b[199]][_0x622b[142]]!== _0x622b[16]){return events[_0x622b[267]](_0x4330x4f,_0x4330x31[_0x622b[199]][_0x622b[142]])}})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[266],_0x4330x14[_0x622b[23]])});default:throw {message:_0x622b[268]}}}function clean(channels){removeInactiveCalls();_[_0x622b[28]](channels,function(_0x4330x39){removeExpiredApplications(_0x4330x39)})}function removeInactiveCalls(){console[_0x622b[63]](_0x622b[269]);var _0x4330x57=[],_0x4330x58=[],_0x4330x59=moment()[_0x622b[141]](_0x622b[144]);return amiAction({action:_0x622b[284],command:_0x622b[285]})[_0x622b[29]](function(_0x4330x5f){var _0x4330x60;if(_0x4330x5f&& _0x4330x5f[_0x622b[278]]){var _0x4330x4f=_0x4330x5f[_0x622b[278]][_0x622b[86]](_0x622b[279]);_[_0x622b[28]](_0x4330x4f,function(_0x4330x37){if(_0x4330x37){_0x4330x60= _0x4330x37[_0x622b[86]](_0x622b[280]);_0x4330x60[_0x622b[281]]=== 14&& _0x4330x58[_0x622b[210]](_0x4330x60[_0x622b[282]]())}})};return models[_0x622b[283]][_0x622b[30]]({where:{$or:[{queuecallerleaveAt:null,queuecallerexit:false},{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null}}]}})})[_0x622b[29]](function(_0x4330x5e){_[_0x622b[28]](_0x4330x5e,function(_0x4330x5b){if(!_[_0x622b[153]](_0x4330x58,_0x4330x5b[_0x622b[77]])){_0x4330x57[_0x622b[210]](_0x4330x5b[_0x622b[218]]({queuecallerleaveAt:_0x4330x59,queuecallerexitAt:_0x4330x59,queuecallerexit:true,queuecallerexitreason:_0x622b[276]}))}});return models[_0x622b[277]][_0x622b[30]]({where:{leaveAt:null}})})[_0x622b[29]](function(_0x4330x5d){_[_0x622b[28]](_0x4330x5d,function(_0x4330x5b){if(!_[_0x622b[153]](_0x4330x58,_0x4330x5b[_0x622b[77]])){_0x4330x57[_0x622b[210]](_0x4330x5b[_0x622b[218]]({leaveAt:_0x4330x59,network:_0x622b[274]}))}});return models[_0x622b[275]][_0x622b[30]]({where:{endtime:null}})})[_0x622b[29]](function(_0x4330x5c){_[_0x622b[28]](_0x4330x5c,function(_0x4330x5b){if(!_[_0x622b[153]](_0x4330x58,_0x4330x5b[_0x622b[77]])){_0x4330x57[_0x622b[210]](_0x4330x5b[_0x622b[218]]({endtime:_0x4330x59,dialstatus:_0x622b[272]}))}});return models[_0x622b[273]][_0x622b[30]]({where:{agentcomplete:false,agentringnoanswer:false,agentdump:false}})})[_0x622b[29]](function(_0x4330x5a){_[_0x622b[28]](_0x4330x5a,function(_0x4330x5b){if(!_[_0x622b[153]](_0x4330x58,_0x4330x5b[_0x622b[77]])){_0x4330x57[_0x622b[210]](_0x4330x5b[_0x622b[218]]({lastevent:_0x622b[159],agentringnoanswer:true,agentringnoanswerAt:_0x4330x59,reason:_0x622b[272]}))}});return _0x4330x57})[_0x622b[225]]()[_0x622b[29]](function(){console[_0x622b[63]](_0x622b[271])})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[270],_0x4330x14)})}function removeExpiredApplications(_0x4330x39){return models[_0x622b[293]+ _0x4330x39+ _0x622b[294]][_0x622b[30]]({where:{leaveAt:null,timeslot:{$ne:null}}})[_0x622b[29]](function(_0x4330x62){var _0x4330x63,_0x4330x64=[];_[_0x622b[28]](_0x4330x62,function(_0x4330x65){_0x4330x63= moment(_0x4330x65[_0x622b[291]])[_0x622b[290]](_0x4330x65[_0x622b[289]],_0x622b[187]);if(moment()[_0x622b[292]](_0x4330x63)){_0x4330x64[_0x622b[210]](_0x4330x65[_0x622b[218]]({timeout:true,leaveAt:moment()[_0x622b[141]](_0x622b[144])}))}});return _0x4330x64})[_0x622b[225]]()[_0x622b[29]](function(){console[_0x622b[63]](_0x622b[286]+ _0x4330x39+ _0x622b[288])})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[286]+ _0x4330x39+ _0x622b[287],_0x4330x14)})}var channelModels=[_0x622b[295],_0x622b[296],_0x622b[297],_0x622b[298],_0x622b[299]];clean(channelModels);setInterval(function(){clean(channelModels)},10* 60* 1000);function networkRewrite(_0x4330x68){switch(_0x4330x68[_0x622b[152]]){case _0x622b[310]:return models[_0x622b[312]][_0x622b[311]](_0x622b[310])[_0x622b[30]]()[_0x622b[29]](function(_0x4330x69){var _0x4330x6a=_0x622b[143];var _0x4330x6b=_0x622b[301];_0x4330x69[_0x622b[28]](function(_0x4330x6c){_0x4330x6a+= util[_0x622b[141]](_0x622b[302],_0x4330x6c[_0x622b[182]])});fs[_0x622b[309]](path[_0x622b[304]](config[_0x622b[303]],_0x4330x6b),_0x4330x6a,{flags:_0x622b[305],mode:parseInt(_0x622b[306],8)},function(_0x4330x14){if(_0x4330x14){throw _0x4330x14};amiCommand(_0x622b[307]);console[_0x622b[63]](_0x622b[308])})})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[300],_0x4330x14)});case _0x622b[317]:return models[_0x622b[312]][_0x622b[311]](_0x622b[317])[_0x622b[30]]()[_0x622b[29]](function(_0x4330x6d){var _0x4330x6e=_0x622b[143];var _0x4330x6f=_0x622b[314];_0x4330x6d[_0x622b[28]](function(_0x4330x70){_0x4330x6e+= util[_0x622b[141]](_0x622b[315],_0x4330x70[_0x622b[182]])});fs[_0x622b[309]](path[_0x622b[304]](config[_0x622b[303]],_0x4330x6f),_0x4330x6e,{flags:_0x622b[305],mode:parseInt(_0x622b[306],8)},function(_0x4330x14){if(_0x4330x14){throw _0x4330x14};amiCommand(_0x622b[307]);console[_0x622b[63]](_0x622b[316])})})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[313],_0x4330x14)});default:console[_0x622b[24]](_0x622b[318],_0x4330x68[_0x622b[152]])}}function amiCommand(_0x4330x72){return amiAction({Action:_0x622b[284],command:_0x4330x72})[_0x622b[29]](function(_0x4330x4f){console[_0x622b[63]](_0x622b[319],_0x4330x72,_0x4330x4f)})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[319],_0x4330x72,_0x4330x14)})}function trunksRewrite(){var _0x4330x74=_0x622b[143];var _0x4330x75=_0x622b[143];var _0x4330x76=_0x622b[320];return models[_0x622b[31]][_0x622b[30]]({where:{active:true},raw:true})[_0x622b[29]](function(_0x4330x15){activeTrunks= {};_0x4330x15[_0x622b[28]](function(_0x4330x77){activeTrunks[_0x4330x77[_0x622b[26]]]= _0x4330x77[_0x622b[27]];delete _0x4330x77[_0x622b[321]];delete _0x4330x77[_0x622b[291]];delete _0x4330x77[_0x622b[322]];delete _0x4330x77[_0x622b[323]];delete _0x4330x77[_0x622b[73]];if(_0x4330x77[_0x622b[74]]){_0x4330x75+= util[_0x622b[141]](_0x4330x76,_0x4330x77[_0x622b[74]])};delete _0x4330x77[_0x622b[74]];_0x4330x74+= util[_0x622b[141]](_0x622b[324],_0x4330x77[_0x622b[26]]);if(_0x4330x77[_0x622b[325]]){_0x4330x74+= util[_0x622b[141]](_0x622b[326],_0x4330x77[_0x622b[325]]);delete _0x4330x77[_0x622b[325]]};for(var _0x4330x2a in _0x4330x77){if(_0x4330x77[_0x4330x2a]){switch(_0x4330x2a){case _0x622b[329]:var _0x4330x78=_0x4330x77[_0x4330x2a][_0x622b[86]](_0x622b[327]);_0x4330x78[_0x622b[28]](function(_0x4330x37){_0x4330x74+= util[_0x622b[141]](_0x622b[328],_0x4330x2a,_0x4330x37)});break;default:_0x4330x74+= util[_0x622b[141]](_0x622b[328],_0x4330x2a,_0x4330x77[_0x4330x2a])}}}});fs[_0x622b[309]](path[_0x622b[304]](config[_0x622b[303]],_0x622b[330]),_0x4330x74,{flags:_0x622b[305],mode:parseInt(_0x622b[306],8)},function(_0x4330x14){if(_0x4330x14){throw _0x4330x14};console[_0x622b[63]](_0x622b[331]);fs[_0x622b[309]](path[_0x622b[304]](config[_0x622b[303]],_0x622b[332]),_0x4330x75,{flags:_0x622b[305],mode:parseInt(_0x622b[306],8)},function(_0x4330x14){if(_0x4330x14){throw _0x4330x14};amiCommand(_0x622b[307]);console[_0x622b[63]](_0x622b[333])})})})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x4330x14)})}function rewriteContexts(_0x4330x68,_0x4330x7a){return function(){var _0x4330x7b=_0x622b[143];if(!_0x4330x7a){_0x4330x7b= util[_0x622b[141]](_0x622b[334],_0x4330x68[_0x622b[26]],_0x4330x68[_0x622b[26]])};return models[_0x622b[339]][_0x622b[30]]({where:{id:{$ne:_0x4330x68[_0x622b[198]]}}})[_0x622b[29]](function(_0x4330x7c){_0x4330x7c[_0x622b[28]](function(_0x4330x77){_0x4330x7b+= util[_0x622b[141]](_0x622b[334],_0x4330x77[_0x622b[26]],_0x4330x77[_0x622b[26]])});fs[_0x622b[309]](path[_0x622b[304]](config[_0x622b[303]],_0x622b[336]),_0x4330x7b,{flags:_0x622b[305],mode:parseInt(_0x622b[306],8)},function(_0x4330x14){if(_0x4330x14){throw _0x4330x14};console[_0x622b[63]](_0x622b[337]);amiCommand(_0x622b[338])})})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[335],_0x4330x14)})}}function createHangup(_0x4330x68){return function(){console[_0x622b[63]](_0x622b[340],_0x4330x68[_0x622b[26]]);var _0x4330x3e=[{context:_0x4330x68[_0x622b[26]],exten:_0x622b[341],priority:_0x622b[342],VoiceContextId:_0x4330x68[_0x622b[198]],type:_0x622b[343],app:_0x622b[344]},{context:_0x4330x68[_0x622b[26]],exten:_0x622b[345],priority:_0x622b[342],VoiceContextId:_0x4330x68[_0x622b[198]],type:_0x622b[343],app:_0x622b[344]}];return models[_0x622b[348]][_0x622b[212]](_0x4330x3e)[_0x622b[29]](function(){console[_0x622b[63]](_0x622b[347])})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[346],_0x4330x14)})}}function rtpRewrite(_0x4330x3e){if(_0x4330x3e){var _0x4330x7f=_0x622b[143];for(var _0x4330x2a in _0x4330x3e){_0x4330x3e[_0x4330x2a]&& (_0x4330x7f+= util[_0x622b[141]](_0x622b[328],_0x4330x2a,_0x4330x3e[_0x4330x2a]))};try{fs[_0x622b[350]](path[_0x622b[304]](config[_0x622b[303]],_0x622b[349]),_0x4330x7f,{flag:_0x622b[305],mode:parseInt(_0x622b[306],8)});console[_0x622b[63]](_0x622b[351]);amiCommand(_0x622b[352])}catch(err){console[_0x622b[24]](_0x622b[353],err)}}else {console[_0x622b[24]](_0x622b[354])}}function execRequest(_0x4330x68,_0x4330x81,_0x4330x82){return Util[_0x622b[357]](_0x4330x68,_0x4330x81,_0x4330x82)[_0x622b[29]](function(_0x4330x83){console[_0x622b[63]](_0x622b[356])})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[355])})}function webhook(_0x4330x68,_0x4330x85,_0x4330x86){return function(_0x4330x4f){var _0x4330x87=_0x4330x85;switch(_0x4330x86){case _0x622b[365]:if(_0x4330x87[_0x622b[358]]&& _0x4330x87[_0x622b[359]]){console[_0x622b[63]](_0x622b[360]+ _0x4330x87[_0x622b[26]]+ _0x622b[361]);execRequest(_0x4330x68,_0x4330x87[_0x622b[358]],_0x4330x87[_0x622b[359]])};if(_0x4330x87[_0x622b[362]][_0x622b[281]]){_[_0x622b[28]](_0x4330x87[_0x622b[362]],function(_0x4330x32){if(_0x4330x32[_0x622b[363]]){Util[_0x622b[364]](_0x4330x32,_0x4330x68)}})};break;case _0x622b[369]:if(_0x4330x87[_0x622b[366]]&& _0x4330x87[_0x622b[367]]){console[_0x622b[63]](_0x622b[360]+ _0x4330x87[_0x622b[26]]+ _0x622b[368]);execRequest(_0x4330x68,_0x4330x87[_0x622b[366]],_0x4330x87[_0x622b[367]])};break;case _0x622b[69]:if(_0x4330x87[_0x622b[370]]&& _0x4330x87[_0x622b[371]]){console[_0x622b[63]](_0x622b[360]+ _0x4330x87[_0x622b[26]]+ _0x622b[372]);execRequest(_0x4330x68,_0x4330x87[_0x622b[370]],_0x4330x87[_0x622b[371]])};break;default:console[_0x622b[63]](_0x622b[373])}}}function getFaxRoom(){return function(_0x4330x85,_0x4330x89){if(_0x4330x89[_0x622b[374]]){return models[_0x622b[375]][_0x622b[258]](_0x4330x89.FaxRoomId)}else {return models[_0x622b[375]][_0x622b[30]]({limit:1,where:{contact:_0x4330x89[_0x622b[378]],FaxAccountId:_0x4330x85[_0x622b[198]]},order:[[_0x622b[321],_0x622b[380]]]})[_0x622b[29]](function(_0x4330x8a){var _0x4330x8b=_[_0x622b[376]](_0x4330x8a);if(!_0x4330x8b|| _0x4330x8b[_0x622b[323]]=== _0x622b[377]){return models[_0x622b[375]][_0x622b[56]]({contact:_0x4330x89[_0x622b[378]],account:_0x4330x85[_0x622b[26]],status:_0x622b[379],FaxAccountId:_0x4330x85[_0x622b[198]]})}else {return _0x4330x8b}})}}}function sendFax(_0x4330x8d,_0x4330x8e,_0x4330x8f){if(_0x4330x8d[_0x622b[323]]=== _0x622b[381]){var _0x4330x90;var _0x4330x91=_0x4330x8d;var _0x4330x92=_0x4330x8d[_0x622b[382]];var _0x4330x93=_0x4330x8d[_0x622b[378]];var _0x4330x94;var _0x4330x95;var _0x4330x96,_0x4330x97;return models[_0x622b[432]][_0x622b[222]]({where:{localstationid:_0x4330x91[_0x622b[382]]}})[_0x622b[29]](function(_0x4330x9b){if(!_0x4330x9b){throw new Error(_0x622b[429])};console[_0x622b[63]](_0x622b[430],_0x4330x9b[_0x622b[393]]);_0x4330x94= _[_0x622b[111]](_0x4330x9b[_0x622b[216]]);return models[_0x622b[31]][_0x622b[222]]({where:{name:_0x4330x94[_0x622b[431]]},attributes:[_0x622b[26]]})})[_0x622b[29]](function(_0x4330x16){if(!_0x4330x16){throw new Error(_0x622b[427])};console[_0x622b[63]](_0x622b[428],_0x4330x16[_0x622b[26]]);_0x4330x95= _[_0x622b[111]](_0x4330x16[_0x622b[216]]);return})[_0x622b[29]](function(){return [_0x4330x94,_0x4330x91]})[_0x622b[417]](getFaxRoom())[_0x622b[29]](function(_0x4330x9a){if(!_0x4330x9a){throw new Error(_0x622b[424])};console[_0x622b[63]](_0x622b[425],_0x4330x9a[_0x622b[198]]);_0x4330x90= _0x4330x9a;return _0x4330x90[_0x622b[426]](_0x4330x91[_0x622b[198]])})[_0x622b[29]](function(){return _0x4330x90[_0x622b[218]]({status:_0x622b[379],lastEvent:_0x622b[381],lastEventAt:moment()[_0x622b[141]](_0x622b[144]),faxOut:++_0x4330x90[_0x622b[422]]},{individualHooks:true,user:_0x4330x8f[_0x622b[423]]})})[_0x622b[29]](function(_0x4330x3e){console[_0x622b[63]](_0x622b[420],_0x4330x3e[_0x622b[198]]);return _0x4330x90[_0x622b[421]](_0x4330x91.UserId)})[_0x622b[29]](function(){return models[_0x622b[259]][_0x622b[258]](_0x4330x91.UserId)})[_0x622b[29]](function(){if(_0x4330x94[_0x622b[418]]){return models[_0x622b[419]][_0x622b[241]]({where:{ListId:_0x4330x94[_0x622b[418]],$or:[{phone:_0x4330x93},{fax:_0x4330x93}]},defaults:{fax:_0x4330x93,phone:_0x4330x93,firstName:_0x4330x93,ListId:_0x4330x94[_0x622b[418]]}})}else {return []}})[_0x622b[417]](function(_0x4330x98,_0x4330x99){if(_0x4330x99!== undefined&& !_0x4330x99){return _0x4330x98[_0x622b[218]]({fax:_0x4330x93})};return})[_0x622b[29]](function(){_0x4330x96= _0x4330x91[_0x622b[404]][0][_0x622b[6]];if(_0x4330x91[_0x622b[404]][0][_0x622b[152]]=== _0x622b[405]){_0x4330x97= path[_0x622b[304]](config[_0x622b[406]],_0x622b[407],_0x622b[408],_0x622b[19],_0x622b[154],_0x622b[409],_0x622b[410],path[_0x622b[411]](_0x4330x96)[_0x622b[26]]+ _0x622b[412]);return exec(_0x622b[413]+ _0x4330x97+ _0x622b[414]+ _0x4330x96)}else {_0x4330x97= path[_0x622b[304]](config[_0x622b[406]],_0x622b[407],_0x622b[408],_0x622b[19],_0x622b[154],_0x622b[409],_0x622b[410],path[_0x622b[411]](_0x4330x96)[_0x622b[415]]);fse[_0x622b[416]](_0x4330x96,_0x4330x97);return}})[_0x622b[29]](function(){fs[_0x622b[402]](_0x4330x97,511);console[_0x622b[63]](_0x622b[403]);return models[_0x622b[387]][_0x622b[214]]({filename:_0x4330x97,localstationid:_0x4330x91[_0x622b[382]],retry:_0x4330x8e},{where:{id:_0x4330x91[_0x622b[198]]}})})[_0x622b[29]](function(_0x4330x8d){return amiAction({action:_0x622b[389],channel:util[_0x622b[141]](_0x622b[390],_0x4330x94[_0x622b[391]],_0x4330x95[_0x622b[26]],_0x4330x93),exten:_0x4330x93,context:_0x622b[392],priority:1,callerid:util[_0x622b[141]](_0x622b[139],_0x4330x94[_0x622b[393]],_0x4330x94[_0x622b[393]]),variable:{FAXNAME:_0x4330x94[_0x622b[26]],FAXNUMBER:_0x4330x93,FAXECM:_0x4330x94[_0x622b[394]],FAXHEADERINFO:_0x4330x94[_0x622b[395]],FAXLOCALSTATIONID:_0x4330x94[_0x622b[393]],FAXMINRATE:_0x4330x94[_0x622b[396]],FAXMAXRATE:_0x4330x94[_0x622b[397]],FAXMODEM:util[_0x622b[141]](_0x622b[398],_0x4330x94[_0x622b[399]]),FAXGATEWAY:_0x4330x94[_0x622b[400]],FAXT38TIMEOUT:_0x4330x94[_0x622b[401]],FAXOUTFILE:_0x4330x97},account:_0x4330x94[_0x622b[393]]})})[_0x622b[29]](function(_0x4330x4f){console[_0x622b[63]](_0x622b[388]);console[_0x622b[63]](_0x4330x4f)})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[383],_0x4330x14);console[_0x622b[24]](_0x622b[384],_0x4330x14[_0x622b[229]]);console[_0x622b[24]](_0x622b[385],_0x4330x14[_0x622b[23]]);return models[_0x622b[387]][_0x622b[214]]({status:_0x622b[130]},{where:{id:_0x4330x91[_0x622b[198]]}})[_0x622b[29]](function(_0x4330x3e){if(_0x4330x90){return _0x4330x90[_0x622b[218]]({lastEvent:_0x622b[130]})};return})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[386],_0x4330x14);console[_0x622b[24]](_0x622b[384],_0x4330x14[_0x622b[229]]);console[_0x622b[24]](_0x622b[385],_0x4330x14[_0x622b[23]])})})}}models[_0x622b[387]][_0x622b[433]](function(_0x4330x68,_0x4330x31){sendFax(_0x4330x68[_0x622b[216]],0,_0x4330x31)});models[_0x622b[387]][_0x622b[436]](function(_0x4330x68,_0x4330x31){if(_0x4330x68[_0x622b[434]](_0x622b[323])&& _0x4330x68[_0x622b[323]]=== _0x622b[381]){sendFax(_0x4330x68[_0x622b[216]],_0x4330x68[_0x622b[435]]+ 1,_0x4330x31)}});models[_0x622b[375]][_0x622b[436]](function(_0x4330x68){var _0x4330x9c=_[_0x622b[438]](faxaccounts,{id:_0x4330x68[_0x622b[437]]});if(_0x4330x9c&& _0x4330x68[_0x622b[434]](_0x622b[323])&& _0x4330x68[_0x622b[323]]=== _0x622b[377]){webhook(_0x4330x68[_0x622b[216]],_0x4330x9c,_0x622b[69])}});models[_0x622b[439]][_0x622b[433]](function(_0x4330x68,_0x4330x31){onSave(_0x4330x68,_0x4330x31)});models[_0x622b[432]][_0x622b[30]]({raw:true})[_0x622b[29]](function(_0x4330x9d){faxaccounts= _0x4330x9d})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[440],_0x4330x14)});function addToCollection(_0x4330x9f,_0x4330xa0){_0x4330x9f[_0x622b[210]](_0x4330xa0)}function updateCollection(_0x4330x9f,_0x4330xa0){var _0x4330xa2=_[_0x622b[438]](_0x4330x9f,{id:_0x4330xa0[_0x622b[198]]});if(_0x4330xa2){_[_0x622b[217]](_0x4330xa2,_0x4330xa0)}else {_0x4330x9f[_0x622b[441]](_0x4330xa0)}}function removeFromCollection(_0x4330x9f,_0x4330xa0){_[_0x622b[442]](_0x4330x9f,{id:_0x4330xa0[_0x622b[198]]})}process[_0x622b[66]](_0x622b[229],function(_0x4330xa4){switch(_0x4330xa4[_0x622b[229]]){case _0x622b[443]:;case _0x622b[444]:;case _0x622b[446]:networkRewrite(_0x4330xa4[_0x622b[445]]);break;case _0x622b[448]:return BPromise[_0x622b[237]]()[_0x622b[29]](rewriteContexts(_0x4330xa4[_0x622b[445]],false))[_0x622b[29]](createHangup(_0x4330xa4[_0x622b[445]]))[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[447],_0x4330x14)});case _0x622b[450]:return BPromise[_0x622b[237]]()[_0x622b[29]](rewriteContexts(_0x4330xa4[_0x622b[445]],true))[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](_0x622b[449],_0x4330x14)});case _0x622b[451]:addToCollection(faxaccounts,_0x4330xa4[_0x622b[445]]);break;case _0x622b[452]:updateCollection(faxaccounts,_0x4330xa4[_0x622b[445]]);break;case _0x622b[453]:removeFromCollection(faxaccounts,_0x4330xa4[_0x622b[445]]);break;case _0x622b[454]:trunksRewrite();break;case _0x622b[455]:rtpRewrite(_0x4330xa4[_0x622b[445]]);break;case _0x622b[456]:;case _0x622b[457]:sendFax(_0x4330xa4[_0x622b[445]],0,_0x4330xa4[_0x622b[45]]);break;case _0x622b[458]:var _0x4330x9c=_[_0x622b[438]](faxaccounts,{id:_0x4330xa4[_0x622b[445]][_0x622b[437]]});if(_0x4330x9c){webhook(_0x4330xa4[_0x622b[445]],_0x4330x9c,_0x622b[69])};break;case _0x622b[460]:return amiAction({action:_0x622b[284],command:_0x4330xa4[_0x622b[462]]})[_0x622b[29]](function(_0x4330x5f){return events[_0x622b[460]]({type:_0x622b[461],data:_0x4330x5f,socket:_0x4330xa4[_0x622b[459]]})})[_0x622b[25]](function(_0x4330x14){events[_0x622b[460]]({type:_0x622b[24],data:_0x4330x14,socket:_0x4330xa4[_0x622b[459]]})});case _0x622b[467]:return amiAction(_0x4330xa4[_0x622b[38]])[_0x622b[29]](function(_0x4330x5f){events[_0x622b[220]](_0x4330xa4[_0x622b[239]]);console[_0x622b[63]](util[_0x622b[141]](_0x622b[465],_0x4330xa4[_0x622b[239]],_0x4330xa4[_0x622b[38]][_0x622b[464]]?_0x622b[464]:_0x622b[466]))})[_0x622b[25]](function(_0x4330x14){console[_0x622b[24]](util[_0x622b[141]](_0x622b[463],_0x4330xa4[_0x622b[239]],_0x4330xa4[_0x622b[38]][_0x622b[464]]?_0x622b[260]:_0x622b[261]),_0x4330x14)});case _0x622b[469]:var _0x4330x85=_[_0x622b[438]](faxaccounts,{id:parseInt(_0x4330xa4[_0x622b[445]][_0x622b[468]])});if(_0x4330x85){webhook(_0x4330xa4[_0x622b[445]],_0x4330x85,_0x4330xa4[_0x622b[38]])};break;case _0x622b[470]:return onSave(_0x4330xa4[_0x622b[445]],_0x4330xa4[_0x622b[45]]);case _0x622b[471]:return events[_0x622b[471]](_0x4330xa4[_0x622b[242]]);case _0x622b[472]:;case _0x622b[473]:;case _0x622b[474]:;case _0x622b[475]:;case _0x622b[476]:;case _0x622b[477]:;case _0x622b[478]:;case _0x622b[479]:;case _0x622b[480]:;case _0x622b[481]:;case _0x622b[482]:;case _0x622b[484]:return events[_0x622b[483]](_0x4330xa4);case _0x622b[486]:return BPromise[_0x622b[237]]()[_0x622b[29]](function(){return amiUtil[_0x622b[486]](amiAction,_0x4330xa4[_0x622b[445]])})[_0x622b[25]](function(_0x4330x14){console[_0x622b[63]](_0x622b[485],_0x4330x14)});case _0x622b[487]:;case _0x622b[488]:;case _0x622b[489]:;case _0x622b[491]:return events[_0x622b[490]](_0x4330xa4);case _0x622b[497]:switch(_0x4330xa4[_0x622b[496]]){case _0x622b[493]:return events[_0x622b[492]]();case _0x622b[495]:return events[_0x622b[494]]();default:};break;case _0x622b[498]:newexten(_0x4330xa4[_0x622b[49]],true);break;case _0x622b[499]:addToCollection(voiceQueues,_0x4330xa4[_0x622b[445]]);break;case _0x622b[500]:updateCollection(voiceQueues,_0x4330xa4[_0x622b[445]]);break;case _0x622b[501]:removeFromCollection(voiceQueues,_0x4330xa4[_0x622b[445]]);break;default:}})