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 _0xc934=['update','emit','faxInteraction:','./faxInteraction.events','save','remove'];(function(_0x2f163d,_0x40185b){var _0x11e1ed=function(_0x5d570b){while(--_0x5d570b){_0x2f163d['push'](_0x2f163d['shift']());}};_0x11e1ed(++_0x40185b);}(_0xc934,0x18f));var _0x4c93=function(_0xf72c35,_0x210584){_0xf72c35=_0xf72c35-0x0;var _0x3b6009=_0xc934[_0xf72c35];return _0x3b6009;};'use strict';var FaxInteractionEvents=require(_0x4c93('0x0'));var events=[_0x4c93('0x1'),_0x4c93('0x2'),_0x4c93('0x3')];function createListener(_0x51aca5,_0x3b4fdf){return function(_0x54708b){_0x3b4fdf[_0x4c93('0x4')](_0x51aca5,_0x54708b);};}function removeListener(_0x1f66d2,_0x19ca67){return function(){FaxInteractionEvents['removeListener'](_0x1f66d2,_0x19ca67);};}exports['register']=function(_0xb7f752){for(var _0x53147a=0x0,_0xc1d3f1=events['length'];_0x53147a<_0xc1d3f1;_0x53147a++){var _0x3cfe1b=events[_0x53147a];var _0x3d1fac=createListener(_0x4c93('0x5')+_0x3cfe1b,_0xb7f752);FaxInteractionEvents['on'](_0x3cfe1b,_0x3d1fac);}};