Built motion from commit c31a9a1.|1.0.15
[motion.git] / server / api / sugarcrm_field / sugarcrm_field.controller.js
index 6a8e3d3..67ff976 100644 (file)
@@ -1 +1 @@
-var _0x4158=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65"];_0x4158[0];var _=require(_0x4158[1]);var SugarcrmField=require(_0x4158[3])[_0x4158[2]];function handleError(_0xe17dx4,_0xe17dx5){_0xe17dx5= _0xe17dx5|| 500;return function(_0xe17dx6){_0xe17dx4[_0x4158[5]](_0xe17dx5)[_0x4158[4]](_0xe17dx6)}}function responseWithResult(_0xe17dx4,_0xe17dx5){_0xe17dx5= _0xe17dx5|| 200;return function(_0xe17dx8){if(_0xe17dx8){_0xe17dx4[_0x4158[5]](_0xe17dx5)[_0x4158[6]](_0xe17dx8)}}}function handleEntityNotFound(_0xe17dx4){return function(_0xe17dx8){if(!_0xe17dx8){_0xe17dx4[_0x4158[5]](404)[_0x4158[7]]();return null};return _0xe17dx8}}function saveUpdates(_0xe17dxb){return function(_0xe17dx8){return _0xe17dx8[_0x4158[9]](_0xe17dxb)[_0x4158[8]](function(_0xe17dxc){return _0xe17dxc})}}function removeEntity(_0xe17dx4){return function(_0xe17dx8){if(_0xe17dx8){return _0xe17dx8[_0x4158[10]]()[_0x4158[8]](function(){_0xe17dx4[_0x4158[5]](204)[_0x4158[7]]()})}}}exports[_0x4158[11]]= function(_0xe17dxe,_0xe17dx4){SugarcrmField[_0x4158[13]]()[_0x4158[8]](responseWithResult(_0xe17dx4))[_0x4158[12]](handleError(_0xe17dx4))};exports[_0x4158[14]]= function(_0xe17dxe,_0xe17dx4){SugarcrmField[_0x4158[17]](_0xe17dxe[_0x4158[16]][_0x4158[15]])[_0x4158[8]](handleEntityNotFound(_0xe17dx4))[_0x4158[8]](responseWithResult(_0xe17dx4))[_0x4158[12]](handleError(_0xe17dx4))};exports[_0x4158[18]]= function(_0xe17dxe,_0xe17dx4){SugarcrmField[_0x4158[18]](_0xe17dxe[_0x4158[19]])[_0x4158[8]](responseWithResult(_0xe17dx4,201))[_0x4158[12]](handleError(_0xe17dx4))};exports[_0x4158[20]]= function(_0xe17dxe,_0xe17dx4){if(_0xe17dxe[_0x4158[19]][_0x4158[15]]){delete _0xe17dxe[_0x4158[19]][_0x4158[15]]};SugarcrmField[_0x4158[17]](_0xe17dxe[_0x4158[16]][_0x4158[15]])[_0x4158[8]](handleEntityNotFound(_0xe17dx4))[_0x4158[8]](saveUpdates(_0xe17dxe[_0x4158[19]]))[_0x4158[8]](responseWithResult(_0xe17dx4))[_0x4158[12]](handleError(_0xe17dx4))};exports[_0x4158[10]]= function(_0xe17dxe,_0xe17dx4){SugarcrmField[_0x4158[17]](_0xe17dxe[_0x4158[16]][_0x4158[15]])[_0x4158[8]](handleEntityNotFound(_0xe17dx4))[_0x4158[8]](removeEntity(_0xe17dx4))[_0x4158[12]](handleError(_0xe17dx4))}
\ No newline at end of file
+var _0x6afa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65"];_0x6afa[0];var _=require(_0x6afa[1]);var SugarcrmField=require(_0x6afa[3])[_0x6afa[2]];function handleError(_0xf9cfx4,_0xf9cfx5){_0xf9cfx5= _0xf9cfx5|| 500;return function(_0xf9cfx6){_0xf9cfx4[_0x6afa[5]](_0xf9cfx5)[_0x6afa[4]](_0xf9cfx6)}}function responseWithResult(_0xf9cfx4,_0xf9cfx5){_0xf9cfx5= _0xf9cfx5|| 200;return function(_0xf9cfx8){if(_0xf9cfx8){_0xf9cfx4[_0x6afa[5]](_0xf9cfx5)[_0x6afa[6]](_0xf9cfx8)}}}function handleEntityNotFound(_0xf9cfx4){return function(_0xf9cfx8){if(!_0xf9cfx8){_0xf9cfx4[_0x6afa[5]](404)[_0x6afa[7]]();return null};return _0xf9cfx8}}function saveUpdates(_0xf9cfxb){return function(_0xf9cfx8){return _0xf9cfx8[_0x6afa[9]](_0xf9cfxb)[_0x6afa[8]](function(_0xf9cfxc){return _0xf9cfxc})}}function removeEntity(_0xf9cfx4){return function(_0xf9cfx8){if(_0xf9cfx8){return _0xf9cfx8[_0x6afa[10]]()[_0x6afa[8]](function(){_0xf9cfx4[_0x6afa[5]](204)[_0x6afa[7]]()})}}}exports[_0x6afa[11]]= function(_0xf9cfxe,_0xf9cfx4){SugarcrmField[_0x6afa[13]]()[_0x6afa[8]](responseWithResult(_0xf9cfx4))[_0x6afa[12]](handleError(_0xf9cfx4))};exports[_0x6afa[14]]= function(_0xf9cfxe,_0xf9cfx4){SugarcrmField[_0x6afa[17]](_0xf9cfxe[_0x6afa[16]][_0x6afa[15]])[_0x6afa[8]](handleEntityNotFound(_0xf9cfx4))[_0x6afa[8]](responseWithResult(_0xf9cfx4))[_0x6afa[12]](handleError(_0xf9cfx4))};exports[_0x6afa[18]]= function(_0xf9cfxe,_0xf9cfx4){SugarcrmField[_0x6afa[18]](_0xf9cfxe[_0x6afa[19]])[_0x6afa[8]](responseWithResult(_0xf9cfx4,201))[_0x6afa[12]](handleError(_0xf9cfx4))};exports[_0x6afa[20]]= function(_0xf9cfxe,_0xf9cfx4){if(_0xf9cfxe[_0x6afa[19]][_0x6afa[15]]){delete _0xf9cfxe[_0x6afa[19]][_0x6afa[15]]};SugarcrmField[_0x6afa[17]](_0xf9cfxe[_0x6afa[16]][_0x6afa[15]])[_0x6afa[8]](handleEntityNotFound(_0xf9cfx4))[_0x6afa[8]](saveUpdates(_0xf9cfxe[_0x6afa[19]]))[_0x6afa[8]](responseWithResult(_0xf9cfx4))[_0x6afa[12]](handleError(_0xf9cfx4))};exports[_0x6afa[10]]= function(_0xf9cfxe,_0xf9cfx4){SugarcrmField[_0x6afa[17]](_0xf9cfxe[_0x6afa[16]][_0x6afa[15]])[_0x6afa[8]](handleEntityNotFound(_0xf9cfx4))[_0x6afa[8]](removeEntity(_0xf9cfx4))[_0x6afa[12]](handleError(_0xf9cfx4))}
\ No newline at end of file