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 _0x8471=['save','remove','removeListener','register'];(function(_0x330723,_0x8de382){var _0x60c546=function(_0xd6d3fe){while(--_0xd6d3fe){_0x330723['push'](_0x330723['shift']());}};_0x60c546(++_0x8de382);}(_0x8471,0x1a8));var _0x1847=function(_0x759d32,_0x2dcee8){_0x759d32=_0x759d32-0x0;var _0x5af928=_0x8471[_0x759d32];return _0x5af928;};'use strict';var FaxInteractionEvents=require('./faxInteraction.events');var events=[_0x1847('0x0'),_0x1847('0x1'),'update'];function createListener(_0x241499,_0x313113){return function(_0x393c89){_0x313113['emit'](_0x241499,_0x393c89);};}function removeListener(_0x1c6e38,_0xf6f418){return function(){FaxInteractionEvents[_0x1847('0x2')](_0x1c6e38,_0xf6f418);};}exports[_0x1847('0x3')]=function(_0x2b1dd9){for(var _0x568938=0x0,_0x1f1818=events['length'];_0x568938<_0x1f1818;_0x568938++){var _0x50fce7=events[_0x568938];var _0x5bc223=createListener('faxInteraction:'+_0x50fce7,_0x2b1dd9);FaxInteractionEvents['on'](_0x50fce7,_0x5bc223);}};