Built motion from commit b51cdcb3f2cb46634587ce1d55ea1b8f32dacea6. Version 3.0.0...
[motion-next.git] / server / api / notification / notification.socket.js
1 const a465_0x39a9=['remove','register','notification:','emit','length','save'];(function(_0xf4f2dc,_0x39a976){const _0x480f7b=function(_0x1eb00a){while(--_0x1eb00a){_0xf4f2dc['push'](_0xf4f2dc['shift']());}};_0x480f7b(++_0x39a976);}(a465_0x39a9,0x123));const a465_0x480f=function(_0xf4f2dc,_0x39a976){_0xf4f2dc=_0xf4f2dc-0x0;let _0x480f7b=a465_0x39a9[_0xf4f2dc];return _0x480f7b;};const _0x48c625=a465_0x480f;'use strict';const NotificationEvents=require('./notification.events'),events=[_0x48c625('0x2'),_0x48c625('0x3'),'update'];function createListener(_0x1eb00a,_0x63c4aa){return function(_0x5a267e){const _0x39daa3=a465_0x480f;_0x63c4aa[_0x39daa3('0x0')](_0x1eb00a,_0x5a267e);};}exports[_0x48c625('0x4')]=function(_0x42325b){const _0x8f8a77=_0x48c625;for(let _0x5e420d=0x0,_0x1f3585=events[_0x8f8a77('0x1')];_0x5e420d<_0x1f3585;_0x5e420d++){const _0x108ae3=events[_0x5e420d],_0x2efc52=createListener(_0x8f8a77('0x5')+_0x108ae3,_0x42325b);NotificationEvents['on'](_0x108ae3,_0x2efc52);}};