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 _0xd4f1=['faxInteraction:','remove','update','removeListener','register','length'];(function(_0x3e844c,_0x188bc2){var _0x4e7c8a=function(_0x1dc8ad){while(--_0x1dc8ad){_0x3e844c['push'](_0x3e844c['shift']());}};_0x4e7c8a(++_0x188bc2);}(_0xd4f1,0x1c3));var _0x1d4f=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xd4f1[_0x20a584];return _0x4b41a8;};'use strict';var FaxInteractionEvents=require('./faxInteraction.events');var events=['save',_0x1d4f('0x0'),_0x1d4f('0x1')];function createListener(_0x4d0306,_0x1dd4d7){return function(_0x40a965){_0x1dd4d7['emit'](_0x4d0306,_0x40a965);};}function removeListener(_0x2c09d6,_0x11725f){return function(){FaxInteractionEvents[_0x1d4f('0x2')](_0x2c09d6,_0x11725f);};}exports[_0x1d4f('0x3')]=function(_0xa63eb){for(var _0xed1312=0x0,_0x5f504e=events[_0x1d4f('0x4')];_0xed1312<_0x5f504e;_0xed1312++){var _0x5c139c=events[_0xed1312];var _0x47010c=createListener(_0x1d4f('0x5')+_0x5c139c,_0xa63eb);FaxInteractionEvents['on'](_0x5c139c,_0x47010c);}};