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