adb113ca302c2b61dbd90815573e8cd5be94a1d7
[motion.git] / server / api / salesforce_account / salesforce_account.controller.js
1 var _0xbb10=["\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"];_0xbb10[0];var _=require(_0xbb10[1]);var util=require(_0xbb10[2]);var jsforce=require(_0xbb10[3]);var Util=require(_0xbb10[4]);var SalesforceAccount=require(_0xbb10[6])[_0xbb10[5]];var SalesforceConfiguration=require(_0xbb10[6])[_0xbb10[7]];var SalesforceField=require(_0xbb10[6])[_0xbb10[8]];function handleError(_0x9ba1x9,_0x9ba1xa){_0x9ba1xa=_0x9ba1xa||500;return function(_0x9ba1xb){_0x9ba1x9[_0xbb10[10]](_0x9ba1xa)[_0xbb10[9]](_0x9ba1xb)}}function responseWithResult(_0x9ba1x9,_0x9ba1xa){_0x9ba1xa=_0x9ba1xa||200;return function(_0x9ba1xd){if(_0x9ba1xd){_0x9ba1x9[_0xbb10[10]](_0x9ba1xa)[_0xbb10[11]](_0x9ba1xd)}}}function responseWithoutResult(_0x9ba1x9,_0x9ba1xa){_0x9ba1xa=_0x9ba1xa||200;return function(){_0x9ba1x9[_0xbb10[12]](_0x9ba1xa)}}function handleEntityNotFound(_0x9ba1x9){return function(_0x9ba1xd){if(!_0x9ba1xd){_0x9ba1x9[_0xbb10[10]](404)[_0xbb10[13]]();return null};return _0x9ba1xd}}function saveUpdates(_0x9ba1x11){return function(_0x9ba1xd){return _0x9ba1xd[_0xbb10[15]](_0x9ba1x11)[_0xbb10[14]](function(_0x9ba1x12){return _0x9ba1x12})}}function removeEntity(_0x9ba1x9){return function(_0x9ba1xd){if(_0x9ba1xd){return _0x9ba1xd[_0xbb10[16]]()[_0xbb10[14]](function(){_0x9ba1x9[_0xbb10[10]](204)[_0xbb10[13]]()})}}}exports[_0xbb10[17]]=function(_0x9ba1x14,_0x9ba1x9,_0x9ba1x15){return SalesforceAccount[_0xbb10[23]](_0xbb10[22])[_0xbb10[21]](Util[_0xbb10[20]](_0x9ba1x14[_0xbb10[19]]))[_0xbb10[14]](responseWithResult(_0x9ba1x9))[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[24]]=function(_0x9ba1x14,_0x9ba1x9){return SalesforceAccount[_0xbb10[27]](_0x9ba1x14[_0xbb10[26]][_0xbb10[25]])[_0xbb10[14]](handleEntityNotFound(_0x9ba1x9))[_0xbb10[14]](responseWithResult(_0x9ba1x9))[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[28]]=function(_0x9ba1x14,_0x9ba1x9){return SalesforceAccount[_0xbb10[28]](_0x9ba1x14[_0xbb10[29]])[_0xbb10[14]](responseWithResult(_0x9ba1x9,201))[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[30]]=function(_0x9ba1x14,_0x9ba1x9){if(_0x9ba1x14[_0xbb10[29]][_0xbb10[25]]){delete _0x9ba1x14[_0xbb10[29]][_0xbb10[25]]};return SalesforceAccount[_0xbb10[27]](_0x9ba1x14[_0xbb10[26]][_0xbb10[25]])[_0xbb10[14]](handleEntityNotFound(_0x9ba1x9))[_0xbb10[14]](saveUpdates(_0x9ba1x14[_0xbb10[29]]))[_0xbb10[14]](responseWithResult(_0x9ba1x9))[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[16]]=function(_0x9ba1x14,_0x9ba1x9){return SalesforceAccount[_0xbb10[27]](_0x9ba1x14[_0xbb10[26]][_0xbb10[25]])[_0xbb10[14]](handleEntityNotFound(_0x9ba1x9))[_0xbb10[14]](removeEntity(_0x9ba1x9))[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[31]]=function(_0x9ba1x14,_0x9ba1x9){return SalesforceAccount[_0xbb10[16]]({where:{id:_0x9ba1x14[_0xbb10[19]][_0xbb10[32]]},individualHooks:true})[_0xbb10[14]](responseWithResult(_0x9ba1x9,204))[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[33]]=function(_0x9ba1x14,_0x9ba1x9){return SalesforceAccount[_0xbb10[27]](_0x9ba1x14[_0xbb10[26]][_0xbb10[25]])[_0xbb10[14]](handleEntityNotFound(_0x9ba1x9))[_0xbb10[14]](function(_0x9ba1x16){var _0x9ba1x17= new jsforce.Connection({oauth2:{loginUrl:_0x9ba1x16[_0xbb10[34]],clientId:_0x9ba1x16[_0xbb10[35]],clientSecret:_0x9ba1x16[_0xbb10[36]]}});var _0x9ba1x18=_0x9ba1x16[_0xbb10[39]][_0xbb10[38]](_0x9ba1x16[_0xbb10[37]]);_0x9ba1x17[_0xbb10[41]](_0x9ba1x16[_0xbb10[40]],_0x9ba1x18,function(_0x9ba1xb,_0x9ba1x19){if(_0x9ba1xb){return _0x9ba1x9[_0xbb10[10]](400)[_0xbb10[9]](_0x9ba1xb)};return _0x9ba1x9[_0xbb10[12]](200)})})[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[42]]=function(_0x9ba1x14,_0x9ba1x9){var _0x9ba1x1a={};_0x9ba1x1a[_0x9ba1x14[_0xbb10[26]][_0xbb10[43]]]=_0x9ba1x14[_0xbb10[29]][_0xbb10[44]];return SalesforceAccount[_0xbb10[21]]({where:_0x9ba1x1a})[_0xbb10[14]](function(_0x9ba1x1b){if(_0x9ba1x1b[_0xbb10[45]]){return _0x9ba1x9[_0xbb10[10]](200)[_0xbb10[9]]({isValid:false,value:_0x9ba1x14[_0xbb10[29]][_0xbb10[44]]})};return _0x9ba1x9[_0xbb10[10]](200)[_0xbb10[9]]({isValid:true,value:_0x9ba1x14[_0xbb10[29]][_0xbb10[44]]})})[_0xbb10[18]](function(_0x9ba1xb){return handleError(_0x9ba1x9,_0x9ba1xb)})};exports[_0xbb10[46]]=function(_0x9ba1x14,_0x9ba1x9){return SalesforceAccount[_0xbb10[27]](_0x9ba1x14[_0xbb10[26]][_0xbb10[25]])[_0xbb10[14]](handleEntityNotFound(_0x9ba1x9))[_0xbb10[14]](function(_0x9ba1x16){var _0x9ba1x17= new jsforce.Connection({oauth2:{loginUrl:_0x9ba1x16[_0xbb10[34]],clientId:_0x9ba1x16[_0xbb10[35]],clientSecret:_0x9ba1x16[_0xbb10[36]]}});var _0x9ba1x18=_0x9ba1x16[_0xbb10[39]][_0xbb10[38]](_0x9ba1x16[_0xbb10[37]]);_0x9ba1x17[_0xbb10[41]](_0x9ba1x16[_0xbb10[40]],_0x9ba1x18,function(_0x9ba1xb,_0x9ba1x19){if(_0x9ba1xb){return _0x9ba1x9[_0xbb10[10]](400)[_0xbb10[9]](_0x9ba1xb)};_0x9ba1x17[_0xbb10[50]](_0xbb10[49])[_0xbb10[48]](function(_0x9ba1xb,_0x9ba1x1c){if(_0x9ba1xb){return _0x9ba1x9[_0xbb10[10]](400)[_0xbb10[9]](_0x9ba1xb)};return _0x9ba1x9[_0xbb10[10]](200)[_0xbb10[9]](_0x9ba1x1c[_0xbb10[47]])})})})[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[51]]=function(_0x9ba1x14,_0x9ba1x9){return SalesforceConfiguration[_0xbb10[23]]({method:[_0xbb10[52],_0x9ba1x14[_0xbb10[26]][_0xbb10[25]]]})[_0xbb10[21]](Util[_0xbb10[20]](_0x9ba1x14[_0xbb10[19]]))[_0xbb10[14]](responseWithResult(_0x9ba1x9))[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[53]]=function(_0x9ba1x14,_0x9ba1x9){return SalesforceConfiguration[_0xbb10[23]]({method:[_0xbb10[52],_0x9ba1x14[_0xbb10[26]][_0xbb10[25]]]})[_0xbb10[27]](_0x9ba1x14[_0xbb10[26]][_0xbb10[54]])[_0xbb10[14]](handleEntityNotFound(_0x9ba1x9))[_0xbb10[14]](responseWithResult(_0x9ba1x9))[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[55]]=function(_0x9ba1x14,_0x9ba1x9){return SalesforceConfiguration[_0xbb10[23]]({method:[_0xbb10[52],_0x9ba1x14[_0xbb10[26]][_0xbb10[25]]]})[_0xbb10[27]](_0x9ba1x14[_0xbb10[26]][_0xbb10[54]])[_0xbb10[14]](handleEntityNotFound(_0x9ba1x9))[_0xbb10[14]](removeEntity(_0x9ba1x9))[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[56]]=function(_0x9ba1x14,_0x9ba1x9){return SalesforceConfiguration[_0xbb10[16]]({where:{id:_0x9ba1x14[_0xbb10[19]][_0xbb10[32]]},individualHooks:true})[_0xbb10[14]](responseWithResult(_0x9ba1x9,204))[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[57]]=function(_0x9ba1x14,_0x9ba1x9){_0x9ba1x14[_0xbb10[29]][_0xbb10[58]]=_0x9ba1x14[_0xbb10[26]][_0xbb10[25]];switch(_0x9ba1x14[_0xbb10[29]][_0xbb10[96]]){case _0xbb10[94]:_0x9ba1x14[_0xbb10[29]][_0xbb10[59]]=[{"\x74\x79\x70\x65":_0xbb10[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[61],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":null},{"\x74\x79\x70\x65":_0xbb10[62],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[64]},{"\x74\x79\x70\x65":_0xbb10[62],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[65]}];_0x9ba1x14[_0xbb10[29]][_0xbb10[66]]=[{"\x74\x79\x70\x65":_0xbb10[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[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":_0xbb10[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x6B\x65\x79":_0xbb10[69],"\x6B\x65\x79\x54\x79\x70\x65":_0xbb10[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[65]},{"\x74\x79\x70\x65":_0xbb10[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x6B\x65\x79":_0xbb10[70],"\x6B\x65\x79\x54\x79\x70\x65":_0xbb10[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[71]},{"\x74\x79\x70\x65":_0xbb10[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x6B\x65\x79":_0xbb10[72],"\x6B\x65\x79\x54\x79\x70\x65":_0xbb10[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[73]},{"\x74\x79\x70\x65":_0xbb10[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x6B\x65\x79":_0xbb10[74],"\x6B\x65\x79\x54\x79\x70\x65":_0xbb10[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[64]},{"\x74\x79\x70\x65":_0xbb10[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x6B\x65\x79":_0xbb10[75],"\x6B\x65\x79\x54\x79\x70\x65":_0xbb10[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[76]},{"\x74\x79\x70\x65":_0xbb10[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x6B\x65\x79":_0xbb10[77],"\x6B\x65\x79\x54\x79\x70\x65":_0xbb10[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[78]},{"\x74\x79\x70\x65":_0xbb10[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[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":_0xbb10[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x6B\x65\x79":_0xbb10[80],"\x6B\x65\x79\x54\x79\x70\x65":_0xbb10[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[81]},{"\x74\x79\x70\x65":_0xbb10[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x6B\x65\x79":_0xbb10[82],"\x6B\x65\x79\x54\x79\x70\x65":_0xbb10[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[83]},{"\x74\x79\x70\x65":_0xbb10[60],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[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":_0xbb10[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x6B\x65\x79":_0xbb10[85],"\x6B\x65\x79\x54\x79\x70\x65":_0xbb10[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[78]},{"\x74\x79\x70\x65":_0xbb10[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x6B\x65\x79":_0xbb10[86],"\x6B\x65\x79\x54\x79\x70\x65":_0xbb10[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[87]},{"\x74\x79\x70\x65":_0xbb10[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x6B\x65\x79":_0xbb10[88],"\x6B\x65\x79\x54\x79\x70\x65":_0xbb10[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[89]},{"\x74\x79\x70\x65":_0xbb10[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x6B\x65\x79":_0xbb10[90],"\x6B\x65\x79\x54\x79\x70\x65":_0xbb10[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[91]},{"\x74\x79\x70\x65":_0xbb10[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0xbb10[63],"\x6B\x65\x79":_0xbb10[92],"\x6B\x65\x79\x54\x79\x70\x65":_0xbb10[62],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0xbb10[93]}];break;default:console[_0xbb10[97]](_0xbb10[95],_0x9ba1x14[_0xbb10[29]][_0xbb10[96]])};delete _0x9ba1x14[_0xbb10[29]][_0xbb10[96]];return SalesforceConfiguration[_0xbb10[28]](_0x9ba1x14[_0xbb10[29]],{include:[{model:SalesforceField,as:_0xbb10[59]},{model:SalesforceField,as:_0xbb10[66]}]})[_0xbb10[14]](responseWithResult(_0x9ba1x9,201))[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[98]]=function(_0x9ba1x14,_0x9ba1x9){return SalesforceConfiguration[_0xbb10[23]]({method:[_0xbb10[52],_0x9ba1x14[_0xbb10[26]][_0xbb10[25]]]})[_0xbb10[27]](_0x9ba1x14[_0xbb10[26]][_0xbb10[54]])[_0xbb10[14]](handleEntityNotFound(_0x9ba1x9))[_0xbb10[14]](function(_0x9ba1x1d){switch(_0x9ba1x14[_0xbb10[26]][_0xbb10[104]]){case _0xbb10[100]:_0x9ba1x14[_0xbb10[29]][_0xbb10[99]]=_0x9ba1x14[_0xbb10[26]][_0xbb10[54]];break;case _0xbb10[102]:_0x9ba1x14[_0xbb10[29]][_0xbb10[101]]=_0x9ba1x14[_0xbb10[26]][_0xbb10[54]];break;case _0xbb10[43]:_0x9ba1x14[_0xbb10[29]][_0xbb10[103]]=_0x9ba1x14[_0xbb10[26]][_0xbb10[54]];break};return SalesforceField[_0xbb10[28]](_0x9ba1x14[_0xbb10[29]])})[_0xbb10[14]](responseWithResult(_0x9ba1x9,201))[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[105]]=function(_0x9ba1x14,_0x9ba1x9){if(_0x9ba1x14[_0xbb10[29]][_0xbb10[25]]){delete _0x9ba1x14[_0xbb10[29]][_0xbb10[25]]};return SalesforceField[_0xbb10[27]](_0x9ba1x14[_0xbb10[26]][_0xbb10[106]])[_0xbb10[14]](handleEntityNotFound(_0x9ba1x9))[_0xbb10[14]](saveUpdates(_0x9ba1x14[_0xbb10[29]]))[_0xbb10[14]](responseWithResult(_0x9ba1x9))[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[107]]=function(_0x9ba1x14,_0x9ba1x9){return SalesforceField[_0xbb10[27]](_0x9ba1x14[_0xbb10[26]][_0xbb10[106]])[_0xbb10[14]](handleEntityNotFound(_0x9ba1x9))[_0xbb10[14]](removeEntity(_0x9ba1x9))[_0xbb10[18]](handleError(_0x9ba1x9))};exports[_0xbb10[108]]=function(_0x9ba1x14,_0x9ba1x9,_0x9ba1x15){return SalesforceConfiguration[_0xbb10[27]](_0x9ba1x14[_0xbb10[26]][_0xbb10[54]])[_0xbb10[14]](handleEntityNotFound(_0x9ba1x9))[_0xbb10[14]](function(_0x9ba1x1d){return _0x9ba1x1d[_0xbb10[110]](_0x9ba1x14[_0xbb10[29]])})[_0xbb10[14]](responseWithoutResult(_0x9ba1x9,200))[_0xbb10[18]](function(_0x9ba1xb){console[_0xbb10[109]](_0x9ba1xb);return handleError(_0x9ba1x9,_0x9ba1xb)})}