Built motion from commit c671bd6.|0.0.103
[motion.git] / server / api / salesforce_account / salesforce_account.controller.js
index bd315bf..2b456f3 100644 (file)
@@ -1 +1 @@
-var _0xaa41=["\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"];_0xaa41[0];var _=require(_0xaa41[1]);var util=require(_0xaa41[2]);var jsforce=require(_0xaa41[3]);var SalesforceAccount=require(_0xaa41[5])[_0xaa41[4]];function handleError(_0xead9x6,_0xead9x7){_0xead9x7=_0xead9x7||500;return function(_0xead9x8){_0xead9x6[_0xaa41[7]](_0xead9x7)[_0xaa41[6]](_0xead9x8)};}function responseWithResult(_0xead9x6,_0xead9x7){_0xead9x7=_0xead9x7||200;return function(_0xead9xa){if(_0xead9xa){_0xead9x6[_0xaa41[7]](_0xead9x7)[_0xaa41[8]](_0xead9xa)}};}function handleEntityNotFound(_0xead9x6){return function(_0xead9xa){if(!_0xead9xa){_0xead9x6[_0xaa41[7]](404)[_0xaa41[9]]();return null;};return _0xead9xa;}}function saveUpdates(_0xead9xd){return function(_0xead9xa){return _0xead9xa[_0xaa41[11]](_0xead9xd)[_0xaa41[10]](function(_0xead9xe){return _0xead9xe})}}function removeEntity(_0xead9x6){return function(_0xead9xa){if(_0xead9xa){return _0xead9xa[_0xaa41[12]]()[_0xaa41[10]](function(){_0xead9x6[_0xaa41[7]](204)[_0xaa41[9]]()})}}}exports[_0xaa41[13]]=function(_0xead9x10,_0xead9x6){var _0xead9x11=[_0xaa41[14],_0xaa41[15],_0xaa41[16],_0xaa41[17]];var _0xead9x12=_0xead9x10[_0xaa41[19]][_0xaa41[18]]?parseInt(_0xead9x10[_0xaa41[19]][_0xaa41[18]],10):100;var _0xead9x13=_0xead9x10[_0xaa41[19]][_0xaa41[20]]?parseInt(_0xead9x10[_0xaa41[19]][_0xaa41[20]],10):0;var _0xead9x14={where:{},limit:_0xead9x12,offset:_0xead9x13*_0xead9x12};_[_0xaa41[34]](_0xead9x10[_0xaa41[19]],function(_0xead9x15,_0xead9x16){switch(_0xead9x16){case _0xaa41[18]:;case _0xaa41[20]:break ;;case _0xaa41[23]:_0xead9x14[_0xaa41[21]]=util[_0xaa41[26]](_0xaa41[22],_0xead9x10[_0xaa41[19]][_0xaa41[23]],_0xead9x10[_0xaa41[19]][_0xaa41[24]]||_0xaa41[25])||null;break ;;case _0xaa41[24]:break ;;case _0xaa41[32]:_0xead9x14[_0xaa41[28]][_0xaa41[27]]=[];_0xead9x11[_0xaa41[31]](function(_0xead9x17){var _0xead9x18={};_0xead9x18[_0xead9x17]={$like:_0xaa41[29]+_0xead9x15+_0xaa41[29]};_0xead9x14[_0xaa41[28]][_0xaa41[27]][_0xaa41[30]](_0xead9x18);});break ;;default:_0xead9x14[_0xaa41[28]][_0xead9x16]={$like:{}};_0xead9x14[_0xaa41[28]][_0xead9x16][_0xaa41[33]]=_0xaa41[29]+_0xead9x15+_0xaa41[29];;}});SalesforceAccount[_0xaa41[46]](_0xead9x14)[_0xaa41[10]](function(_0xead9x19){var _0xead9x1a=Math[_0xaa41[38]](_0xead9x19[_0xaa41[37]]/_0xead9x12);var _0xead9x1b=_0xead9x1a>(_0xead9x14[_0xaa41[39]]+1)?util[_0xaa41[26]](_0xaa41[40],_0xead9x10[_0xaa41[41]],_0xead9x10[_0xaa41[43]][_0xaa41[42]],_0xead9x10[_0xaa41[44]],_0xead9x13+1):null;var _0xead9x1c=_0xead9x13>0?util[_0xaa41[26]](_0xaa41[40],_0xead9x10[_0xaa41[41]],_0xead9x10[_0xaa41[43]][_0xaa41[42]],_0xead9x10[_0xaa41[44]],_0xead9x13-1):null;return _0xead9x6[_0xaa41[7]](200)[_0xaa41[6]]({count:_0xead9x19[_0xaa41[37]],rows:_0xead9x19[_0xaa41[45]],next_page:_0xead9x1b,previous_page:_0xead9x1c,total_pages:_0xead9x1a});})[_0xaa41[36]](function(_0xead9x8){return _0xead9x6[_0xaa41[7]](500)[_0xaa41[6]]({error:_0xaa41[35]})});};exports[_0xaa41[47]]=function(_0xead9x10,_0xead9x6){SalesforceAccount[_0xaa41[50]](_0xead9x10[_0xaa41[49]][_0xaa41[48]])[_0xaa41[10]](handleEntityNotFound(_0xead9x6))[_0xaa41[10]](responseWithResult(_0xead9x6))[_0xaa41[36]](handleError(_0xead9x6))};exports[_0xaa41[51]]=function(_0xead9x10,_0xead9x6){SalesforceAccount[_0xaa41[51]](_0xead9x10[_0xaa41[52]])[_0xaa41[10]](responseWithResult(_0xead9x6,201))[_0xaa41[36]](handleError(_0xead9x6))};exports[_0xaa41[53]]=function(_0xead9x10,_0xead9x6){if(_0xead9x10[_0xaa41[52]][_0xaa41[48]]){delete _0xead9x10[_0xaa41[52]][_0xaa41[48]]};SalesforceAccount[_0xaa41[50]](_0xead9x10[_0xaa41[49]][_0xaa41[48]])[_0xaa41[10]](handleEntityNotFound(_0xead9x6))[_0xaa41[10]](saveUpdates(_0xead9x10[_0xaa41[52]]))[_0xaa41[10]](responseWithResult(_0xead9x6))[_0xaa41[36]](handleError(_0xead9x6));};exports[_0xaa41[12]]=function(_0xead9x10,_0xead9x6){SalesforceAccount[_0xaa41[50]](_0xead9x10[_0xaa41[49]][_0xaa41[48]])[_0xaa41[10]](handleEntityNotFound(_0xead9x6))[_0xaa41[10]](removeEntity(_0xead9x6))[_0xaa41[36]](handleError(_0xead9x6))};exports[_0xaa41[54]]=function(_0xead9x10,_0xead9x6){SalesforceAccount[_0xaa41[50]](_0xead9x10[_0xaa41[49]][_0xaa41[48]])[_0xaa41[10]](handleEntityNotFound(_0xead9x6))[_0xaa41[10]](function(_0xead9x1d){var _0xead9x1e= new jsforce.Connection({oauth2:{loginUrl:_0xead9x1d[_0xaa41[17]],clientId:_0xead9x1d[_0xaa41[55]],clientSecret:_0xead9x1d[_0xaa41[56]]}});var _0xead9x1f=_0xead9x1d[_0xaa41[59]][_0xaa41[58]](_0xead9x1d[_0xaa41[57]]);_0xead9x1e[_0xaa41[61]](_0xead9x1d[_0xaa41[16]],_0xead9x1f,function(_0xead9x8,_0xead9x20){if(_0xead9x8){return _0xead9x6[_0xaa41[7]](400)[_0xaa41[6]](_0xead9x8)};return _0xead9x6[_0xaa41[60]](200);});})[_0xaa41[36]](handleError(_0xead9x6))};exports[_0xaa41[62]]=function(_0xead9x10,_0xead9x6){var _0xead9x21={};_0xead9x21[_0xead9x10[_0xaa41[49]][_0xaa41[63]]]=_0xead9x10[_0xaa41[52]][_0xaa41[64]];SalesforceAccount[_0xaa41[46]]({where:_0xead9x21})[_0xaa41[10]](function(_0xead9x19){if(_0xead9x19[_0xaa41[37]]){return _0xead9x6[_0xaa41[7]](200)[_0xaa41[6]]({isValid:false,value:_0xead9x10[_0xaa41[52]][_0xaa41[64]]})};return _0xead9x6[_0xaa41[7]](200)[_0xaa41[6]]({isValid:true,value:_0xead9x10[_0xaa41[52]][_0xaa41[64]]});})[_0xaa41[36]](function(_0xead9x8){return handleError(_0xead9x6,_0xead9x8)});};exports[_0xaa41[65]]=function(_0xead9x10,_0xead9x6){SalesforceAccount[_0xaa41[50]](_0xead9x10[_0xaa41[49]][_0xaa41[48]])[_0xaa41[10]](handleEntityNotFound(_0xead9x6))[_0xaa41[10]](function(_0xead9x1d){var _0xead9x1e= new jsforce.Connection({oauth2:{loginUrl:_0xead9x1d[_0xaa41[17]],clientId:_0xead9x1d[_0xaa41[55]],clientSecret:_0xead9x1d[_0xaa41[56]]}});var _0xead9x1f=_0xead9x1d[_0xaa41[59]][_0xaa41[58]](_0xead9x1d[_0xaa41[57]]);_0xead9x1e[_0xaa41[61]](_0xead9x1d[_0xaa41[16]],_0xead9x1f,function(_0xead9x8,_0xead9x20){if(_0xead9x8){return _0xead9x6[_0xaa41[7]](400)[_0xaa41[6]](_0xead9x8)};_0xead9x1e[_0xaa41[69]](_0xaa41[68])[_0xaa41[67]](function(_0xead9x8,_0xead9x22){if(_0xead9x8){return _0xead9x6[_0xaa41[7]](400)[_0xaa41[6]](_0xead9x8)};return _0xead9x6[_0xaa41[7]](200)[_0xaa41[6]](_0xead9x22[_0xaa41[66]]);});});})[_0xaa41[36]](handleError(_0xead9x6))};exports[_0xaa41[70]]=function(_0xead9x10,_0xead9x6){SalesforceAccount[_0xaa41[12]]({where:{id:_0xead9x10[_0xaa41[19]][_0xaa41[48]]},individualHooks:true})[_0xaa41[10]](function(){return _0xead9x6[_0xaa41[60]](204)})[_0xaa41[36]](function(_0xead9x8){return handleError(_0xead9x6,_0xead9x8)})};
\ No newline at end of file
+var _0x1c74=["\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"];_0x1c74[0];var _=require(_0x1c74[1]);var util=require(_0x1c74[2]);var jsforce=require(_0x1c74[3]);var Util=require(_0x1c74[4]);var SalesforceAccount=require(_0x1c74[6])[_0x1c74[5]];var SalesforceConfiguration=require(_0x1c74[6])[_0x1c74[7]];var SalesforceField=require(_0x1c74[6])[_0x1c74[8]];function handleError(_0x5598x9,_0x5598xa){_0x5598xa=_0x5598xa||500;return function(_0x5598xb){_0x5598x9[_0x1c74[10]](_0x5598xa)[_0x1c74[9]](_0x5598xb)}}function responseWithResult(_0x5598x9,_0x5598xa){_0x5598xa=_0x5598xa||200;return function(_0x5598xd){if(_0x5598xd){_0x5598x9[_0x1c74[10]](_0x5598xa)[_0x1c74[11]](_0x5598xd)}}}function responseWithoutResult(_0x5598x9,_0x5598xa){_0x5598xa=_0x5598xa||200;return function(){_0x5598x9[_0x1c74[12]](_0x5598xa)}}function handleEntityNotFound(_0x5598x9){return function(_0x5598xd){if(!_0x5598xd){_0x5598x9[_0x1c74[10]](404)[_0x1c74[13]]();return null};return _0x5598xd}}function saveUpdates(_0x5598x11){return function(_0x5598xd){return _0x5598xd[_0x1c74[15]](_0x5598x11)[_0x1c74[14]](function(_0x5598x12){return _0x5598x12})}}function removeEntity(_0x5598x9){return function(_0x5598xd){if(_0x5598xd){return _0x5598xd[_0x1c74[16]]()[_0x1c74[14]](function(){_0x5598x9[_0x1c74[10]](204)[_0x1c74[13]]()})}}}exports[_0x1c74[17]]=function(_0x5598x14,_0x5598x9,_0x5598x15){return SalesforceAccount[_0x1c74[23]](_0x1c74[22])[_0x1c74[21]](Util[_0x1c74[20]](_0x5598x14[_0x1c74[19]]))[_0x1c74[14]](responseWithResult(_0x5598x9))[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[24]]=function(_0x5598x14,_0x5598x9){return SalesforceAccount[_0x1c74[27]](_0x5598x14[_0x1c74[26]][_0x1c74[25]])[_0x1c74[14]](handleEntityNotFound(_0x5598x9))[_0x1c74[14]](responseWithResult(_0x5598x9))[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[28]]=function(_0x5598x14,_0x5598x9){return SalesforceAccount[_0x1c74[28]](_0x5598x14[_0x1c74[29]])[_0x1c74[14]](responseWithResult(_0x5598x9,201))[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[30]]=function(_0x5598x14,_0x5598x9){if(_0x5598x14[_0x1c74[29]][_0x1c74[25]]){delete _0x5598x14[_0x1c74[29]][_0x1c74[25]]};return SalesforceAccount[_0x1c74[27]](_0x5598x14[_0x1c74[26]][_0x1c74[25]])[_0x1c74[14]](handleEntityNotFound(_0x5598x9))[_0x1c74[14]](saveUpdates(_0x5598x14[_0x1c74[29]]))[_0x1c74[14]](responseWithResult(_0x5598x9))[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[16]]=function(_0x5598x14,_0x5598x9){return SalesforceAccount[_0x1c74[27]](_0x5598x14[_0x1c74[26]][_0x1c74[25]])[_0x1c74[14]](handleEntityNotFound(_0x5598x9))[_0x1c74[14]](removeEntity(_0x5598x9))[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[31]]=function(_0x5598x14,_0x5598x9){return SalesforceAccount[_0x1c74[16]]({where:{id:_0x5598x14[_0x1c74[19]][_0x1c74[32]]},individualHooks:true})[_0x1c74[14]](responseWithResult(_0x5598x9,204))[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[33]]=function(_0x5598x14,_0x5598x9){return SalesforceAccount[_0x1c74[27]](_0x5598x14[_0x1c74[26]][_0x1c74[25]])[_0x1c74[14]](handleEntityNotFound(_0x5598x9))[_0x1c74[14]](function(_0x5598x16){var _0x5598x17= new jsforce.Connection({oauth2:{loginUrl:_0x5598x16[_0x1c74[34]],clientId:_0x5598x16[_0x1c74[35]],clientSecret:_0x5598x16[_0x1c74[36]]}});var _0x5598x18=_0x5598x16[_0x1c74[39]][_0x1c74[38]](_0x5598x16[_0x1c74[37]]);_0x5598x17[_0x1c74[41]](_0x5598x16[_0x1c74[40]],_0x5598x18,function(_0x5598xb,_0x5598x19){if(_0x5598xb){return _0x5598x9[_0x1c74[10]](400)[_0x1c74[9]](_0x5598xb)};return _0x5598x9[_0x1c74[12]](200)})})[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[42]]=function(_0x5598x14,_0x5598x9){var _0x5598x1a={};_0x5598x1a[_0x5598x14[_0x1c74[26]][_0x1c74[43]]]=_0x5598x14[_0x1c74[29]][_0x1c74[44]];return SalesforceAccount[_0x1c74[21]]({where:_0x5598x1a})[_0x1c74[14]](function(_0x5598x1b){if(_0x5598x1b[_0x1c74[45]]){return _0x5598x9[_0x1c74[10]](200)[_0x1c74[9]]({isValid:false,value:_0x5598x14[_0x1c74[29]][_0x1c74[44]]})};return _0x5598x9[_0x1c74[10]](200)[_0x1c74[9]]({isValid:true,value:_0x5598x14[_0x1c74[29]][_0x1c74[44]]})})[_0x1c74[18]](function(_0x5598xb){return handleError(_0x5598x9,_0x5598xb)})};exports[_0x1c74[46]]=function(_0x5598x14,_0x5598x9){return SalesforceAccount[_0x1c74[27]](_0x5598x14[_0x1c74[26]][_0x1c74[25]])[_0x1c74[14]](handleEntityNotFound(_0x5598x9))[_0x1c74[14]](function(_0x5598x16){var _0x5598x17= new jsforce.Connection({oauth2:{loginUrl:_0x5598x16[_0x1c74[34]],clientId:_0x5598x16[_0x1c74[35]],clientSecret:_0x5598x16[_0x1c74[36]]}});var _0x5598x18=_0x5598x16[_0x1c74[39]][_0x1c74[38]](_0x5598x16[_0x1c74[37]]);_0x5598x17[_0x1c74[41]](_0x5598x16[_0x1c74[40]],_0x5598x18,function(_0x5598xb,_0x5598x19){if(_0x5598xb){return _0x5598x9[_0x1c74[10]](400)[_0x1c74[9]](_0x5598xb)};_0x5598x17[_0x1c74[50]](_0x1c74[49])[_0x1c74[48]](function(_0x5598xb,_0x5598x1c){if(_0x5598xb){return _0x5598x9[_0x1c74[10]](400)[_0x1c74[9]](_0x5598xb)};return _0x5598x9[_0x1c74[10]](200)[_0x1c74[9]](_0x5598x1c[_0x1c74[47]])})})})[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[51]]=function(_0x5598x14,_0x5598x9){return SalesforceConfiguration[_0x1c74[23]]({method:[_0x1c74[52],_0x5598x14[_0x1c74[26]][_0x1c74[25]]]})[_0x1c74[21]](Util[_0x1c74[20]](_0x5598x14[_0x1c74[19]]))[_0x1c74[14]](responseWithResult(_0x5598x9))[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[53]]=function(_0x5598x14,_0x5598x9){return SalesforceConfiguration[_0x1c74[23]]({method:[_0x1c74[52],_0x5598x14[_0x1c74[26]][_0x1c74[25]]]})[_0x1c74[27]](_0x5598x14[_0x1c74[26]][_0x1c74[54]])[_0x1c74[14]](handleEntityNotFound(_0x5598x9))[_0x1c74[14]](responseWithResult(_0x5598x9))[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[55]]=function(_0x5598x14,_0x5598x9){return SalesforceConfiguration[_0x1c74[23]]({method:[_0x1c74[52],_0x5598x14[_0x1c74[26]][_0x1c74[25]]]})[_0x1c74[27]](_0x5598x14[_0x1c74[26]][_0x1c74[54]])[_0x1c74[14]](handleEntityNotFound(_0x5598x9))[_0x1c74[14]](removeEntity(_0x5598x9))[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[56]]=function(_0x5598x14,_0x5598x9){return SalesforceConfiguration[_0x1c74[16]]({where:{id:_0x5598x14[_0x1c74[19]][_0x1c74[32]]},individualHooks:true})[_0x1c74[14]](responseWithResult(_0x5598x9,204))[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[57]]=function(_0x5598x14,_0x5598x9){_0x5598x14[_0x1c74[29]][_0x1c74[58]]=_0x5598x14[_0x1c74[26]][_0x1c74[25]];switch(_0x5598x14[_0x1c74[29]][_0x1c74[96]]){case _0x1c74[94]:_0x5598x14[_0x1c74[29]][_0x1c74[59]]=[{"\x74\x79\x70\x65":_0x1c74[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[61],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":null},{"\x74\x79\x70\x65":_0x1c74[62],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[64]},{"\x74\x79\x70\x65":_0x1c74[62],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[65]}];_0x5598x14[_0x1c74[29]][_0x1c74[66]]=[{"\x74\x79\x70\x65":_0x1c74[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[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":_0x1c74[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x6B\x65\x79":_0x1c74[69],"\x6B\x65\x79\x54\x79\x70\x65":_0x1c74[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[65]},{"\x74\x79\x70\x65":_0x1c74[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x6B\x65\x79":_0x1c74[70],"\x6B\x65\x79\x54\x79\x70\x65":_0x1c74[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[71]},{"\x74\x79\x70\x65":_0x1c74[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x6B\x65\x79":_0x1c74[72],"\x6B\x65\x79\x54\x79\x70\x65":_0x1c74[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[73]},{"\x74\x79\x70\x65":_0x1c74[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x6B\x65\x79":_0x1c74[74],"\x6B\x65\x79\x54\x79\x70\x65":_0x1c74[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[64]},{"\x74\x79\x70\x65":_0x1c74[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x6B\x65\x79":_0x1c74[75],"\x6B\x65\x79\x54\x79\x70\x65":_0x1c74[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[76]},{"\x74\x79\x70\x65":_0x1c74[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x6B\x65\x79":_0x1c74[77],"\x6B\x65\x79\x54\x79\x70\x65":_0x1c74[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[78]},{"\x74\x79\x70\x65":_0x1c74[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[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":_0x1c74[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x6B\x65\x79":_0x1c74[80],"\x6B\x65\x79\x54\x79\x70\x65":_0x1c74[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[81]},{"\x74\x79\x70\x65":_0x1c74[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x6B\x65\x79":_0x1c74[82],"\x6B\x65\x79\x54\x79\x70\x65":_0x1c74[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[83]},{"\x74\x79\x70\x65":_0x1c74[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[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":_0x1c74[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x6B\x65\x79":_0x1c74[85],"\x6B\x65\x79\x54\x79\x70\x65":_0x1c74[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[78]},{"\x74\x79\x70\x65":_0x1c74[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x6B\x65\x79":_0x1c74[86],"\x6B\x65\x79\x54\x79\x70\x65":_0x1c74[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[87]},{"\x74\x79\x70\x65":_0x1c74[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x6B\x65\x79":_0x1c74[88],"\x6B\x65\x79\x54\x79\x70\x65":_0x1c74[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[89]},{"\x74\x79\x70\x65":_0x1c74[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x6B\x65\x79":_0x1c74[90],"\x6B\x65\x79\x54\x79\x70\x65":_0x1c74[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[91]},{"\x74\x79\x70\x65":_0x1c74[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x1c74[63],"\x6B\x65\x79":_0x1c74[92],"\x6B\x65\x79\x54\x79\x70\x65":_0x1c74[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x1c74[93]}];break;default:console[_0x1c74[97]](_0x1c74[95],_0x5598x14[_0x1c74[29]][_0x1c74[96]])};delete _0x5598x14[_0x1c74[29]][_0x1c74[96]];return SalesforceConfiguration[_0x1c74[28]](_0x5598x14[_0x1c74[29]],{include:[{model:SalesforceField,as:_0x1c74[59]},{model:SalesforceField,as:_0x1c74[66]}]})[_0x1c74[14]](responseWithResult(_0x5598x9,201))[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[98]]=function(_0x5598x14,_0x5598x9){return SalesforceConfiguration[_0x1c74[23]]({method:[_0x1c74[52],_0x5598x14[_0x1c74[26]][_0x1c74[25]]]})[_0x1c74[27]](_0x5598x14[_0x1c74[26]][_0x1c74[54]])[_0x1c74[14]](handleEntityNotFound(_0x5598x9))[_0x1c74[14]](function(_0x5598x1d){switch(_0x5598x14[_0x1c74[26]][_0x1c74[104]]){case _0x1c74[100]:_0x5598x14[_0x1c74[29]][_0x1c74[99]]=_0x5598x14[_0x1c74[26]][_0x1c74[54]];break;case _0x1c74[102]:_0x5598x14[_0x1c74[29]][_0x1c74[101]]=_0x5598x14[_0x1c74[26]][_0x1c74[54]];break;case _0x1c74[43]:_0x5598x14[_0x1c74[29]][_0x1c74[103]]=_0x5598x14[_0x1c74[26]][_0x1c74[54]];break};return SalesforceField[_0x1c74[28]](_0x5598x14[_0x1c74[29]])})[_0x1c74[14]](responseWithResult(_0x5598x9,201))[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[105]]=function(_0x5598x14,_0x5598x9){if(_0x5598x14[_0x1c74[29]][_0x1c74[25]]){delete _0x5598x14[_0x1c74[29]][_0x1c74[25]]};return SalesforceField[_0x1c74[27]](_0x5598x14[_0x1c74[26]][_0x1c74[106]])[_0x1c74[14]](handleEntityNotFound(_0x5598x9))[_0x1c74[14]](saveUpdates(_0x5598x14[_0x1c74[29]]))[_0x1c74[14]](responseWithResult(_0x5598x9))[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[107]]=function(_0x5598x14,_0x5598x9){return SalesforceField[_0x1c74[27]](_0x5598x14[_0x1c74[26]][_0x1c74[106]])[_0x1c74[14]](handleEntityNotFound(_0x5598x9))[_0x1c74[14]](removeEntity(_0x5598x9))[_0x1c74[18]](handleError(_0x5598x9))};exports[_0x1c74[108]]=function(_0x5598x14,_0x5598x9,_0x5598x15){return SalesforceConfiguration[_0x1c74[27]](_0x5598x14[_0x1c74[26]][_0x1c74[54]])[_0x1c74[14]](handleEntityNotFound(_0x5598x9))[_0x1c74[14]](function(_0x5598x1d){return _0x5598x1d[_0x1c74[110]](_0x5598x14[_0x1c74[29]])})[_0x1c74[14]](responseWithoutResult(_0x5598x9,200))[_0x1c74[18]](function(_0x5598xb){console[_0x1c74[109]](_0x5598xb);return handleError(_0x5598x9,_0x5598xb)})}
\ No newline at end of file