1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x4777=['register','faxAccount:','remove','removeListener'];(function(_0x3122b0,_0x1c3698){var _0x467ec5=function(_0x5bf6a3){while(--_0x5bf6a3){_0x3122b0['push'](_0x3122b0['shift']());}};_0x467ec5(++_0x1c3698);}(_0x4777,0x13a));var _0x7477=function(_0x334651,_0x6e99f6){_0x334651=_0x334651-0x0;var _0x29657c=_0x4777[_0x334651];return _0x29657c;};'use strict';var FaxAccountEvents=require('./faxAccount.events');var events=['save',_0x7477('0x0'),'update'];function createListener(_0x1854cc,_0x49364d){return function(_0x1e1c61){_0x49364d['emit'](_0x1854cc,_0x1e1c61);};}function removeListener(_0x2022fb,_0x4ea13e){return function(){FaxAccountEvents[_0x7477('0x1')](_0x2022fb,_0x4ea13e);};}exports[_0x7477('0x2')]=function(_0x14b1cf){for(var _0x45294f=0x0,_0x5336fd=events['length'];_0x45294f<_0x5336fd;_0x45294f++){var _0x144ed8=events[_0x45294f];var _0x56632e=createListener(_0x7477('0x3')+_0x144ed8,_0x14b1cf);FaxAccountEvents['on'](_0x144ed8,_0x56632e);}};