Built motion from commit 7767ffc.|0.0.132
[motion.git] / server / api / sugarcrm_configuration / sugarcrm_configuration.controller.js
index 4a0cd66..312f281 100644 (file)
@@ -1 +1 @@
-var _0x69bd=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64","\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","\x63\x61\x74\x63\x68","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x53\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x73\x70\x72\x65\x61\x64","\x61\x64\x64\x53\x75\x62\x6A\x65\x63\x74","\x73\x75\x62\x6A\x65\x63\x74","\x61\x64\x64\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x65\x6C\x64","\x66\x69\x65\x6C\x64","\x74\x79\x70\x65"];_0x69bd[0];var _=require(_0x69bd[1]);var SugarcrmConfiguration=require(_0x69bd[3])[_0x69bd[2]];var SugarcrmField=require(_0x69bd[3])[_0x69bd[4]];function handleError(_0x4862x5,_0x4862x6){_0x4862x6= _0x4862x6|| 500;return function(_0x4862x7){_0x4862x5[_0x69bd[6]](_0x4862x6)[_0x69bd[5]](_0x4862x7)}}function responseWithResult(_0x4862x5,_0x4862x6){_0x4862x6= _0x4862x6|| 200;return function(_0x4862x9){if(_0x4862x9){_0x4862x5[_0x69bd[6]](_0x4862x6)[_0x69bd[7]](_0x4862x9)}}}function handleEntityNotFound(_0x4862x5){return function(_0x4862x9){if(!_0x4862x9){_0x4862x5[_0x69bd[6]](404)[_0x69bd[8]]();return null};return _0x4862x9}}function saveUpdates(_0x4862xc){return function(_0x4862x9){return _0x4862x9[_0x69bd[10]](_0x4862xc)[_0x69bd[9]](function(_0x4862xd){return _0x4862xd})}}function removeEntity(_0x4862x5){return function(_0x4862x9){if(_0x4862x9){return _0x4862x9[_0x69bd[11]]()[_0x69bd[9]](function(){_0x4862x5[_0x69bd[6]](204)[_0x69bd[8]]()})}}}exports[_0x69bd[12]]= function(_0x4862xf,_0x4862x5){SugarcrmConfiguration[_0x69bd[15]]({where:_0x4862xf[_0x69bd[14]]})[_0x69bd[9]](responseWithResult(_0x4862x5))[_0x69bd[13]](handleError(_0x4862x5))};exports[_0x69bd[16]]= function(_0x4862xf,_0x4862x5){SugarcrmConfiguration[_0x69bd[22]]({where:{id:_0x4862xf[_0x69bd[18]][_0x69bd[17]]},include:[{model:SugarcrmField,as:_0x69bd[19]},{model:SugarcrmField,as:_0x69bd[20]},{model:SugarcrmField,as:_0x69bd[21]}]})[_0x69bd[9]](handleEntityNotFound(_0x4862x5))[_0x69bd[9]](responseWithResult(_0x4862x5))[_0x69bd[13]](handleError(_0x4862x5))};exports[_0x69bd[23]]= function(_0x4862xf,_0x4862x5){SugarcrmConfiguration[_0x69bd[23]](_0x4862xf[_0x69bd[24]])[_0x69bd[9]](responseWithResult(_0x4862x5,201))[_0x69bd[13]](handleError(_0x4862x5))};exports[_0x69bd[25]]= function(_0x4862xf,_0x4862x5){if(_0x4862xf[_0x69bd[24]][_0x69bd[17]]){delete _0x4862xf[_0x69bd[24]][_0x69bd[17]]};SugarcrmConfiguration[_0x69bd[26]](_0x4862xf[_0x69bd[18]][_0x69bd[17]])[_0x69bd[9]](handleEntityNotFound(_0x4862x5))[_0x69bd[9]](saveUpdates(_0x4862xf[_0x69bd[24]]))[_0x69bd[9]](responseWithResult(_0x4862x5))[_0x69bd[13]](handleError(_0x4862x5))};exports[_0x69bd[11]]= function(_0x4862xf,_0x4862x5){SugarcrmConfiguration[_0x69bd[26]](_0x4862xf[_0x69bd[18]][_0x69bd[17]])[_0x69bd[9]](handleEntityNotFound(_0x4862x5))[_0x69bd[9]](removeEntity(_0x4862x5))[_0x69bd[13]](handleError(_0x4862x5))};exports[_0x69bd[27]]= function(_0x4862xf,_0x4862x5,_0x4862x10){var _0x4862x11;SugarcrmConfiguration[_0x69bd[26]](_0x4862xf[_0x69bd[18]][_0x69bd[17]])[_0x69bd[9]](handleEntityNotFound(_0x4862x5))[_0x69bd[9]](function(_0x4862x14){_0x4862x11= _0x4862x14;return SugarcrmField[_0x69bd[23]](_0x4862xf[_0x69bd[24]])})[_0x69bd[9]](function(_0x4862x13){switch(_0x4862xf[_0x69bd[18]][_0x69bd[35]]){case _0x69bd[30]:return [_0x4862x11[_0x69bd[29]](_0x4862x13),_0x4862x13];case _0x69bd[32]:return [_0x4862x11[_0x69bd[31]](_0x4862x13),_0x4862x13];case _0x69bd[34]:return [_0x4862x11[_0x69bd[33]](_0x4862x13),_0x4862x13]}})[_0x69bd[28]](function(_0x4862x12,_0x4862x13){return _0x4862x5[_0x69bd[6]](201)[_0x69bd[7]](_0x4862x13)})[_0x69bd[13]](handleError(_0x4862x5))}
\ No newline at end of file
+var _0x60f1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64","\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","\x63\x61\x74\x63\x68","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x53\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x73\x70\x72\x65\x61\x64","\x61\x64\x64\x53\x75\x62\x6A\x65\x63\x74","\x73\x75\x62\x6A\x65\x63\x74","\x61\x64\x64\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x65\x6C\x64","\x66\x69\x65\x6C\x64","\x74\x79\x70\x65"];_0x60f1[0];var _=require(_0x60f1[1]);var SugarcrmConfiguration=require(_0x60f1[3])[_0x60f1[2]];var SugarcrmField=require(_0x60f1[3])[_0x60f1[4]];function handleError(_0xea76x5,_0xea76x6){_0xea76x6= _0xea76x6|| 500;return function(_0xea76x7){_0xea76x5[_0x60f1[6]](_0xea76x6)[_0x60f1[5]](_0xea76x7)}}function responseWithResult(_0xea76x5,_0xea76x6){_0xea76x6= _0xea76x6|| 200;return function(_0xea76x9){if(_0xea76x9){_0xea76x5[_0x60f1[6]](_0xea76x6)[_0x60f1[7]](_0xea76x9)}}}function handleEntityNotFound(_0xea76x5){return function(_0xea76x9){if(!_0xea76x9){_0xea76x5[_0x60f1[6]](404)[_0x60f1[8]]();return null};return _0xea76x9}}function saveUpdates(_0xea76xc){return function(_0xea76x9){return _0xea76x9[_0x60f1[10]](_0xea76xc)[_0x60f1[9]](function(_0xea76xd){return _0xea76xd})}}function removeEntity(_0xea76x5){return function(_0xea76x9){if(_0xea76x9){return _0xea76x9[_0x60f1[11]]()[_0x60f1[9]](function(){_0xea76x5[_0x60f1[6]](204)[_0x60f1[8]]()})}}}exports[_0x60f1[12]]= function(_0xea76xf,_0xea76x5){SugarcrmConfiguration[_0x60f1[15]]({where:_0xea76xf[_0x60f1[14]]})[_0x60f1[9]](responseWithResult(_0xea76x5))[_0x60f1[13]](handleError(_0xea76x5))};exports[_0x60f1[16]]= function(_0xea76xf,_0xea76x5){SugarcrmConfiguration[_0x60f1[22]]({where:{id:_0xea76xf[_0x60f1[18]][_0x60f1[17]]},include:[{model:SugarcrmField,as:_0x60f1[19]},{model:SugarcrmField,as:_0x60f1[20]},{model:SugarcrmField,as:_0x60f1[21]}]})[_0x60f1[9]](handleEntityNotFound(_0xea76x5))[_0x60f1[9]](responseWithResult(_0xea76x5))[_0x60f1[13]](handleError(_0xea76x5))};exports[_0x60f1[23]]= function(_0xea76xf,_0xea76x5){SugarcrmConfiguration[_0x60f1[23]](_0xea76xf[_0x60f1[24]])[_0x60f1[9]](responseWithResult(_0xea76x5,201))[_0x60f1[13]](handleError(_0xea76x5))};exports[_0x60f1[25]]= function(_0xea76xf,_0xea76x5){if(_0xea76xf[_0x60f1[24]][_0x60f1[17]]){delete _0xea76xf[_0x60f1[24]][_0x60f1[17]]};SugarcrmConfiguration[_0x60f1[26]](_0xea76xf[_0x60f1[18]][_0x60f1[17]])[_0x60f1[9]](handleEntityNotFound(_0xea76x5))[_0x60f1[9]](saveUpdates(_0xea76xf[_0x60f1[24]]))[_0x60f1[9]](responseWithResult(_0xea76x5))[_0x60f1[13]](handleError(_0xea76x5))};exports[_0x60f1[11]]= function(_0xea76xf,_0xea76x5){SugarcrmConfiguration[_0x60f1[26]](_0xea76xf[_0x60f1[18]][_0x60f1[17]])[_0x60f1[9]](handleEntityNotFound(_0xea76x5))[_0x60f1[9]](removeEntity(_0xea76x5))[_0x60f1[13]](handleError(_0xea76x5))};exports[_0x60f1[27]]= function(_0xea76xf,_0xea76x5,_0xea76x10){var _0xea76x11;SugarcrmConfiguration[_0x60f1[26]](_0xea76xf[_0x60f1[18]][_0x60f1[17]])[_0x60f1[9]](handleEntityNotFound(_0xea76x5))[_0x60f1[9]](function(_0xea76x14){_0xea76x11= _0xea76x14;return SugarcrmField[_0x60f1[23]](_0xea76xf[_0x60f1[24]])})[_0x60f1[9]](function(_0xea76x13){switch(_0xea76xf[_0x60f1[18]][_0x60f1[35]]){case _0x60f1[30]:return [_0xea76x11[_0x60f1[29]](_0xea76x13),_0xea76x13];case _0x60f1[32]:return [_0xea76x11[_0x60f1[31]](_0xea76x13),_0xea76x13];case _0x60f1[34]:return [_0xea76x11[_0x60f1[33]](_0xea76x13),_0xea76x13]}})[_0x60f1[28]](function(_0xea76x12,_0xea76x13){return _0xea76x5[_0x60f1[6]](201)[_0x60f1[7]](_0xea76x13)})[_0x60f1[13]](handleError(_0xea76x5))}
\ No newline at end of file