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 _0xf44d=['removeListener','register','faxInteraction:','./faxInteraction.events','save','remove','update','emit'];(function(_0x3635ce,_0x33a6f9){var _0x97ecd0=function(_0x123d98){while(--_0x123d98){_0x3635ce['push'](_0x3635ce['shift']());}};_0x97ecd0(++_0x33a6f9);}(_0xf44d,0x103));var _0xdf44=function(_0x15f13e,_0x51c1a3){_0x15f13e=_0x15f13e-0x0;var _0xff6a71=_0xf44d[_0x15f13e];return _0xff6a71;};'use strict';var FaxInteractionEvents=require(_0xdf44('0x0'));var events=[_0xdf44('0x1'),_0xdf44('0x2'),_0xdf44('0x3')];function createListener(_0x12d7b8,_0x25baf4){return function(_0xcddc){_0x25baf4[_0xdf44('0x4')](_0x12d7b8,_0xcddc);};}function removeListener(_0xb2e7ac,_0xf7233f){return function(){FaxInteractionEvents[_0xdf44('0x5')](_0xb2e7ac,_0xf7233f);};}exports[_0xdf44('0x6')]=function(_0x504625){for(var _0xfc87c5=0x0,_0x4014ba=events['length'];_0xfc87c5<_0x4014ba;_0xfc87c5++){var _0x489350=events[_0xfc87c5];var _0x4e2efb=createListener(_0xdf44('0x7')+_0x489350,_0x504625);FaxInteractionEvents['on'](_0x489350,_0x4e2efb);}};