Built motion from commit ee17993.|1.0.6
[motion.git] / server / api / salesforce_field / salesforce_field.controller.js
index 97f1cf5..c5d617f 100644 (file)
@@ -1 +1 @@
-var _0x6372=["\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"];_0x6372[0];var _=require(_0x6372[1]);var SalesforceField=require(_0x6372[3])[_0x6372[2]];function handleError(_0xb840x4,_0xb840x5){_0xb840x5= _0xb840x5|| 500;return function(_0xb840x6){_0xb840x4[_0x6372[5]](_0xb840x5)[_0x6372[4]](_0xb840x6)}}function responseWithResult(_0xb840x4,_0xb840x5){_0xb840x5= _0xb840x5|| 200;return function(_0xb840x8){if(_0xb840x8){_0xb840x4[_0x6372[5]](_0xb840x5)[_0x6372[6]](_0xb840x8)}}}function handleEntityNotFound(_0xb840x4){return function(_0xb840x8){if(!_0xb840x8){_0xb840x4[_0x6372[5]](404)[_0x6372[7]]();return null};return _0xb840x8}}function saveUpdates(_0xb840xb){return function(_0xb840x8){return _0xb840x8[_0x6372[9]](_0xb840xb)[_0x6372[8]](function(_0xb840xc){return _0xb840xc})}}function removeEntity(_0xb840x4){return function(_0xb840x8){if(_0xb840x8){return _0xb840x8[_0x6372[10]]()[_0x6372[8]](function(){_0xb840x4[_0x6372[5]](204)[_0x6372[7]]()})}}}exports[_0x6372[11]]= function(_0xb840xe,_0xb840x4){SalesforceField[_0x6372[13]]()[_0x6372[8]](responseWithResult(_0xb840x4))[_0x6372[12]](handleError(_0xb840x4))};exports[_0x6372[14]]= function(_0xb840xe,_0xb840x4){SalesforceField[_0x6372[17]](_0xb840xe[_0x6372[16]][_0x6372[15]])[_0x6372[8]](handleEntityNotFound(_0xb840x4))[_0x6372[8]](responseWithResult(_0xb840x4))[_0x6372[12]](handleError(_0xb840x4))};exports[_0x6372[18]]= function(_0xb840xe,_0xb840x4){SalesforceField[_0x6372[18]](_0xb840xe[_0x6372[19]])[_0x6372[8]](responseWithResult(_0xb840x4,201))[_0x6372[12]](handleError(_0xb840x4))};exports[_0x6372[20]]= function(_0xb840xe,_0xb840x4){if(_0xb840xe[_0x6372[19]][_0x6372[15]]){delete _0xb840xe[_0x6372[19]][_0x6372[15]]};SalesforceField[_0x6372[17]](_0xb840xe[_0x6372[16]][_0x6372[15]])[_0x6372[8]](handleEntityNotFound(_0xb840x4))[_0x6372[8]](saveUpdates(_0xb840xe[_0x6372[19]]))[_0x6372[8]](responseWithResult(_0xb840x4))[_0x6372[12]](handleError(_0xb840x4))};exports[_0x6372[10]]= function(_0xb840xe,_0xb840x4){SalesforceField[_0x6372[17]](_0xb840xe[_0x6372[16]][_0x6372[15]])[_0x6372[8]](handleEntityNotFound(_0xb840x4))[_0x6372[8]](removeEntity(_0xb840x4))[_0x6372[12]](handleError(_0xb840x4))}
\ No newline at end of file
+var _0xebcc=["\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"];_0xebcc[0];var _=require(_0xebcc[1]);var SalesforceField=require(_0xebcc[3])[_0xebcc[2]];function handleError(_0x383dx4,_0x383dx5){_0x383dx5= _0x383dx5|| 500;return function(_0x383dx6){_0x383dx4[_0xebcc[5]](_0x383dx5)[_0xebcc[4]](_0x383dx6)}}function responseWithResult(_0x383dx4,_0x383dx5){_0x383dx5= _0x383dx5|| 200;return function(_0x383dx8){if(_0x383dx8){_0x383dx4[_0xebcc[5]](_0x383dx5)[_0xebcc[6]](_0x383dx8)}}}function handleEntityNotFound(_0x383dx4){return function(_0x383dx8){if(!_0x383dx8){_0x383dx4[_0xebcc[5]](404)[_0xebcc[7]]();return null};return _0x383dx8}}function saveUpdates(_0x383dxb){return function(_0x383dx8){return _0x383dx8[_0xebcc[9]](_0x383dxb)[_0xebcc[8]](function(_0x383dxc){return _0x383dxc})}}function removeEntity(_0x383dx4){return function(_0x383dx8){if(_0x383dx8){return _0x383dx8[_0xebcc[10]]()[_0xebcc[8]](function(){_0x383dx4[_0xebcc[5]](204)[_0xebcc[7]]()})}}}exports[_0xebcc[11]]= function(_0x383dxe,_0x383dx4){SalesforceField[_0xebcc[13]]()[_0xebcc[8]](responseWithResult(_0x383dx4))[_0xebcc[12]](handleError(_0x383dx4))};exports[_0xebcc[14]]= function(_0x383dxe,_0x383dx4){SalesforceField[_0xebcc[17]](_0x383dxe[_0xebcc[16]][_0xebcc[15]])[_0xebcc[8]](handleEntityNotFound(_0x383dx4))[_0xebcc[8]](responseWithResult(_0x383dx4))[_0xebcc[12]](handleError(_0x383dx4))};exports[_0xebcc[18]]= function(_0x383dxe,_0x383dx4){SalesforceField[_0xebcc[18]](_0x383dxe[_0xebcc[19]])[_0xebcc[8]](responseWithResult(_0x383dx4,201))[_0xebcc[12]](handleError(_0x383dx4))};exports[_0xebcc[20]]= function(_0x383dxe,_0x383dx4){if(_0x383dxe[_0xebcc[19]][_0xebcc[15]]){delete _0x383dxe[_0xebcc[19]][_0xebcc[15]]};SalesforceField[_0xebcc[17]](_0x383dxe[_0xebcc[16]][_0xebcc[15]])[_0xebcc[8]](handleEntityNotFound(_0x383dx4))[_0xebcc[8]](saveUpdates(_0x383dxe[_0xebcc[19]]))[_0xebcc[8]](responseWithResult(_0x383dx4))[_0xebcc[12]](handleError(_0x383dx4))};exports[_0xebcc[10]]= function(_0x383dxe,_0x383dx4){SalesforceField[_0xebcc[17]](_0x383dxe[_0xebcc[16]][_0xebcc[15]])[_0xebcc[8]](handleEntityNotFound(_0x383dx4))[_0xebcc[8]](removeEntity(_0x383dx4))[_0xebcc[12]](handleError(_0x383dx4))}
\ No newline at end of file