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 _0xe8fe=['update','emit','removeListener','register','./faxInteraction.events','save','remove'];(function(_0x5adc60,_0x481912){var _0x1ec47f=function(_0x53d217){while(--_0x53d217){_0x5adc60['push'](_0x5adc60['shift']());}};_0x1ec47f(++_0x481912);}(_0xe8fe,0xf2));var _0xee8f=function(_0xae9024,_0x17f58e){_0xae9024=_0xae9024-0x0;var _0x23e7d3=_0xe8fe[_0xae9024];return _0x23e7d3;};'use strict';var FaxInteractionEvents=require(_0xee8f('0x0'));var events=[_0xee8f('0x1'),_0xee8f('0x2'),_0xee8f('0x3')];function createListener(_0x1badfc,_0x5d2887){return function(_0x475115){_0x5d2887[_0xee8f('0x4')](_0x1badfc,_0x475115);};}function removeListener(_0x431496,_0x5e5378){return function(){FaxInteractionEvents[_0xee8f('0x5')](_0x431496,_0x5e5378);};}exports[_0xee8f('0x6')]=function(_0xf4e930){for(var _0x39d3f9=0x0,_0x226019=events['length'];_0x39d3f9<_0x226019;_0x39d3f9++){var _0x380813=events[_0x39d3f9];var _0x515989=createListener('faxInteraction:'+_0x380813,_0xf4e930);FaxInteractionEvents['on'](_0x380813,_0x515989);}};