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 _0x8c92=['./faxInteraction.events','save','update','removeListener','register','length','faxInteraction:'];(function(_0x5b174b,_0x404869){var _0x47ee37=function(_0x467947){while(--_0x467947){_0x5b174b['push'](_0x5b174b['shift']());}};_0x47ee37(++_0x404869);}(_0x8c92,0xbd));var _0x28c9=function(_0x218188,_0x579fe4){_0x218188=_0x218188-0x0;var _0x99e9fb=_0x8c92[_0x218188];return _0x99e9fb;};'use strict';var FaxInteractionEvents=require(_0x28c9('0x0'));var events=[_0x28c9('0x1'),'remove',_0x28c9('0x2')];function createListener(_0x2194cc,_0x15f1b9){return function(_0x1b596c){_0x15f1b9['emit'](_0x2194cc,_0x1b596c);};}function removeListener(_0x5535af,_0x2a35fc){return function(){FaxInteractionEvents[_0x28c9('0x3')](_0x5535af,_0x2a35fc);};}exports[_0x28c9('0x4')]=function(_0x5d1812){for(var _0x4e61c1=0x0,_0xd0b0db=events[_0x28c9('0x5')];_0x4e61c1<_0xd0b0db;_0x4e61c1++){var _0x527d5c=events[_0x4e61c1];var _0x5179c1=createListener(_0x28c9('0x6')+_0x527d5c,_0x5d1812);FaxInteractionEvents['on'](_0x527d5c,_0x5179c1);}};