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 _0x6d48=['length','faxInteraction:','./faxInteraction.events','save','update','emit','removeListener','register'];(function(_0x50a129,_0x9020af){var _0x36aab0=function(_0x43d2a0){while(--_0x43d2a0){_0x50a129['push'](_0x50a129['shift']());}};_0x36aab0(++_0x9020af);}(_0x6d48,0xca));var _0x86d4=function(_0x22c77d,_0x410a83){_0x22c77d=_0x22c77d-0x0;var _0x372a02=_0x6d48[_0x22c77d];return _0x372a02;};'use strict';var FaxInteractionEvents=require(_0x86d4('0x0'));var events=[_0x86d4('0x1'),'remove',_0x86d4('0x2')];function createListener(_0x2e4552,_0x3f742a){return function(_0x5c798f){_0x3f742a[_0x86d4('0x3')](_0x2e4552,_0x5c798f);};}function removeListener(_0x1f610b,_0x51fc0c){return function(){FaxInteractionEvents[_0x86d4('0x4')](_0x1f610b,_0x51fc0c);};}exports[_0x86d4('0x5')]=function(_0x1ca25a){for(var _0x31af95=0x0,_0x3ef4b6=events[_0x86d4('0x6')];_0x31af95<_0x3ef4b6;_0x31af95++){var _0x3f6aa7=events[_0x31af95];var _0x2cb240=createListener(_0x86d4('0x7')+_0x3f6aa7,_0x1ca25a);FaxInteractionEvents['on'](_0x3f6aa7,_0x2cb240);}};