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 _0xaba8=['update','removeListener','length','faxInteraction:','./faxInteraction.events'];(function(_0x2d9660,_0x247c7e){var _0x52f92a=function(_0x1bc7d3){while(--_0x1bc7d3){_0x2d9660['push'](_0x2d9660['shift']());}};_0x52f92a(++_0x247c7e);}(_0xaba8,0x1c6));var _0x8aba=function(_0x4ed0e7,_0x5c3888){_0x4ed0e7=_0x4ed0e7-0x0;var _0x50b1cc=_0xaba8[_0x4ed0e7];return _0x50b1cc;};'use strict';var FaxInteractionEvents=require(_0x8aba('0x0'));var events=['save','remove',_0x8aba('0x1')];function createListener(_0x27fe9a,_0x51c6ca){return function(_0x424971){_0x51c6ca['emit'](_0x27fe9a,_0x424971);};}function removeListener(_0x1f60b6,_0x1a0ec3){return function(){FaxInteractionEvents[_0x8aba('0x2')](_0x1f60b6,_0x1a0ec3);};}exports['register']=function(_0x152549){for(var _0x2617e0=0x0,_0x22df95=events[_0x8aba('0x3')];_0x2617e0<_0x22df95;_0x2617e0++){var _0x1bdd39=events[_0x2617e0];var _0x574f57=createListener(_0x8aba('0x4')+_0x1bdd39,_0x152549);FaxInteractionEvents['on'](_0x1bdd39,_0x574f57);}};