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 _0xe219=['faxInteraction:','./faxInteraction.events','save','remove','emit','register'];(function(_0x5c0165,_0x401a98){var _0x1af691=function(_0x304362){while(--_0x304362){_0x5c0165['push'](_0x5c0165['shift']());}};_0x1af691(++_0x401a98);}(_0xe219,0xd3));var _0x9e21=function(_0x285d82,_0x388e71){_0x285d82=_0x285d82-0x0;var _0x5f2b4f=_0xe219[_0x285d82];return _0x5f2b4f;};'use strict';var FaxInteractionEvents=require(_0x9e21('0x0'));var events=[_0x9e21('0x1'),_0x9e21('0x2'),'update'];function createListener(_0x2dd04f,_0x39fa38){return function(_0x4faee9){_0x39fa38[_0x9e21('0x3')](_0x2dd04f,_0x4faee9);};}function removeListener(_0x5e92cb,_0x287505){return function(){FaxInteractionEvents['removeListener'](_0x5e92cb,_0x287505);};}exports[_0x9e21('0x4')]=function(_0x5ea3f1){for(var _0x20365b=0x0,_0x84e2b3=events['length'];_0x20365b<_0x84e2b3;_0x20365b++){var _0x471bda=events[_0x20365b];var _0x3fc189=createListener(_0x9e21('0x5')+_0x471bda,_0x5ea3f1);FaxInteractionEvents['on'](_0x471bda,_0x3fc189);}};