Built motion from commit 3594e56.|0.0.120
[motion.git] / server / api / salesforce_account / salesforce_account.controller.js
index 6d0ef16..9415737 100644 (file)
@@ -1 +1 @@
-var _0xedbb=["\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","\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","\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","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\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","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\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","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\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","\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","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0xedbb[0];var _=require(_0xedbb[1]);var util=require(_0xedbb[2]);var jsforce=require(_0xedbb[3]);var SalesforceAccount=require(_0xedbb[5])[_0xedbb[4]];function handleError(_0x631ex6,_0x631ex7){_0x631ex7=_0x631ex7||500;return function(_0x631ex8){_0x631ex6[_0xedbb[7]](_0x631ex7)[_0xedbb[6]](_0x631ex8)};}function responseWithResult(_0x631ex6,_0x631ex7){_0x631ex7=_0x631ex7||200;return function(_0x631exa){if(_0x631exa){_0x631ex6[_0xedbb[7]](_0x631ex7)[_0xedbb[8]](_0x631exa)}};}function handleEntityNotFound(_0x631ex6){return function(_0x631exa){if(!_0x631exa){_0x631ex6[_0xedbb[7]](404)[_0xedbb[9]]();return null;};return _0x631exa;}}function saveUpdates(_0x631exd){return function(_0x631exa){return _0x631exa[_0xedbb[11]](_0x631exd)[_0xedbb[10]](function(_0x631exe){return _0x631exe})}}function removeEntity(_0x631ex6){return function(_0x631exa){if(_0x631exa){return _0x631exa[_0xedbb[12]]()[_0xedbb[10]](function(){_0x631ex6[_0xedbb[7]](204)[_0xedbb[9]]()})}}}exports[_0xedbb[13]]=function(_0x631ex10,_0x631ex6){var _0x631ex11=[_0xedbb[14],_0xedbb[15],_0xedbb[16],_0xedbb[17]];var _0x631ex12=_0x631ex10[_0xedbb[19]][_0xedbb[18]]?parseInt(_0x631ex10[_0xedbb[19]][_0xedbb[18]],10):100;var _0x631ex13=_0x631ex10[_0xedbb[19]][_0xedbb[20]]?parseInt(_0x631ex10[_0xedbb[19]][_0xedbb[20]],10):0;var _0x631ex14={where:{},limit:_0x631ex12,offset:_0x631ex13*_0x631ex12};_[_0xedbb[34]](_0x631ex10[_0xedbb[19]],function(_0x631ex15,_0x631ex16){switch(_0x631ex16){case _0xedbb[18]:;case _0xedbb[20]:break ;;case _0xedbb[23]:_0x631ex14[_0xedbb[21]]=util[_0xedbb[26]](_0xedbb[22],_0x631ex10[_0xedbb[19]][_0xedbb[23]],_0x631ex10[_0xedbb[19]][_0xedbb[24]]||_0xedbb[25])||null;break ;;case _0xedbb[24]:break ;;case _0xedbb[32]:_0x631ex14[_0xedbb[28]][_0xedbb[27]]=[];_0x631ex11[_0xedbb[31]](function(_0x631ex17){var _0x631ex18={};_0x631ex18[_0x631ex17]={$like:_0xedbb[29]+_0x631ex15+_0xedbb[29]};_0x631ex14[_0xedbb[28]][_0xedbb[27]][_0xedbb[30]](_0x631ex18);});break ;;default:_0x631ex14[_0xedbb[28]][_0x631ex16]={$like:{}};_0x631ex14[_0xedbb[28]][_0x631ex16][_0xedbb[33]]=_0xedbb[29]+_0x631ex15+_0xedbb[29];;}});SalesforceAccount[_0xedbb[46]](_0x631ex14)[_0xedbb[10]](function(_0x631ex19){var _0x631ex1a=Math[_0xedbb[38]](_0x631ex19[_0xedbb[37]]/_0x631ex12);var _0x631ex1b=_0x631ex1a>(_0x631ex14[_0xedbb[39]]+1)?util[_0xedbb[26]](_0xedbb[40],_0x631ex10[_0xedbb[41]],_0x631ex10[_0xedbb[43]][_0xedbb[42]],_0x631ex10[_0xedbb[44]],_0x631ex13+1):null;var _0x631ex1c=_0x631ex13>0?util[_0xedbb[26]](_0xedbb[40],_0x631ex10[_0xedbb[41]],_0x631ex10[_0xedbb[43]][_0xedbb[42]],_0x631ex10[_0xedbb[44]],_0x631ex13-1):null;return _0x631ex6[_0xedbb[7]](200)[_0xedbb[6]]({count:_0x631ex19[_0xedbb[37]],rows:_0x631ex19[_0xedbb[45]],next_page:_0x631ex1b,previous_page:_0x631ex1c,total_pages:_0x631ex1a});})[_0xedbb[36]](function(_0x631ex8){return _0x631ex6[_0xedbb[7]](500)[_0xedbb[6]]({error:_0xedbb[35]})});};exports[_0xedbb[47]]=function(_0x631ex10,_0x631ex6){SalesforceAccount[_0xedbb[50]](_0x631ex10[_0xedbb[49]][_0xedbb[48]])[_0xedbb[10]](handleEntityNotFound(_0x631ex6))[_0xedbb[10]](responseWithResult(_0x631ex6))[_0xedbb[36]](handleError(_0x631ex6))};exports[_0xedbb[51]]=function(_0x631ex10,_0x631ex6){SalesforceAccount[_0xedbb[51]](_0x631ex10[_0xedbb[52]])[_0xedbb[10]](responseWithResult(_0x631ex6,201))[_0xedbb[36]](handleError(_0x631ex6))};exports[_0xedbb[53]]=function(_0x631ex10,_0x631ex6){if(_0x631ex10[_0xedbb[52]][_0xedbb[48]]){delete _0x631ex10[_0xedbb[52]][_0xedbb[48]]};SalesforceAccount[_0xedbb[50]](_0x631ex10[_0xedbb[49]][_0xedbb[48]])[_0xedbb[10]](handleEntityNotFound(_0x631ex6))[_0xedbb[10]](saveUpdates(_0x631ex10[_0xedbb[52]]))[_0xedbb[10]](responseWithResult(_0x631ex6))[_0xedbb[36]](handleError(_0x631ex6));};exports[_0xedbb[12]]=function(_0x631ex10,_0x631ex6){SalesforceAccount[_0xedbb[50]](_0x631ex10[_0xedbb[49]][_0xedbb[48]])[_0xedbb[10]](handleEntityNotFound(_0x631ex6))[_0xedbb[10]](removeEntity(_0x631ex6))[_0xedbb[36]](handleError(_0x631ex6))};exports[_0xedbb[54]]=function(_0x631ex10,_0x631ex6){SalesforceAccount[_0xedbb[50]](_0x631ex10[_0xedbb[49]][_0xedbb[48]])[_0xedbb[10]](handleEntityNotFound(_0x631ex6))[_0xedbb[10]](function(_0x631ex1d){var _0x631ex1e= new jsforce.Connection({oauth2:{loginUrl:_0x631ex1d[_0xedbb[17]],clientId:_0x631ex1d[_0xedbb[55]],clientSecret:_0x631ex1d[_0xedbb[56]]}});var _0x631ex1f=_0x631ex1d[_0xedbb[59]][_0xedbb[58]](_0x631ex1d[_0xedbb[57]]);_0x631ex1e[_0xedbb[61]](_0x631ex1d[_0xedbb[16]],_0x631ex1f,function(_0x631ex8,_0x631ex20){if(_0x631ex8){return _0x631ex6[_0xedbb[7]](400)[_0xedbb[6]](_0x631ex8)};return _0x631ex6[_0xedbb[60]](200);});})[_0xedbb[36]](handleError(_0x631ex6))};exports[_0xedbb[62]]=function(_0x631ex10,_0x631ex6){var _0x631ex21={};_0x631ex21[_0x631ex10[_0xedbb[49]][_0xedbb[63]]]=_0x631ex10[_0xedbb[52]][_0xedbb[64]];SalesforceAccount[_0xedbb[46]]({where:_0x631ex21})[_0xedbb[10]](function(_0x631ex19){if(_0x631ex19[_0xedbb[37]]){return _0x631ex6[_0xedbb[7]](200)[_0xedbb[6]]({isValid:false,value:_0x631ex10[_0xedbb[52]][_0xedbb[64]]})};return _0x631ex6[_0xedbb[7]](200)[_0xedbb[6]]({isValid:true,value:_0x631ex10[_0xedbb[52]][_0xedbb[64]]});})[_0xedbb[36]](function(_0x631ex8){return handleError(_0x631ex6,_0x631ex8)});};exports[_0xedbb[65]]=function(_0x631ex10,_0x631ex6){SalesforceAccount[_0xedbb[50]](_0x631ex10[_0xedbb[49]][_0xedbb[48]])[_0xedbb[10]](handleEntityNotFound(_0x631ex6))[_0xedbb[10]](function(_0x631ex1d){var _0x631ex1e= new jsforce.Connection({oauth2:{loginUrl:_0x631ex1d[_0xedbb[17]],clientId:_0x631ex1d[_0xedbb[55]],clientSecret:_0x631ex1d[_0xedbb[56]]}});var _0x631ex1f=_0x631ex1d[_0xedbb[59]][_0xedbb[58]](_0x631ex1d[_0xedbb[57]]);_0x631ex1e[_0xedbb[61]](_0x631ex1d[_0xedbb[16]],_0x631ex1f,function(_0x631ex8,_0x631ex20){if(_0x631ex8){return _0x631ex6[_0xedbb[7]](400)[_0xedbb[6]](_0x631ex8)};_0x631ex1e[_0xedbb[69]](_0xedbb[68])[_0xedbb[67]](function(_0x631ex8,_0x631ex22){if(_0x631ex8){return _0x631ex6[_0xedbb[7]](400)[_0xedbb[6]](_0x631ex8)};return _0x631ex6[_0xedbb[7]](200)[_0xedbb[6]](_0x631ex22[_0xedbb[66]]);});});})[_0xedbb[36]](handleError(_0x631ex6))};exports[_0xedbb[70]]=function(_0x631ex10,_0x631ex6){SalesforceAccount[_0xedbb[12]]({where:{id:_0x631ex10[_0xedbb[19]][_0xedbb[48]]},individualHooks:true})[_0xedbb[10]](function(){return _0x631ex6[_0xedbb[60]](204)})[_0xedbb[36]](function(_0x631ex8){return handleError(_0x631ex6,_0x631ex8)})};
\ No newline at end of file
+var _0x57f3=["\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"];_0x57f3[0];var _=require(_0x57f3[1]);var util=require(_0x57f3[2]);var jsforce=require(_0x57f3[3]);var Util=require(_0x57f3[4]);var SalesforceAccount=require(_0x57f3[6])[_0x57f3[5]];var SalesforceConfiguration=require(_0x57f3[6])[_0x57f3[7]];var SalesforceField=require(_0x57f3[6])[_0x57f3[8]];function handleError(_0x4bddx9,_0x4bddxa){_0x4bddxa= _0x4bddxa|| 500;return function(_0x4bddxb){_0x4bddx9[_0x57f3[10]](_0x4bddxa)[_0x57f3[9]](_0x4bddxb)}}function responseWithResult(_0x4bddx9,_0x4bddxa){_0x4bddxa= _0x4bddxa|| 200;return function(_0x4bddxd){if(_0x4bddxd){_0x4bddx9[_0x57f3[10]](_0x4bddxa)[_0x57f3[11]](_0x4bddxd)}}}function responseWithoutResult(_0x4bddx9,_0x4bddxa){_0x4bddxa= _0x4bddxa|| 200;return function(){_0x4bddx9[_0x57f3[12]](_0x4bddxa)}}function handleEntityNotFound(_0x4bddx9){return function(_0x4bddxd){if(!_0x4bddxd){_0x4bddx9[_0x57f3[10]](404)[_0x57f3[13]]();return null};return _0x4bddxd}}function saveUpdates(_0x4bddx11){return function(_0x4bddxd){return _0x4bddxd[_0x57f3[15]](_0x4bddx11)[_0x57f3[14]](function(_0x4bddx12){return _0x4bddx12})}}function removeEntity(_0x4bddx9){return function(_0x4bddxd){if(_0x4bddxd){return _0x4bddxd[_0x57f3[16]]()[_0x57f3[14]](function(){_0x4bddx9[_0x57f3[10]](204)[_0x57f3[13]]()})}}}exports[_0x57f3[17]]= function(_0x4bddx14,_0x4bddx9,_0x4bddx15){return SalesforceAccount[_0x57f3[23]](_0x57f3[22])[_0x57f3[21]](Util[_0x57f3[20]](_0x4bddx14[_0x57f3[19]]))[_0x57f3[14]](responseWithResult(_0x4bddx9))[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[24]]= function(_0x4bddx14,_0x4bddx9){return SalesforceAccount[_0x57f3[27]](_0x4bddx14[_0x57f3[26]][_0x57f3[25]])[_0x57f3[14]](handleEntityNotFound(_0x4bddx9))[_0x57f3[14]](responseWithResult(_0x4bddx9))[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[28]]= function(_0x4bddx14,_0x4bddx9){return SalesforceAccount[_0x57f3[28]](_0x4bddx14[_0x57f3[29]])[_0x57f3[14]](responseWithResult(_0x4bddx9,201))[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[30]]= function(_0x4bddx14,_0x4bddx9){if(_0x4bddx14[_0x57f3[29]][_0x57f3[25]]){delete _0x4bddx14[_0x57f3[29]][_0x57f3[25]]};return SalesforceAccount[_0x57f3[27]](_0x4bddx14[_0x57f3[26]][_0x57f3[25]])[_0x57f3[14]](handleEntityNotFound(_0x4bddx9))[_0x57f3[14]](saveUpdates(_0x4bddx14[_0x57f3[29]]))[_0x57f3[14]](responseWithResult(_0x4bddx9))[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[16]]= function(_0x4bddx14,_0x4bddx9){return SalesforceAccount[_0x57f3[27]](_0x4bddx14[_0x57f3[26]][_0x57f3[25]])[_0x57f3[14]](handleEntityNotFound(_0x4bddx9))[_0x57f3[14]](removeEntity(_0x4bddx9))[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[31]]= function(_0x4bddx14,_0x4bddx9){return SalesforceAccount[_0x57f3[16]]({where:{id:_0x4bddx14[_0x57f3[19]][_0x57f3[32]]},individualHooks:true})[_0x57f3[14]](responseWithResult(_0x4bddx9,204))[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[33]]= function(_0x4bddx14,_0x4bddx9){return SalesforceAccount[_0x57f3[27]](_0x4bddx14[_0x57f3[26]][_0x57f3[25]])[_0x57f3[14]](handleEntityNotFound(_0x4bddx9))[_0x57f3[14]](function(_0x4bddx16){var _0x4bddx17= new jsforce.Connection({oauth2:{loginUrl:_0x4bddx16[_0x57f3[34]],clientId:_0x4bddx16[_0x57f3[35]],clientSecret:_0x4bddx16[_0x57f3[36]]}});var _0x4bddx18=_0x4bddx16[_0x57f3[39]][_0x57f3[38]](_0x4bddx16[_0x57f3[37]]);_0x4bddx17[_0x57f3[41]](_0x4bddx16[_0x57f3[40]],_0x4bddx18,function(_0x4bddxb,_0x4bddx19){if(_0x4bddxb){return _0x4bddx9[_0x57f3[10]](400)[_0x57f3[9]](_0x4bddxb)};return _0x4bddx9[_0x57f3[12]](200)})})[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[42]]= function(_0x4bddx14,_0x4bddx9){var _0x4bddx1a={};_0x4bddx1a[_0x4bddx14[_0x57f3[26]][_0x57f3[43]]]= _0x4bddx14[_0x57f3[29]][_0x57f3[44]];return SalesforceAccount[_0x57f3[21]]({where:_0x4bddx1a})[_0x57f3[14]](function(_0x4bddx1b){if(_0x4bddx1b[_0x57f3[45]]){return _0x4bddx9[_0x57f3[10]](200)[_0x57f3[9]]({isValid:false,value:_0x4bddx14[_0x57f3[29]][_0x57f3[44]]})};return _0x4bddx9[_0x57f3[10]](200)[_0x57f3[9]]({isValid:true,value:_0x4bddx14[_0x57f3[29]][_0x57f3[44]]})})[_0x57f3[18]](function(_0x4bddxb){return handleError(_0x4bddx9,_0x4bddxb)})};exports[_0x57f3[46]]= function(_0x4bddx14,_0x4bddx9){return SalesforceAccount[_0x57f3[27]](_0x4bddx14[_0x57f3[26]][_0x57f3[25]])[_0x57f3[14]](handleEntityNotFound(_0x4bddx9))[_0x57f3[14]](function(_0x4bddx16){var _0x4bddx17= new jsforce.Connection({oauth2:{loginUrl:_0x4bddx16[_0x57f3[34]],clientId:_0x4bddx16[_0x57f3[35]],clientSecret:_0x4bddx16[_0x57f3[36]]}});var _0x4bddx18=_0x4bddx16[_0x57f3[39]][_0x57f3[38]](_0x4bddx16[_0x57f3[37]]);_0x4bddx17[_0x57f3[41]](_0x4bddx16[_0x57f3[40]],_0x4bddx18,function(_0x4bddxb,_0x4bddx19){if(_0x4bddxb){return _0x4bddx9[_0x57f3[10]](400)[_0x57f3[9]](_0x4bddxb)};_0x4bddx17[_0x57f3[50]](_0x57f3[49])[_0x57f3[48]](function(_0x4bddxb,_0x4bddx1c){if(_0x4bddxb){return _0x4bddx9[_0x57f3[10]](400)[_0x57f3[9]](_0x4bddxb)};return _0x4bddx9[_0x57f3[10]](200)[_0x57f3[9]](_0x4bddx1c[_0x57f3[47]])})})})[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[51]]= function(_0x4bddx14,_0x4bddx9){return SalesforceConfiguration[_0x57f3[23]]({method:[_0x57f3[52],_0x4bddx14[_0x57f3[26]][_0x57f3[25]]]})[_0x57f3[21]](Util[_0x57f3[20]](_0x4bddx14[_0x57f3[19]]))[_0x57f3[14]](responseWithResult(_0x4bddx9))[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[53]]= function(_0x4bddx14,_0x4bddx9){return SalesforceConfiguration[_0x57f3[23]]({method:[_0x57f3[52],_0x4bddx14[_0x57f3[26]][_0x57f3[25]]]})[_0x57f3[27]](_0x4bddx14[_0x57f3[26]][_0x57f3[54]])[_0x57f3[14]](handleEntityNotFound(_0x4bddx9))[_0x57f3[14]](responseWithResult(_0x4bddx9))[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[55]]= function(_0x4bddx14,_0x4bddx9){return SalesforceConfiguration[_0x57f3[23]]({method:[_0x57f3[52],_0x4bddx14[_0x57f3[26]][_0x57f3[25]]]})[_0x57f3[27]](_0x4bddx14[_0x57f3[26]][_0x57f3[54]])[_0x57f3[14]](handleEntityNotFound(_0x4bddx9))[_0x57f3[14]](removeEntity(_0x4bddx9))[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[56]]= function(_0x4bddx14,_0x4bddx9){return SalesforceConfiguration[_0x57f3[16]]({where:{id:_0x4bddx14[_0x57f3[19]][_0x57f3[32]]},individualHooks:true})[_0x57f3[14]](responseWithResult(_0x4bddx9,204))[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[57]]= function(_0x4bddx14,_0x4bddx9){_0x4bddx14[_0x57f3[29]][_0x57f3[58]]= _0x4bddx14[_0x57f3[26]][_0x57f3[25]];switch(_0x4bddx14[_0x57f3[29]][_0x57f3[96]]){case _0x57f3[94]:_0x4bddx14[_0x57f3[29]][_0x57f3[59]]= [{"\x74\x79\x70\x65":_0x57f3[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[61],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":null},{"\x74\x79\x70\x65":_0x57f3[62],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[64]},{"\x74\x79\x70\x65":_0x57f3[62],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[65]}];_0x4bddx14[_0x57f3[29]][_0x57f3[66]]= [{"\x74\x79\x70\x65":_0x57f3[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[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":_0x57f3[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x6B\x65\x79":_0x57f3[69],"\x6B\x65\x79\x54\x79\x70\x65":_0x57f3[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[65]},{"\x74\x79\x70\x65":_0x57f3[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x6B\x65\x79":_0x57f3[70],"\x6B\x65\x79\x54\x79\x70\x65":_0x57f3[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[71]},{"\x74\x79\x70\x65":_0x57f3[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x6B\x65\x79":_0x57f3[72],"\x6B\x65\x79\x54\x79\x70\x65":_0x57f3[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[73]},{"\x74\x79\x70\x65":_0x57f3[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x6B\x65\x79":_0x57f3[74],"\x6B\x65\x79\x54\x79\x70\x65":_0x57f3[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[64]},{"\x74\x79\x70\x65":_0x57f3[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x6B\x65\x79":_0x57f3[75],"\x6B\x65\x79\x54\x79\x70\x65":_0x57f3[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[76]},{"\x74\x79\x70\x65":_0x57f3[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x6B\x65\x79":_0x57f3[77],"\x6B\x65\x79\x54\x79\x70\x65":_0x57f3[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[78]},{"\x74\x79\x70\x65":_0x57f3[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[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":_0x57f3[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x6B\x65\x79":_0x57f3[80],"\x6B\x65\x79\x54\x79\x70\x65":_0x57f3[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[81]},{"\x74\x79\x70\x65":_0x57f3[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x6B\x65\x79":_0x57f3[82],"\x6B\x65\x79\x54\x79\x70\x65":_0x57f3[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[83]},{"\x74\x79\x70\x65":_0x57f3[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[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":_0x57f3[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x6B\x65\x79":_0x57f3[85],"\x6B\x65\x79\x54\x79\x70\x65":_0x57f3[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[78]},{"\x74\x79\x70\x65":_0x57f3[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x6B\x65\x79":_0x57f3[86],"\x6B\x65\x79\x54\x79\x70\x65":_0x57f3[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[87]},{"\x74\x79\x70\x65":_0x57f3[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x6B\x65\x79":_0x57f3[88],"\x6B\x65\x79\x54\x79\x70\x65":_0x57f3[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[89]},{"\x74\x79\x70\x65":_0x57f3[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x6B\x65\x79":_0x57f3[90],"\x6B\x65\x79\x54\x79\x70\x65":_0x57f3[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[91]},{"\x74\x79\x70\x65":_0x57f3[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x57f3[63],"\x6B\x65\x79":_0x57f3[92],"\x6B\x65\x79\x54\x79\x70\x65":_0x57f3[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x57f3[93]}];break;default:console[_0x57f3[97]](_0x57f3[95],_0x4bddx14[_0x57f3[29]][_0x57f3[96]])};delete _0x4bddx14[_0x57f3[29]][_0x57f3[96]];return SalesforceConfiguration[_0x57f3[28]](_0x4bddx14[_0x57f3[29]],{include:[{model:SalesforceField,as:_0x57f3[59]},{model:SalesforceField,as:_0x57f3[66]}]})[_0x57f3[14]](responseWithResult(_0x4bddx9,201))[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[98]]= function(_0x4bddx14,_0x4bddx9){return SalesforceConfiguration[_0x57f3[23]]({method:[_0x57f3[52],_0x4bddx14[_0x57f3[26]][_0x57f3[25]]]})[_0x57f3[27]](_0x4bddx14[_0x57f3[26]][_0x57f3[54]])[_0x57f3[14]](handleEntityNotFound(_0x4bddx9))[_0x57f3[14]](function(_0x4bddx1d){switch(_0x4bddx14[_0x57f3[26]][_0x57f3[104]]){case _0x57f3[100]:_0x4bddx14[_0x57f3[29]][_0x57f3[99]]= _0x4bddx14[_0x57f3[26]][_0x57f3[54]];break;case _0x57f3[102]:_0x4bddx14[_0x57f3[29]][_0x57f3[101]]= _0x4bddx14[_0x57f3[26]][_0x57f3[54]];break;case _0x57f3[43]:_0x4bddx14[_0x57f3[29]][_0x57f3[103]]= _0x4bddx14[_0x57f3[26]][_0x57f3[54]];break};return SalesforceField[_0x57f3[28]](_0x4bddx14[_0x57f3[29]])})[_0x57f3[14]](responseWithResult(_0x4bddx9,201))[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[105]]= function(_0x4bddx14,_0x4bddx9){if(_0x4bddx14[_0x57f3[29]][_0x57f3[25]]){delete _0x4bddx14[_0x57f3[29]][_0x57f3[25]]};return SalesforceField[_0x57f3[27]](_0x4bddx14[_0x57f3[26]][_0x57f3[106]])[_0x57f3[14]](handleEntityNotFound(_0x4bddx9))[_0x57f3[14]](saveUpdates(_0x4bddx14[_0x57f3[29]]))[_0x57f3[14]](responseWithResult(_0x4bddx9))[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[107]]= function(_0x4bddx14,_0x4bddx9){return SalesforceField[_0x57f3[27]](_0x4bddx14[_0x57f3[26]][_0x57f3[106]])[_0x57f3[14]](handleEntityNotFound(_0x4bddx9))[_0x57f3[14]](removeEntity(_0x4bddx9))[_0x57f3[18]](handleError(_0x4bddx9))};exports[_0x57f3[108]]= function(_0x4bddx14,_0x4bddx9,_0x4bddx15){return SalesforceConfiguration[_0x57f3[27]](_0x4bddx14[_0x57f3[26]][_0x57f3[54]])[_0x57f3[14]](handleEntityNotFound(_0x4bddx9))[_0x57f3[14]](function(_0x4bddx1d){return _0x4bddx1d[_0x57f3[110]](_0x4bddx14[_0x57f3[29]])})[_0x57f3[14]](responseWithoutResult(_0x4bddx9,200))[_0x57f3[18]](function(_0x4bddxb){console[_0x57f3[109]](_0x4bddxb);return handleError(_0x4bddx9,_0x4bddxb)})}
\ No newline at end of file