Built motion from commit 57474b6.|0.0.99
[motion.git] / server / api / salesforce_configuration / salesforce_configuration.controller.js
index 385fdc6..6ad248b 100644 (file)
@@ -1 +1 @@
-var _0xb4d9=["\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\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64","\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","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x53\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x73\x70\x72\x65\x61\x64","\x61\x64\x64\x53\x75\x62\x6A\x65\x63\x74","\x73\x75\x62\x6A\x65\x63\x74","\x61\x64\x64\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x65\x6C\x64","\x66\x69\x65\x6C\x64","\x74\x79\x70\x65"];_0xb4d9[0];var _=require(_0xb4d9[1]);var SalesforceConfiguration=require(_0xb4d9[3])[_0xb4d9[2]];var SalesforceField=require(_0xb4d9[3])[_0xb4d9[4]];function handleError(_0xfae5x5,_0xfae5x6){_0xfae5x6=_0xfae5x6||500;return function(_0xfae5x7){_0xfae5x5[_0xb4d9[6]](_0xfae5x6)[_0xb4d9[5]](_0xfae5x7)}}function responseWithResult(_0xfae5x5,_0xfae5x6){_0xfae5x6=_0xfae5x6||200;return function(_0xfae5x9){if(_0xfae5x9){_0xfae5x5[_0xb4d9[6]](_0xfae5x6)[_0xb4d9[7]](_0xfae5x9)}}}function handleEntityNotFound(_0xfae5x5){return function(_0xfae5x9){if(!_0xfae5x9){_0xfae5x5[_0xb4d9[6]](404)[_0xb4d9[8]]();return null};return _0xfae5x9}}function saveUpdates(_0xfae5xc){return function(_0xfae5x9){return _0xfae5x9[_0xb4d9[10]](_0xfae5xc)[_0xb4d9[9]](function(_0xfae5xd){return _0xfae5xd})}}function removeEntity(_0xfae5x5){return function(_0xfae5x9){if(_0xfae5x9){return _0xfae5x9[_0xb4d9[11]]()[_0xb4d9[9]](function(){_0xfae5x5[_0xb4d9[6]](204)[_0xb4d9[8]]()})}}}exports[_0xb4d9[12]]=function(_0xfae5xf,_0xfae5x5){SalesforceConfiguration[_0xb4d9[15]]({where:_0xfae5xf[_0xb4d9[14]]})[_0xb4d9[9]](responseWithResult(_0xfae5x5))[_0xb4d9[13]](handleError(_0xfae5x5))};exports[_0xb4d9[16]]=function(_0xfae5xf,_0xfae5x5){SalesforceConfiguration[_0xb4d9[22]]({where:{id:_0xfae5xf[_0xb4d9[18]][_0xb4d9[17]]},include:[{model:SalesforceField,as:_0xb4d9[19]},{model:SalesforceField,as:_0xb4d9[20]},{model:SalesforceField,as:_0xb4d9[21]}]})[_0xb4d9[9]](handleEntityNotFound(_0xfae5x5))[_0xb4d9[9]](responseWithResult(_0xfae5x5))[_0xb4d9[13]](handleError(_0xfae5x5))};exports[_0xb4d9[23]]=function(_0xfae5xf,_0xfae5x5){SalesforceConfiguration[_0xb4d9[23]](_0xfae5xf[_0xb4d9[24]])[_0xb4d9[9]](responseWithResult(_0xfae5x5,201))[_0xb4d9[13]](handleError(_0xfae5x5))};exports[_0xb4d9[25]]=function(_0xfae5xf,_0xfae5x5){if(_0xfae5xf[_0xb4d9[24]][_0xb4d9[17]]){delete _0xfae5xf[_0xb4d9[24]][_0xb4d9[17]]};SalesforceConfiguration[_0xb4d9[26]](_0xfae5xf[_0xb4d9[18]][_0xb4d9[17]])[_0xb4d9[9]](handleEntityNotFound(_0xfae5x5))[_0xb4d9[9]](saveUpdates(_0xfae5xf[_0xb4d9[24]]))[_0xb4d9[9]](responseWithResult(_0xfae5x5))[_0xb4d9[13]](handleError(_0xfae5x5))};exports[_0xb4d9[11]]=function(_0xfae5xf,_0xfae5x5){SalesforceConfiguration[_0xb4d9[26]](_0xfae5xf[_0xb4d9[18]][_0xb4d9[17]])[_0xb4d9[9]](handleEntityNotFound(_0xfae5x5))[_0xb4d9[9]](removeEntity(_0xfae5x5))[_0xb4d9[13]](handleError(_0xfae5x5))};exports[_0xb4d9[27]]=function(_0xfae5xf,_0xfae5x5,_0xfae5x10){var _0xfae5x11;SalesforceConfiguration[_0xb4d9[26]](_0xfae5xf[_0xb4d9[18]][_0xb4d9[17]])[_0xb4d9[9]](handleEntityNotFound(_0xfae5x5))[_0xb4d9[9]](function(_0xfae5x14){_0xfae5x11=_0xfae5x14;return SalesforceField[_0xb4d9[23]](_0xfae5xf[_0xb4d9[24]])})[_0xb4d9[9]](function(_0xfae5x13){switch(_0xfae5xf[_0xb4d9[18]][_0xb4d9[35]]){case _0xb4d9[30]:return [_0xfae5x11[_0xb4d9[29]](_0xfae5x13),_0xfae5x13];case _0xb4d9[32]:return [_0xfae5x11[_0xb4d9[31]](_0xfae5x13),_0xfae5x13];case _0xb4d9[34]:return [_0xfae5x11[_0xb4d9[33]](_0xfae5x13),_0xfae5x13]}})[_0xb4d9[28]](function(_0xfae5x12,_0xfae5x13){return _0xfae5x5[_0xb4d9[6]](201)[_0xb4d9[7]](_0xfae5x13)})[_0xb4d9[13]](handleError(_0xfae5x5))}
\ No newline at end of file
+var _0xbe68=["\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\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64","\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","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x53\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x73\x70\x72\x65\x61\x64","\x61\x64\x64\x53\x75\x62\x6A\x65\x63\x74","\x73\x75\x62\x6A\x65\x63\x74","\x61\x64\x64\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x65\x6C\x64","\x66\x69\x65\x6C\x64","\x74\x79\x70\x65"];_0xbe68[0];var _=require(_0xbe68[1]);var SalesforceConfiguration=require(_0xbe68[3])[_0xbe68[2]];var SalesforceField=require(_0xbe68[3])[_0xbe68[4]];function handleError(_0x5722x5,_0x5722x6){_0x5722x6=_0x5722x6||500;return function(_0x5722x7){_0x5722x5[_0xbe68[6]](_0x5722x6)[_0xbe68[5]](_0x5722x7)}}function responseWithResult(_0x5722x5,_0x5722x6){_0x5722x6=_0x5722x6||200;return function(_0x5722x9){if(_0x5722x9){_0x5722x5[_0xbe68[6]](_0x5722x6)[_0xbe68[7]](_0x5722x9)}}}function handleEntityNotFound(_0x5722x5){return function(_0x5722x9){if(!_0x5722x9){_0x5722x5[_0xbe68[6]](404)[_0xbe68[8]]();return null};return _0x5722x9}}function saveUpdates(_0x5722xc){return function(_0x5722x9){return _0x5722x9[_0xbe68[10]](_0x5722xc)[_0xbe68[9]](function(_0x5722xd){return _0x5722xd})}}function removeEntity(_0x5722x5){return function(_0x5722x9){if(_0x5722x9){return _0x5722x9[_0xbe68[11]]()[_0xbe68[9]](function(){_0x5722x5[_0xbe68[6]](204)[_0xbe68[8]]()})}}}exports[_0xbe68[12]]=function(_0x5722xf,_0x5722x5){SalesforceConfiguration[_0xbe68[15]]({where:_0x5722xf[_0xbe68[14]]})[_0xbe68[9]](responseWithResult(_0x5722x5))[_0xbe68[13]](handleError(_0x5722x5))};exports[_0xbe68[16]]=function(_0x5722xf,_0x5722x5){SalesforceConfiguration[_0xbe68[22]]({where:{id:_0x5722xf[_0xbe68[18]][_0xbe68[17]]},include:[{model:SalesforceField,as:_0xbe68[19]},{model:SalesforceField,as:_0xbe68[20]},{model:SalesforceField,as:_0xbe68[21]}]})[_0xbe68[9]](handleEntityNotFound(_0x5722x5))[_0xbe68[9]](responseWithResult(_0x5722x5))[_0xbe68[13]](handleError(_0x5722x5))};exports[_0xbe68[23]]=function(_0x5722xf,_0x5722x5){SalesforceConfiguration[_0xbe68[23]](_0x5722xf[_0xbe68[24]])[_0xbe68[9]](responseWithResult(_0x5722x5,201))[_0xbe68[13]](handleError(_0x5722x5))};exports[_0xbe68[25]]=function(_0x5722xf,_0x5722x5){if(_0x5722xf[_0xbe68[24]][_0xbe68[17]]){delete _0x5722xf[_0xbe68[24]][_0xbe68[17]]};SalesforceConfiguration[_0xbe68[26]](_0x5722xf[_0xbe68[18]][_0xbe68[17]])[_0xbe68[9]](handleEntityNotFound(_0x5722x5))[_0xbe68[9]](saveUpdates(_0x5722xf[_0xbe68[24]]))[_0xbe68[9]](responseWithResult(_0x5722x5))[_0xbe68[13]](handleError(_0x5722x5))};exports[_0xbe68[11]]=function(_0x5722xf,_0x5722x5){SalesforceConfiguration[_0xbe68[26]](_0x5722xf[_0xbe68[18]][_0xbe68[17]])[_0xbe68[9]](handleEntityNotFound(_0x5722x5))[_0xbe68[9]](removeEntity(_0x5722x5))[_0xbe68[13]](handleError(_0x5722x5))};exports[_0xbe68[27]]=function(_0x5722xf,_0x5722x5,_0x5722x10){var _0x5722x11;SalesforceConfiguration[_0xbe68[26]](_0x5722xf[_0xbe68[18]][_0xbe68[17]])[_0xbe68[9]](handleEntityNotFound(_0x5722x5))[_0xbe68[9]](function(_0x5722x14){_0x5722x11=_0x5722x14;return SalesforceField[_0xbe68[23]](_0x5722xf[_0xbe68[24]])})[_0xbe68[9]](function(_0x5722x13){switch(_0x5722xf[_0xbe68[18]][_0xbe68[35]]){case _0xbe68[30]:return [_0x5722x11[_0xbe68[29]](_0x5722x13),_0x5722x13];case _0xbe68[32]:return [_0x5722x11[_0xbe68[31]](_0x5722x13),_0x5722x13];case _0xbe68[34]:return [_0x5722x11[_0xbe68[33]](_0x5722x13),_0x5722x13]}})[_0xbe68[28]](function(_0x5722x12,_0x5722x13){return _0x5722x5[_0xbe68[6]](201)[_0xbe68[7]](_0x5722x13)})[_0xbe68[13]](handleError(_0x5722x5))}
\ No newline at end of file