5a11a5989cf7b0e01974e77c49424dae9f982785
[motion-next.git] / server / api / faxAccount / faxAccount.socket.js
1 const a190_0x3358=['register','remove','./faxAccount.events','length'];(function(_0x1b16d6,_0x3358b4){const _0x38e7da=function(_0xeaac0f){while(--_0xeaac0f){_0x1b16d6['push'](_0x1b16d6['shift']());}};_0x38e7da(++_0x3358b4);}(a190_0x3358,0xf2));const a190_0x38e7=function(_0x1b16d6,_0x3358b4){_0x1b16d6=_0x1b16d6-0x0;let _0x38e7da=a190_0x3358[_0x1b16d6];return _0x38e7da;};const _0x16c5bb=a190_0x38e7;'use strict';const FaxAccountEvents=require(_0x16c5bb('0x0')),events=['save',_0x16c5bb('0x3'),'update'];function createListener(_0xeaac0f,_0x165410){return function(_0x2c5092){_0x165410['emit'](_0xeaac0f,_0x2c5092);};}exports[_0x16c5bb('0x2')]=function(_0x20886e){const _0x13de98=_0x16c5bb;for(let _0x525b7f=0x0,_0x342608=events[_0x13de98('0x1')];_0x525b7f<_0x342608;_0x525b7f++){const _0x3468cd=events[_0x525b7f],_0x175989=createListener('faxAccount:'+_0x3468cd,_0x20886e);FaxAccountEvents['on'](_0x3468cd,_0x175989);}};