Built motion from commit 27af9f03b.|1.0.28
[motion.git] / server / api / salesforce_field / salesforce_field.controller.js
index e7fde9c..99095d6 100644 (file)
@@ -1 +1 @@
-var _0x6baa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\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"];_0x6baa[0];var _=require(_0x6baa[1]);var SalesforceField=require(_0x6baa[3])[_0x6baa[2]];function handleError(_0xb3ffx4,_0xb3ffx5){_0xb3ffx5= _0xb3ffx5|| 500;return function(_0xb3ffx6){_0xb3ffx4[_0x6baa[5]](_0xb3ffx5)[_0x6baa[4]](_0xb3ffx6)}}function responseWithResult(_0xb3ffx4,_0xb3ffx5){_0xb3ffx5= _0xb3ffx5|| 200;return function(_0xb3ffx8){if(_0xb3ffx8){_0xb3ffx4[_0x6baa[5]](_0xb3ffx5)[_0x6baa[6]](_0xb3ffx8)}}}function handleEntityNotFound(_0xb3ffx4){return function(_0xb3ffx8){if(!_0xb3ffx8){_0xb3ffx4[_0x6baa[5]](404)[_0x6baa[7]]();return null};return _0xb3ffx8}}function saveUpdates(_0xb3ffxb){return function(_0xb3ffx8){return _0xb3ffx8[_0x6baa[9]](_0xb3ffxb)[_0x6baa[8]](function(_0xb3ffxc){return _0xb3ffxc})}}function removeEntity(_0xb3ffx4){return function(_0xb3ffx8){if(_0xb3ffx8){return _0xb3ffx8[_0x6baa[10]]()[_0x6baa[8]](function(){_0xb3ffx4[_0x6baa[5]](204)[_0x6baa[7]]()})}}}exports[_0x6baa[11]]= function(_0xb3ffxe,_0xb3ffx4){SalesforceField[_0x6baa[13]]()[_0x6baa[8]](responseWithResult(_0xb3ffx4))[_0x6baa[12]](handleError(_0xb3ffx4))};exports[_0x6baa[14]]= function(_0xb3ffxe,_0xb3ffx4){SalesforceField[_0x6baa[17]](_0xb3ffxe[_0x6baa[16]][_0x6baa[15]])[_0x6baa[8]](handleEntityNotFound(_0xb3ffx4))[_0x6baa[8]](responseWithResult(_0xb3ffx4))[_0x6baa[12]](handleError(_0xb3ffx4))};exports[_0x6baa[18]]= function(_0xb3ffxe,_0xb3ffx4){SalesforceField[_0x6baa[18]](_0xb3ffxe[_0x6baa[19]])[_0x6baa[8]](responseWithResult(_0xb3ffx4,201))[_0x6baa[12]](handleError(_0xb3ffx4))};exports[_0x6baa[20]]= function(_0xb3ffxe,_0xb3ffx4){if(_0xb3ffxe[_0x6baa[19]][_0x6baa[15]]){delete _0xb3ffxe[_0x6baa[19]][_0x6baa[15]]};SalesforceField[_0x6baa[17]](_0xb3ffxe[_0x6baa[16]][_0x6baa[15]])[_0x6baa[8]](handleEntityNotFound(_0xb3ffx4))[_0x6baa[8]](saveUpdates(_0xb3ffxe[_0x6baa[19]]))[_0x6baa[8]](responseWithResult(_0xb3ffx4))[_0x6baa[12]](handleError(_0xb3ffx4))};exports[_0x6baa[10]]= function(_0xb3ffxe,_0xb3ffx4){SalesforceField[_0x6baa[17]](_0xb3ffxe[_0x6baa[16]][_0x6baa[15]])[_0x6baa[8]](handleEntityNotFound(_0xb3ffx4))[_0x6baa[8]](removeEntity(_0xb3ffx4))[_0x6baa[12]](handleError(_0xb3ffx4))}
\ No newline at end of file
+var _0xdc70=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\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"];_0xdc70[0];var _=require(_0xdc70[1]);var logger=require(_0xdc70[3])(_0xdc70[2]);var SalesforceField=require(_0xdc70[5])[_0xdc70[4]];function handleError(_0xf3cax5,_0xf3cax6){_0xf3cax6= _0xf3cax6|| 500;return function(_0xf3cax7){logger[_0xdc70[7]](_0xf3cax7[_0xdc70[6]]);_0xf3cax5[_0xdc70[9]](_0xf3cax6)[_0xdc70[8]](_0xf3cax7)}}function responseWithResult(_0xf3cax5,_0xf3cax6){_0xf3cax6= _0xf3cax6|| 200;return function(_0xf3cax9){if(_0xf3cax9){_0xf3cax5[_0xdc70[9]](_0xf3cax6)[_0xdc70[10]](_0xf3cax9)}}}function handleEntityNotFound(_0xf3cax5){return function(_0xf3cax9){if(!_0xf3cax9){_0xf3cax5[_0xdc70[9]](404)[_0xdc70[11]]();return null};return _0xf3cax9}}function saveUpdates(_0xf3caxc){return function(_0xf3cax9){return _0xf3cax9[_0xdc70[13]](_0xf3caxc)[_0xdc70[12]](function(_0xf3caxd){return _0xf3caxd})}}function removeEntity(_0xf3cax5){return function(_0xf3cax9){if(_0xf3cax9){return _0xf3cax9[_0xdc70[14]]()[_0xdc70[12]](function(){_0xf3cax5[_0xdc70[9]](204)[_0xdc70[11]]()})}}}exports[_0xdc70[15]]= function(_0xf3caxf,_0xf3cax5){SalesforceField[_0xdc70[17]]()[_0xdc70[12]](responseWithResult(_0xf3cax5))[_0xdc70[16]](handleError(_0xf3cax5))};exports[_0xdc70[18]]= function(_0xf3caxf,_0xf3cax5){SalesforceField[_0xdc70[21]](_0xf3caxf[_0xdc70[20]][_0xdc70[19]])[_0xdc70[12]](handleEntityNotFound(_0xf3cax5))[_0xdc70[12]](responseWithResult(_0xf3cax5))[_0xdc70[16]](handleError(_0xf3cax5))};exports[_0xdc70[22]]= function(_0xf3caxf,_0xf3cax5){SalesforceField[_0xdc70[22]](_0xf3caxf[_0xdc70[23]])[_0xdc70[12]](responseWithResult(_0xf3cax5,201))[_0xdc70[16]](handleError(_0xf3cax5))};exports[_0xdc70[24]]= function(_0xf3caxf,_0xf3cax5){if(_0xf3caxf[_0xdc70[23]][_0xdc70[19]]){delete _0xf3caxf[_0xdc70[23]][_0xdc70[19]]};SalesforceField[_0xdc70[21]](_0xf3caxf[_0xdc70[20]][_0xdc70[19]])[_0xdc70[12]](handleEntityNotFound(_0xf3cax5))[_0xdc70[12]](saveUpdates(_0xf3caxf[_0xdc70[23]]))[_0xdc70[12]](responseWithResult(_0xf3cax5))[_0xdc70[16]](handleError(_0xf3cax5))};exports[_0xdc70[14]]= function(_0xf3caxf,_0xf3cax5){SalesforceField[_0xdc70[21]](_0xf3caxf[_0xdc70[20]][_0xdc70[19]])[_0xdc70[12]](handleEntityNotFound(_0xf3cax5))[_0xdc70[12]](removeEntity(_0xf3cax5))[_0xdc70[16]](handleError(_0xf3cax5))}
\ No newline at end of file