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 _0x234f=['update','register','length','faxInteraction:','./faxInteraction.events','remove'];(function(_0x1a5644,_0x5b573b){var _0x510d62=function(_0x158604){while(--_0x158604){_0x1a5644['push'](_0x1a5644['shift']());}};_0x510d62(++_0x5b573b);}(_0x234f,0xd6));var _0xf234=function(_0x526b60,_0x1c8e4a){_0x526b60=_0x526b60-0x0;var _0x27b60e=_0x234f[_0x526b60];return _0x27b60e;};'use strict';var FaxInteractionEvents=require(_0xf234('0x0'));var events=['save',_0xf234('0x1'),_0xf234('0x2')];function createListener(_0x525bf0,_0xdda5bf){return function(_0x4956a1){_0xdda5bf['emit'](_0x525bf0,_0x4956a1);};}function removeListener(_0x44cc01,_0x39cc2b){return function(){FaxInteractionEvents['removeListener'](_0x44cc01,_0x39cc2b);};}exports[_0xf234('0x3')]=function(_0x37341e){for(var _0x11131f=0x0,_0x23c403=events[_0xf234('0x4')];_0x11131f<_0x23c403;_0x11131f++){var _0x12f6eb=events[_0x11131f];var _0x4c7089=createListener(_0xf234('0x5')+_0x12f6eb,_0x37341e);FaxInteractionEvents['on'](_0x12f6eb,_0x4c7089);}};