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 _0xfefb=['length','./faxInteraction.events','save','remove','emit','register'];(function(_0x1b640f,_0x215390){var _0x560770=function(_0x5335ba){while(--_0x5335ba){_0x1b640f['push'](_0x1b640f['shift']());}};_0x560770(++_0x215390);}(_0xfefb,0x1db));var _0xbfef=function(_0x334192,_0x1ba2bc){_0x334192=_0x334192-0x0;var _0x3d0d2e=_0xfefb[_0x334192];return _0x3d0d2e;};'use strict';var FaxInteractionEvents=require(_0xbfef('0x0'));var events=[_0xbfef('0x1'),_0xbfef('0x2'),'update'];function createListener(_0x3ece33,_0x3bba52){return function(_0x1580e5){_0x3bba52[_0xbfef('0x3')](_0x3ece33,_0x1580e5);};}function removeListener(_0x719ecb,_0x5d6f52){return function(){FaxInteractionEvents['removeListener'](_0x719ecb,_0x5d6f52);};}exports[_0xbfef('0x4')]=function(_0x2e848b){for(var _0x4a63e8=0x0,_0x39341b=events[_0xbfef('0x5')];_0x4a63e8<_0x39341b;_0x4a63e8++){var _0x244e36=events[_0x4a63e8];var _0x3e8e6a=createListener('faxInteraction:'+_0x244e36,_0x2e848b);FaxInteractionEvents['on'](_0x244e36,_0x3e8e6a);}};