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