Built motion from commit 36b8e3b.|0.0.111
[motion.git] / server / api / trunk / trunk.socket.js
1 var _0x18aa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x54\x72\x75\x6E\x6B","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x63\x68\x61\x6E\x67\x65\x64","\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6E\x61\x6D\x65","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x6D\x6F\x64\x69\x66\x79\x20\x61\x20\x74\x72\x75\x6E\x6B\x20\x6E\x61\x6D\x65","\x62\x65\x66\x6F\x72\x65\x55\x70\x64\x61\x74\x65","\x74\x72\x75\x6E\x6B\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x72\x6F\x6C\x65","\x61\x67\x65\x6E\x74","\x74\x72\x75\x6E\x6B\x3A\x75\x70\x64\x61\x74\x65","\x74\x72\x75\x6E\x6B\x3A\x72\x65\x6D\x6F\x76\x65"];_0x18aa[0];var Trunk=require(_0x18aa[2])[_0x18aa[1]];exports[_0x18aa[3]]=function(_0x6d2cx2){Trunk[_0x18aa[4]](function(_0x6d2cx3){onSave(_0x6d2cx2,_0x6d2cx3)});Trunk[_0x18aa[8]](function(_0x6d2cx3){if(_0x6d2cx3[_0x18aa[6]](_0x18aa[5])||_0x6d2cx3[_0x18aa[6]](_0x18aa[7])){onUpdate(_0x6d2cx2,_0x6d2cx3)}});Trunk[_0x18aa[9]](function(_0x6d2cx3){onRemove(_0x6d2cx2,_0x6d2cx3)});Trunk[_0x18aa[12]](function(_0x6d2cx3){if(_0x6d2cx3[_0x18aa[6]](_0x18aa[10])){throw  new Error(_0x18aa[11])}})};function onSave(_0x6d2cx2,_0x6d2cx3,_0x6d2cx5){_0x6d2cx2[_0x18aa[14]](_0x18aa[13],_0x6d2cx3)}function onUpdate(_0x6d2cx2,_0x6d2cx3,_0x6d2cx5){if(_0x6d2cx2[_0x18aa[15]]!==_0x18aa[16]){_0x6d2cx2[_0x18aa[14]](_0x18aa[17],_0x6d2cx3)}}function onRemove(_0x6d2cx2,_0x6d2cx3,_0x6d2cx5){_0x6d2cx2[_0x18aa[14]](_0x18aa[18],_0x6d2cx3)}