Built motion from commit daed1922e.|1.0.22
[motion.git] / server / api / chat_websites_field / chat_websites_field.controller.js
index 4dcddbd..9d0f383 100644 (file)
@@ -1 +1 @@
-var _0x294a=["\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","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x73\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\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","\x66\x69\x6E\x64\x41\x6C\x6C","\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"];_0x294a[0];var _=require(_0x294a[1]);var Util=require(_0x294a[2]);var logger=require(_0x294a[4])(_0x294a[3]);var ChatWebsitesField=require(_0x294a[6])[_0x294a[5]];function handleError(_0x9575x6,_0x9575x7){_0x9575x7= _0x9575x7|| 500;return function(_0x9575x8){logger[_0x294a[8]](_0x9575x8[_0x294a[7]]);_0x9575x6[_0x294a[10]](_0x9575x7)[_0x294a[9]](_0x9575x8)}}function responseWithResult(_0x9575x6,_0x9575x7){_0x9575x7= _0x9575x7|| 200;return function(_0x9575xa){if(_0x9575xa){_0x9575x6[_0x294a[10]](_0x9575x7)[_0x294a[11]](_0x9575xa)}}}function responseWithoutResult(_0x9575x6,_0x9575x7){_0x9575x7= _0x9575x7|| 204;return function(){_0x9575x6[_0x294a[12]](_0x9575x7)}}function handleEntityNotFound(_0x9575x6){return function(_0x9575xa){if(!_0x9575xa){_0x9575x6[_0x294a[10]](404)[_0x294a[13]]();return null};return _0x9575xa}}function saveUpdates(_0x9575xe){return function(_0x9575xa){return _0x9575xa[_0x294a[15]](_0x9575xe)[_0x294a[14]](function(_0x9575xf){return _0x9575xf})}}function removeEntity(_0x9575x6){return function(_0x9575xa){if(_0x9575xa){return _0x9575xa[_0x294a[16]]()[_0x294a[14]](function(){_0x9575x6[_0x294a[10]](204)[_0x294a[13]]()})}}}exports[_0x294a[17]]= function(_0x9575x11,_0x9575x6){return ChatWebsitesField[_0x294a[21]](Util[_0x294a[20]](_0x9575x11[_0x294a[19]]))[_0x294a[14]](responseWithResult(_0x9575x6))[_0x294a[18]](handleError(_0x9575x6))};exports[_0x294a[22]]= function(_0x9575x11,_0x9575x6){return ChatWebsitesField[_0x294a[25]](_0x9575x11[_0x294a[24]][_0x294a[23]])[_0x294a[14]](handleEntityNotFound(_0x9575x6))[_0x294a[14]](responseWithResult(_0x9575x6))[_0x294a[18]](handleError(_0x9575x6))};exports[_0x294a[26]]= function(_0x9575x11,_0x9575x6){return ChatWebsitesField[_0x294a[26]](_0x9575x11[_0x294a[27]])[_0x294a[14]](responseWithResult(_0x9575x6,201))[_0x294a[18]](handleError(_0x9575x6))};exports[_0x294a[28]]= function(_0x9575x11,_0x9575x6){if(_0x9575x11[_0x294a[27]][_0x294a[23]]){delete _0x9575x11[_0x294a[27]][_0x294a[23]]};return ChatWebsitesField[_0x294a[25]](_0x9575x11[_0x294a[24]][_0x294a[23]])[_0x294a[14]](handleEntityNotFound(_0x9575x6))[_0x294a[14]](saveUpdates(_0x9575x11[_0x294a[27]]))[_0x294a[14]](responseWithResult(_0x9575x6))[_0x294a[18]](handleError(_0x9575x6))};exports[_0x294a[16]]= function(_0x9575x11,_0x9575x6){return ChatWebsitesField[_0x294a[25]](_0x9575x11[_0x294a[24]][_0x294a[23]])[_0x294a[14]](handleEntityNotFound(_0x9575x6))[_0x294a[14]](removeEntity(_0x9575x6))[_0x294a[18]](handleError(_0x9575x6))}
\ No newline at end of file
+var _0x6c86=["\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","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x73\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\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","\x66\x69\x6E\x64\x41\x6C\x6C","\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"];_0x6c86[0];var _=require(_0x6c86[1]);var Util=require(_0x6c86[2]);var logger=require(_0x6c86[4])(_0x6c86[3]);var ChatWebsitesField=require(_0x6c86[6])[_0x6c86[5]];function handleError(_0xe4d7x6,_0xe4d7x7){_0xe4d7x7= _0xe4d7x7|| 500;return function(_0xe4d7x8){logger[_0x6c86[8]](_0xe4d7x8[_0x6c86[7]]);_0xe4d7x6[_0x6c86[10]](_0xe4d7x7)[_0x6c86[9]](_0xe4d7x8)}}function responseWithResult(_0xe4d7x6,_0xe4d7x7){_0xe4d7x7= _0xe4d7x7|| 200;return function(_0xe4d7xa){if(_0xe4d7xa){_0xe4d7x6[_0x6c86[10]](_0xe4d7x7)[_0x6c86[11]](_0xe4d7xa)}}}function responseWithoutResult(_0xe4d7x6,_0xe4d7x7){_0xe4d7x7= _0xe4d7x7|| 204;return function(){_0xe4d7x6[_0x6c86[12]](_0xe4d7x7)}}function handleEntityNotFound(_0xe4d7x6){return function(_0xe4d7xa){if(!_0xe4d7xa){_0xe4d7x6[_0x6c86[10]](404)[_0x6c86[13]]();return null};return _0xe4d7xa}}function saveUpdates(_0xe4d7xe){return function(_0xe4d7xa){return _0xe4d7xa[_0x6c86[15]](_0xe4d7xe)[_0x6c86[14]](function(_0xe4d7xf){return _0xe4d7xf})}}function removeEntity(_0xe4d7x6){return function(_0xe4d7xa){if(_0xe4d7xa){return _0xe4d7xa[_0x6c86[16]]()[_0x6c86[14]](function(){_0xe4d7x6[_0x6c86[10]](204)[_0x6c86[13]]()})}}}exports[_0x6c86[17]]= function(_0xe4d7x11,_0xe4d7x6){return ChatWebsitesField[_0x6c86[21]](Util[_0x6c86[20]](_0xe4d7x11[_0x6c86[19]]))[_0x6c86[14]](responseWithResult(_0xe4d7x6))[_0x6c86[18]](handleError(_0xe4d7x6))};exports[_0x6c86[22]]= function(_0xe4d7x11,_0xe4d7x6){return ChatWebsitesField[_0x6c86[25]](_0xe4d7x11[_0x6c86[24]][_0x6c86[23]])[_0x6c86[14]](handleEntityNotFound(_0xe4d7x6))[_0x6c86[14]](responseWithResult(_0xe4d7x6))[_0x6c86[18]](handleError(_0xe4d7x6))};exports[_0x6c86[26]]= function(_0xe4d7x11,_0xe4d7x6){return ChatWebsitesField[_0x6c86[26]](_0xe4d7x11[_0x6c86[27]])[_0x6c86[14]](responseWithResult(_0xe4d7x6,201))[_0x6c86[18]](handleError(_0xe4d7x6))};exports[_0x6c86[28]]= function(_0xe4d7x11,_0xe4d7x6){if(_0xe4d7x11[_0x6c86[27]][_0x6c86[23]]){delete _0xe4d7x11[_0x6c86[27]][_0x6c86[23]]};return ChatWebsitesField[_0x6c86[25]](_0xe4d7x11[_0x6c86[24]][_0x6c86[23]])[_0x6c86[14]](handleEntityNotFound(_0xe4d7x6))[_0x6c86[14]](saveUpdates(_0xe4d7x11[_0x6c86[27]]))[_0x6c86[14]](responseWithResult(_0xe4d7x6))[_0x6c86[18]](handleError(_0xe4d7x6))};exports[_0x6c86[16]]= function(_0xe4d7x11,_0xe4d7x6){return ChatWebsitesField[_0x6c86[25]](_0xe4d7x11[_0x6c86[24]][_0x6c86[23]])[_0x6c86[14]](handleEntityNotFound(_0xe4d7x6))[_0x6c86[14]](removeEntity(_0xe4d7x6))[_0x6c86[18]](handleError(_0xe4d7x6))}
\ No newline at end of file