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 _0x6876=['update','emit','register','./faxInteraction.events','save'];(function(_0x53daa4,_0x280976){var _0x4835c1=function(_0x4bcb64){while(--_0x4bcb64){_0x53daa4['push'](_0x53daa4['shift']());}};_0x4835c1(++_0x280976);}(_0x6876,0x193));var _0x6687=function(_0x26d9b3,_0x591f4e){_0x26d9b3=_0x26d9b3-0x0;var _0x15c226=_0x6876[_0x26d9b3];return _0x15c226;};'use strict';var FaxInteractionEvents=require(_0x6687('0x0'));var events=[_0x6687('0x1'),'remove',_0x6687('0x2')];function createListener(_0x20c72a,_0x54374f){return function(_0xf5288a){_0x54374f[_0x6687('0x3')](_0x20c72a,_0xf5288a);};}function removeListener(_0x24ab00,_0x497220){return function(){FaxInteractionEvents['removeListener'](_0x24ab00,_0x497220);};}exports[_0x6687('0x4')]=function(_0x7dd55c){for(var _0x45f205=0x0,_0x377a7b=events['length'];_0x45f205<_0x377a7b;_0x45f205++){var _0x583ed1=events[_0x45f205];var _0x134506=createListener('faxInteraction:'+_0x583ed1,_0x7dd55c);FaxInteractionEvents['on'](_0x583ed1,_0x134506);}};