Built motion from commit 1038d87.|0.0.141
[motion.git] / server / api / freshdesk_configuration / freshdesk_configuration.controller.js
index 92c4a1d..133cdbc 100644 (file)
@@ -1 +1 @@
-var _0xf1eb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\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","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\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"];_0xf1eb[0];var _=require(_0xf1eb[1]);var FreshdeskConfiguration=require(_0xf1eb[3])[_0xf1eb[2]];var FreshdeskField=require(_0xf1eb[3])[_0xf1eb[4]];function handleError(_0x496fx5,_0x496fx6){_0x496fx6=_0x496fx6||500;return function(_0x496fx7){_0x496fx5[_0xf1eb[6]](_0x496fx6)[_0xf1eb[5]](_0x496fx7)}}function responseWithResult(_0x496fx5,_0x496fx6){_0x496fx6=_0x496fx6||200;return function(_0x496fx9){if(_0x496fx9){_0x496fx5[_0xf1eb[6]](_0x496fx6)[_0xf1eb[7]](_0x496fx9)}}}function handleEntityNotFound(_0x496fx5){return function(_0x496fx9){if(!_0x496fx9){_0x496fx5[_0xf1eb[6]](404)[_0xf1eb[8]]();return null};return _0x496fx9}}function saveUpdates(_0x496fxc){return function(_0x496fx9){return _0x496fx9[_0xf1eb[10]](_0x496fxc)[_0xf1eb[9]](function(_0x496fxd){return _0x496fxd})}}function removeEntity(_0x496fx5){return function(_0x496fx9){if(_0x496fx9){return _0x496fx9[_0xf1eb[11]]()[_0xf1eb[9]](function(){_0x496fx5[_0xf1eb[6]](204)[_0xf1eb[8]]()})}}}exports[_0xf1eb[12]]=function(_0x496fxf,_0x496fx5){FreshdeskConfiguration[_0xf1eb[15]]({where:_0x496fxf[_0xf1eb[14]]})[_0xf1eb[9]](responseWithResult(_0x496fx5))[_0xf1eb[13]](handleError(_0x496fx5))};exports[_0xf1eb[16]]=function(_0x496fxf,_0x496fx5){FreshdeskConfiguration[_0xf1eb[22]]({where:{id:_0x496fxf[_0xf1eb[18]][_0xf1eb[17]]},include:[{model:FreshdeskField,as:_0xf1eb[19]},{model:FreshdeskField,as:_0xf1eb[20]},{model:FreshdeskField,as:_0xf1eb[21]}]})[_0xf1eb[9]](handleEntityNotFound(_0x496fx5))[_0xf1eb[9]](responseWithResult(_0x496fx5))[_0xf1eb[13]](handleError(_0x496fx5))};exports[_0xf1eb[23]]=function(_0x496fxf,_0x496fx5){FreshdeskConfiguration[_0xf1eb[23]](_0x496fxf[_0xf1eb[24]])[_0xf1eb[9]](responseWithResult(_0x496fx5,201))[_0xf1eb[13]](handleError(_0x496fx5))};exports[_0xf1eb[25]]=function(_0x496fxf,_0x496fx5){if(_0x496fxf[_0xf1eb[24]][_0xf1eb[17]]){delete _0x496fxf[_0xf1eb[24]][_0xf1eb[17]]};FreshdeskConfiguration[_0xf1eb[26]](_0x496fxf[_0xf1eb[18]][_0xf1eb[17]])[_0xf1eb[9]](handleEntityNotFound(_0x496fx5))[_0xf1eb[9]](saveUpdates(_0x496fxf[_0xf1eb[24]]))[_0xf1eb[9]](responseWithResult(_0x496fx5))[_0xf1eb[13]](handleError(_0x496fx5))};exports[_0xf1eb[11]]=function(_0x496fxf,_0x496fx5){FreshdeskConfiguration[_0xf1eb[26]](_0x496fxf[_0xf1eb[18]][_0xf1eb[17]])[_0xf1eb[9]](handleEntityNotFound(_0x496fx5))[_0xf1eb[9]](removeEntity(_0x496fx5))[_0xf1eb[13]](handleError(_0x496fx5))};exports[_0xf1eb[27]]=function(_0x496fxf,_0x496fx5,_0x496fx10){var _0x496fx11;FreshdeskConfiguration[_0xf1eb[26]](_0x496fxf[_0xf1eb[18]][_0xf1eb[17]])[_0xf1eb[9]](handleEntityNotFound(_0x496fx5))[_0xf1eb[9]](function(_0x496fx14){_0x496fx11=_0x496fx14;return FreshdeskField[_0xf1eb[23]](_0x496fxf[_0xf1eb[24]])})[_0xf1eb[9]](function(_0x496fx13){switch(_0x496fxf[_0xf1eb[18]][_0xf1eb[35]]){case _0xf1eb[30]:return [_0x496fx11[_0xf1eb[29]](_0x496fx13),_0x496fx13];case _0xf1eb[32]:return [_0x496fx11[_0xf1eb[31]](_0x496fx13),_0x496fx13];case _0xf1eb[34]:return [_0x496fx11[_0xf1eb[33]](_0x496fx13),_0x496fx13]}})[_0xf1eb[28]](function(_0x496fx12,_0x496fx13){return _0x496fx5[_0xf1eb[6]](201)[_0xf1eb[7]](_0x496fx13)})[_0xf1eb[13]](handleError(_0x496fx5))}
\ No newline at end of file
+var _0xcd53=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\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","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\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"];_0xcd53[0];var _=require(_0xcd53[1]);var FreshdeskConfiguration=require(_0xcd53[3])[_0xcd53[2]];var FreshdeskField=require(_0xcd53[3])[_0xcd53[4]];function handleError(_0xe20dx5,_0xe20dx6){_0xe20dx6= _0xe20dx6|| 500;return function(_0xe20dx7){_0xe20dx5[_0xcd53[6]](_0xe20dx6)[_0xcd53[5]](_0xe20dx7)}}function responseWithResult(_0xe20dx5,_0xe20dx6){_0xe20dx6= _0xe20dx6|| 200;return function(_0xe20dx9){if(_0xe20dx9){_0xe20dx5[_0xcd53[6]](_0xe20dx6)[_0xcd53[7]](_0xe20dx9)}}}function handleEntityNotFound(_0xe20dx5){return function(_0xe20dx9){if(!_0xe20dx9){_0xe20dx5[_0xcd53[6]](404)[_0xcd53[8]]();return null};return _0xe20dx9}}function saveUpdates(_0xe20dxc){return function(_0xe20dx9){return _0xe20dx9[_0xcd53[10]](_0xe20dxc)[_0xcd53[9]](function(_0xe20dxd){return _0xe20dxd})}}function removeEntity(_0xe20dx5){return function(_0xe20dx9){if(_0xe20dx9){return _0xe20dx9[_0xcd53[11]]()[_0xcd53[9]](function(){_0xe20dx5[_0xcd53[6]](204)[_0xcd53[8]]()})}}}exports[_0xcd53[12]]= function(_0xe20dxf,_0xe20dx5){FreshdeskConfiguration[_0xcd53[15]]({where:_0xe20dxf[_0xcd53[14]]})[_0xcd53[9]](responseWithResult(_0xe20dx5))[_0xcd53[13]](handleError(_0xe20dx5))};exports[_0xcd53[16]]= function(_0xe20dxf,_0xe20dx5){FreshdeskConfiguration[_0xcd53[22]]({where:{id:_0xe20dxf[_0xcd53[18]][_0xcd53[17]]},include:[{model:FreshdeskField,as:_0xcd53[19]},{model:FreshdeskField,as:_0xcd53[20]},{model:FreshdeskField,as:_0xcd53[21]}]})[_0xcd53[9]](handleEntityNotFound(_0xe20dx5))[_0xcd53[9]](responseWithResult(_0xe20dx5))[_0xcd53[13]](handleError(_0xe20dx5))};exports[_0xcd53[23]]= function(_0xe20dxf,_0xe20dx5){FreshdeskConfiguration[_0xcd53[23]](_0xe20dxf[_0xcd53[24]])[_0xcd53[9]](responseWithResult(_0xe20dx5,201))[_0xcd53[13]](handleError(_0xe20dx5))};exports[_0xcd53[25]]= function(_0xe20dxf,_0xe20dx5){if(_0xe20dxf[_0xcd53[24]][_0xcd53[17]]){delete _0xe20dxf[_0xcd53[24]][_0xcd53[17]]};FreshdeskConfiguration[_0xcd53[26]](_0xe20dxf[_0xcd53[18]][_0xcd53[17]])[_0xcd53[9]](handleEntityNotFound(_0xe20dx5))[_0xcd53[9]](saveUpdates(_0xe20dxf[_0xcd53[24]]))[_0xcd53[9]](responseWithResult(_0xe20dx5))[_0xcd53[13]](handleError(_0xe20dx5))};exports[_0xcd53[11]]= function(_0xe20dxf,_0xe20dx5){FreshdeskConfiguration[_0xcd53[26]](_0xe20dxf[_0xcd53[18]][_0xcd53[17]])[_0xcd53[9]](handleEntityNotFound(_0xe20dx5))[_0xcd53[9]](removeEntity(_0xe20dx5))[_0xcd53[13]](handleError(_0xe20dx5))};exports[_0xcd53[27]]= function(_0xe20dxf,_0xe20dx5,_0xe20dx10){var _0xe20dx11;FreshdeskConfiguration[_0xcd53[26]](_0xe20dxf[_0xcd53[18]][_0xcd53[17]])[_0xcd53[9]](handleEntityNotFound(_0xe20dx5))[_0xcd53[9]](function(_0xe20dx14){_0xe20dx11= _0xe20dx14;return FreshdeskField[_0xcd53[23]](_0xe20dxf[_0xcd53[24]])})[_0xcd53[9]](function(_0xe20dx13){switch(_0xe20dxf[_0xcd53[18]][_0xcd53[35]]){case _0xcd53[30]:return [_0xe20dx11[_0xcd53[29]](_0xe20dx13),_0xe20dx13];case _0xcd53[32]:return [_0xe20dx11[_0xcd53[31]](_0xe20dx13),_0xe20dx13];case _0xcd53[34]:return [_0xe20dx11[_0xcd53[33]](_0xe20dx13),_0xe20dx13]}})[_0xcd53[28]](function(_0xe20dx12,_0xe20dx13){return _0xe20dx5[_0xcd53[6]](201)[_0xcd53[7]](_0xe20dx13)})[_0xcd53[13]](handleError(_0xe20dx5))}
\ No newline at end of file