Built motion from commit 62eaa14.|1.0.10
[motion.git] / server / config / ami / events.js
1 var _0xf417=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\x2E\x2F\x64\x62\x2F\x74\x72\x75\x6E\x6B","\x2E\x2F\x64\x62\x2F\x75\x73\x65\x72","\x2E\x2F\x64\x62\x2F\x76\x6F\x69\x63\x65\x41\x67\x65\x6E\x74\x52\x65\x70\x6F\x72\x74","\x2E\x2F\x64\x62\x2F\x76\x6F\x69\x63\x65\x43\x61\x6C\x6C\x52\x65\x70\x6F\x72\x74","\x2E\x2F\x64\x62\x2F\x76\x6F\x69\x63\x65\x44\x69\x61\x6C\x52\x65\x70\x6F\x72\x74","\x2E\x2F\x64\x62\x2F\x6D\x65\x6D\x62\x65\x72\x52\x65\x70\x6F\x72\x74","\x2E\x2F\x64\x62\x2F\x76\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x52\x65\x70\x6F\x72\x74","\x2E\x2F\x64\x62\x2F\x76\x6F\x69\x63\x65\x52\x65\x63\x6F\x72\x64\x69\x6E\x67","\x2E\x2F\x64\x62\x2F\x76\x6F\x69\x63\x65\x54\x72\x61\x6E\x73\x66\x65\x72\x52\x65\x70\x6F\x72\x74","\x2E\x2F\x64\x62\x2F\x75\x73\x65\x72\x48\x61\x73\x51\x75\x65\x75\x65","\x2E\x2F\x64\x62\x2F\x66\x61\x78","\x2E\x2F\x61\x63\x77","\x2E\x2F\x73\x6F\x63\x6B\x65\x74","\x63\x68\x65\x63\x6B\x61\x63\x77","\x63\x6F\x6E\x73\x6F\x6C\x65","\x41\x73\x74\x65\x72\x69\x73\x6B\x20\x63\x6F\x6E\x73\x6F\x6C\x65","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x72\x65\x73\x6F\x6C\x76\x65","\x63\x6F\x6E\x6E\x65\x63\x74","\x41\x4D\x49\x20\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x6C\x6F\x67","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x41\x4D\x49\x20\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x63\x6C\x6F\x73\x65","\x6D\x61\x6E\x61\x67\x65\x72\x65\x76\x65\x6E\x74","\x63\x64\x72","\x68\x61\x6E\x67\x75\x70","\x64\x65\x76\x69\x63\x65\x73\x74\x61\x74\x65\x63\x68\x61\x6E\x67\x65","\x53\x49\x50\x2F","\x69\x6E\x64\x65\x78\x4F\x66","\x64\x65\x76\x69\x63\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","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\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","\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\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\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","\x61\x74\x74\x65\x6E\x64\x65\x64\x74\x72\x61\x6E\x73\x66\x65\x72","\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","\x76\x61\x72\x73\x65\x74","\x65\x72\x72","\x71\x75\x65\x75\x65\x73\x74\x61\x74\x75\x73","\x66\x61\x78\x65\x72\x72\x6F\x72","\x6D\x69\x78\x6D\x6F\x6E\x69\x74\x6F\x72\x5F\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x72\x6F\x75\x74\x65\x69\x64","\x61\x67\x65\x6E\x74\x55\x70\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x41\x67\x65\x6E\x74","\x72\x65\x61\x6C\x74\x69\x6D\x65\x51\x75\x65\x75\x65\x4D\x65\x6D\x62\x65\x72\x73","\x75\x70\x64\x61\x74\x65\x54\x72\x69\x67\x67\x65\x72\x73","\x71\x75\x65\x75\x65\x41\x64\x64","\x71\x75\x65\x75\x65\x52\x65\x6D\x6F\x76\x65","\x63\x68\x65\x63\x6B\x54\x72\x69\x67\x67\x65\x72\x73"];_0xf417[0];var _=require(_0xf417[1]);var BPromise=require(_0xf417[2]);var isOpen=true;var trunk=require(_0xf417[3])();var user=require(_0xf417[4])();var voiceAgentReport=require(_0xf417[5])();var voiceCallReport=require(_0xf417[6])();var voiceDialReport=require(_0xf417[7])();var memberReport=require(_0xf417[8])();var voiceQueueReport=require(_0xf417[9])();var voiceRecording=require(_0xf417[10])();var voiceTransferReport=require(_0xf417[11])();var userHasQueue=require(_0xf417[12])();var fax=require(_0xf417[13])();var acw=require(_0xf417[14])();var socket=require(_0xf417[15])();exports[_0xf417[16]]= function(_0x41bfx11){acw[_0xf417[16]](_0x41bfx11)};exports[_0xf417[17]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](socket[_0xf417[17]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[18],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[24]]= function(){console[_0xf417[26]](_0xf417[25]);isOpen= true};exports[_0xf417[27]]= function(){console[_0xf417[20]](_0xf417[28])};exports[_0xf417[29]]= function(_0x41bfx14){if(isOpen){console[_0xf417[20]](_0xf417[29],_0x41bfx14)};isOpen= false};exports[_0xf417[20]]= function(_0x41bfx13){if(isOpen){console[_0xf417[20]](_0xf417[20],_0x41bfx13)}};exports[_0xf417[30]]= function(_0x41bfx12){};exports[_0xf417[31]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](socket[_0xf417[31]](_0x41bfx12))[_0xf417[22]](voiceCallReport[_0xf417[31]](_0x41bfx12))[_0xf417[22]](voiceRecording[_0xf417[31]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[31],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[32]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](voiceDialReport[_0xf417[32]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[32]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[32],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[33]]= function(_0x41bfx12){if(_0x41bfx12[_0xf417[36]][_0xf417[35]](_0xf417[34])=== 0){return BPromise[_0xf417[23]]()[_0xf417[22]](socket[_0xf417[33]](_0x41bfx12))[_0xf417[22]](user[_0xf417[33]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[33],_0x41bfx13[_0xf417[19]],_0x41bfx12)})}};exports[_0xf417[37]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](trunk[_0xf417[37]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[37]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[37],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[38]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](trunk[_0xf417[38]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[38]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[38],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[39]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](user[_0xf417[39]](_0x41bfx12))[_0xf417[22]](voiceAgentReport[_0xf417[39]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[39]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[39],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[40]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](user[_0xf417[40]](_0x41bfx12))[_0xf417[22]](voiceQueueReport[_0xf417[40]](_0x41bfx12))[_0xf417[22]](memberReport[_0xf417[40]](_0x41bfx12))[_0xf417[22]](voiceRecording[_0xf417[40]](_0x41bfx12))[_0xf417[22]](voiceAgentReport[_0xf417[40]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[40]](_0x41bfx12))[_0xf417[22]](acw[_0xf417[40]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[40],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[41]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](user[_0xf417[41]](_0x41bfx12))[_0xf417[22]](user[_0xf417[42]](_0x41bfx12))[_0xf417[22]](voiceQueueReport[_0xf417[41]](_0x41bfx12))[_0xf417[22]](voiceAgentReport[_0xf417[41]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[41]](_0x41bfx12))[_0xf417[22]](voiceAgentReport[_0xf417[42]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[41],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[43]]= function(_0x41bfx12){console[_0xf417[26]](_0xf417[43],_0x41bfx12)};exports[_0xf417[44]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](user[_0xf417[44]](_0x41bfx12))[_0xf417[22]](voiceAgentReport[_0xf417[44]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[44]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[44],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[45]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](socket[_0xf417[45]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[45],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[46]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](userHasQueue[_0xf417[46]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[46]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[46],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[47]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](user[_0xf417[47]](_0x41bfx12))[_0xf417[22]](userHasQueue[_0xf417[47]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[47]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[47],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[48]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](userHasQueue[_0xf417[48]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[48]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[48],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[49]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](userHasQueue[_0xf417[49]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[49]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[49],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[50]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](userHasQueue[_0xf417[50]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[50]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[50],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[51]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](voiceQueueReport[_0xf417[51]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[51]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[51],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[52]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](user[_0xf417[52]](_0x41bfx12))[_0xf417[22]](voiceAgentReport[_0xf417[52]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[52]](_0x41bfx12))[_0xf417[22]](voiceQueueReport[_0xf417[52]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[52],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[53]]= function(_0x41bfx12){return null};exports[_0xf417[54]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](voiceTransferReport[_0xf417[54]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[54],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[55]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](voiceTransferReport[_0xf417[55]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[55],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[56]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](voiceDialReport[_0xf417[56]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[56]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[56],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[57]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](voiceDialReport[_0xf417[57]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[57]](_0x41bfx12))[_0xf417[22]](memberReport[_0xf417[57]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[57],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[58]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](fax[_0xf417[58]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[58],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[59]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](fax[_0xf417[59]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[59],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[60]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](fax[_0xf417[60]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[60],_0x41bfx13[_0xf417[19]],_0x41bfx12)})};exports[_0xf417[61]]= function(_0x41bfx12){return BPromise[_0xf417[23]]()[_0xf417[22]](voiceDialReport[_0xf417[66]](_0x41bfx12))[_0xf417[22]](voiceRecording[_0xf417[65]](_0x41bfx12))[_0xf417[22]](fax[_0xf417[64]](_0x41bfx12))[_0xf417[22]](voiceQueueReport[_0xf417[63]](_0x41bfx12))[_0xf417[22]](socket[_0xf417[61]](_0x41bfx12))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[26]](_0x41bfx13[_0xf417[19]]);console[_0xf417[20]](_0xf417[61],_0x41bfx12[_0xf417[62]][_0xf417[19]],_0x41bfx12)})};exports[_0xf417[67]]= function(_0x41bfx15){return BPromise[_0xf417[23]]()[_0xf417[22]](socket[_0xf417[67]](_0x41bfx15))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[68],_0x41bfx13)})};exports[_0xf417[69]]= function(_0x41bfx16){return BPromise[_0xf417[23]]()[_0xf417[22]](socket[_0xf417[69]](_0x41bfx16))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[69],_0x41bfx13)})};exports[_0xf417[70]]= function(_0x41bfx17){return BPromise[_0xf417[23]]()[_0xf417[22]](socket[_0xf417[70]](_0x41bfx17))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[70],_0x41bfx13)})};exports[_0xf417[71]]= function(_0x41bfx18,_0x41bfx19){return BPromise[_0xf417[23]]()[_0xf417[22]](socket[_0xf417[71]](_0x41bfx18,_0x41bfx19))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[71],_0x41bfx13)})};exports[_0xf417[72]]= function(_0x41bfx18,_0x41bfx19){return BPromise[_0xf417[23]]()[_0xf417[22]](socket[_0xf417[72]](_0x41bfx18,_0x41bfx19))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[72],_0x41bfx13)})};exports[_0xf417[73]]= function(_0x41bfx17){return BPromise[_0xf417[23]]()[_0xf417[22]](socket[_0xf417[73]](_0x41bfx17))[_0xf417[21]](function(_0x41bfx13){console[_0xf417[20]](_0xf417[73],_0x41bfx13[_0xf417[19]])})}