Built motion from commit e5f953e.|0.0.46
[motion.git] / server / api / desk_account / desk_account.controller.js
index 947ba60..f7ce08c 100644 (file)
@@ -1 +1 @@
-var _0x4446=["\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"];_0x4446[0];var _=require(_0x4446[1]);var util=require(_0x4446[2]);var desk=require(_0x4446[3]);var DeskAccount=require(_0x4446[5])[_0x4446[4]];exports[_0x4446[6]]=function(_0xc55dx5,_0xc55dx6){var _0xc55dx7=[_0x4446[7],_0x4446[8],_0x4446[9],_0x4446[10]];var _0xc55dx8=_0xc55dx5[_0x4446[12]][_0x4446[11]]?parseInt(_0xc55dx5[_0x4446[12]][_0x4446[11]],10):100;var _0xc55dx9=_0xc55dx5[_0x4446[12]][_0x4446[13]]?parseInt(_0xc55dx5[_0x4446[12]][_0x4446[13]],10):0;var _0xc55dxa={where:{},limit:_0xc55dx8,offset:_0xc55dx9*_0xc55dx8};_[_0x4446[27]](_0xc55dx5[_0x4446[12]],function(_0xc55dxb,_0xc55dxc){switch(_0xc55dxc){case _0x4446[11]:;case _0x4446[13]:break;case _0x4446[16]:_0xc55dxa[_0x4446[14]]=util[_0x4446[19]](_0x4446[15],_0xc55dx5[_0x4446[12]][_0x4446[16]],_0xc55dx5[_0x4446[12]][_0x4446[17]]||_0x4446[18])||null;break;case _0x4446[17]:break;case _0x4446[25]:_0xc55dxa[_0x4446[21]][_0x4446[20]]=[];_0xc55dx7[_0x4446[24]](function(_0xc55dxd){var _0xc55dxe={};_0xc55dxe[_0xc55dxd]={$like:_0x4446[22]+_0xc55dxb+_0x4446[22]};_0xc55dxa[_0x4446[21]][_0x4446[20]][_0x4446[23]](_0xc55dxe)});break;default:_0xc55dxa[_0x4446[21]][_0xc55dxc]={$like:{}};_0xc55dxa[_0x4446[21]][_0xc55dxc][_0x4446[26]]=_0x4446[22]+_0xc55dxb+_0x4446[22]}});DeskAccount[_0x4446[42]](_0xc55dxa)[_0x4446[41]](function(_0xc55dx10){var _0xc55dx11=Math[_0x4446[33]](_0xc55dx10[_0x4446[32]]/_0xc55dx8);var _0xc55dx12=_0xc55dx11>(_0xc55dxa[_0x4446[34]]+1)?util[_0x4446[19]](_0x4446[35],_0xc55dx5[_0x4446[36]],_0xc55dx5[_0x4446[38]][_0x4446[37]],_0xc55dx5[_0x4446[39]],_0xc55dx9+1):null;var _0xc55dx13=_0xc55dx9>0?util[_0x4446[19]](_0x4446[35],_0xc55dx5[_0x4446[36]],_0xc55dx5[_0x4446[38]][_0x4446[37]],_0xc55dx5[_0x4446[39]],_0xc55dx9-1):null;return _0xc55dx6[_0x4446[30]](200)[_0x4446[29]]({count:_0xc55dx10[_0x4446[32]],rows:_0xc55dx10[_0x4446[40]],next_page:_0xc55dx12,previous_page:_0xc55dx13,total_pages:_0xc55dx11})})[_0x4446[31]](function(_0xc55dxf){return _0xc55dx6[_0x4446[30]](500)[_0x4446[29]]({error:_0x4446[28]})})};exports[_0x4446[43]]=function(_0xc55dx5,_0xc55dx6){DeskAccount[_0x4446[47]](_0xc55dx5[_0x4446[46]][_0x4446[45]])[_0x4446[41]](function(_0xc55dx14){if(!_0xc55dx14){return _0xc55dx6[_0x4446[44]](404)};return _0xc55dx6[_0x4446[29]](_0xc55dx14)})[_0x4446[31]](function(_0xc55dxf){return handleError(_0xc55dx6,_0xc55dxf)})};exports[_0x4446[48]]=function(_0xc55dx5,_0xc55dx6,_0xc55dx15){DeskAccount[_0x4446[48]](_0xc55dx5[_0x4446[49]])[_0x4446[41]](function(_0xc55dx14){return _0xc55dx6[_0x4446[30]](201)[_0x4446[29]](_0xc55dx14)})[_0x4446[31]](function(_0xc55dxf){return handleError(_0xc55dx6,_0xc55dxf)})};exports[_0x4446[50]]=function(_0xc55dx5,_0xc55dx6){if(_0xc55dx5[_0x4446[49]][_0x4446[45]]){delete _0xc55dx5[_0x4446[49]][_0x4446[45]]};DeskAccount[_0x4446[47]](_0xc55dx5[_0x4446[46]][_0x4446[45]])[_0x4446[41]](function(_0xc55dx14){if(!_0xc55dx14){return _0xc55dx6[_0x4446[44]](404)};var _0xc55dx16=_[_0x4446[51]](_0xc55dx14,_0xc55dx5[_0x4446[49]]);_0xc55dx16[_0x4446[52]]()[_0x4446[41]](function(){return _0xc55dx6[_0x4446[30]](200)[_0x4446[29]](_0xc55dx14)})[_0x4446[31]](function(_0xc55dxf){return handleError(_0xc55dx6,_0xc55dxf)})})[_0x4446[31]](function(_0xc55dxf){return handleError(_0xc55dx6,_0xc55dxf)})};exports[_0x4446[53]]=function(_0xc55dx5,_0xc55dx6){DeskAccount[_0x4446[47]](_0xc55dx5[_0x4446[46]][_0x4446[45]])[_0x4446[41]](function(_0xc55dx14){if(!_0xc55dx14){return _0xc55dx6[_0x4446[44]](404)};_0xc55dx14[_0x4446[53]]()[_0x4446[41]](function(){return _0xc55dx6[_0x4446[44]](204)})[_0x4446[31]](function(_0xc55dxf){return handleError(_0xc55dx6,_0xc55dxf)})})[_0x4446[31]](function(_0xc55dxf){return handleError(_0xc55dx6,_0xc55dxf)})};exports[_0x4446[54]]=function(_0xc55dx5,_0xc55dx6){DeskAccount[_0x4446[47]](_0xc55dx5[_0x4446[46]][_0x4446[45]])[_0x4446[41]](function(_0xc55dx17){var _0xc55dx14={endpoint:stripTrailingSlash(_0xc55dx17[_0x4446[10]]),retry:false};if(_0xc55dx17[_0x4446[55]]===_0x4446[56]){_0xc55dx14[_0x4446[9]]=_0xc55dx17[_0x4446[9]];_0xc55dx14[_0x4446[57]]=_0xc55dx17[_0x4446[57]]}else {if(_0xc55dx17[_0x4446[55]]===_0x4446[58]){_0xc55dx14[_0x4446[59]]=_0xc55dx17[_0x4446[59]];_0xc55dx14[_0x4446[60]]=_0xc55dx17[_0x4446[60]];_0xc55dx14[_0x4446[61]]=_0xc55dx17[_0x4446[61]];_0xc55dx14[_0x4446[62]]=_0xc55dx17[_0x4446[62]]}};var _0xc55dx18=desk[_0x4446[63]](_0xc55dx14);_0xc55dx18[_0x4446[65]](_0x4446[64],function(_0xc55dxf,_0xc55dx19,_0xc55dx1a){if(_0xc55dxf){return handleError(_0xc55dx6,_0xc55dxf)};return _0xc55dx6[_0x4446[44]](200)})})[_0x4446[31]](function(_0xc55dxf){return handleError(_0xc55dx6,_0xc55dxf)})};exports[_0x4446[66]]=function(_0xc55dx5,_0xc55dx6){var _0xc55dx1b={};_0xc55dx1b[_0xc55dx5[_0x4446[46]][_0x4446[67]]]=_0xc55dx5[_0x4446[49]][_0x4446[68]];DeskAccount[_0x4446[42]]({where:_0xc55dx1b})[_0x4446[41]](function(_0xc55dx10){if(_0xc55dx10[_0x4446[32]]){return _0xc55dx6[_0x4446[30]](200)[_0x4446[29]]({isValid:false,value:_0xc55dx5[_0x4446[49]][_0x4446[68]]})};return _0xc55dx6[_0x4446[30]](200)[_0x4446[29]]({isValid:true,value:_0xc55dx5[_0x4446[49]][_0x4446[68]]})})[_0x4446[31]](function(_0xc55dxf){return handleError(_0xc55dx6,_0xc55dxf)})};exports[_0x4446[69]]=function(_0xc55dx5,_0xc55dx6){DeskAccount[_0x4446[47]](_0xc55dx5[_0x4446[46]][_0x4446[45]])[_0x4446[41]](function(_0xc55dx17){var _0xc55dx14={endpoint:stripTrailingSlash(_0xc55dx17[_0x4446[10]]),retry:false};if(_0xc55dx17[_0x4446[55]]===_0x4446[56]){_0xc55dx14[_0x4446[9]]=_0xc55dx17[_0x4446[9]];_0xc55dx14[_0x4446[57]]=_0xc55dx17[_0x4446[57]]}else {if(_0xc55dx17[_0x4446[55]]===_0x4446[58]){_0xc55dx14[_0x4446[59]]=_0xc55dx17[_0x4446[59]];_0xc55dx14[_0x4446[60]]=_0xc55dx17[_0x4446[60]];_0xc55dx14[_0x4446[61]]=_0xc55dx17[_0x4446[61]];_0xc55dx14[_0x4446[62]]=_0xc55dx17[_0x4446[62]]}};var _0xc55dx18=desk[_0x4446[63]](_0xc55dx14);_0xc55dx18[_0x4446[65]](_0x4446[70],function(_0xc55dxf,_0xc55dx19,_0xc55dx1a){if(_0xc55dxf){return handleError(_0xc55dx6,_0xc55dxf)};return _0xc55dx6[_0x4446[30]](200)[_0x4446[73]](_0xc55dx19[_0x4446[72]][_0x4446[71]])})})[_0x4446[31]](function(_0xc55dxf){return handleError(_0xc55dx6,_0xc55dxf)})};exports[_0x4446[74]]=function(_0xc55dx5,_0xc55dx6){DeskAccount[_0x4446[53]]({where:{id:_0xc55dx5[_0x4446[12]][_0x4446[45]]},individualHooks:true})[_0x4446[41]](function(){return _0xc55dx6[_0x4446[44]](204)})[_0x4446[31]](function(_0xc55dxf){return handleError(_0xc55dx6,_0xc55dxf)})};function stripTrailingSlash(_0xc55dx1d){if(_0xc55dx1d[_0x4446[75]](-1)===_0x4446[76]){return _0xc55dx1d[_0x4446[75]](0,_0xc55dx1d[_0x4446[77]]-1)};return _0xc55dx1d}function handleError(_0xc55dx6,_0xc55dxf){return _0xc55dx6[_0x4446[30]](500)[_0x4446[29]](_0xc55dxf)}
\ No newline at end of file
+var _0x418c=["\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"];_0x418c[0];var _=require(_0x418c[1]);var util=require(_0x418c[2]);var desk=require(_0x418c[3]);var DeskAccount=require(_0x418c[5])[_0x418c[4]];exports[_0x418c[6]]=function(_0x32aax5,_0x32aax6){var _0x32aax7=[_0x418c[7],_0x418c[8],_0x418c[9],_0x418c[10]];var _0x32aax8=_0x32aax5[_0x418c[12]][_0x418c[11]]?parseInt(_0x32aax5[_0x418c[12]][_0x418c[11]],10):100;var _0x32aax9=_0x32aax5[_0x418c[12]][_0x418c[13]]?parseInt(_0x32aax5[_0x418c[12]][_0x418c[13]],10):0;var _0x32aaxa={where:{},limit:_0x32aax8,offset:_0x32aax9*_0x32aax8};_[_0x418c[27]](_0x32aax5[_0x418c[12]],function(_0x32aaxb,_0x32aaxc){switch(_0x32aaxc){case _0x418c[11]:;case _0x418c[13]:break;case _0x418c[16]:_0x32aaxa[_0x418c[14]]=util[_0x418c[19]](_0x418c[15],_0x32aax5[_0x418c[12]][_0x418c[16]],_0x32aax5[_0x418c[12]][_0x418c[17]]||_0x418c[18])||null;break;case _0x418c[17]:break;case _0x418c[25]:_0x32aaxa[_0x418c[21]][_0x418c[20]]=[];_0x32aax7[_0x418c[24]](function(_0x32aaxd){var _0x32aaxe={};_0x32aaxe[_0x32aaxd]={$like:_0x418c[22]+_0x32aaxb+_0x418c[22]};_0x32aaxa[_0x418c[21]][_0x418c[20]][_0x418c[23]](_0x32aaxe)});break;default:_0x32aaxa[_0x418c[21]][_0x32aaxc]={$like:{}};_0x32aaxa[_0x418c[21]][_0x32aaxc][_0x418c[26]]=_0x418c[22]+_0x32aaxb+_0x418c[22]}});DeskAccount[_0x418c[42]](_0x32aaxa)[_0x418c[41]](function(_0x32aax10){var _0x32aax11=Math[_0x418c[33]](_0x32aax10[_0x418c[32]]/_0x32aax8);var _0x32aax12=_0x32aax11>(_0x32aaxa[_0x418c[34]]+1)?util[_0x418c[19]](_0x418c[35],_0x32aax5[_0x418c[36]],_0x32aax5[_0x418c[38]][_0x418c[37]],_0x32aax5[_0x418c[39]],_0x32aax9+1):null;var _0x32aax13=_0x32aax9>0?util[_0x418c[19]](_0x418c[35],_0x32aax5[_0x418c[36]],_0x32aax5[_0x418c[38]][_0x418c[37]],_0x32aax5[_0x418c[39]],_0x32aax9-1):null;return _0x32aax6[_0x418c[30]](200)[_0x418c[29]]({count:_0x32aax10[_0x418c[32]],rows:_0x32aax10[_0x418c[40]],next_page:_0x32aax12,previous_page:_0x32aax13,total_pages:_0x32aax11})})[_0x418c[31]](function(_0x32aaxf){return _0x32aax6[_0x418c[30]](500)[_0x418c[29]]({error:_0x418c[28]})})};exports[_0x418c[43]]=function(_0x32aax5,_0x32aax6){DeskAccount[_0x418c[47]](_0x32aax5[_0x418c[46]][_0x418c[45]])[_0x418c[41]](function(_0x32aax14){if(!_0x32aax14){return _0x32aax6[_0x418c[44]](404)};return _0x32aax6[_0x418c[29]](_0x32aax14)})[_0x418c[31]](function(_0x32aaxf){return handleError(_0x32aax6,_0x32aaxf)})};exports[_0x418c[48]]=function(_0x32aax5,_0x32aax6,_0x32aax15){DeskAccount[_0x418c[48]](_0x32aax5[_0x418c[49]])[_0x418c[41]](function(_0x32aax14){return _0x32aax6[_0x418c[30]](201)[_0x418c[29]](_0x32aax14)})[_0x418c[31]](function(_0x32aaxf){return handleError(_0x32aax6,_0x32aaxf)})};exports[_0x418c[50]]=function(_0x32aax5,_0x32aax6){if(_0x32aax5[_0x418c[49]][_0x418c[45]]){delete _0x32aax5[_0x418c[49]][_0x418c[45]]};DeskAccount[_0x418c[47]](_0x32aax5[_0x418c[46]][_0x418c[45]])[_0x418c[41]](function(_0x32aax14){if(!_0x32aax14){return _0x32aax6[_0x418c[44]](404)};var _0x32aax16=_[_0x418c[51]](_0x32aax14,_0x32aax5[_0x418c[49]]);_0x32aax16[_0x418c[52]]()[_0x418c[41]](function(){return _0x32aax6[_0x418c[30]](200)[_0x418c[29]](_0x32aax14)})[_0x418c[31]](function(_0x32aaxf){return handleError(_0x32aax6,_0x32aaxf)})})[_0x418c[31]](function(_0x32aaxf){return handleError(_0x32aax6,_0x32aaxf)})};exports[_0x418c[53]]=function(_0x32aax5,_0x32aax6){DeskAccount[_0x418c[47]](_0x32aax5[_0x418c[46]][_0x418c[45]])[_0x418c[41]](function(_0x32aax14){if(!_0x32aax14){return _0x32aax6[_0x418c[44]](404)};_0x32aax14[_0x418c[53]]()[_0x418c[41]](function(){return _0x32aax6[_0x418c[44]](204)})[_0x418c[31]](function(_0x32aaxf){return handleError(_0x32aax6,_0x32aaxf)})})[_0x418c[31]](function(_0x32aaxf){return handleError(_0x32aax6,_0x32aaxf)})};exports[_0x418c[54]]=function(_0x32aax5,_0x32aax6){DeskAccount[_0x418c[47]](_0x32aax5[_0x418c[46]][_0x418c[45]])[_0x418c[41]](function(_0x32aax17){var _0x32aax14={endpoint:stripTrailingSlash(_0x32aax17[_0x418c[10]]),retry:false};if(_0x32aax17[_0x418c[55]]===_0x418c[56]){_0x32aax14[_0x418c[9]]=_0x32aax17[_0x418c[9]];_0x32aax14[_0x418c[57]]=_0x32aax17[_0x418c[57]]}else {if(_0x32aax17[_0x418c[55]]===_0x418c[58]){_0x32aax14[_0x418c[59]]=_0x32aax17[_0x418c[59]];_0x32aax14[_0x418c[60]]=_0x32aax17[_0x418c[60]];_0x32aax14[_0x418c[61]]=_0x32aax17[_0x418c[61]];_0x32aax14[_0x418c[62]]=_0x32aax17[_0x418c[62]]}};var _0x32aax18=desk[_0x418c[63]](_0x32aax14);_0x32aax18[_0x418c[65]](_0x418c[64],function(_0x32aaxf,_0x32aax19,_0x32aax1a){if(_0x32aaxf){return handleError(_0x32aax6,_0x32aaxf)};return _0x32aax6[_0x418c[44]](200)})})[_0x418c[31]](function(_0x32aaxf){return handleError(_0x32aax6,_0x32aaxf)})};exports[_0x418c[66]]=function(_0x32aax5,_0x32aax6){var _0x32aax1b={};_0x32aax1b[_0x32aax5[_0x418c[46]][_0x418c[67]]]=_0x32aax5[_0x418c[49]][_0x418c[68]];DeskAccount[_0x418c[42]]({where:_0x32aax1b})[_0x418c[41]](function(_0x32aax10){if(_0x32aax10[_0x418c[32]]){return _0x32aax6[_0x418c[30]](200)[_0x418c[29]]({isValid:false,value:_0x32aax5[_0x418c[49]][_0x418c[68]]})};return _0x32aax6[_0x418c[30]](200)[_0x418c[29]]({isValid:true,value:_0x32aax5[_0x418c[49]][_0x418c[68]]})})[_0x418c[31]](function(_0x32aaxf){return handleError(_0x32aax6,_0x32aaxf)})};exports[_0x418c[69]]=function(_0x32aax5,_0x32aax6){DeskAccount[_0x418c[47]](_0x32aax5[_0x418c[46]][_0x418c[45]])[_0x418c[41]](function(_0x32aax17){var _0x32aax14={endpoint:stripTrailingSlash(_0x32aax17[_0x418c[10]]),retry:false};if(_0x32aax17[_0x418c[55]]===_0x418c[56]){_0x32aax14[_0x418c[9]]=_0x32aax17[_0x418c[9]];_0x32aax14[_0x418c[57]]=_0x32aax17[_0x418c[57]]}else {if(_0x32aax17[_0x418c[55]]===_0x418c[58]){_0x32aax14[_0x418c[59]]=_0x32aax17[_0x418c[59]];_0x32aax14[_0x418c[60]]=_0x32aax17[_0x418c[60]];_0x32aax14[_0x418c[61]]=_0x32aax17[_0x418c[61]];_0x32aax14[_0x418c[62]]=_0x32aax17[_0x418c[62]]}};var _0x32aax18=desk[_0x418c[63]](_0x32aax14);_0x32aax18[_0x418c[65]](_0x418c[70],function(_0x32aaxf,_0x32aax19,_0x32aax1a){if(_0x32aaxf){return handleError(_0x32aax6,_0x32aaxf)};return _0x32aax6[_0x418c[30]](200)[_0x418c[73]](_0x32aax19[_0x418c[72]][_0x418c[71]])})})[_0x418c[31]](function(_0x32aaxf){return handleError(_0x32aax6,_0x32aaxf)})};exports[_0x418c[74]]=function(_0x32aax5,_0x32aax6){DeskAccount[_0x418c[53]]({where:{id:_0x32aax5[_0x418c[12]][_0x418c[45]]},individualHooks:true})[_0x418c[41]](function(){return _0x32aax6[_0x418c[44]](204)})[_0x418c[31]](function(_0x32aaxf){return handleError(_0x32aax6,_0x32aaxf)})};function stripTrailingSlash(_0x32aax1d){if(_0x32aax1d[_0x418c[75]](-1)===_0x418c[76]){return _0x32aax1d[_0x418c[75]](0,_0x32aax1d[_0x418c[77]]-1)};return _0x32aax1d}function handleError(_0x32aax6,_0x32aaxf){return _0x32aax6[_0x418c[30]](500)[_0x418c[29]](_0x32aaxf)}
\ No newline at end of file