Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / api / notification / notification.socket.js
1 const a560_0x41aa=['notification:','remove','update','register','emit','length','./notification.events'];(function(_0x326726,_0x18b61a){const _0x41aa5c=function(_0x46f2f9){while(--_0x46f2f9){_0x326726['push'](_0x326726['shift']());}};_0x41aa5c(++_0x18b61a);}(a560_0x41aa,0x1c6));const a560_0x46f2=function(_0x326726,_0x18b61a){_0x326726=_0x326726-0x1a2;let _0x41aa5c=a560_0x41aa[_0x326726];return _0x41aa5c;};const a560_0x4c5d65=a560_0x46f2;'use strict';const NotificationEvents=require(a560_0x4c5d65(0x1a2)),events=['save',a560_0x4c5d65(0x1a4),a560_0x4c5d65(0x1a5)];function createListener(_0x45ab10,_0x529cbd){return function(_0x3e02de){const _0x4284b8=a560_0x46f2;_0x529cbd[_0x4284b8(0x1a7)](_0x45ab10,_0x3e02de);};}exports[a560_0x4c5d65(0x1a6)]=function(_0x2ca324){const _0x10ada1=a560_0x4c5d65;for(let _0x282aaa=0x0,_0x544a34=events[_0x10ada1(0x1a8)];_0x282aaa<_0x544a34;_0x282aaa++){const _0x35f518=events[_0x282aaa],_0x2d2f85=createListener(_0x10ada1(0x1a3)+_0x35f518,_0x2ca324);NotificationEvents['on'](_0x35f518,_0x2d2f85);}};