Built motion from commit 70d17190.|2.0.57
[motion2.git] / server / components / interaction / service.js
1 var _0xf088=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x64\x62","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x79\x73\x71\x6C\x64\x62","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x2D\x69\x6E\x74\x65\x72\x61\x63\x74\x69\x6F\x6E\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72","\x6D\x61\x69\x6C\x2D\x69\x6E\x74\x65\x72\x61\x63\x74\x69\x6F\x6E\x73","\x66\x61\x78\x2D\x69\x6E\x74\x65\x72\x61\x63\x74\x69\x6F\x6E\x73","\x73\x6D\x73\x2D\x69\x6E\x74\x65\x72\x61\x63\x74\x69\x6F\x6E\x73","\x63\x68\x61\x74\x2D\x69\x6E\x74\x65\x72\x61\x63\x74\x69\x6F\x6E\x73","\x75\x70\x70\x65\x72\x46\x69\x72\x73\x74","\x49\x6E\x74\x65\x72\x61\x63\x74\x69\x6F\x6E\x49\x64","\x69\x64","\x75\x6E\x6B\x6E\x6F\x77\x6E","\x5B\x25\x73\x5D\x20\x69\x64\x3D\x25\x73\x20\x6E\x61\x6D\x65\x3D\x25\x73\x20\x72\x6F\x6C\x65\x3D\x25\x73\x20\x69\x6E\x74\x65\x72\x61\x63\x74\x69\x6F\x6E\x3D\x25\x73\x20\x62\x6F\x64\x79\x3D\x25\x73","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x6E\x61\x6D\x65","\x72\x6F\x6C\x65","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x6E\x75\x6C\x6C","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x69\x6E\x66\x6F","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x49\x6E\x74\x65\x72\x61\x63\x74\x69\x6F\x6E","\x74\x72\x61\x63\x6B\x65\x64","\x75\x73\x65\x72","\x71\x75\x65\x72\x79","\x62\x6F\x64\x79","\x63\x6C\x6F\x6E\x65","\x68\x74\x6D\x6C","\x70\x68\x6F\x6E\x65","\x66\x61\x78","\x6D\x6F\x62\x69\x6C\x65","\x6F\x6D\x69\x74"];_0xf088[0];var _=require(_0xf088[1]);var db=require(_0xf088[3])[_0xf088[2]];var loggers={openchannel:require(_0xf088[5])(_0xf088[4]),mail:require(_0xf088[5])(_0xf088[6]),fax:require(_0xf088[5])(_0xf088[7]),sms:require(_0xf088[5])(_0xf088[8]),chat:require(_0xf088[5])(_0xf088[9])};function getInteractionId(_0x3507x5,_0x3507x6,_0x3507x7){if(_0x3507x5&& _0x3507x5[_[_0xf088[10]](_0x3507x7)+ _0xf088[11]]){return _0x3507x5[_[_0xf088[10]](_0x3507x7)+ _0xf088[11]]}else {if(_0x3507x5&& _0x3507x5[_0xf088[12]]){return _0x3507x5[_0xf088[12]]}else {if(_0x3507x6&& _0x3507x6[_0xf088[12]]){return _0x3507x6[_0xf088[12]]}else {return _0xf088[13]}}}}function log(_0x3507x9,_0x3507xa,_0x3507x5,_0x3507x6,_0x3507x7,_0x3507xb){loggers[_0x3507x7[_0xf088[20]]()][_0x3507x9](_0xf088[14],_0x3507xb[_0xf088[15]](),_0x3507xa[_0xf088[12]],_0x3507xa[_0xf088[16]],_0x3507xa[_0xf088[17]],getInteractionId(_0x3507x5,_0x3507x6,_0x3507x7),_0x3507x5?JSON[_0xf088[18]](_0x3507x5):_0xf088[19])}function updateUser(_0x3507xa,_0x3507x5,_0x3507x6,_0x3507x7,_0x3507xb){db[_[_0xf088[10]](_0x3507x7)+ _0xf088[27]][_0xf088[26]]({where:{id:getInteractionId(_0x3507x5,_0x3507x6,_0x3507x7)}})[_0xf088[24]](function(_0x3507xd){if(_0x3507xd){return _0x3507xd[_0xf088[25]]({UserId:_0x3507xa[_0xf088[12]]})}})[_0xf088[24]](function(_0x3507xd){if(_0x3507xd){log(_0xf088[23],_0x3507xa,_0x3507x5,_0x3507x6,_0x3507x7,_0x3507xb)}})[_0xf088[22]](function(){log(_0xf088[21],_0x3507xa,_0x3507x5,_0x3507x6,_0x3507x7,_0x3507xb)})}exports[_0xf088[28]]= function(_0x3507x7,_0x3507xb){return function(_0x3507xe,_0x3507xf,_0x3507x10){var _0x3507xa=_0x3507xe[_0xf088[29]];var _0x3507x5={};var _0x3507x6=_0x3507xe[_0xf088[30]];if(_0x3507x5){_0x3507x5= _[_0xf088[32]](_0x3507xe[_0xf088[31]]);_0x3507x5= _[_0xf088[37]](_0x3507x5,[_0xf088[31],_0xf088[33],_0xf088[34],_0xf088[35],_0xf088[36]])};updateUser(_0x3507xa,_0x3507x5,_0x3507x6,_0x3507x7,_0x3507xb);_0x3507x10(null)}}