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 _0x37fa=['length','./faxInteraction.events','save','remove','update','removeListener'];(function(_0x11a72e,_0x1f95b9){var _0x32df28=function(_0x4751d8){while(--_0x4751d8){_0x11a72e['push'](_0x11a72e['shift']());}};_0x32df28(++_0x1f95b9);}(_0x37fa,0x1db));var _0xa37f=function(_0x2b68fc,_0x10362e){_0x2b68fc=_0x2b68fc-0x0;var _0x2e3490=_0x37fa[_0x2b68fc];return _0x2e3490;};'use strict';var FaxInteractionEvents=require(_0xa37f('0x0'));var events=[_0xa37f('0x1'),_0xa37f('0x2'),_0xa37f('0x3')];function createListener(_0x2fb4f9,_0x27c415){return function(_0x2e3282){_0x27c415['emit'](_0x2fb4f9,_0x2e3282);};}function removeListener(_0x2f95b5,_0x2a8841){return function(){FaxInteractionEvents[_0xa37f('0x4')](_0x2f95b5,_0x2a8841);};}exports['register']=function(_0x14be03){for(var _0x128c45=0x0,_0x345f83=events[_0xa37f('0x5')];_0x128c45<_0x345f83;_0x128c45++){var _0x46993a=events[_0x128c45];var _0x505209=createListener('faxInteraction:'+_0x46993a,_0x14be03);FaxInteractionEvents['on'](_0x46993a,_0x505209);}};