Built motion from commit b4bc0f0.|0.0.52
[motion.git] / server / api / trunk / trunk.socket.js
1 var _0xe7cf=["\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","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6E\x61\x6D\x65","\x63\x68\x61\x6E\x67\x65\x64","\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","\x74\x72\x75\x6E\x6B\x3A\x72\x65\x6D\x6F\x76\x65"];_0xe7cf[0];var Trunk=require(_0xe7cf[2])[_0xe7cf[1]];exports[_0xe7cf[3]]=function(_0xec30x2){Trunk[_0xe7cf[4]](function(_0xec30x3){onSave(_0xec30x2,_0xec30x3)});Trunk[_0xe7cf[5]](function(_0xec30x3){onRemove(_0xec30x2,_0xec30x3)});Trunk[_0xe7cf[9]](function(_0xec30x3){if(_0xec30x3[_0xe7cf[7]](_0xe7cf[6])){throw  new Error(_0xe7cf[8])}})};function onSave(_0xec30x2,_0xec30x3,_0xec30x5){_0xec30x2[_0xe7cf[11]](_0xe7cf[10],_0xec30x3)}function onRemove(_0xec30x2,_0xec30x3,_0xec30x5){_0xec30x2[_0xe7cf[11]](_0xe7cf[12],_0xec30x3)}