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 _0x4cb7=['register','faxInteraction:','./faxInteraction.events','remove','update'];(function(_0x2122ee,_0x424c00){var _0x2d5f2d=function(_0x3d3135){while(--_0x3d3135){_0x2122ee['push'](_0x2122ee['shift']());}};_0x2d5f2d(++_0x424c00);}(_0x4cb7,0x6b));var _0x74cb=function(_0x457e16,_0x427f04){_0x457e16=_0x457e16-0x0;var _0x564cef=_0x4cb7[_0x457e16];return _0x564cef;};'use strict';var FaxInteractionEvents=require(_0x74cb('0x0'));var events=['save',_0x74cb('0x1'),_0x74cb('0x2')];function createListener(_0x179167,_0x56079d){return function(_0x368233){_0x56079d['emit'](_0x179167,_0x368233);};}function removeListener(_0x4d536c,_0x45fb9c){return function(){FaxInteractionEvents['removeListener'](_0x4d536c,_0x45fb9c);};}exports[_0x74cb('0x3')]=function(_0x3e18a){for(var _0x153a27=0x0,_0x172ada=events['length'];_0x153a27<_0x172ada;_0x153a27++){var _0x282221=events[_0x153a27];var _0x112d58=createListener(_0x74cb('0x4')+_0x282221,_0x3e18a);FaxInteractionEvents['on'](_0x282221,_0x112d58);}};