Built motion from commit 5b01f56.|0.0.106
[motion.git] / server / api / salesforce_account / salesforce_account.controller.js
1 var _0x7e59=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6A\x73\x66\x6F\x72\x63\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\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","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\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","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x63\x6F\x70\x65","\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","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x63\x6C\x69\x65\x6E\x74\x49\x64","\x63\x6C\x69\x65\x6E\x74\x53\x65\x63\x72\x65\x74","\x73\x65\x63\x75\x72\x69\x74\x79\x54\x6F\x6B\x65\x6E","\x63\x6F\x6E\x63\x61\x74","\x70\x61\x73\x73\x77\x6F\x72\x64","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x6C\x6F\x67\x69\x6E","\x61\x63\x63\x6F\x75\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x63\x6F\x75\x6E\x74","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x66\x69\x65\x6C\x64\x73","\x64\x65\x73\x63\x72\x69\x62\x65","\x54\x61\x73\x6B","\x73\x6F\x62\x6A\x65\x63\x74","\x67\x65\x74\x41\x63\x63\x6F\x75\x6E\x74\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x61\x63\x63\x6F\x75\x6E\x74","\x67\x65\x74\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x63\x69\x64","\x64\x65\x73\x74\x72\x6F\x79\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x63\x72\x65\x61\x74\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x53\x75\x62\x6A\x65\x63\x74","\x73\x74\x72\x69\x6E\x67","\x5B\x78\x43\x41\x4C\x4C\x59\x20\x54\x61\x73\x6B\x5D","\x76\x61\x72\x69\x61\x62\x6C\x65","","\x71\x75\x65\x75\x65","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x2A\x2A\x2A\x20\x43\x61\x6C\x6C\x20\x49\x6E\x66\x6F\x20\x2A\x2A\x2A","\x6B\x65\x79\x56\x61\x6C\x75\x65","\x43\x61\x6C\x6C\x65\x72\x20\x4E\x75\x6D\x62\x65\x72\x3A","\x43\x61\x6C\x6C\x65\x72\x20\x4E\x61\x6D\x65\x3A","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x43\x61\x6C\x6C\x20\x54\x6F\x3A","\x64\x65\x73\x74\x65\x78\x74\x65\x6E","\x51\x75\x65\x75\x65\x3A","\x55\x6E\x69\x71\x75\x65\x49\x64\x3A","\x75\x6E\x69\x71\x75\x65\x69\x64","\x44\x61\x74\x65\x3A","\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64\x41\x74","\x2A\x2A\x2A\x20\x41\x67\x65\x6E\x74\x20\x49\x6E\x66\x6F\x20\x2A\x2A\x2A","\x41\x67\x65\x6E\x74\x20\x4E\x61\x6D\x65\x3A","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x41\x67\x65\x6E\x74\x20\x4E\x75\x6D\x62\x65\x72\x3A","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x2A\x2A\x2A\x20\x54\x69\x6D\x65\x20\x49\x6E\x66\x6F\x20\x2A\x2A\x2A","\x41\x67\x65\x6E\x74\x20\x52\x69\x6E\x67\x3A","\x41\x67\x65\x6E\x74\x20\x43\x6F\x6E\x6E\x65\x63\x74\x3A","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x41\x74","\x41\x67\x65\x6E\x74\x20\x43\x6F\x6D\x70\x6C\x65\x74\x65\x3A","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x41\x74","\x48\x6F\x6C\x64\x20\x54\x69\x6D\x65\x3A","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x54\x61\x6C\x6B\x20\x54\x69\x6D\x65\x3A","\x74\x61\x6C\x6B\x74\x69\x6D\x65","\x76\x6F\x69\x63\x65","\x43\x68\x61\x6E\x6E\x65\x6C\x20\x6E\x6F\x74\x20\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x3A","\x63\x68\x61\x6E\x6E\x65\x6C","\x6C\x6F\x67","\x63\x72\x65\x61\x74\x65\x46\x69\x65\x6C\x64","\x53\x75\x62\x6A\x65\x63\x74\x49\x64","\x73\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x49\x64","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64\x49\x64","\x74\x79\x70\x65","\x75\x70\x64\x61\x74\x65\x46\x69\x65\x6C\x64","\x66\x69\x64","\x64\x65\x73\x74\x72\x6F\x79\x46\x69\x65\x6C\x64","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x54\x61\x67\x73","\x65\x72\x72\x6F\x72","\x73\x65\x74\x54\x61\x67\x73"];_0x7e59[0];var _=require(_0x7e59[1]);var util=require(_0x7e59[2]);var jsforce=require(_0x7e59[3]);var Util=require(_0x7e59[4]);var SalesforceAccount=require(_0x7e59[6])[_0x7e59[5]];var SalesforceConfiguration=require(_0x7e59[6])[_0x7e59[7]];var SalesforceField=require(_0x7e59[6])[_0x7e59[8]];function handleError(_0x8264x9,_0x8264xa){_0x8264xa=_0x8264xa||500;return function(_0x8264xb){_0x8264x9[_0x7e59[10]](_0x8264xa)[_0x7e59[9]](_0x8264xb)}}function responseWithResult(_0x8264x9,_0x8264xa){_0x8264xa=_0x8264xa||200;return function(_0x8264xd){if(_0x8264xd){_0x8264x9[_0x7e59[10]](_0x8264xa)[_0x7e59[11]](_0x8264xd)}}}function responseWithoutResult(_0x8264x9,_0x8264xa){_0x8264xa=_0x8264xa||200;return function(){_0x8264x9[_0x7e59[12]](_0x8264xa)}}function handleEntityNotFound(_0x8264x9){return function(_0x8264xd){if(!_0x8264xd){_0x8264x9[_0x7e59[10]](404)[_0x7e59[13]]();return null};return _0x8264xd}}function saveUpdates(_0x8264x11){return function(_0x8264xd){return _0x8264xd[_0x7e59[15]](_0x8264x11)[_0x7e59[14]](function(_0x8264x12){return _0x8264x12})}}function removeEntity(_0x8264x9){return function(_0x8264xd){if(_0x8264xd){return _0x8264xd[_0x7e59[16]]()[_0x7e59[14]](function(){_0x8264x9[_0x7e59[10]](204)[_0x7e59[13]]()})}}}exports[_0x7e59[17]]=function(_0x8264x14,_0x8264x9,_0x8264x15){return SalesforceAccount[_0x7e59[23]](_0x7e59[22])[_0x7e59[21]](Util[_0x7e59[20]](_0x8264x14[_0x7e59[19]]))[_0x7e59[14]](responseWithResult(_0x8264x9))[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[24]]=function(_0x8264x14,_0x8264x9){return SalesforceAccount[_0x7e59[27]](_0x8264x14[_0x7e59[26]][_0x7e59[25]])[_0x7e59[14]](handleEntityNotFound(_0x8264x9))[_0x7e59[14]](responseWithResult(_0x8264x9))[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[28]]=function(_0x8264x14,_0x8264x9){return SalesforceAccount[_0x7e59[28]](_0x8264x14[_0x7e59[29]])[_0x7e59[14]](responseWithResult(_0x8264x9,201))[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[30]]=function(_0x8264x14,_0x8264x9){if(_0x8264x14[_0x7e59[29]][_0x7e59[25]]){delete _0x8264x14[_0x7e59[29]][_0x7e59[25]]};return SalesforceAccount[_0x7e59[27]](_0x8264x14[_0x7e59[26]][_0x7e59[25]])[_0x7e59[14]](handleEntityNotFound(_0x8264x9))[_0x7e59[14]](saveUpdates(_0x8264x14[_0x7e59[29]]))[_0x7e59[14]](responseWithResult(_0x8264x9))[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[16]]=function(_0x8264x14,_0x8264x9){return SalesforceAccount[_0x7e59[27]](_0x8264x14[_0x7e59[26]][_0x7e59[25]])[_0x7e59[14]](handleEntityNotFound(_0x8264x9))[_0x7e59[14]](removeEntity(_0x8264x9))[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[31]]=function(_0x8264x14,_0x8264x9){return SalesforceAccount[_0x7e59[16]]({where:{id:_0x8264x14[_0x7e59[19]][_0x7e59[32]]},individualHooks:true})[_0x7e59[14]](responseWithResult(_0x8264x9,204))[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[33]]=function(_0x8264x14,_0x8264x9){return SalesforceAccount[_0x7e59[27]](_0x8264x14[_0x7e59[26]][_0x7e59[25]])[_0x7e59[14]](handleEntityNotFound(_0x8264x9))[_0x7e59[14]](function(_0x8264x16){var _0x8264x17= new jsforce.Connection({oauth2:{loginUrl:_0x8264x16[_0x7e59[34]],clientId:_0x8264x16[_0x7e59[35]],clientSecret:_0x8264x16[_0x7e59[36]]}});var _0x8264x18=_0x8264x16[_0x7e59[39]][_0x7e59[38]](_0x8264x16[_0x7e59[37]]);_0x8264x17[_0x7e59[41]](_0x8264x16[_0x7e59[40]],_0x8264x18,function(_0x8264xb,_0x8264x19){if(_0x8264xb){return _0x8264x9[_0x7e59[10]](400)[_0x7e59[9]](_0x8264xb)};return _0x8264x9[_0x7e59[12]](200)})})[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[42]]=function(_0x8264x14,_0x8264x9){var _0x8264x1a={};_0x8264x1a[_0x8264x14[_0x7e59[26]][_0x7e59[43]]]=_0x8264x14[_0x7e59[29]][_0x7e59[44]];return SalesforceAccount[_0x7e59[21]]({where:_0x8264x1a})[_0x7e59[14]](function(_0x8264x1b){if(_0x8264x1b[_0x7e59[45]]){return _0x8264x9[_0x7e59[10]](200)[_0x7e59[9]]({isValid:false,value:_0x8264x14[_0x7e59[29]][_0x7e59[44]]})};return _0x8264x9[_0x7e59[10]](200)[_0x7e59[9]]({isValid:true,value:_0x8264x14[_0x7e59[29]][_0x7e59[44]]})})[_0x7e59[18]](function(_0x8264xb){return handleError(_0x8264x9,_0x8264xb)})};exports[_0x7e59[46]]=function(_0x8264x14,_0x8264x9){return SalesforceAccount[_0x7e59[27]](_0x8264x14[_0x7e59[26]][_0x7e59[25]])[_0x7e59[14]](handleEntityNotFound(_0x8264x9))[_0x7e59[14]](function(_0x8264x16){var _0x8264x17= new jsforce.Connection({oauth2:{loginUrl:_0x8264x16[_0x7e59[34]],clientId:_0x8264x16[_0x7e59[35]],clientSecret:_0x8264x16[_0x7e59[36]]}});var _0x8264x18=_0x8264x16[_0x7e59[39]][_0x7e59[38]](_0x8264x16[_0x7e59[37]]);_0x8264x17[_0x7e59[41]](_0x8264x16[_0x7e59[40]],_0x8264x18,function(_0x8264xb,_0x8264x19){if(_0x8264xb){return _0x8264x9[_0x7e59[10]](400)[_0x7e59[9]](_0x8264xb)};_0x8264x17[_0x7e59[50]](_0x7e59[49])[_0x7e59[48]](function(_0x8264xb,_0x8264x1c){if(_0x8264xb){return _0x8264x9[_0x7e59[10]](400)[_0x7e59[9]](_0x8264xb)};return _0x8264x9[_0x7e59[10]](200)[_0x7e59[9]](_0x8264x1c[_0x7e59[47]])})})})[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[51]]=function(_0x8264x14,_0x8264x9){return SalesforceConfiguration[_0x7e59[23]]({method:[_0x7e59[52],_0x8264x14[_0x7e59[26]][_0x7e59[25]]]})[_0x7e59[21]](Util[_0x7e59[20]](_0x8264x14[_0x7e59[19]]))[_0x7e59[14]](responseWithResult(_0x8264x9))[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[53]]=function(_0x8264x14,_0x8264x9){return SalesforceConfiguration[_0x7e59[23]]({method:[_0x7e59[52],_0x8264x14[_0x7e59[26]][_0x7e59[25]]]})[_0x7e59[27]](_0x8264x14[_0x7e59[26]][_0x7e59[54]])[_0x7e59[14]](handleEntityNotFound(_0x8264x9))[_0x7e59[14]](responseWithResult(_0x8264x9))[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[55]]=function(_0x8264x14,_0x8264x9){return SalesforceConfiguration[_0x7e59[23]]({method:[_0x7e59[52],_0x8264x14[_0x7e59[26]][_0x7e59[25]]]})[_0x7e59[27]](_0x8264x14[_0x7e59[26]][_0x7e59[54]])[_0x7e59[14]](handleEntityNotFound(_0x8264x9))[_0x7e59[14]](removeEntity(_0x8264x9))[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[56]]=function(_0x8264x14,_0x8264x9){return SalesforceConfiguration[_0x7e59[16]]({where:{id:_0x8264x14[_0x7e59[19]][_0x7e59[32]]},individualHooks:true})[_0x7e59[14]](responseWithResult(_0x8264x9,204))[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[57]]=function(_0x8264x14,_0x8264x9){_0x8264x14[_0x7e59[29]][_0x7e59[58]]=_0x8264x14[_0x7e59[26]][_0x7e59[25]];switch(_0x8264x14[_0x7e59[29]][_0x7e59[96]]){case _0x7e59[94]:_0x8264x14[_0x7e59[29]][_0x7e59[59]]=[{"\x74\x79\x70\x65":_0x7e59[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[61],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":null},{"\x74\x79\x70\x65":_0x7e59[62],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[64]},{"\x74\x79\x70\x65":_0x7e59[62],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[65]}];_0x8264x14[_0x7e59[29]][_0x7e59[66]]=[{"\x74\x79\x70\x65":_0x7e59[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[67],"\x6B\x65\x79":null,"\x6B\x65\x79\x54\x79\x70\x65":null,"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":null},{"\x74\x79\x70\x65":_0x7e59[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x6B\x65\x79":_0x7e59[69],"\x6B\x65\x79\x54\x79\x70\x65":_0x7e59[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[65]},{"\x74\x79\x70\x65":_0x7e59[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x6B\x65\x79":_0x7e59[70],"\x6B\x65\x79\x54\x79\x70\x65":_0x7e59[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[71]},{"\x74\x79\x70\x65":_0x7e59[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x6B\x65\x79":_0x7e59[72],"\x6B\x65\x79\x54\x79\x70\x65":_0x7e59[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[73]},{"\x74\x79\x70\x65":_0x7e59[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x6B\x65\x79":_0x7e59[74],"\x6B\x65\x79\x54\x79\x70\x65":_0x7e59[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[64]},{"\x74\x79\x70\x65":_0x7e59[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x6B\x65\x79":_0x7e59[75],"\x6B\x65\x79\x54\x79\x70\x65":_0x7e59[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[76]},{"\x74\x79\x70\x65":_0x7e59[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x6B\x65\x79":_0x7e59[77],"\x6B\x65\x79\x54\x79\x70\x65":_0x7e59[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[78]},{"\x74\x79\x70\x65":_0x7e59[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[79],"\x6B\x65\x79":null,"\x6B\x65\x79\x54\x79\x70\x65":null,"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":null},{"\x74\x79\x70\x65":_0x7e59[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x6B\x65\x79":_0x7e59[80],"\x6B\x65\x79\x54\x79\x70\x65":_0x7e59[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[81]},{"\x74\x79\x70\x65":_0x7e59[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x6B\x65\x79":_0x7e59[82],"\x6B\x65\x79\x54\x79\x70\x65":_0x7e59[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[83]},{"\x74\x79\x70\x65":_0x7e59[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[84],"\x6B\x65\x79":null,"\x6B\x65\x79\x54\x79\x70\x65":null,"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":null},{"\x74\x79\x70\x65":_0x7e59[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x6B\x65\x79":_0x7e59[85],"\x6B\x65\x79\x54\x79\x70\x65":_0x7e59[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[78]},{"\x74\x79\x70\x65":_0x7e59[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x6B\x65\x79":_0x7e59[86],"\x6B\x65\x79\x54\x79\x70\x65":_0x7e59[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[87]},{"\x74\x79\x70\x65":_0x7e59[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x6B\x65\x79":_0x7e59[88],"\x6B\x65\x79\x54\x79\x70\x65":_0x7e59[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[89]},{"\x74\x79\x70\x65":_0x7e59[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x6B\x65\x79":_0x7e59[90],"\x6B\x65\x79\x54\x79\x70\x65":_0x7e59[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[91]},{"\x74\x79\x70\x65":_0x7e59[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x7e59[63],"\x6B\x65\x79":_0x7e59[92],"\x6B\x65\x79\x54\x79\x70\x65":_0x7e59[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x7e59[93]}];break;default:console[_0x7e59[97]](_0x7e59[95],_0x8264x14[_0x7e59[29]][_0x7e59[96]])};delete _0x8264x14[_0x7e59[29]][_0x7e59[96]];return SalesforceConfiguration[_0x7e59[28]](_0x8264x14[_0x7e59[29]],{include:[{model:SalesforceField,as:_0x7e59[59]},{model:SalesforceField,as:_0x7e59[66]}]})[_0x7e59[14]](responseWithResult(_0x8264x9,201))[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[98]]=function(_0x8264x14,_0x8264x9){return SalesforceConfiguration[_0x7e59[23]]({method:[_0x7e59[52],_0x8264x14[_0x7e59[26]][_0x7e59[25]]]})[_0x7e59[27]](_0x8264x14[_0x7e59[26]][_0x7e59[54]])[_0x7e59[14]](handleEntityNotFound(_0x8264x9))[_0x7e59[14]](function(_0x8264x1d){switch(_0x8264x14[_0x7e59[26]][_0x7e59[104]]){case _0x7e59[100]:_0x8264x14[_0x7e59[29]][_0x7e59[99]]=_0x8264x14[_0x7e59[26]][_0x7e59[54]];break;case _0x7e59[102]:_0x8264x14[_0x7e59[29]][_0x7e59[101]]=_0x8264x14[_0x7e59[26]][_0x7e59[54]];break;case _0x7e59[43]:_0x8264x14[_0x7e59[29]][_0x7e59[103]]=_0x8264x14[_0x7e59[26]][_0x7e59[54]];break};return SalesforceField[_0x7e59[28]](_0x8264x14[_0x7e59[29]])})[_0x7e59[14]](responseWithResult(_0x8264x9,201))[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[105]]=function(_0x8264x14,_0x8264x9){if(_0x8264x14[_0x7e59[29]][_0x7e59[25]]){delete _0x8264x14[_0x7e59[29]][_0x7e59[25]]};return SalesforceField[_0x7e59[27]](_0x8264x14[_0x7e59[26]][_0x7e59[106]])[_0x7e59[14]](handleEntityNotFound(_0x8264x9))[_0x7e59[14]](saveUpdates(_0x8264x14[_0x7e59[29]]))[_0x7e59[14]](responseWithResult(_0x8264x9))[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[107]]=function(_0x8264x14,_0x8264x9){return SalesforceField[_0x7e59[27]](_0x8264x14[_0x7e59[26]][_0x7e59[106]])[_0x7e59[14]](handleEntityNotFound(_0x8264x9))[_0x7e59[14]](removeEntity(_0x8264x9))[_0x7e59[18]](handleError(_0x8264x9))};exports[_0x7e59[108]]=function(_0x8264x14,_0x8264x9,_0x8264x15){return SalesforceConfiguration[_0x7e59[27]](_0x8264x14[_0x7e59[26]][_0x7e59[54]])[_0x7e59[14]](handleEntityNotFound(_0x8264x9))[_0x7e59[14]](function(_0x8264x1d){return _0x8264x1d[_0x7e59[110]](_0x8264x14[_0x7e59[29]])})[_0x7e59[14]](responseWithoutResult(_0x8264x9,200))[_0x7e59[18]](function(_0x8264xb){console[_0x7e59[109]](_0x8264xb);return handleError(_0x8264x9,_0x8264xb)})}