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 _0x9f8b=['removeListener','register','length','faxInteraction:','./faxInteraction.events','save','emit'];(function(_0xc1ba42,_0x3728a7){var _0xc74e0b=function(_0x25775a){while(--_0x25775a){_0xc1ba42['push'](_0xc1ba42['shift']());}};_0xc74e0b(++_0x3728a7);}(_0x9f8b,0x1a1));var _0xb9f8=function(_0x47d69e,_0x4ea1e9){_0x47d69e=_0x47d69e-0x0;var _0x3aa1e9=_0x9f8b[_0x47d69e];return _0x3aa1e9;};'use strict';var FaxInteractionEvents=require(_0xb9f8('0x0'));var events=[_0xb9f8('0x1'),'remove','update'];function createListener(_0x5f4184,_0x3cf339){return function(_0x135888){_0x3cf339[_0xb9f8('0x2')](_0x5f4184,_0x135888);};}function removeListener(_0x2cf68f,_0x4dbb02){return function(){FaxInteractionEvents[_0xb9f8('0x3')](_0x2cf68f,_0x4dbb02);};}exports[_0xb9f8('0x4')]=function(_0x5dd834){for(var _0xdf9046=0x0,_0x4730b6=events[_0xb9f8('0x5')];_0xdf9046<_0x4730b6;_0xdf9046++){var _0x49a561=events[_0xdf9046];var _0x1b6ff0=createListener(_0xb9f8('0x6')+_0x49a561,_0x5dd834);FaxInteractionEvents['on'](_0x49a561,_0x1b6ff0);}};