Built motion from commit e1cfd85d6.|1.0.31
[motion.git] / server / api / desk_account / desk_account.controller.js
index e7e1a1d..f6787f2 100644 (file)
@@ -1 +1 @@
-var _0x3888=["\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","\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","\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","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x3888[0];var _=require(_0x3888[1]);var util=require(_0x3888[2]);var desk=require(_0x3888[3]);var logger=require(_0x3888[5])(_0x3888[4]);var DeskAccount=require(_0x3888[7])[_0x3888[6]];exports[_0x3888[8]]= function(_0x8f7dx6,_0x8f7dx7){var _0x8f7dx8=[_0x3888[9],_0x3888[10],_0x3888[11],_0x3888[12]];var _0x8f7dx9=_0x8f7dx6[_0x3888[14]][_0x3888[13]]?parseInt(_0x8f7dx6[_0x3888[14]][_0x3888[13]],10):100;var _0x8f7dxa=_0x8f7dx6[_0x3888[14]][_0x3888[15]]?parseInt(_0x8f7dx6[_0x3888[14]][_0x3888[15]],10):0;var _0x8f7dxb={where:{},limit:_0x8f7dx9,offset:_0x8f7dxa* _0x8f7dx9};_[_0x3888[29]](_0x8f7dx6[_0x3888[14]],function(_0x8f7dxc,_0x8f7dxd){switch(_0x8f7dxd){case _0x3888[13]:;case _0x3888[15]:break;case _0x3888[18]:_0x8f7dxb[_0x3888[16]]= util[_0x3888[21]](_0x3888[17],_0x8f7dx6[_0x3888[14]][_0x3888[18]],_0x8f7dx6[_0x3888[14]][_0x3888[19]]|| _0x3888[20])|| null;break;case _0x3888[19]:break;case _0x3888[27]:_0x8f7dxb[_0x3888[23]][_0x3888[22]]= [];_0x8f7dx8[_0x3888[26]](function(_0x8f7dxe){var _0x8f7dxf={};_0x8f7dxf[_0x8f7dxe]= {$like:_0x3888[24]+ _0x8f7dxc+ _0x3888[24]};_0x8f7dxb[_0x3888[23]][_0x3888[22]][_0x3888[25]](_0x8f7dxf)});break;default:_0x8f7dxb[_0x3888[23]][_0x8f7dxd]= {$like:{}};_0x8f7dxb[_0x3888[23]][_0x8f7dxd][_0x3888[28]]= _0x3888[24]+ _0x8f7dxc+ _0x3888[24]}});return DeskAccount[_0x3888[44]](_0x8f7dxb)[_0x3888[43]](function(_0x8f7dx11){var _0x8f7dx12=Math[_0x3888[35]](_0x8f7dx11[_0x3888[34]]/ _0x8f7dx9);var _0x8f7dx13=_0x8f7dx12> (_0x8f7dxb[_0x3888[36]]+ 1)?util[_0x3888[21]](_0x3888[37],_0x8f7dx6[_0x3888[38]],_0x8f7dx6[_0x3888[40]][_0x3888[39]],_0x8f7dx6[_0x3888[41]],_0x8f7dxa+ 1):null;var _0x8f7dx14=_0x8f7dxa> 0?util[_0x3888[21]](_0x3888[37],_0x8f7dx6[_0x3888[38]],_0x8f7dx6[_0x3888[40]][_0x3888[39]],_0x8f7dx6[_0x3888[41]],_0x8f7dxa- 1):null;return _0x8f7dx7[_0x3888[32]](200)[_0x3888[31]]({count:_0x8f7dx11[_0x3888[34]],rows:_0x8f7dx11[_0x3888[42]],next_page:_0x8f7dx13,previous_page:_0x8f7dx14,total_pages:_0x8f7dx12})})[_0x3888[33]](function(_0x8f7dx10){return _0x8f7dx7[_0x3888[32]](500)[_0x3888[31]]({error:_0x3888[30]})})};exports[_0x3888[45]]= function(_0x8f7dx6,_0x8f7dx7){DeskAccount[_0x3888[49]](_0x8f7dx6[_0x3888[48]][_0x3888[47]])[_0x3888[43]](function(_0x8f7dx15){if(!_0x8f7dx15){return _0x8f7dx7[_0x3888[46]](404)};return _0x8f7dx7[_0x3888[31]](_0x8f7dx15)})[_0x3888[33]](function(_0x8f7dx10){return handleError(_0x8f7dx7,_0x8f7dx10)})};exports[_0x3888[50]]= function(_0x8f7dx6,_0x8f7dx7,_0x8f7dx16){DeskAccount[_0x3888[50]](_0x8f7dx6[_0x3888[51]])[_0x3888[43]](function(_0x8f7dx15){return _0x8f7dx7[_0x3888[32]](201)[_0x3888[31]](_0x8f7dx15)})[_0x3888[33]](function(_0x8f7dx10){return handleError(_0x8f7dx7,_0x8f7dx10)})};exports[_0x3888[52]]= function(_0x8f7dx6,_0x8f7dx7){if(_0x8f7dx6[_0x3888[51]][_0x3888[47]]){delete _0x8f7dx6[_0x3888[51]][_0x3888[47]]};DeskAccount[_0x3888[49]](_0x8f7dx6[_0x3888[48]][_0x3888[47]])[_0x3888[43]](function(_0x8f7dx15){if(!_0x8f7dx15){return _0x8f7dx7[_0x3888[46]](404)};var _0x8f7dx17=_[_0x3888[53]](_0x8f7dx15,_0x8f7dx6[_0x3888[51]]);_0x8f7dx17[_0x3888[54]]()[_0x3888[43]](function(){return _0x8f7dx7[_0x3888[32]](200)[_0x3888[31]](_0x8f7dx15)})[_0x3888[33]](function(_0x8f7dx10){return handleError(_0x8f7dx7,_0x8f7dx10)})})[_0x3888[33]](function(_0x8f7dx10){return handleError(_0x8f7dx7,_0x8f7dx10)})};exports[_0x3888[55]]= function(_0x8f7dx6,_0x8f7dx7){DeskAccount[_0x3888[49]](_0x8f7dx6[_0x3888[48]][_0x3888[47]])[_0x3888[43]](function(_0x8f7dx15){if(!_0x8f7dx15){return _0x8f7dx7[_0x3888[46]](404)};_0x8f7dx15[_0x3888[55]]()[_0x3888[43]](function(){return _0x8f7dx7[_0x3888[46]](204)})[_0x3888[33]](function(_0x8f7dx10){return handleError(_0x8f7dx7,_0x8f7dx10)})})[_0x3888[33]](function(_0x8f7dx10){return handleError(_0x8f7dx7,_0x8f7dx10)})};exports[_0x3888[56]]= function(_0x8f7dx6,_0x8f7dx7){DeskAccount[_0x3888[49]](_0x8f7dx6[_0x3888[48]][_0x3888[47]])[_0x3888[43]](function(_0x8f7dx18){var _0x8f7dx15={endpoint:stripTrailingSlash(_0x8f7dx18[_0x3888[12]]),retry:false};if(_0x8f7dx18[_0x3888[57]]=== _0x3888[58]){_0x8f7dx15[_0x3888[11]]= _0x8f7dx18[_0x3888[11]];_0x8f7dx15[_0x3888[59]]= _0x8f7dx18[_0x3888[59]]}else {if(_0x8f7dx18[_0x3888[57]]=== _0x3888[60]){_0x8f7dx15[_0x3888[61]]= _0x8f7dx18[_0x3888[61]];_0x8f7dx15[_0x3888[62]]= _0x8f7dx18[_0x3888[62]];_0x8f7dx15[_0x3888[63]]= _0x8f7dx18[_0x3888[63]];_0x8f7dx15[_0x3888[64]]= _0x8f7dx18[_0x3888[64]]}};var _0x8f7dx19=desk[_0x3888[65]](_0x8f7dx15);_0x8f7dx19[_0x3888[67]](_0x3888[66],function(_0x8f7dx10,_0x8f7dx1a,_0x8f7dx1b){if(_0x8f7dx10){return handleError(_0x8f7dx7,_0x8f7dx10)};return _0x8f7dx7[_0x3888[46]](200)})})[_0x3888[33]](function(_0x8f7dx10){return handleError(_0x8f7dx7,_0x8f7dx10)})};exports[_0x3888[68]]= function(_0x8f7dx6,_0x8f7dx7){var _0x8f7dx1c={};_0x8f7dx1c[_0x8f7dx6[_0x3888[48]][_0x3888[69]]]= _0x8f7dx6[_0x3888[51]][_0x3888[70]];DeskAccount[_0x3888[44]]({where:_0x8f7dx1c})[_0x3888[43]](function(_0x8f7dx11){if(_0x8f7dx11[_0x3888[34]]){return _0x8f7dx7[_0x3888[32]](200)[_0x3888[31]]({isValid:false,value:_0x8f7dx6[_0x3888[51]][_0x3888[70]]})};return _0x8f7dx7[_0x3888[32]](200)[_0x3888[31]]({isValid:true,value:_0x8f7dx6[_0x3888[51]][_0x3888[70]]})})[_0x3888[33]](function(_0x8f7dx10){return handleError(_0x8f7dx7,_0x8f7dx10)})};exports[_0x3888[71]]= function(_0x8f7dx6,_0x8f7dx7){DeskAccount[_0x3888[49]](_0x8f7dx6[_0x3888[48]][_0x3888[47]])[_0x3888[43]](function(_0x8f7dx18){var _0x8f7dx15={endpoint:stripTrailingSlash(_0x8f7dx18[_0x3888[12]]),retry:false};if(_0x8f7dx18[_0x3888[57]]=== _0x3888[58]){_0x8f7dx15[_0x3888[11]]= _0x8f7dx18[_0x3888[11]];_0x8f7dx15[_0x3888[59]]= _0x8f7dx18[_0x3888[59]]}else {if(_0x8f7dx18[_0x3888[57]]=== _0x3888[60]){_0x8f7dx15[_0x3888[61]]= _0x8f7dx18[_0x3888[61]];_0x8f7dx15[_0x3888[62]]= _0x8f7dx18[_0x3888[62]];_0x8f7dx15[_0x3888[63]]= _0x8f7dx18[_0x3888[63]];_0x8f7dx15[_0x3888[64]]= _0x8f7dx18[_0x3888[64]]}};var _0x8f7dx19=desk[_0x3888[65]](_0x8f7dx15);_0x8f7dx19[_0x3888[67]](_0x3888[72],function(_0x8f7dx10,_0x8f7dx1a,_0x8f7dx1b){if(_0x8f7dx10){return handleError(_0x8f7dx7,_0x8f7dx10)};return _0x8f7dx7[_0x3888[32]](200)[_0x3888[75]](_0x8f7dx1a[_0x3888[74]][_0x3888[73]])})})[_0x3888[33]](function(_0x8f7dx10){return handleError(_0x8f7dx7,_0x8f7dx10)})};exports[_0x3888[76]]= function(_0x8f7dx6,_0x8f7dx7){DeskAccount[_0x3888[55]]({where:{id:_0x8f7dx6[_0x3888[14]][_0x3888[47]]},individualHooks:true})[_0x3888[43]](function(){return _0x8f7dx7[_0x3888[46]](204)})[_0x3888[33]](function(_0x8f7dx10){return handleError(_0x8f7dx7,_0x8f7dx10)})};function stripTrailingSlash(_0x8f7dx1e){if(_0x8f7dx1e[_0x3888[77]](-1) === _0x3888[78]){return _0x8f7dx1e[_0x3888[77]](0,_0x8f7dx1e[_0x3888[79]]- 1)};return _0x8f7dx1e}function handleError(_0x8f7dx7,_0x8f7dx10){logger[_0x3888[81]](_0x8f7dx10[_0x3888[80]]);return _0x8f7dx7[_0x3888[32]](500)[_0x3888[31]](_0x8f7dx10)}
\ No newline at end of file
+var _0x95eb=["\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","\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","\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","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x95eb[0];var _=require(_0x95eb[1]);var util=require(_0x95eb[2]);var desk=require(_0x95eb[3]);var logger=require(_0x95eb[5])(_0x95eb[4]);var DeskAccount=require(_0x95eb[7])[_0x95eb[6]];exports[_0x95eb[8]]= function(_0xc8aex6,_0xc8aex7){var _0xc8aex8=[_0x95eb[9],_0x95eb[10],_0x95eb[11],_0x95eb[12]];var _0xc8aex9=_0xc8aex6[_0x95eb[14]][_0x95eb[13]]?parseInt(_0xc8aex6[_0x95eb[14]][_0x95eb[13]],10):100;var _0xc8aexa=_0xc8aex6[_0x95eb[14]][_0x95eb[15]]?parseInt(_0xc8aex6[_0x95eb[14]][_0x95eb[15]],10):0;var _0xc8aexb={where:{},limit:_0xc8aex9,offset:_0xc8aexa* _0xc8aex9};_[_0x95eb[29]](_0xc8aex6[_0x95eb[14]],function(_0xc8aexc,_0xc8aexd){switch(_0xc8aexd){case _0x95eb[13]:;case _0x95eb[15]:break;case _0x95eb[18]:_0xc8aexb[_0x95eb[16]]= util[_0x95eb[21]](_0x95eb[17],_0xc8aex6[_0x95eb[14]][_0x95eb[18]],_0xc8aex6[_0x95eb[14]][_0x95eb[19]]|| _0x95eb[20])|| null;break;case _0x95eb[19]:break;case _0x95eb[27]:_0xc8aexb[_0x95eb[23]][_0x95eb[22]]= [];_0xc8aex8[_0x95eb[26]](function(_0xc8aexe){var _0xc8aexf={};_0xc8aexf[_0xc8aexe]= {$like:_0x95eb[24]+ _0xc8aexc+ _0x95eb[24]};_0xc8aexb[_0x95eb[23]][_0x95eb[22]][_0x95eb[25]](_0xc8aexf)});break;default:_0xc8aexb[_0x95eb[23]][_0xc8aexd]= {$like:{}};_0xc8aexb[_0x95eb[23]][_0xc8aexd][_0x95eb[28]]= _0x95eb[24]+ _0xc8aexc+ _0x95eb[24]}});return DeskAccount[_0x95eb[44]](_0xc8aexb)[_0x95eb[43]](function(_0xc8aex11){var _0xc8aex12=Math[_0x95eb[35]](_0xc8aex11[_0x95eb[34]]/ _0xc8aex9);var _0xc8aex13=_0xc8aex12> (_0xc8aexb[_0x95eb[36]]+ 1)?util[_0x95eb[21]](_0x95eb[37],_0xc8aex6[_0x95eb[38]],_0xc8aex6[_0x95eb[40]][_0x95eb[39]],_0xc8aex6[_0x95eb[41]],_0xc8aexa+ 1):null;var _0xc8aex14=_0xc8aexa> 0?util[_0x95eb[21]](_0x95eb[37],_0xc8aex6[_0x95eb[38]],_0xc8aex6[_0x95eb[40]][_0x95eb[39]],_0xc8aex6[_0x95eb[41]],_0xc8aexa- 1):null;return _0xc8aex7[_0x95eb[32]](200)[_0x95eb[31]]({count:_0xc8aex11[_0x95eb[34]],rows:_0xc8aex11[_0x95eb[42]],next_page:_0xc8aex13,previous_page:_0xc8aex14,total_pages:_0xc8aex12})})[_0x95eb[33]](function(_0xc8aex10){return _0xc8aex7[_0x95eb[32]](500)[_0x95eb[31]]({error:_0x95eb[30]})})};exports[_0x95eb[45]]= function(_0xc8aex6,_0xc8aex7){DeskAccount[_0x95eb[49]](_0xc8aex6[_0x95eb[48]][_0x95eb[47]])[_0x95eb[43]](function(_0xc8aex15){if(!_0xc8aex15){return _0xc8aex7[_0x95eb[46]](404)};return _0xc8aex7[_0x95eb[31]](_0xc8aex15)})[_0x95eb[33]](function(_0xc8aex10){return handleError(_0xc8aex7,_0xc8aex10)})};exports[_0x95eb[50]]= function(_0xc8aex6,_0xc8aex7,_0xc8aex16){DeskAccount[_0x95eb[50]](_0xc8aex6[_0x95eb[51]])[_0x95eb[43]](function(_0xc8aex15){return _0xc8aex7[_0x95eb[32]](201)[_0x95eb[31]](_0xc8aex15)})[_0x95eb[33]](function(_0xc8aex10){return handleError(_0xc8aex7,_0xc8aex10)})};exports[_0x95eb[52]]= function(_0xc8aex6,_0xc8aex7){if(_0xc8aex6[_0x95eb[51]][_0x95eb[47]]){delete _0xc8aex6[_0x95eb[51]][_0x95eb[47]]};DeskAccount[_0x95eb[49]](_0xc8aex6[_0x95eb[48]][_0x95eb[47]])[_0x95eb[43]](function(_0xc8aex15){if(!_0xc8aex15){return _0xc8aex7[_0x95eb[46]](404)};var _0xc8aex17=_[_0x95eb[53]](_0xc8aex15,_0xc8aex6[_0x95eb[51]]);_0xc8aex17[_0x95eb[54]]()[_0x95eb[43]](function(){return _0xc8aex7[_0x95eb[32]](200)[_0x95eb[31]](_0xc8aex15)})[_0x95eb[33]](function(_0xc8aex10){return handleError(_0xc8aex7,_0xc8aex10)})})[_0x95eb[33]](function(_0xc8aex10){return handleError(_0xc8aex7,_0xc8aex10)})};exports[_0x95eb[55]]= function(_0xc8aex6,_0xc8aex7){DeskAccount[_0x95eb[49]](_0xc8aex6[_0x95eb[48]][_0x95eb[47]])[_0x95eb[43]](function(_0xc8aex15){if(!_0xc8aex15){return _0xc8aex7[_0x95eb[46]](404)};_0xc8aex15[_0x95eb[55]]()[_0x95eb[43]](function(){return _0xc8aex7[_0x95eb[46]](204)})[_0x95eb[33]](function(_0xc8aex10){return handleError(_0xc8aex7,_0xc8aex10)})})[_0x95eb[33]](function(_0xc8aex10){return handleError(_0xc8aex7,_0xc8aex10)})};exports[_0x95eb[56]]= function(_0xc8aex6,_0xc8aex7){DeskAccount[_0x95eb[49]](_0xc8aex6[_0x95eb[48]][_0x95eb[47]])[_0x95eb[43]](function(_0xc8aex18){var _0xc8aex15={endpoint:stripTrailingSlash(_0xc8aex18[_0x95eb[12]]),retry:false};if(_0xc8aex18[_0x95eb[57]]=== _0x95eb[58]){_0xc8aex15[_0x95eb[11]]= _0xc8aex18[_0x95eb[11]];_0xc8aex15[_0x95eb[59]]= _0xc8aex18[_0x95eb[59]]}else {if(_0xc8aex18[_0x95eb[57]]=== _0x95eb[60]){_0xc8aex15[_0x95eb[61]]= _0xc8aex18[_0x95eb[61]];_0xc8aex15[_0x95eb[62]]= _0xc8aex18[_0x95eb[62]];_0xc8aex15[_0x95eb[63]]= _0xc8aex18[_0x95eb[63]];_0xc8aex15[_0x95eb[64]]= _0xc8aex18[_0x95eb[64]]}};var _0xc8aex19=desk[_0x95eb[65]](_0xc8aex15);_0xc8aex19[_0x95eb[67]](_0x95eb[66],function(_0xc8aex10,_0xc8aex1a,_0xc8aex1b){if(_0xc8aex10){return handleError(_0xc8aex7,_0xc8aex10)};return _0xc8aex7[_0x95eb[46]](200)})})[_0x95eb[33]](function(_0xc8aex10){return handleError(_0xc8aex7,_0xc8aex10)})};exports[_0x95eb[68]]= function(_0xc8aex6,_0xc8aex7){var _0xc8aex1c={};_0xc8aex1c[_0xc8aex6[_0x95eb[48]][_0x95eb[69]]]= _0xc8aex6[_0x95eb[51]][_0x95eb[70]];DeskAccount[_0x95eb[44]]({where:_0xc8aex1c})[_0x95eb[43]](function(_0xc8aex11){if(_0xc8aex11[_0x95eb[34]]){return _0xc8aex7[_0x95eb[32]](200)[_0x95eb[31]]({isValid:false,value:_0xc8aex6[_0x95eb[51]][_0x95eb[70]]})};return _0xc8aex7[_0x95eb[32]](200)[_0x95eb[31]]({isValid:true,value:_0xc8aex6[_0x95eb[51]][_0x95eb[70]]})})[_0x95eb[33]](function(_0xc8aex10){return handleError(_0xc8aex7,_0xc8aex10)})};exports[_0x95eb[71]]= function(_0xc8aex6,_0xc8aex7){DeskAccount[_0x95eb[49]](_0xc8aex6[_0x95eb[48]][_0x95eb[47]])[_0x95eb[43]](function(_0xc8aex18){var _0xc8aex15={endpoint:stripTrailingSlash(_0xc8aex18[_0x95eb[12]]),retry:false};if(_0xc8aex18[_0x95eb[57]]=== _0x95eb[58]){_0xc8aex15[_0x95eb[11]]= _0xc8aex18[_0x95eb[11]];_0xc8aex15[_0x95eb[59]]= _0xc8aex18[_0x95eb[59]]}else {if(_0xc8aex18[_0x95eb[57]]=== _0x95eb[60]){_0xc8aex15[_0x95eb[61]]= _0xc8aex18[_0x95eb[61]];_0xc8aex15[_0x95eb[62]]= _0xc8aex18[_0x95eb[62]];_0xc8aex15[_0x95eb[63]]= _0xc8aex18[_0x95eb[63]];_0xc8aex15[_0x95eb[64]]= _0xc8aex18[_0x95eb[64]]}};var _0xc8aex19=desk[_0x95eb[65]](_0xc8aex15);_0xc8aex19[_0x95eb[67]](_0x95eb[72],function(_0xc8aex10,_0xc8aex1a,_0xc8aex1b){if(_0xc8aex10){return handleError(_0xc8aex7,_0xc8aex10)};return _0xc8aex7[_0x95eb[32]](200)[_0x95eb[75]](_0xc8aex1a[_0x95eb[74]][_0x95eb[73]])})})[_0x95eb[33]](function(_0xc8aex10){return handleError(_0xc8aex7,_0xc8aex10)})};exports[_0x95eb[76]]= function(_0xc8aex6,_0xc8aex7){DeskAccount[_0x95eb[55]]({where:{id:_0xc8aex6[_0x95eb[14]][_0x95eb[47]]},individualHooks:true})[_0x95eb[43]](function(){return _0xc8aex7[_0x95eb[46]](204)})[_0x95eb[33]](function(_0xc8aex10){return handleError(_0xc8aex7,_0xc8aex10)})};function stripTrailingSlash(_0xc8aex1e){if(_0xc8aex1e[_0x95eb[77]](-1) === _0x95eb[78]){return _0xc8aex1e[_0x95eb[77]](0,_0xc8aex1e[_0x95eb[79]]- 1)};return _0xc8aex1e}function handleError(_0xc8aex7,_0xc8aex10){logger[_0x95eb[81]](_0xc8aex10[_0x95eb[80]]);return _0xc8aex7[_0x95eb[32]](500)[_0x95eb[31]](_0xc8aex10)}
\ No newline at end of file