Built motion from commit f3d513ea8.|1.0.25
[motion.git] / server / api / zendesk_configuration / zendesk_configuration.controller.js
index 89e538f..2425fa0 100644 (file)
@@ -1 +1 @@
-var _0x359a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x5A\x65\x6E\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","\x5A\x65\x6E\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\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","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x65\x73\x74\x72\x6F\x79","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\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","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x54\x61\x67\x73","\x73\x65\x74\x54\x61\x67\x73","\x65\x6E\x64","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x359a[0];var _=require(_0x359a[1]);var ZendeskConfiguration=require(_0x359a[3])[_0x359a[2]];var ZendeskField=require(_0x359a[3])[_0x359a[4]];var logger=require(_0x359a[6])(_0x359a[5]);exports[_0x359a[7]]= function(_0x621bx5,_0x621bx6){ZendeskConfiguration[_0x359a[13]]({where:_0x621bx5[_0x359a[12]]})[_0x359a[11]](function(_0x621bx8){return _0x621bx6[_0x359a[10]](200)[_0x359a[9]](_0x621bx8)})[_0x359a[8]](function(_0x621bx7){return handleError(_0x621bx6,_0x621bx7)})};exports[_0x359a[14]]= function(_0x621bx5,_0x621bx6){ZendeskConfiguration[_0x359a[18]]({where:{id:_0x621bx5[_0x359a[17]][_0x359a[16]]},include:[{all:true}]})[_0x359a[11]](function(_0x621bx9){if(!_0x621bx9){return _0x621bx6[_0x359a[15]](404)};return _0x621bx6[_0x359a[9]](_0x621bx9)})[_0x359a[8]](function(_0x621bx7){return handleError(_0x621bx6,_0x621bx7)})};exports[_0x359a[19]]= function(_0x621bx5,_0x621bx6){ZendeskConfiguration[_0x359a[19]](_0x621bx5[_0x359a[20]])[_0x359a[11]](function(_0x621bx9){return _0x621bx6[_0x359a[10]](201)[_0x359a[9]](_0x621bx9)})[_0x359a[8]](function(_0x621bx7){return handleError(_0x621bx6,_0x621bx7)})};exports[_0x359a[21]]= function(_0x621bx5,_0x621bx6){if(_0x621bx5[_0x359a[20]][_0x359a[16]]){delete _0x621bx5[_0x359a[20]][_0x359a[16]]};ZendeskConfiguration[_0x359a[24]](_0x621bx5[_0x359a[17]][_0x359a[16]])[_0x359a[11]](function(_0x621bx9){if(!_0x621bx9){return _0x621bx6[_0x359a[15]](404)};var _0x621bxa=_[_0x359a[22]](_0x621bx9,_0x621bx5[_0x359a[20]]);_0x621bxa[_0x359a[23]]()[_0x359a[11]](function(){return _0x621bx6[_0x359a[10]](200)[_0x359a[9]](_0x621bx9)})[_0x359a[8]](function(_0x621bx7){return handleError(_0x621bx6,_0x621bx7)})})[_0x359a[8]](function(_0x621bx7){return handleError(_0x621bx6,_0x621bx7)})};exports[_0x359a[25]]= function(_0x621bx5,_0x621bx6){ZendeskConfiguration[_0x359a[24]](_0x621bx5[_0x359a[17]][_0x359a[16]])[_0x359a[11]](function(_0x621bx9){if(!_0x621bx9){return _0x621bx6[_0x359a[15]](404)};_0x621bx9[_0x359a[25]]()[_0x359a[11]](function(){return _0x621bx6[_0x359a[15]](204)})[_0x359a[8]](function(_0x621bx7){return handleError(_0x621bx6,_0x621bx7)})})[_0x359a[8]](function(_0x621bx7){return handleError(_0x621bx6,_0x621bx7)})};exports[_0x359a[26]]= function(_0x621bx5,_0x621bx6,_0x621bxb){ZendeskConfiguration[_0x359a[24]](_0x621bx5[_0x359a[17]][_0x359a[16]])[_0x359a[11]](function(_0x621bxc){if(!_0x621bxc){return _0x621bx6[_0x359a[15]](500)};ZendeskField[_0x359a[19]](_0x621bx5[_0x359a[20]])[_0x359a[11]](function(_0x621bxd){switch(_0x621bx5[_0x359a[17]][_0x359a[33]]){case _0x359a[28]:_0x621bxc[_0x359a[27]](_0x621bxd)[_0x359a[11]](function(){return _0x621bx6[_0x359a[10]](200)[_0x359a[9]](_0x621bxd)})[_0x359a[8]](function(_0x621bx7){return handleError(_0x621bx6,_0x621bx7)});break;case _0x359a[30]:_0x621bxc[_0x359a[29]](_0x621bxd)[_0x359a[11]](function(){return _0x621bx6[_0x359a[10]](200)[_0x359a[9]](_0x621bxd)})[_0x359a[8]](function(_0x621bx7){return handleError(_0x621bx6,_0x621bx7)});break;case _0x359a[32]:_0x621bxc[_0x359a[31]](_0x621bxd)[_0x359a[11]](function(){return _0x621bx6[_0x359a[10]](200)[_0x359a[9]](_0x621bxd)})[_0x359a[8]](function(_0x621bx7){return handleError(_0x621bx6,_0x621bx7)});break}})[_0x359a[8]](function(_0x621bx7){return handleError(_0x621bx6,_0x621bx7)})})[_0x359a[8]](function(_0x621bx7){return handleError(_0x621bx6,_0x621bx7)})};exports[_0x359a[34]]= function(_0x621bx5,_0x621bx6,_0x621bxb){ZendeskConfiguration[_0x359a[24]](_0x621bx5[_0x359a[17]][_0x359a[16]])[_0x359a[11]](handleEntityNotFound(_0x621bx6))[_0x359a[11]](function(_0x621bxc){return _0x621bxc[_0x359a[35]](_0x621bx5[_0x359a[20]])})[_0x359a[11]](function(_0x621bxe){return _0x621bx6[_0x359a[15]](200)})[_0x359a[8]](function(_0x621bx7){return handleError(_0x621bx6,_0x621bx7)})};function handleEntityNotFound(_0x621bx6){return function(_0x621bx10){if(!_0x621bx10){_0x621bx6[_0x359a[10]](404)[_0x359a[36]]();return null};return _0x621bx10}}function handleError(_0x621bx6,_0x621bx7){logger[_0x359a[38]](_0x621bx7[_0x359a[37]]);return _0x621bx6[_0x359a[10]](500)[_0x359a[9]](_0x621bx7)}
\ No newline at end of file
+var _0xfce5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x5A\x65\x6E\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","\x5A\x65\x6E\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\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","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x65\x73\x74\x72\x6F\x79","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\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","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x54\x61\x67\x73","\x73\x65\x74\x54\x61\x67\x73","\x65\x6E\x64","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0xfce5[0];var _=require(_0xfce5[1]);var ZendeskConfiguration=require(_0xfce5[3])[_0xfce5[2]];var ZendeskField=require(_0xfce5[3])[_0xfce5[4]];var logger=require(_0xfce5[6])(_0xfce5[5]);exports[_0xfce5[7]]= function(_0xd607x5,_0xd607x6){ZendeskConfiguration[_0xfce5[13]]({where:_0xd607x5[_0xfce5[12]]})[_0xfce5[11]](function(_0xd607x8){return _0xd607x6[_0xfce5[10]](200)[_0xfce5[9]](_0xd607x8)})[_0xfce5[8]](function(_0xd607x7){return handleError(_0xd607x6,_0xd607x7)})};exports[_0xfce5[14]]= function(_0xd607x5,_0xd607x6){ZendeskConfiguration[_0xfce5[18]]({where:{id:_0xd607x5[_0xfce5[17]][_0xfce5[16]]},include:[{all:true}]})[_0xfce5[11]](function(_0xd607x9){if(!_0xd607x9){return _0xd607x6[_0xfce5[15]](404)};return _0xd607x6[_0xfce5[9]](_0xd607x9)})[_0xfce5[8]](function(_0xd607x7){return handleError(_0xd607x6,_0xd607x7)})};exports[_0xfce5[19]]= function(_0xd607x5,_0xd607x6){ZendeskConfiguration[_0xfce5[19]](_0xd607x5[_0xfce5[20]])[_0xfce5[11]](function(_0xd607x9){return _0xd607x6[_0xfce5[10]](201)[_0xfce5[9]](_0xd607x9)})[_0xfce5[8]](function(_0xd607x7){return handleError(_0xd607x6,_0xd607x7)})};exports[_0xfce5[21]]= function(_0xd607x5,_0xd607x6){if(_0xd607x5[_0xfce5[20]][_0xfce5[16]]){delete _0xd607x5[_0xfce5[20]][_0xfce5[16]]};ZendeskConfiguration[_0xfce5[24]](_0xd607x5[_0xfce5[17]][_0xfce5[16]])[_0xfce5[11]](function(_0xd607x9){if(!_0xd607x9){return _0xd607x6[_0xfce5[15]](404)};var _0xd607xa=_[_0xfce5[22]](_0xd607x9,_0xd607x5[_0xfce5[20]]);_0xd607xa[_0xfce5[23]]()[_0xfce5[11]](function(){return _0xd607x6[_0xfce5[10]](200)[_0xfce5[9]](_0xd607x9)})[_0xfce5[8]](function(_0xd607x7){return handleError(_0xd607x6,_0xd607x7)})})[_0xfce5[8]](function(_0xd607x7){return handleError(_0xd607x6,_0xd607x7)})};exports[_0xfce5[25]]= function(_0xd607x5,_0xd607x6){ZendeskConfiguration[_0xfce5[24]](_0xd607x5[_0xfce5[17]][_0xfce5[16]])[_0xfce5[11]](function(_0xd607x9){if(!_0xd607x9){return _0xd607x6[_0xfce5[15]](404)};_0xd607x9[_0xfce5[25]]()[_0xfce5[11]](function(){return _0xd607x6[_0xfce5[15]](204)})[_0xfce5[8]](function(_0xd607x7){return handleError(_0xd607x6,_0xd607x7)})})[_0xfce5[8]](function(_0xd607x7){return handleError(_0xd607x6,_0xd607x7)})};exports[_0xfce5[26]]= function(_0xd607x5,_0xd607x6,_0xd607xb){ZendeskConfiguration[_0xfce5[24]](_0xd607x5[_0xfce5[17]][_0xfce5[16]])[_0xfce5[11]](function(_0xd607xc){if(!_0xd607xc){return _0xd607x6[_0xfce5[15]](500)};ZendeskField[_0xfce5[19]](_0xd607x5[_0xfce5[20]])[_0xfce5[11]](function(_0xd607xd){switch(_0xd607x5[_0xfce5[17]][_0xfce5[33]]){case _0xfce5[28]:_0xd607xc[_0xfce5[27]](_0xd607xd)[_0xfce5[11]](function(){return _0xd607x6[_0xfce5[10]](200)[_0xfce5[9]](_0xd607xd)})[_0xfce5[8]](function(_0xd607x7){return handleError(_0xd607x6,_0xd607x7)});break;case _0xfce5[30]:_0xd607xc[_0xfce5[29]](_0xd607xd)[_0xfce5[11]](function(){return _0xd607x6[_0xfce5[10]](200)[_0xfce5[9]](_0xd607xd)})[_0xfce5[8]](function(_0xd607x7){return handleError(_0xd607x6,_0xd607x7)});break;case _0xfce5[32]:_0xd607xc[_0xfce5[31]](_0xd607xd)[_0xfce5[11]](function(){return _0xd607x6[_0xfce5[10]](200)[_0xfce5[9]](_0xd607xd)})[_0xfce5[8]](function(_0xd607x7){return handleError(_0xd607x6,_0xd607x7)});break}})[_0xfce5[8]](function(_0xd607x7){return handleError(_0xd607x6,_0xd607x7)})})[_0xfce5[8]](function(_0xd607x7){return handleError(_0xd607x6,_0xd607x7)})};exports[_0xfce5[34]]= function(_0xd607x5,_0xd607x6,_0xd607xb){ZendeskConfiguration[_0xfce5[24]](_0xd607x5[_0xfce5[17]][_0xfce5[16]])[_0xfce5[11]](handleEntityNotFound(_0xd607x6))[_0xfce5[11]](function(_0xd607xc){return _0xd607xc[_0xfce5[35]](_0xd607x5[_0xfce5[20]])})[_0xfce5[11]](function(_0xd607xe){return _0xd607x6[_0xfce5[15]](200)})[_0xfce5[8]](function(_0xd607x7){return handleError(_0xd607x6,_0xd607x7)})};function handleEntityNotFound(_0xd607x6){return function(_0xd607x10){if(!_0xd607x10){_0xd607x6[_0xfce5[10]](404)[_0xfce5[36]]();return null};return _0xd607x10}}function handleError(_0xd607x6,_0xd607x7){logger[_0xfce5[38]](_0xd607x7[_0xfce5[37]]);return _0xd607x6[_0xfce5[10]](500)[_0xfce5[9]](_0xd607x7)}
\ No newline at end of file