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 _0xfe29=['length','faxInteraction:','./faxInteraction.events','save','remove','update','emit','removeListener','register'];(function(_0x558ba2,_0x567a31){var _0x3fbf83=function(_0x526f48){while(--_0x526f48){_0x558ba2['push'](_0x558ba2['shift']());}};_0x3fbf83(++_0x567a31);}(_0xfe29,0xd1));var _0x9fe2=function(_0x366c86,_0xd00023){_0x366c86=_0x366c86-0x0;var _0x402ec5=_0xfe29[_0x366c86];return _0x402ec5;};'use strict';var FaxInteractionEvents=require(_0x9fe2('0x0'));var events=[_0x9fe2('0x1'),_0x9fe2('0x2'),_0x9fe2('0x3')];function createListener(_0x34ca11,_0x3c87a7){return function(_0x4de74){_0x3c87a7[_0x9fe2('0x4')](_0x34ca11,_0x4de74);};}function removeListener(_0x20c05a,_0x31dd1b){return function(){FaxInteractionEvents[_0x9fe2('0x5')](_0x20c05a,_0x31dd1b);};}exports[_0x9fe2('0x6')]=function(_0x254595){for(var _0x1d9db7=0x0,_0x251b87=events[_0x9fe2('0x7')];_0x1d9db7<_0x251b87;_0x1d9db7++){var _0x324a44=events[_0x1d9db7];var _0x7e5072=createListener(_0x9fe2('0x8')+_0x324a44,_0x254595);FaxInteractionEvents['on'](_0x324a44,_0x7e5072);}};