Built motion from commit 39cd900.|1.0.3
[motion.git] / server / api / desk_account / desk_account.controller.js
index 79574ab..f712299 100644 (file)
@@ -1 +1 @@
-var _0xe1e6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x64\x65\x73\x6B\x2E\x6A\x73","\x44\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\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\x42\x79\x49\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","\x64\x65\x73\x74\x72\x6F\x79","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x61\x75\x74\x68\x54\x79\x70\x65","\x62\x61\x73\x69\x63","\x70\x61\x73\x73\x77\x6F\x72\x64","\x6F\x61\x75\x74\x68","\x63\x6F\x6E\x73\x75\x6D\x65\x72\x4B\x65\x79","\x63\x6F\x6E\x73\x75\x6D\x65\x72\x53\x65\x63\x72\x65\x74","\x74\x6F\x6B\x65\x6E","\x74\x6F\x6B\x65\x6E\x53\x65\x63\x72\x65\x74","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x65\x6E\x74","\x2F\x61\x70\x69\x2F\x76\x32\x2F\x75\x73\x65\x72\x73\x2F\x6D\x65","\x67\x65\x74","\x64\x65\x73\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x61\x70\x69\x2F\x76\x32\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x73","\x65\x6E\x74\x72\x69\x65\x73","\x5F\x65\x6D\x62\x65\x64\x64\x65\x64","\x6A\x73\x6F\x6E","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x73\x75\x62\x73\x74\x72","\x2F","\x6C\x65\x6E\x67\x74\x68"];_0xe1e6[0];var _=require(_0xe1e6[1]);var util=require(_0xe1e6[2]);var desk=require(_0xe1e6[3]);var DeskAccount=require(_0xe1e6[5])[_0xe1e6[4]];exports[_0xe1e6[6]]=function(_0x51f7x5,_0x51f7x6){var _0x51f7x7=[_0xe1e6[7],_0xe1e6[8],_0xe1e6[9],_0xe1e6[10]];var _0x51f7x8=_0x51f7x5[_0xe1e6[12]][_0xe1e6[11]]?parseInt(_0x51f7x5[_0xe1e6[12]][_0xe1e6[11]],10):100;var _0x51f7x9=_0x51f7x5[_0xe1e6[12]][_0xe1e6[13]]?parseInt(_0x51f7x5[_0xe1e6[12]][_0xe1e6[13]],10):0;var _0x51f7xa={where:{},limit:_0x51f7x8,offset:_0x51f7x9*_0x51f7x8};_[_0xe1e6[27]](_0x51f7x5[_0xe1e6[12]],function(_0x51f7xb,_0x51f7xc){switch(_0x51f7xc){case _0xe1e6[11]:;case _0xe1e6[13]:break;case _0xe1e6[16]:_0x51f7xa[_0xe1e6[14]]=util[_0xe1e6[19]](_0xe1e6[15],_0x51f7x5[_0xe1e6[12]][_0xe1e6[16]],_0x51f7x5[_0xe1e6[12]][_0xe1e6[17]]||_0xe1e6[18])||null;break;case _0xe1e6[17]:break;case _0xe1e6[25]:_0x51f7xa[_0xe1e6[21]][_0xe1e6[20]]=[];_0x51f7x7[_0xe1e6[24]](function(_0x51f7xd){var _0x51f7xe={};_0x51f7xe[_0x51f7xd]={$like:_0xe1e6[22]+_0x51f7xb+_0xe1e6[22]};_0x51f7xa[_0xe1e6[21]][_0xe1e6[20]][_0xe1e6[23]](_0x51f7xe)});break;default:_0x51f7xa[_0xe1e6[21]][_0x51f7xc]={$like:{}};_0x51f7xa[_0xe1e6[21]][_0x51f7xc][_0xe1e6[26]]=_0xe1e6[22]+_0x51f7xb+_0xe1e6[22]}});return DeskAccount[_0xe1e6[42]](_0x51f7xa)[_0xe1e6[41]](function(_0x51f7x10){var _0x51f7x11=Math[_0xe1e6[33]](_0x51f7x10[_0xe1e6[32]]/_0x51f7x8);var _0x51f7x12=_0x51f7x11>(_0x51f7xa[_0xe1e6[34]]+1)?util[_0xe1e6[19]](_0xe1e6[35],_0x51f7x5[_0xe1e6[36]],_0x51f7x5[_0xe1e6[38]][_0xe1e6[37]],_0x51f7x5[_0xe1e6[39]],_0x51f7x9+1):null;var _0x51f7x13=_0x51f7x9>0?util[_0xe1e6[19]](_0xe1e6[35],_0x51f7x5[_0xe1e6[36]],_0x51f7x5[_0xe1e6[38]][_0xe1e6[37]],_0x51f7x5[_0xe1e6[39]],_0x51f7x9-1):null;return _0x51f7x6[_0xe1e6[30]](200)[_0xe1e6[29]]({count:_0x51f7x10[_0xe1e6[32]],rows:_0x51f7x10[_0xe1e6[40]],next_page:_0x51f7x12,previous_page:_0x51f7x13,total_pages:_0x51f7x11})})[_0xe1e6[31]](function(_0x51f7xf){return _0x51f7x6[_0xe1e6[30]](500)[_0xe1e6[29]]({error:_0xe1e6[28]})})};exports[_0xe1e6[43]]=function(_0x51f7x5,_0x51f7x6){DeskAccount[_0xe1e6[47]](_0x51f7x5[_0xe1e6[46]][_0xe1e6[45]])[_0xe1e6[41]](function(_0x51f7x14){if(!_0x51f7x14){return _0x51f7x6[_0xe1e6[44]](404)};return _0x51f7x6[_0xe1e6[29]](_0x51f7x14)})[_0xe1e6[31]](function(_0x51f7xf){return handleError(_0x51f7x6,_0x51f7xf)})};exports[_0xe1e6[48]]=function(_0x51f7x5,_0x51f7x6,_0x51f7x15){DeskAccount[_0xe1e6[48]](_0x51f7x5[_0xe1e6[49]])[_0xe1e6[41]](function(_0x51f7x14){return _0x51f7x6[_0xe1e6[30]](201)[_0xe1e6[29]](_0x51f7x14)})[_0xe1e6[31]](function(_0x51f7xf){return handleError(_0x51f7x6,_0x51f7xf)})};exports[_0xe1e6[50]]=function(_0x51f7x5,_0x51f7x6){if(_0x51f7x5[_0xe1e6[49]][_0xe1e6[45]]){delete _0x51f7x5[_0xe1e6[49]][_0xe1e6[45]]};DeskAccount[_0xe1e6[47]](_0x51f7x5[_0xe1e6[46]][_0xe1e6[45]])[_0xe1e6[41]](function(_0x51f7x14){if(!_0x51f7x14){return _0x51f7x6[_0xe1e6[44]](404)};var _0x51f7x16=_[_0xe1e6[51]](_0x51f7x14,_0x51f7x5[_0xe1e6[49]]);_0x51f7x16[_0xe1e6[52]]()[_0xe1e6[41]](function(){return _0x51f7x6[_0xe1e6[30]](200)[_0xe1e6[29]](_0x51f7x14)})[_0xe1e6[31]](function(_0x51f7xf){return handleError(_0x51f7x6,_0x51f7xf)})})[_0xe1e6[31]](function(_0x51f7xf){return handleError(_0x51f7x6,_0x51f7xf)})};exports[_0xe1e6[53]]=function(_0x51f7x5,_0x51f7x6){DeskAccount[_0xe1e6[47]](_0x51f7x5[_0xe1e6[46]][_0xe1e6[45]])[_0xe1e6[41]](function(_0x51f7x14){if(!_0x51f7x14){return _0x51f7x6[_0xe1e6[44]](404)};_0x51f7x14[_0xe1e6[53]]()[_0xe1e6[41]](function(){return _0x51f7x6[_0xe1e6[44]](204)})[_0xe1e6[31]](function(_0x51f7xf){return handleError(_0x51f7x6,_0x51f7xf)})})[_0xe1e6[31]](function(_0x51f7xf){return handleError(_0x51f7x6,_0x51f7xf)})};exports[_0xe1e6[54]]=function(_0x51f7x5,_0x51f7x6){DeskAccount[_0xe1e6[47]](_0x51f7x5[_0xe1e6[46]][_0xe1e6[45]])[_0xe1e6[41]](function(_0x51f7x17){var _0x51f7x14={endpoint:stripTrailingSlash(_0x51f7x17[_0xe1e6[10]]),retry:false};if(_0x51f7x17[_0xe1e6[55]]===_0xe1e6[56]){_0x51f7x14[_0xe1e6[9]]=_0x51f7x17[_0xe1e6[9]];_0x51f7x14[_0xe1e6[57]]=_0x51f7x17[_0xe1e6[57]]}else {if(_0x51f7x17[_0xe1e6[55]]===_0xe1e6[58]){_0x51f7x14[_0xe1e6[59]]=_0x51f7x17[_0xe1e6[59]];_0x51f7x14[_0xe1e6[60]]=_0x51f7x17[_0xe1e6[60]];_0x51f7x14[_0xe1e6[61]]=_0x51f7x17[_0xe1e6[61]];_0x51f7x14[_0xe1e6[62]]=_0x51f7x17[_0xe1e6[62]]}};var _0x51f7x18=desk[_0xe1e6[63]](_0x51f7x14);_0x51f7x18[_0xe1e6[65]](_0xe1e6[64],function(_0x51f7xf,_0x51f7x19,_0x51f7x1a){if(_0x51f7xf){return handleError(_0x51f7x6,_0x51f7xf)};return _0x51f7x6[_0xe1e6[44]](200)})})[_0xe1e6[31]](function(_0x51f7xf){return handleError(_0x51f7x6,_0x51f7xf)})};exports[_0xe1e6[66]]=function(_0x51f7x5,_0x51f7x6){var _0x51f7x1b={};_0x51f7x1b[_0x51f7x5[_0xe1e6[46]][_0xe1e6[67]]]=_0x51f7x5[_0xe1e6[49]][_0xe1e6[68]];DeskAccount[_0xe1e6[42]]({where:_0x51f7x1b})[_0xe1e6[41]](function(_0x51f7x10){if(_0x51f7x10[_0xe1e6[32]]){return _0x51f7x6[_0xe1e6[30]](200)[_0xe1e6[29]]({isValid:false,value:_0x51f7x5[_0xe1e6[49]][_0xe1e6[68]]})};return _0x51f7x6[_0xe1e6[30]](200)[_0xe1e6[29]]({isValid:true,value:_0x51f7x5[_0xe1e6[49]][_0xe1e6[68]]})})[_0xe1e6[31]](function(_0x51f7xf){return handleError(_0x51f7x6,_0x51f7xf)})};exports[_0xe1e6[69]]=function(_0x51f7x5,_0x51f7x6){DeskAccount[_0xe1e6[47]](_0x51f7x5[_0xe1e6[46]][_0xe1e6[45]])[_0xe1e6[41]](function(_0x51f7x17){var _0x51f7x14={endpoint:stripTrailingSlash(_0x51f7x17[_0xe1e6[10]]),retry:false};if(_0x51f7x17[_0xe1e6[55]]===_0xe1e6[56]){_0x51f7x14[_0xe1e6[9]]=_0x51f7x17[_0xe1e6[9]];_0x51f7x14[_0xe1e6[57]]=_0x51f7x17[_0xe1e6[57]]}else {if(_0x51f7x17[_0xe1e6[55]]===_0xe1e6[58]){_0x51f7x14[_0xe1e6[59]]=_0x51f7x17[_0xe1e6[59]];_0x51f7x14[_0xe1e6[60]]=_0x51f7x17[_0xe1e6[60]];_0x51f7x14[_0xe1e6[61]]=_0x51f7x17[_0xe1e6[61]];_0x51f7x14[_0xe1e6[62]]=_0x51f7x17[_0xe1e6[62]]}};var _0x51f7x18=desk[_0xe1e6[63]](_0x51f7x14);_0x51f7x18[_0xe1e6[65]](_0xe1e6[70],function(_0x51f7xf,_0x51f7x19,_0x51f7x1a){if(_0x51f7xf){return handleError(_0x51f7x6,_0x51f7xf)};return _0x51f7x6[_0xe1e6[30]](200)[_0xe1e6[73]](_0x51f7x19[_0xe1e6[72]][_0xe1e6[71]])})})[_0xe1e6[31]](function(_0x51f7xf){return handleError(_0x51f7x6,_0x51f7xf)})};exports[_0xe1e6[74]]=function(_0x51f7x5,_0x51f7x6){DeskAccount[_0xe1e6[53]]({where:{id:_0x51f7x5[_0xe1e6[12]][_0xe1e6[45]]},individualHooks:true})[_0xe1e6[41]](function(){return _0x51f7x6[_0xe1e6[44]](204)})[_0xe1e6[31]](function(_0x51f7xf){return handleError(_0x51f7x6,_0x51f7xf)})};function stripTrailingSlash(_0x51f7x1d){if(_0x51f7x1d[_0xe1e6[75]](-1)===_0xe1e6[76]){return _0x51f7x1d[_0xe1e6[75]](0,_0x51f7x1d[_0xe1e6[77]]-1)};return _0x51f7x1d}function handleError(_0x51f7x6,_0x51f7xf){return _0x51f7x6[_0xe1e6[30]](500)[_0xe1e6[29]](_0x51f7xf)}
\ No newline at end of file
+var _0xa328=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x64\x65\x73\x6B\x2E\x6A\x73","\x44\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\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\x42\x79\x49\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","\x64\x65\x73\x74\x72\x6F\x79","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x61\x75\x74\x68\x54\x79\x70\x65","\x62\x61\x73\x69\x63","\x70\x61\x73\x73\x77\x6F\x72\x64","\x6F\x61\x75\x74\x68","\x63\x6F\x6E\x73\x75\x6D\x65\x72\x4B\x65\x79","\x63\x6F\x6E\x73\x75\x6D\x65\x72\x53\x65\x63\x72\x65\x74","\x74\x6F\x6B\x65\x6E","\x74\x6F\x6B\x65\x6E\x53\x65\x63\x72\x65\x74","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x65\x6E\x74","\x2F\x61\x70\x69\x2F\x76\x32\x2F\x75\x73\x65\x72\x73\x2F\x6D\x65","\x67\x65\x74","\x64\x65\x73\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x61\x70\x69\x2F\x76\x32\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x73","\x65\x6E\x74\x72\x69\x65\x73","\x5F\x65\x6D\x62\x65\x64\x64\x65\x64","\x6A\x73\x6F\x6E","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x73\x75\x62\x73\x74\x72","\x2F","\x6C\x65\x6E\x67\x74\x68"];_0xa328[0];var _=require(_0xa328[1]);var util=require(_0xa328[2]);var desk=require(_0xa328[3]);var DeskAccount=require(_0xa328[5])[_0xa328[4]];exports[_0xa328[6]]= function(_0x5866x5,_0x5866x6){var _0x5866x7=[_0xa328[7],_0xa328[8],_0xa328[9],_0xa328[10]];var _0x5866x8=_0x5866x5[_0xa328[12]][_0xa328[11]]?parseInt(_0x5866x5[_0xa328[12]][_0xa328[11]],10):100;var _0x5866x9=_0x5866x5[_0xa328[12]][_0xa328[13]]?parseInt(_0x5866x5[_0xa328[12]][_0xa328[13]],10):0;var _0x5866xa={where:{},limit:_0x5866x8,offset:_0x5866x9* _0x5866x8};_[_0xa328[27]](_0x5866x5[_0xa328[12]],function(_0x5866xb,_0x5866xc){switch(_0x5866xc){case _0xa328[11]:;case _0xa328[13]:break;case _0xa328[16]:_0x5866xa[_0xa328[14]]= util[_0xa328[19]](_0xa328[15],_0x5866x5[_0xa328[12]][_0xa328[16]],_0x5866x5[_0xa328[12]][_0xa328[17]]|| _0xa328[18])|| null;break;case _0xa328[17]:break;case _0xa328[25]:_0x5866xa[_0xa328[21]][_0xa328[20]]= [];_0x5866x7[_0xa328[24]](function(_0x5866xd){var _0x5866xe={};_0x5866xe[_0x5866xd]= {$like:_0xa328[22]+ _0x5866xb+ _0xa328[22]};_0x5866xa[_0xa328[21]][_0xa328[20]][_0xa328[23]](_0x5866xe)});break;default:_0x5866xa[_0xa328[21]][_0x5866xc]= {$like:{}};_0x5866xa[_0xa328[21]][_0x5866xc][_0xa328[26]]= _0xa328[22]+ _0x5866xb+ _0xa328[22]}});return DeskAccount[_0xa328[42]](_0x5866xa)[_0xa328[41]](function(_0x5866x10){var _0x5866x11=Math[_0xa328[33]](_0x5866x10[_0xa328[32]]/ _0x5866x8);var _0x5866x12=_0x5866x11> (_0x5866xa[_0xa328[34]]+ 1)?util[_0xa328[19]](_0xa328[35],_0x5866x5[_0xa328[36]],_0x5866x5[_0xa328[38]][_0xa328[37]],_0x5866x5[_0xa328[39]],_0x5866x9+ 1):null;var _0x5866x13=_0x5866x9> 0?util[_0xa328[19]](_0xa328[35],_0x5866x5[_0xa328[36]],_0x5866x5[_0xa328[38]][_0xa328[37]],_0x5866x5[_0xa328[39]],_0x5866x9- 1):null;return _0x5866x6[_0xa328[30]](200)[_0xa328[29]]({count:_0x5866x10[_0xa328[32]],rows:_0x5866x10[_0xa328[40]],next_page:_0x5866x12,previous_page:_0x5866x13,total_pages:_0x5866x11})})[_0xa328[31]](function(_0x5866xf){return _0x5866x6[_0xa328[30]](500)[_0xa328[29]]({error:_0xa328[28]})})};exports[_0xa328[43]]= function(_0x5866x5,_0x5866x6){DeskAccount[_0xa328[47]](_0x5866x5[_0xa328[46]][_0xa328[45]])[_0xa328[41]](function(_0x5866x14){if(!_0x5866x14){return _0x5866x6[_0xa328[44]](404)};return _0x5866x6[_0xa328[29]](_0x5866x14)})[_0xa328[31]](function(_0x5866xf){return handleError(_0x5866x6,_0x5866xf)})};exports[_0xa328[48]]= function(_0x5866x5,_0x5866x6,_0x5866x15){DeskAccount[_0xa328[48]](_0x5866x5[_0xa328[49]])[_0xa328[41]](function(_0x5866x14){return _0x5866x6[_0xa328[30]](201)[_0xa328[29]](_0x5866x14)})[_0xa328[31]](function(_0x5866xf){return handleError(_0x5866x6,_0x5866xf)})};exports[_0xa328[50]]= function(_0x5866x5,_0x5866x6){if(_0x5866x5[_0xa328[49]][_0xa328[45]]){delete _0x5866x5[_0xa328[49]][_0xa328[45]]};DeskAccount[_0xa328[47]](_0x5866x5[_0xa328[46]][_0xa328[45]])[_0xa328[41]](function(_0x5866x14){if(!_0x5866x14){return _0x5866x6[_0xa328[44]](404)};var _0x5866x16=_[_0xa328[51]](_0x5866x14,_0x5866x5[_0xa328[49]]);_0x5866x16[_0xa328[52]]()[_0xa328[41]](function(){return _0x5866x6[_0xa328[30]](200)[_0xa328[29]](_0x5866x14)})[_0xa328[31]](function(_0x5866xf){return handleError(_0x5866x6,_0x5866xf)})})[_0xa328[31]](function(_0x5866xf){return handleError(_0x5866x6,_0x5866xf)})};exports[_0xa328[53]]= function(_0x5866x5,_0x5866x6){DeskAccount[_0xa328[47]](_0x5866x5[_0xa328[46]][_0xa328[45]])[_0xa328[41]](function(_0x5866x14){if(!_0x5866x14){return _0x5866x6[_0xa328[44]](404)};_0x5866x14[_0xa328[53]]()[_0xa328[41]](function(){return _0x5866x6[_0xa328[44]](204)})[_0xa328[31]](function(_0x5866xf){return handleError(_0x5866x6,_0x5866xf)})})[_0xa328[31]](function(_0x5866xf){return handleError(_0x5866x6,_0x5866xf)})};exports[_0xa328[54]]= function(_0x5866x5,_0x5866x6){DeskAccount[_0xa328[47]](_0x5866x5[_0xa328[46]][_0xa328[45]])[_0xa328[41]](function(_0x5866x17){var _0x5866x14={endpoint:stripTrailingSlash(_0x5866x17[_0xa328[10]]),retry:false};if(_0x5866x17[_0xa328[55]]=== _0xa328[56]){_0x5866x14[_0xa328[9]]= _0x5866x17[_0xa328[9]];_0x5866x14[_0xa328[57]]= _0x5866x17[_0xa328[57]]}else {if(_0x5866x17[_0xa328[55]]=== _0xa328[58]){_0x5866x14[_0xa328[59]]= _0x5866x17[_0xa328[59]];_0x5866x14[_0xa328[60]]= _0x5866x17[_0xa328[60]];_0x5866x14[_0xa328[61]]= _0x5866x17[_0xa328[61]];_0x5866x14[_0xa328[62]]= _0x5866x17[_0xa328[62]]}};var _0x5866x18=desk[_0xa328[63]](_0x5866x14);_0x5866x18[_0xa328[65]](_0xa328[64],function(_0x5866xf,_0x5866x19,_0x5866x1a){if(_0x5866xf){return handleError(_0x5866x6,_0x5866xf)};return _0x5866x6[_0xa328[44]](200)})})[_0xa328[31]](function(_0x5866xf){return handleError(_0x5866x6,_0x5866xf)})};exports[_0xa328[66]]= function(_0x5866x5,_0x5866x6){var _0x5866x1b={};_0x5866x1b[_0x5866x5[_0xa328[46]][_0xa328[67]]]= _0x5866x5[_0xa328[49]][_0xa328[68]];DeskAccount[_0xa328[42]]({where:_0x5866x1b})[_0xa328[41]](function(_0x5866x10){if(_0x5866x10[_0xa328[32]]){return _0x5866x6[_0xa328[30]](200)[_0xa328[29]]({isValid:false,value:_0x5866x5[_0xa328[49]][_0xa328[68]]})};return _0x5866x6[_0xa328[30]](200)[_0xa328[29]]({isValid:true,value:_0x5866x5[_0xa328[49]][_0xa328[68]]})})[_0xa328[31]](function(_0x5866xf){return handleError(_0x5866x6,_0x5866xf)})};exports[_0xa328[69]]= function(_0x5866x5,_0x5866x6){DeskAccount[_0xa328[47]](_0x5866x5[_0xa328[46]][_0xa328[45]])[_0xa328[41]](function(_0x5866x17){var _0x5866x14={endpoint:stripTrailingSlash(_0x5866x17[_0xa328[10]]),retry:false};if(_0x5866x17[_0xa328[55]]=== _0xa328[56]){_0x5866x14[_0xa328[9]]= _0x5866x17[_0xa328[9]];_0x5866x14[_0xa328[57]]= _0x5866x17[_0xa328[57]]}else {if(_0x5866x17[_0xa328[55]]=== _0xa328[58]){_0x5866x14[_0xa328[59]]= _0x5866x17[_0xa328[59]];_0x5866x14[_0xa328[60]]= _0x5866x17[_0xa328[60]];_0x5866x14[_0xa328[61]]= _0x5866x17[_0xa328[61]];_0x5866x14[_0xa328[62]]= _0x5866x17[_0xa328[62]]}};var _0x5866x18=desk[_0xa328[63]](_0x5866x14);_0x5866x18[_0xa328[65]](_0xa328[70],function(_0x5866xf,_0x5866x19,_0x5866x1a){if(_0x5866xf){return handleError(_0x5866x6,_0x5866xf)};return _0x5866x6[_0xa328[30]](200)[_0xa328[73]](_0x5866x19[_0xa328[72]][_0xa328[71]])})})[_0xa328[31]](function(_0x5866xf){return handleError(_0x5866x6,_0x5866xf)})};exports[_0xa328[74]]= function(_0x5866x5,_0x5866x6){DeskAccount[_0xa328[53]]({where:{id:_0x5866x5[_0xa328[12]][_0xa328[45]]},individualHooks:true})[_0xa328[41]](function(){return _0x5866x6[_0xa328[44]](204)})[_0xa328[31]](function(_0x5866xf){return handleError(_0x5866x6,_0x5866xf)})};function stripTrailingSlash(_0x5866x1d){if(_0x5866x1d[_0xa328[75]](-1) === _0xa328[76]){return _0x5866x1d[_0xa328[75]](0,_0x5866x1d[_0xa328[77]]- 1)};return _0x5866x1d}function handleError(_0x5866x6,_0x5866xf){return _0x5866x6[_0xa328[30]](500)[_0xa328[29]](_0x5866xf)}
\ No newline at end of file