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 _0x6cbe=['./faxInteraction.events','save','update','removeListener','register','length','faxInteraction:'];(function(_0x2424c5,_0x3eaec9){var _0x29d608=function(_0x1ebf59){while(--_0x1ebf59){_0x2424c5['push'](_0x2424c5['shift']());}};_0x29d608(++_0x3eaec9);}(_0x6cbe,0x9a));var _0xe6cb=function(_0x46ec78,_0x2642cc){_0x46ec78=_0x46ec78-0x0;var _0x4a622e=_0x6cbe[_0x46ec78];return _0x4a622e;};'use strict';var FaxInteractionEvents=require(_0xe6cb('0x0'));var events=[_0xe6cb('0x1'),'remove',_0xe6cb('0x2')];function createListener(_0x568758,_0x59e6f9){return function(_0x10570e){_0x59e6f9['emit'](_0x568758,_0x10570e);};}function removeListener(_0x1dea32,_0x35b668){return function(){FaxInteractionEvents[_0xe6cb('0x3')](_0x1dea32,_0x35b668);};}exports[_0xe6cb('0x4')]=function(_0x5d7931){for(var _0x59ca5a=0x0,_0xb4d011=events[_0xe6cb('0x5')];_0x59ca5a<_0xb4d011;_0x59ca5a++){var _0x4f76fd=events[_0x59ca5a];var _0xd80c04=createListener(_0xe6cb('0x6')+_0x4f76fd,_0x5d7931);FaxInteractionEvents['on'](_0x4f76fd,_0xd80c04);}};