Built motion from commit 3594e56.|0.0.120
[motion.git] / server / api / salesforce_account / salesforce_account.controller.js
index 1df8f01..9415737 100644 (file)
@@ -1 +1 @@
-var _0x86ee=["\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"];_0x86ee[0];var _=require(_0x86ee[1]);var util=require(_0x86ee[2]);var jsforce=require(_0x86ee[3]);var SalesforceAccount=require(_0x86ee[5])[_0x86ee[4]];function handleError(_0x1707x6,_0x1707x7){_0x1707x7=_0x1707x7||500;return function(_0x1707x8){_0x1707x6[_0x86ee[7]](_0x1707x7)[_0x86ee[6]](_0x1707x8)}}function responseWithResult(_0x1707x6,_0x1707x7){_0x1707x7=_0x1707x7||200;return function(_0x1707xa){if(_0x1707xa){_0x1707x6[_0x86ee[7]](_0x1707x7)[_0x86ee[8]](_0x1707xa)}}}function handleEntityNotFound(_0x1707x6){return function(_0x1707xa){if(!_0x1707xa){_0x1707x6[_0x86ee[7]](404)[_0x86ee[9]]();return null};return _0x1707xa}}function saveUpdates(_0x1707xd){return function(_0x1707xa){return _0x1707xa[_0x86ee[11]](_0x1707xd)[_0x86ee[10]](function(_0x1707xe){return _0x1707xe})}}function removeEntity(_0x1707x6){return function(_0x1707xa){if(_0x1707xa){return _0x1707xa[_0x86ee[12]]()[_0x86ee[10]](function(){_0x1707x6[_0x86ee[7]](204)[_0x86ee[9]]()})}}}exports[_0x86ee[13]]=function(_0x1707x10,_0x1707x6){var _0x1707x11=[_0x86ee[14],_0x86ee[15],_0x86ee[16],_0x86ee[17]];var _0x1707x12=_0x1707x10[_0x86ee[19]][_0x86ee[18]]?parseInt(_0x1707x10[_0x86ee[19]][_0x86ee[18]],10):100;var _0x1707x13=_0x1707x10[_0x86ee[19]][_0x86ee[20]]?parseInt(_0x1707x10[_0x86ee[19]][_0x86ee[20]],10):0;var _0x1707x14={where:{},limit:_0x1707x12,offset:_0x1707x13*_0x1707x12};_[_0x86ee[34]](_0x1707x10[_0x86ee[19]],function(_0x1707x15,_0x1707x16){switch(_0x1707x16){case _0x86ee[18]:;case _0x86ee[20]:break;case _0x86ee[23]:_0x1707x14[_0x86ee[21]]=util[_0x86ee[26]](_0x86ee[22],_0x1707x10[_0x86ee[19]][_0x86ee[23]],_0x1707x10[_0x86ee[19]][_0x86ee[24]]||_0x86ee[25])||null;break;case _0x86ee[24]:break;case _0x86ee[32]:_0x1707x14[_0x86ee[28]][_0x86ee[27]]=[];_0x1707x11[_0x86ee[31]](function(_0x1707x17){var _0x1707x18={};_0x1707x18[_0x1707x17]={$like:_0x86ee[29]+_0x1707x15+_0x86ee[29]};_0x1707x14[_0x86ee[28]][_0x86ee[27]][_0x86ee[30]](_0x1707x18)});break;default:_0x1707x14[_0x86ee[28]][_0x1707x16]={$like:{}};_0x1707x14[_0x86ee[28]][_0x1707x16][_0x86ee[33]]=_0x86ee[29]+_0x1707x15+_0x86ee[29]}});SalesforceAccount[_0x86ee[46]](_0x1707x14)[_0x86ee[10]](function(_0x1707x19){var _0x1707x1a=Math[_0x86ee[38]](_0x1707x19[_0x86ee[37]]/_0x1707x12);var _0x1707x1b=_0x1707x1a>(_0x1707x14[_0x86ee[39]]+1)?util[_0x86ee[26]](_0x86ee[40],_0x1707x10[_0x86ee[41]],_0x1707x10[_0x86ee[43]][_0x86ee[42]],_0x1707x10[_0x86ee[44]],_0x1707x13+1):null;var _0x1707x1c=_0x1707x13>0?util[_0x86ee[26]](_0x86ee[40],_0x1707x10[_0x86ee[41]],_0x1707x10[_0x86ee[43]][_0x86ee[42]],_0x1707x10[_0x86ee[44]],_0x1707x13-1):null;return _0x1707x6[_0x86ee[7]](200)[_0x86ee[6]]({count:_0x1707x19[_0x86ee[37]],rows:_0x1707x19[_0x86ee[45]],next_page:_0x1707x1b,previous_page:_0x1707x1c,total_pages:_0x1707x1a})})[_0x86ee[36]](function(_0x1707x8){return _0x1707x6[_0x86ee[7]](500)[_0x86ee[6]]({error:_0x86ee[35]})})};exports[_0x86ee[47]]=function(_0x1707x10,_0x1707x6){SalesforceAccount[_0x86ee[50]](_0x1707x10[_0x86ee[49]][_0x86ee[48]])[_0x86ee[10]](handleEntityNotFound(_0x1707x6))[_0x86ee[10]](responseWithResult(_0x1707x6))[_0x86ee[36]](handleError(_0x1707x6))};exports[_0x86ee[51]]=function(_0x1707x10,_0x1707x6){SalesforceAccount[_0x86ee[51]](_0x1707x10[_0x86ee[52]])[_0x86ee[10]](responseWithResult(_0x1707x6,201))[_0x86ee[36]](handleError(_0x1707x6))};exports[_0x86ee[53]]=function(_0x1707x10,_0x1707x6){if(_0x1707x10[_0x86ee[52]][_0x86ee[48]]){delete _0x1707x10[_0x86ee[52]][_0x86ee[48]]};SalesforceAccount[_0x86ee[50]](_0x1707x10[_0x86ee[49]][_0x86ee[48]])[_0x86ee[10]](handleEntityNotFound(_0x1707x6))[_0x86ee[10]](saveUpdates(_0x1707x10[_0x86ee[52]]))[_0x86ee[10]](responseWithResult(_0x1707x6))[_0x86ee[36]](handleError(_0x1707x6))};exports[_0x86ee[12]]=function(_0x1707x10,_0x1707x6){SalesforceAccount[_0x86ee[50]](_0x1707x10[_0x86ee[49]][_0x86ee[48]])[_0x86ee[10]](handleEntityNotFound(_0x1707x6))[_0x86ee[10]](removeEntity(_0x1707x6))[_0x86ee[36]](handleError(_0x1707x6))};exports[_0x86ee[54]]=function(_0x1707x10,_0x1707x6){SalesforceAccount[_0x86ee[50]](_0x1707x10[_0x86ee[49]][_0x86ee[48]])[_0x86ee[10]](handleEntityNotFound(_0x1707x6))[_0x86ee[10]](function(_0x1707x1d){var _0x1707x1e= new jsforce.Connection({oauth2:{loginUrl:_0x1707x1d[_0x86ee[17]],clientId:_0x1707x1d[_0x86ee[55]],clientSecret:_0x1707x1d[_0x86ee[56]]}});var _0x1707x1f=_0x1707x1d[_0x86ee[59]][_0x86ee[58]](_0x1707x1d[_0x86ee[57]]);_0x1707x1e[_0x86ee[61]](_0x1707x1d[_0x86ee[16]],_0x1707x1f,function(_0x1707x8,_0x1707x20){if(_0x1707x8){return _0x1707x6[_0x86ee[7]](400)[_0x86ee[6]](_0x1707x8)};return _0x1707x6[_0x86ee[60]](200)})})[_0x86ee[36]](handleError(_0x1707x6))};exports[_0x86ee[62]]=function(_0x1707x10,_0x1707x6){var _0x1707x21={};_0x1707x21[_0x1707x10[_0x86ee[49]][_0x86ee[63]]]=_0x1707x10[_0x86ee[52]][_0x86ee[64]];SalesforceAccount[_0x86ee[46]]({where:_0x1707x21})[_0x86ee[10]](function(_0x1707x19){if(_0x1707x19[_0x86ee[37]]){return _0x1707x6[_0x86ee[7]](200)[_0x86ee[6]]({isValid:false,value:_0x1707x10[_0x86ee[52]][_0x86ee[64]]})};return _0x1707x6[_0x86ee[7]](200)[_0x86ee[6]]({isValid:true,value:_0x1707x10[_0x86ee[52]][_0x86ee[64]]})})[_0x86ee[36]](function(_0x1707x8){return handleError(_0x1707x6,_0x1707x8)})};exports[_0x86ee[65]]=function(_0x1707x10,_0x1707x6){SalesforceAccount[_0x86ee[50]](_0x1707x10[_0x86ee[49]][_0x86ee[48]])[_0x86ee[10]](handleEntityNotFound(_0x1707x6))[_0x86ee[10]](function(_0x1707x1d){var _0x1707x1e= new jsforce.Connection({oauth2:{loginUrl:_0x1707x1d[_0x86ee[17]],clientId:_0x1707x1d[_0x86ee[55]],clientSecret:_0x1707x1d[_0x86ee[56]]}});var _0x1707x1f=_0x1707x1d[_0x86ee[59]][_0x86ee[58]](_0x1707x1d[_0x86ee[57]]);_0x1707x1e[_0x86ee[61]](_0x1707x1d[_0x86ee[16]],_0x1707x1f,function(_0x1707x8,_0x1707x20){if(_0x1707x8){return _0x1707x6[_0x86ee[7]](400)[_0x86ee[6]](_0x1707x8)};_0x1707x1e[_0x86ee[69]](_0x86ee[68])[_0x86ee[67]](function(_0x1707x8,_0x1707x22){if(_0x1707x8){return _0x1707x6[_0x86ee[7]](400)[_0x86ee[6]](_0x1707x8)};return _0x1707x6[_0x86ee[7]](200)[_0x86ee[6]](_0x1707x22[_0x86ee[66]])})})})[_0x86ee[36]](handleError(_0x1707x6))};exports[_0x86ee[70]]=function(_0x1707x10,_0x1707x6){SalesforceAccount[_0x86ee[12]]({where:{id:_0x1707x10[_0x86ee[19]][_0x86ee[48]]},individualHooks:true})[_0x86ee[10]](function(){return _0x1707x6[_0x86ee[60]](204)})[_0x86ee[36]](function(_0x1707x8){return handleError(_0x1707x6,_0x1707x8)})}
\ 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