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 _0x9861=['emit','length','faxInteraction:','./faxInteraction.events','save','remove','update'];(function(_0x4dad92,_0x5ec235){var _0x3b8378=function(_0x1ae2b9){while(--_0x1ae2b9){_0x4dad92['push'](_0x4dad92['shift']());}};_0x3b8378(++_0x5ec235);}(_0x9861,0x15a));var _0x1986=function(_0x1b4190,_0x67fe86){_0x1b4190=_0x1b4190-0x0;var _0x269f64=_0x9861[_0x1b4190];return _0x269f64;};'use strict';var FaxInteractionEvents=require(_0x1986('0x0'));var events=[_0x1986('0x1'),_0x1986('0x2'),_0x1986('0x3')];function createListener(_0x3da44e,_0x568880){return function(_0x13c818){_0x568880[_0x1986('0x4')](_0x3da44e,_0x13c818);};}function removeListener(_0x3abe1d,_0x1296b4){return function(){FaxInteractionEvents['removeListener'](_0x3abe1d,_0x1296b4);};}exports['register']=function(_0xbf08b4){for(var _0x391f47=0x0,_0x113267=events[_0x1986('0x5')];_0x391f47<_0x113267;_0x391f47++){var _0x3c2fa1=events[_0x391f47];var _0x39e660=createListener(_0x1986('0x6')+_0x3c2fa1,_0xbf08b4);FaxInteractionEvents['on'](_0x3c2fa1,_0x39e660);}};