Built motion from commit 27af9f03b.|1.0.28
[motion.git] / server / api / salesforce_field / salesforce_field.controller.js
index b71f022..99095d6 100644 (file)
@@ -1 +1 @@
-var _0x8bbc=["\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"];_0x8bbc[0];var _=require(_0x8bbc[1]);var SalesforceField=require(_0x8bbc[3])[_0x8bbc[2]];function handleError(_0xe23ax4,_0xe23ax5){_0xe23ax5= _0xe23ax5|| 500;return function(_0xe23ax6){_0xe23ax4[_0x8bbc[5]](_0xe23ax5)[_0x8bbc[4]](_0xe23ax6)}}function responseWithResult(_0xe23ax4,_0xe23ax5){_0xe23ax5= _0xe23ax5|| 200;return function(_0xe23ax8){if(_0xe23ax8){_0xe23ax4[_0x8bbc[5]](_0xe23ax5)[_0x8bbc[6]](_0xe23ax8)}}}function handleEntityNotFound(_0xe23ax4){return function(_0xe23ax8){if(!_0xe23ax8){_0xe23ax4[_0x8bbc[5]](404)[_0x8bbc[7]]();return null};return _0xe23ax8}}function saveUpdates(_0xe23axb){return function(_0xe23ax8){return _0xe23ax8[_0x8bbc[9]](_0xe23axb)[_0x8bbc[8]](function(_0xe23axc){return _0xe23axc})}}function removeEntity(_0xe23ax4){return function(_0xe23ax8){if(_0xe23ax8){return _0xe23ax8[_0x8bbc[10]]()[_0x8bbc[8]](function(){_0xe23ax4[_0x8bbc[5]](204)[_0x8bbc[7]]()})}}}exports[_0x8bbc[11]]= function(_0xe23axe,_0xe23ax4){SalesforceField[_0x8bbc[13]]()[_0x8bbc[8]](responseWithResult(_0xe23ax4))[_0x8bbc[12]](handleError(_0xe23ax4))};exports[_0x8bbc[14]]= function(_0xe23axe,_0xe23ax4){SalesforceField[_0x8bbc[17]](_0xe23axe[_0x8bbc[16]][_0x8bbc[15]])[_0x8bbc[8]](handleEntityNotFound(_0xe23ax4))[_0x8bbc[8]](responseWithResult(_0xe23ax4))[_0x8bbc[12]](handleError(_0xe23ax4))};exports[_0x8bbc[18]]= function(_0xe23axe,_0xe23ax4){SalesforceField[_0x8bbc[18]](_0xe23axe[_0x8bbc[19]])[_0x8bbc[8]](responseWithResult(_0xe23ax4,201))[_0x8bbc[12]](handleError(_0xe23ax4))};exports[_0x8bbc[20]]= function(_0xe23axe,_0xe23ax4){if(_0xe23axe[_0x8bbc[19]][_0x8bbc[15]]){delete _0xe23axe[_0x8bbc[19]][_0x8bbc[15]]};SalesforceField[_0x8bbc[17]](_0xe23axe[_0x8bbc[16]][_0x8bbc[15]])[_0x8bbc[8]](handleEntityNotFound(_0xe23ax4))[_0x8bbc[8]](saveUpdates(_0xe23axe[_0x8bbc[19]]))[_0x8bbc[8]](responseWithResult(_0xe23ax4))[_0x8bbc[12]](handleError(_0xe23ax4))};exports[_0x8bbc[10]]= function(_0xe23axe,_0xe23ax4){SalesforceField[_0x8bbc[17]](_0xe23axe[_0x8bbc[16]][_0x8bbc[15]])[_0x8bbc[8]](handleEntityNotFound(_0xe23ax4))[_0x8bbc[8]](removeEntity(_0xe23ax4))[_0x8bbc[12]](handleError(_0xe23ax4))}
\ 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