Built motion from commit eeb7beacd.|1.0.21
[motion.git] / server / api / sugarcrm_account / sugarcrm_account.controller.js
index 054db6e..5fbe67f 100644 (file)
@@ -1 +1 @@
-var _0xb797=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x53\x75\x67\x61\x72\x63\x72\x6D\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","\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","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x6E\x6F\x64\x65\x2D\x73\x75\x67\x61\x72\x63\x72\x6D\x2D\x63\x6C\x69\x65\x6E\x74","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x73\x74\x72\x69\x70\x54\x72\x61\x69\x6C\x69\x6E\x67\x53\x6C\x61\x73\x68","\x2F\x73\x65\x72\x76\x69\x63\x65\x2F\x76\x34\x5F\x31\x2F\x72\x65\x73\x74\x2E\x70\x68\x70","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x69\x6E\x69\x74","\x6C\x6F\x67\x69\x6E","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\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","\x43\x61\x73\x65\x73","\x67\x65\x74\x5F\x6D\x6F\x64\x75\x6C\x65\x5F\x66\x69\x65\x6C\x64\x73","\x6D\x6F\x64\x75\x6C\x65\x5F\x66\x69\x65\x6C\x64\x73","\x63\x61\x6C\x6C"];_0xb797[0];var _=require(_0xb797[1]);var Util=require(_0xb797[2]);var SugarcrmAccount=require(_0xb797[4])[_0xb797[3]];function handleError(_0x6c75x5,_0x6c75x6){_0x6c75x6= _0x6c75x6|| 500;return function(_0x6c75x7){_0x6c75x5[_0xb797[6]](_0x6c75x6)[_0xb797[5]](_0x6c75x7)}}function responseWithResult(_0x6c75x5,_0x6c75x6){_0x6c75x6= _0x6c75x6|| 200;return function(_0x6c75x9){if(_0x6c75x9){_0x6c75x5[_0xb797[6]](_0x6c75x6)[_0xb797[7]](_0x6c75x9)}}}function responseWithoutResult(_0x6c75x5,_0x6c75x6){_0x6c75x6= _0x6c75x6|| 200;return function(){_0x6c75x5[_0xb797[8]](_0x6c75x6)}}function handleEntityNotFound(_0x6c75x5){return function(_0x6c75x9){if(!_0x6c75x9){_0x6c75x5[_0xb797[6]](404)[_0xb797[9]]();return null};return _0x6c75x9}}function saveUpdates(_0x6c75xd){return function(_0x6c75x9){return _0x6c75x9[_0xb797[11]](_0x6c75xd)[_0xb797[10]](function(_0x6c75xe){return _0x6c75xe})}}function removeEntity(_0x6c75x5){return function(_0x6c75x9){if(_0x6c75x9){return _0x6c75x9[_0xb797[12]]()[_0xb797[10]](function(){_0x6c75x5[_0xb797[6]](204)[_0xb797[9]]()})}}}exports[_0xb797[13]]= function(_0x6c75x10,_0x6c75x5){return SugarcrmAccount[_0xb797[19]](_0xb797[18])[_0xb797[17]](Util[_0xb797[16]](_0x6c75x10[_0xb797[15]]))[_0xb797[10]](responseWithResult(_0x6c75x5))[_0xb797[14]](handleError(_0x6c75x5))};exports[_0xb797[20]]= function(_0x6c75x10,_0x6c75x5){return SugarcrmAccount[_0xb797[23]](_0x6c75x10[_0xb797[22]][_0xb797[21]])[_0xb797[10]](handleEntityNotFound(_0x6c75x5))[_0xb797[10]](responseWithResult(_0x6c75x5))[_0xb797[14]](handleError(_0x6c75x5))};exports[_0xb797[24]]= function(_0x6c75x10,_0x6c75x5){return SugarcrmAccount[_0xb797[24]](_0x6c75x10[_0xb797[25]])[_0xb797[10]](responseWithResult(_0x6c75x5,201))[_0xb797[14]](handleError(_0x6c75x5))};exports[_0xb797[26]]= function(_0x6c75x10,_0x6c75x5){if(_0x6c75x10[_0xb797[25]][_0xb797[21]]){delete _0x6c75x10[_0xb797[25]][_0xb797[21]]};return SugarcrmAccount[_0xb797[23]](_0x6c75x10[_0xb797[22]][_0xb797[21]])[_0xb797[10]](handleEntityNotFound(_0x6c75x5))[_0xb797[10]](saveUpdates(_0x6c75x10[_0xb797[25]]))[_0xb797[10]](responseWithResult(_0x6c75x5))[_0xb797[14]](handleError(_0x6c75x5))};exports[_0xb797[12]]= function(_0x6c75x10,_0x6c75x5){return SugarcrmAccount[_0xb797[23]](_0x6c75x10[_0xb797[22]][_0xb797[21]])[_0xb797[10]](handleEntityNotFound(_0x6c75x5))[_0xb797[10]](removeEntity(_0x6c75x5))[_0xb797[14]](handleError(_0x6c75x5))};exports[_0xb797[27]]= function(_0x6c75x10,_0x6c75x5){return SugarcrmAccount[_0xb797[23]](_0x6c75x10[_0xb797[22]][_0xb797[21]])[_0xb797[10]](handleEntityNotFound(_0x6c75x5))[_0xb797[10]](function(_0x6c75x11){var _0x6c75x12=require(_0xb797[28]);_0x6c75x12[_0xb797[34]]({apiURL:Util[_0xb797[30]](_0x6c75x11[_0xb797[29]])+ _0xb797[31],login:_0x6c75x11[_0xb797[32]],passwd:_0x6c75x11[_0xb797[33]]});_0x6c75x12[_0xb797[35]](function(_0x6c75x13){if(!_0x6c75x13){return _0x6c75x5[_0xb797[8]](400)};return _0x6c75x5[_0xb797[8]](200)})})[_0xb797[14]](handleError(_0x6c75x5))};exports[_0xb797[36]]= function(_0x6c75x10,_0x6c75x5){SugarcrmAccount[_0xb797[12]]({where:{id:_0x6c75x10[_0xb797[15]][_0xb797[37]]},individualHooks:true})[_0xb797[10]](function(){return _0x6c75x5[_0xb797[8]](204)})[_0xb797[14]](handleError(_0x6c75x5))};exports[_0xb797[38]]= function(_0x6c75x10,_0x6c75x5){var _0x6c75x14={};_0x6c75x14[_0x6c75x10[_0xb797[22]][_0xb797[39]]]= _0x6c75x10[_0xb797[25]][_0xb797[40]];return SugarcrmAccount[_0xb797[17]]({where:_0x6c75x14})[_0xb797[10]](function(_0x6c75x15){if(_0x6c75x15[_0xb797[41]]){return _0x6c75x5[_0xb797[6]](200)[_0xb797[5]]({isValid:false,value:_0x6c75x10[_0xb797[25]][_0xb797[40]]})};return _0x6c75x5[_0xb797[6]](200)[_0xb797[5]]({isValid:true,value:_0x6c75x10[_0xb797[25]][_0xb797[40]]})})[_0xb797[14]](function(_0x6c75x7){return handleError(_0x6c75x5,_0x6c75x7)})};exports[_0xb797[42]]= function(_0x6c75x10,_0x6c75x5){var _0x6c75x12=require(_0xb797[28]);return SugarcrmAccount[_0xb797[23]](_0x6c75x10[_0xb797[22]][_0xb797[21]])[_0xb797[10]](handleEntityNotFound(_0x6c75x5))[_0xb797[10]](function(_0x6c75x11){_0x6c75x12[_0xb797[34]]({apiURL:Util[_0xb797[30]](_0x6c75x11[_0xb797[29]])+ _0xb797[31],login:_0x6c75x11[_0xb797[32]],passwd:_0x6c75x11[_0xb797[33]]});_0x6c75x12[_0xb797[35]](function(_0x6c75x13){if(!_0x6c75x13){return _0x6c75x5[_0xb797[8]](400)};var _0x6c75x16={session:_0x6c75x13,module_name:_0xb797[43]};_0x6c75x12[_0xb797[46]](_0xb797[44],_0x6c75x16,function(_0x6c75x15,_0x6c75x7){if(_0x6c75x7){return _0x6c75x5[_0xb797[8]](400)};return _0x6c75x5[_0xb797[6]](200)[_0xb797[5]](_0x6c75x15[_0xb797[45]])})})})[_0xb797[14]](handleError(_0x6c75x5))}
\ No newline at end of file
+var _0x4a28=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\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","\x6D\x65\x72\x67\x65","\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","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x6E\x6F\x64\x65\x2D\x73\x75\x67\x61\x72\x63\x72\x6D\x2D\x63\x6C\x69\x65\x6E\x74","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x73\x74\x72\x69\x70\x54\x72\x61\x69\x6C\x69\x6E\x67\x53\x6C\x61\x73\x68","\x2F\x73\x65\x72\x76\x69\x63\x65\x2F\x76\x34\x5F\x31\x2F\x72\x65\x73\x74\x2E\x70\x68\x70","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x69\x6E\x69\x74","\x6C\x6F\x67\x69\x6E","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\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","\x43\x61\x6C\x6C\x73","\x6D\x6F\x64\x75\x6C\x65","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x67\x65\x74\x5F\x6D\x6F\x64\x75\x6C\x65\x5F\x66\x69\x65\x6C\x64\x73","\x6D\x6F\x64\x75\x6C\x65\x5F\x66\x69\x65\x6C\x64\x73","\x74\x6F\x41\x72\x72\x61\x79","\x63\x61\x6C\x6C","\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","\x64\x65\x73\x74\x72\x6F\x79\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x63\x69\x64","\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","\x67\x65\x74\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\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","\x74\x79\x70\x65","\x51\x75\x65\x75\x65","\x53\x75\x62\x6A\x65\x63\x74","\x73\x74\x72\x69\x6E\x67","\x5B\x78\x43\x41\x4C\x4C\x59\x20\x54\x69\x63\x6B\x65\x74\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","\x43\x61\x6C\x6C\x65\x72\x20\x4E\x61\x6D\x65","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x43\x61\x6C\x6C\x20\x54\x6F","\x64\x65\x73\x74\x65\x78\x74\x65\x6E","\x55\x6E\x69\x71\x75\x65\x49\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x44\x61\x74\x65","\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","\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","\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","\x41\x67\x65\x6E\x74\x20\x43\x6F\x6E\x6E\x65\x63\x74","\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","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x41\x74","\x48\x6F\x6C\x64\x20\x54\x69\x6D\x65","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x54\x61\x6C\x6B\x20\x54\x69\x6D\x65","\x74\x61\x6C\x6B\x74\x69\x6D\x65","\x4F\x75\x74\x62\x6F\x75\x6E\x64","\x4F\x75\x74\x62\x6F\x75\x6E\x64\x20\x43\x61\x6C\x6C","\x43\x61\x6C\x6C\x65\x64\x20\x4E\x75\x6D\x62\x65\x72","\x4D\x65\x6D\x62\x65\x72\x20\x4E\x61\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x73\x74\x61\x72\x74\x74\x69\x6D\x65","\x41\x6E\x73\x77\x65\x72\x20\x54\x69\x6D\x65","\x61\x6E\x73\x77\x65\x72\x74\x69\x6D\x65","\x43\x6F\x6D\x70\x6C\x65\x74\x65\x20\x54\x69\x6D\x65","\x65\x6E\x64\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","\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","\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","\x75\x70\x64\x61\x74\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x67\x65\x74\x4D\x6F\x64\x75\x6C\x65\x73","\x61\x6C\x6C","\x67\x65\x74\x5F\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x5F\x6D\x6F\x64\x75\x6C\x65\x73","\x6D\x6F\x64\x75\x6C\x65\x73","\x6D\x6F\x64\x75\x6C\x65\x5F\x6B\x65\x79","\x6D\x6F\x64\x75\x6C\x65\x5F\x6C\x61\x62\x65\x6C","\x6D\x61\x70","\x6B\x65\x79","\x73\x6F\x72\x74\x42\x79"];_0x4a28[0];var _=require(_0x4a28[1]);var Util=require(_0x4a28[2]);var logger=require(_0x4a28[4])(_0x4a28[3]);var SugarcrmAccount=require(_0x4a28[6])[_0x4a28[5]];var SugarcrmConfiguration=require(_0x4a28[6])[_0x4a28[7]];var SugarcrmField=require(_0x4a28[6])[_0x4a28[8]];function handleError(_0xff77x8,_0xff77x9){_0xff77x9= _0xff77x9|| 500;return function(_0xff77xa){logger[_0x4a28[10]](_0xff77xa[_0x4a28[9]]);_0xff77x8[_0x4a28[12]](_0xff77x9)[_0x4a28[11]](_0xff77xa)}}function responseWithResult(_0xff77x8,_0xff77x9){_0xff77x9= _0xff77x9|| 200;return function(_0xff77xc){if(_0xff77xc){_0xff77x8[_0x4a28[12]](_0xff77x9)[_0x4a28[13]](_0xff77xc)}}}function responseWithoutResult(_0xff77x8,_0xff77x9){_0xff77x9= _0xff77x9|| 200;return function(){_0xff77x8[_0x4a28[14]](_0xff77x9)}}function handleEntityNotFound(_0xff77x8){return function(_0xff77xc){if(!_0xff77xc){_0xff77x8[_0x4a28[12]](404)[_0x4a28[15]]();return null};return _0xff77xc}}function saveUpdates(_0xff77x10){return function(_0xff77xc){return _0xff77xc[_0x4a28[17]](_0xff77x10)[_0x4a28[16]](function(_0xff77x11){return _0xff77x11})}}function removeEntity(_0xff77x8){return function(_0xff77xc){if(_0xff77xc){return _0xff77xc[_0x4a28[18]]()[_0x4a28[16]](function(){_0xff77x8[_0x4a28[12]](204)[_0x4a28[15]]()})}}}exports[_0x4a28[19]]= function(_0xff77x13,_0xff77x8){return SugarcrmAccount[_0x4a28[26]](_0x4a28[25])[_0x4a28[24]](_[_0x4a28[23]](Util[_0x4a28[22]](_0xff77x13[_0x4a28[21]]),{distinct:true}))[_0x4a28[16]](responseWithResult(_0xff77x8))[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[27]]= function(_0xff77x13,_0xff77x8){return SugarcrmAccount[_0x4a28[30]](_0xff77x13[_0x4a28[29]][_0x4a28[28]])[_0x4a28[16]](handleEntityNotFound(_0xff77x8))[_0x4a28[16]](responseWithResult(_0xff77x8))[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[31]]= function(_0xff77x13,_0xff77x8){return SugarcrmAccount[_0x4a28[31]](_0xff77x13[_0x4a28[32]])[_0x4a28[16]](responseWithResult(_0xff77x8,201))[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[33]]= function(_0xff77x13,_0xff77x8){if(_0xff77x13[_0x4a28[32]][_0x4a28[28]]){delete _0xff77x13[_0x4a28[32]][_0x4a28[28]]};return SugarcrmAccount[_0x4a28[30]](_0xff77x13[_0x4a28[29]][_0x4a28[28]])[_0x4a28[16]](handleEntityNotFound(_0xff77x8))[_0x4a28[16]](saveUpdates(_0xff77x13[_0x4a28[32]]))[_0x4a28[16]](responseWithResult(_0xff77x8))[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[18]]= function(_0xff77x13,_0xff77x8){return SugarcrmAccount[_0x4a28[30]](_0xff77x13[_0x4a28[29]][_0x4a28[28]])[_0x4a28[16]](handleEntityNotFound(_0xff77x8))[_0x4a28[16]](removeEntity(_0xff77x8))[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[34]]= function(_0xff77x13,_0xff77x8){return SugarcrmAccount[_0x4a28[30]](_0xff77x13[_0x4a28[29]][_0x4a28[28]])[_0x4a28[16]](handleEntityNotFound(_0xff77x8))[_0x4a28[16]](function(_0xff77x14){var _0xff77x15=require(_0x4a28[35]);_0xff77x15[_0x4a28[41]]({apiURL:Util[_0x4a28[37]](_0xff77x14[_0x4a28[36]])+ _0x4a28[38],login:_0xff77x14[_0x4a28[39]],passwd:_0xff77x14[_0x4a28[40]]});_0xff77x15[_0x4a28[42]](function(_0xff77x16){if(!_0xff77x16){return _0xff77x8[_0x4a28[14]](400)};return _0xff77x8[_0x4a28[14]](200)})})[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[43]]= function(_0xff77x13,_0xff77x8){return SugarcrmAccount[_0x4a28[18]]({where:{id:_0xff77x13[_0x4a28[21]][_0x4a28[44]]},individualHooks:true})[_0x4a28[16]](function(){return _0xff77x8[_0x4a28[14]](204)})[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[45]]= function(_0xff77x13,_0xff77x8){var _0xff77x17={};_0xff77x17[_0xff77x13[_0x4a28[29]][_0x4a28[46]]]= _0xff77x13[_0x4a28[32]][_0x4a28[47]];return SugarcrmAccount[_0x4a28[24]]({where:_0xff77x17})[_0x4a28[16]](function(_0xff77x18){if(_0xff77x18[_0x4a28[48]]){return _0xff77x8[_0x4a28[12]](200)[_0x4a28[11]]({isValid:false,value:_0xff77x13[_0x4a28[32]][_0x4a28[47]]})};return _0xff77x8[_0x4a28[12]](200)[_0x4a28[11]]({isValid:true,value:_0xff77x13[_0x4a28[32]][_0x4a28[47]]})})[_0x4a28[20]](function(_0xff77xa){return handleError(_0xff77x8,_0xff77xa)})};exports[_0x4a28[49]]= function(_0xff77x13,_0xff77x8){var _0xff77x19=_0x4a28[50];if(_0xff77x13[_0x4a28[21]][_0x4a28[52]](_0x4a28[51])&& _0xff77x13[_0x4a28[21]][_0x4a28[51]]){_0xff77x19= _0xff77x13[_0x4a28[21]][_0x4a28[51]]};var _0xff77x15=require(_0x4a28[35]);return SugarcrmAccount[_0x4a28[30]](_0xff77x13[_0x4a28[29]][_0x4a28[28]])[_0x4a28[16]](handleEntityNotFound(_0xff77x8))[_0x4a28[16]](function(_0xff77x14){_0xff77x15[_0x4a28[41]]({apiURL:Util[_0x4a28[37]](_0xff77x14[_0x4a28[36]])+ _0x4a28[38],login:_0xff77x14[_0x4a28[39]],passwd:_0xff77x14[_0x4a28[40]]});_0xff77x15[_0x4a28[42]](function(_0xff77x16){if(!_0xff77x16){return _0xff77x8[_0x4a28[14]](400)};var _0xff77x1a={session:_0xff77x16,module_name:_0xff77x19};_0xff77x15[_0x4a28[56]](_0x4a28[53],_0xff77x1a,function(_0xff77x18,_0xff77xa){if(_0xff77xa){return _0xff77x8[_0x4a28[14]](400)};return _0xff77x8[_0x4a28[12]](200)[_0x4a28[11]](_[_0x4a28[55]](_0xff77x18[_0x4a28[54]]))})})})[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[57]]= function(_0xff77x13,_0xff77x8){return SugarcrmConfiguration[_0x4a28[26]]({method:[_0x4a28[58],_0xff77x13[_0x4a28[29]][_0x4a28[28]]]})[_0x4a28[24]](_[_0x4a28[23]](Util[_0x4a28[22]](_0xff77x13[_0x4a28[21]]),{distinct:true}))[_0x4a28[16]](responseWithResult(_0xff77x8))[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[59]]= function(_0xff77x13,_0xff77x8){return SugarcrmConfiguration[_0x4a28[26]]({method:[_0x4a28[58],_0xff77x13[_0x4a28[29]][_0x4a28[28]]]})[_0x4a28[30]](_0xff77x13[_0x4a28[29]][_0x4a28[60]])[_0x4a28[16]](handleEntityNotFound(_0xff77x8))[_0x4a28[16]](removeEntity(_0xff77x8))[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[61]]= function(_0xff77x13,_0xff77x8){return SugarcrmConfiguration[_0x4a28[18]]({where:{id:_0xff77x13[_0x4a28[21]][_0x4a28[44]]},individualHooks:true})[_0x4a28[16]](responseWithResult(_0xff77x8,204))[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[62]]= function(_0xff77x13,_0xff77x8){return SugarcrmConfiguration[_0x4a28[26]]({method:[_0x4a28[58],_0xff77x13[_0x4a28[29]][_0x4a28[28]]]})[_0x4a28[30]](_0xff77x13[_0x4a28[29]][_0x4a28[60]])[_0x4a28[16]](handleEntityNotFound(_0xff77x8))[_0x4a28[16]](responseWithResult(_0xff77x8))[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[63]]= function(_0xff77x13,_0xff77x8){_0xff77x13[_0x4a28[32]][_0x4a28[64]]= _0xff77x13[_0x4a28[29]][_0x4a28[28]];switch(_0xff77x13[_0x4a28[32]][_0x4a28[113]]){case _0x4a28[111]:if(_0xff77x13[_0x4a28[32]][_0x4a28[65]]=== _0x4a28[66]){_0xff77x13[_0x4a28[32]][_0x4a28[67]]= [{"\x74\x79\x70\x65":_0x4a28[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[69],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":null},{"\x74\x79\x70\x65":_0x4a28[70],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[72]},{"\x74\x79\x70\x65":_0x4a28[70],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[73]}];_0xff77x13[_0x4a28[32]][_0x4a28[74]]= [{"\x74\x79\x70\x65":_0x4a28[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[75],"\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":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[77],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[73]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[78],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[79]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[80],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[81]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[66],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[72]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[82],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[83]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[84],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[85]},{"\x74\x79\x70\x65":_0x4a28[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[86],"\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":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[87],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[88]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[89],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[90]},{"\x74\x79\x70\x65":_0x4a28[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[91],"\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":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[92],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[85]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[93],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[94]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[95],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[96]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[97],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[98]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[99],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[100]}]}else {if(_0xff77x13[_0x4a28[32]][_0x4a28[65]]=== _0x4a28[101]){_0xff77x13[_0x4a28[32]][_0x4a28[67]]= [{"\x74\x79\x70\x65":_0x4a28[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[69],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":null},{"\x74\x79\x70\x65":_0x4a28[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[102],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":null},{"\x74\x79\x70\x65":_0x4a28[70],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[90]}];_0xff77x13[_0x4a28[32]][_0x4a28[74]]= [{"\x74\x79\x70\x65":_0x4a28[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[75],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":null},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[103],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x6B\x65\x79\x43\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[90]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[104],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x6B\x65\x79\x43\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[105]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[82],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x6B\x65\x79\x43\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[83]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[84],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x6B\x65\x79\x43\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[106]},{"\x74\x79\x70\x65":_0x4a28[68],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[91]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[107],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x6B\x65\x79\x43\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[108]},{"\x74\x79\x70\x65":_0x4a28[76],"\x63\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x6B\x65\x79":_0x4a28[109],"\x6B\x65\x79\x54\x79\x70\x65":_0x4a28[70],"\x6B\x65\x79\x43\x6F\x6E\x74\x65\x6E\x74":_0x4a28[71],"\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65":_0x4a28[110]}]}};break;default:logger[_0x4a28[10]](_0x4a28[112],_0xff77x13[_0x4a28[32]][_0x4a28[113]])};delete _0xff77x13[_0x4a28[32]][_0x4a28[113]];delete _0xff77x13[_0x4a28[32]][_0x4a28[65]];return SugarcrmConfiguration[_0x4a28[31]](_0xff77x13[_0x4a28[32]],{include:[{model:SugarcrmField,as:_0x4a28[67]},{model:SugarcrmField,as:_0x4a28[74]}]})[_0x4a28[16]](responseWithResult(_0xff77x8,201))[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[114]]= function(_0xff77x13,_0xff77x8){return SugarcrmConfiguration[_0x4a28[26]]({method:[_0x4a28[58],_0xff77x13[_0x4a28[29]][_0x4a28[28]]]})[_0x4a28[30]](_0xff77x13[_0x4a28[29]][_0x4a28[60]])[_0x4a28[16]](handleEntityNotFound(_0xff77x8))[_0x4a28[16]](function(_0xff77x1b){switch(_0xff77x13[_0x4a28[29]][_0x4a28[65]]){case _0x4a28[116]:_0xff77x13[_0x4a28[32]][_0x4a28[115]]= _0xff77x13[_0x4a28[29]][_0x4a28[60]];break;case _0x4a28[118]:_0xff77x13[_0x4a28[32]][_0x4a28[117]]= _0xff77x13[_0x4a28[29]][_0x4a28[60]];break;case _0x4a28[46]:_0xff77x13[_0x4a28[32]][_0x4a28[119]]= _0xff77x13[_0x4a28[29]][_0x4a28[60]];break};return SugarcrmField[_0x4a28[31]](_0xff77x13[_0x4a28[32]])})[_0x4a28[16]](responseWithResult(_0xff77x8,201))[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[120]]= function(_0xff77x13,_0xff77x8){if(_0xff77x13[_0x4a28[32]][_0x4a28[28]]){delete _0xff77x13[_0x4a28[32]][_0x4a28[28]]};return SugarcrmField[_0x4a28[30]](_0xff77x13[_0x4a28[29]][_0x4a28[121]])[_0x4a28[16]](handleEntityNotFound(_0xff77x8))[_0x4a28[16]](saveUpdates(_0xff77x13[_0x4a28[32]]))[_0x4a28[16]](responseWithResult(_0xff77x8))[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[122]]= function(_0xff77x13,_0xff77x8){return SugarcrmField[_0x4a28[30]](_0xff77x13[_0x4a28[29]][_0x4a28[121]])[_0x4a28[16]](handleEntityNotFound(_0xff77x8))[_0x4a28[16]](removeEntity(_0xff77x8))[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[123]]= function(_0xff77x13,_0xff77x8){if(_0xff77x13[_0x4a28[32]][_0x4a28[28]]){delete _0xff77x13[_0x4a28[32]][_0x4a28[28]]};return SugarcrmConfiguration[_0x4a28[26]]({method:[_0x4a28[58],_0xff77x13[_0x4a28[29]][_0x4a28[28]]]})[_0x4a28[30]](_0xff77x13[_0x4a28[29]][_0x4a28[60]])[_0x4a28[16]](handleEntityNotFound(_0xff77x8))[_0x4a28[16]](saveUpdates(_0xff77x13[_0x4a28[32]]))[_0x4a28[16]](responseWithResult(_0xff77x8))[_0x4a28[20]](handleError(_0xff77x8))};exports[_0x4a28[124]]= function(_0xff77x13,_0xff77x8){var _0xff77x15=require(_0x4a28[35]);return SugarcrmAccount[_0x4a28[30]](_0xff77x13[_0x4a28[29]][_0x4a28[28]])[_0x4a28[16]](handleEntityNotFound(_0xff77x8))[_0x4a28[16]](function(_0xff77x14){_0xff77x15[_0x4a28[41]]({apiURL:Util[_0x4a28[37]](_0xff77x14[_0x4a28[36]])+ _0x4a28[38],login:_0xff77x14[_0x4a28[39]],passwd:_0xff77x14[_0x4a28[40]]});_0xff77x15[_0x4a28[42]](function(_0xff77x16){if(!_0xff77x16){return _0xff77x8[_0x4a28[14]](400)};var _0xff77x1a={session:_0xff77x16,filter:_0x4a28[125]};_0xff77x15[_0x4a28[56]](_0x4a28[126],_0xff77x1a,function(_0xff77x18,_0xff77xa){if(_0xff77xa){return _0xff77x8[_0x4a28[14]](400)};return _0xff77x8[_0x4a28[12]](200)[_0x4a28[11]](_[_0x4a28[132]](_[_0x4a28[130]](_0xff77x18[_0x4a28[127]],function(_0xff77x1c){return {key:_0xff77x1c[_0x4a28[128]],label:_0xff77x1c[_0x4a28[129]]|| _0xff77x1c[_0x4a28[128]]}}),_0x4a28[131]))})})})[_0x4a28[20]](handleError(_0xff77x8))}
\ No newline at end of file