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 _0x3f49=['./faxInteraction.events','remove','update','emit','removeListener','register','faxInteraction:'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x3f49,0xa1));var _0x93f4=function(_0xd23f5f,_0x1cd149){_0xd23f5f=_0xd23f5f-0x0;var _0x1da8e4=_0x3f49[_0xd23f5f];return _0x1da8e4;};'use strict';var FaxInteractionEvents=require(_0x93f4('0x0'));var events=['save',_0x93f4('0x1'),_0x93f4('0x2')];function createListener(_0x350459,_0x5a22fe){return function(_0x99a2a2){_0x5a22fe[_0x93f4('0x3')](_0x350459,_0x99a2a2);};}function removeListener(_0x53e853,_0x204913){return function(){FaxInteractionEvents[_0x93f4('0x4')](_0x53e853,_0x204913);};}exports[_0x93f4('0x5')]=function(_0x278635){for(var _0xb1be8e=0x0,_0x29a225=events['length'];_0xb1be8e<_0x29a225;_0xb1be8e++){var _0x5cd00a=events[_0xb1be8e];var _0x3ceeec=createListener(_0x93f4('0x6')+_0x5cd00a,_0x278635);FaxInteractionEvents['on'](_0x5cd00a,_0x3ceeec);}};