1 var _0x55b7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x41\x63\x74\x69\x6F\x6E","\x55\x73\x65\x72","\x65\x78\x70\x6F\x72\x74\x73","\x41\x43\x57","\x66\x69\x6E\x61\x6C\x6C\x79","\x61\x63\x77","\x55\x6E\x70\x61\x75\x73\x65\x55\x73\x65\x72","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6C\x6F\x67","\x74\x68\x65\x6E","\x75\x6E\x70\x61\x75\x73\x65","\x63\x72\x65\x61\x74\x65","\x63\x68\x65\x63\x6B\x61\x63\x77","\x74\x69\x6D\x65\x6F\x75\x74\x73","\x72\x70\x63","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x69\x64","\x6E\x61\x6D\x65","\x61\x63\x77\x54\x69\x6D\x65\x6F\x75\x74","\x70\x61\x75\x73\x65","\x75\x6E\x69\x71\x75\x65\x69\x64","\x71\x75\x65\x75\x65","\x76\x6F\x69\x63\x65\x50\x61\x75\x73\x65","\x66\x69\x6E\x64\x4F\x6E\x65"];_0x55b7[0];var _=require(_0x55b7[1]);var util=require(_0x55b7[2]);var moment=require(_0x55b7[3]);var BPromise=require(_0x55b7[4]);var VoiceQueue=require(_0x55b7[6])[_0x55b7[5]];var Action=require(_0x55b7[6])[_0x55b7[7]];var Agent=require(_0x55b7[6])[_0x55b7[8]];module[_0x55b7[9]]= function(){var _0x748ex8=_0x55b7[10];var _0x748ex9=[];var _0x748exa=function(_0x748exb,_0x748exc){return Action[_0x55b7[20]]({name:_0x55b7[19],data1:_0x55b7[10]},{body:{agent:_0x748exb,type:_0x55b7[10]},raw:true})[_0x55b7[18]](function(){console[_0x55b7[17]](_0x55b7[12],_0x55b7[13],_0x748exc);return null})[_0x55b7[16]](function(_0x748exd){console[_0x55b7[15]](_0x55b7[12],_0x55b7[13],_0x748exc,JSON[_0x55b7[14]](_0x748exd));return null})[_0x55b7[11]](function(){if(_0x748ex9[_0x748exc]){clearTimeout(_0x748ex9[_0x748exc]);delete _0x748ex9[_0x748exc]};return null})};return {checkacw:function(_0x748exc){if(_0x748ex9[_0x748exc]){console[_0x55b7[17]](_0x55b7[12],_0x55b7[21],_0x55b7[22],JSON[_0x55b7[14]](_0x748ex9));console[_0x55b7[17]](_0x55b7[12],_0x55b7[21],_0x748exc);clearTimeout(_0x748ex9[_0x748exc]);delete _0x748ex9[_0x748exc]}},agentcomplete:function(_0x748exe){return function(_0x748exf){var _0x748ex10,_0x748ex11;return Agent[_0x55b7[32]]({where:{name:_0x748exe[_0x55b7[24]]}})[_0x55b7[18]](function(_0x748ex12){if(_0x748ex12&& !_0x748ex12[_0x55b7[31]]){_0x748ex11= _0x748ex12;return VoiceQueue[_0x55b7[32]]({where:{name:_0x748exe[_0x55b7[30]]},attributes:[_0x55b7[26],_0x55b7[12],_0x55b7[27]]})};return null})[_0x55b7[18]](function(_0x748ex12){if(_0x748ex12&& _0x748ex12[_0x55b7[12]]){_0x748ex10= _0x748ex12;return Action[_0x55b7[20]]({name:_0x55b7[28],data1:_0x55b7[10],data2:_0x748ex12[_0x55b7[27]],data3:_0x748exe[_0x55b7[29]],data4:_0x748exe[_0x55b7[30]]},{body:{agent:_0x748ex11[_0x55b7[25]],type:_0x55b7[10]},raw:true})};return null})[_0x55b7[18]](function(_0x748ex12){if(_0x748ex12){_0x748ex9[_0x748exe[_0x55b7[24]]]= setTimeout(function(){_0x748exa(_0x748ex11[_0x55b7[25]],_0x748ex11[_0x55b7[26]])},_0x748ex10[_0x55b7[27]]* 1000)};return null})[_0x55b7[16]](function(_0x748exd){console[_0x55b7[15]](_0x55b7[23],_0x55b7[12],JSON[_0x55b7[14]](_0x748exd))})}}}}