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 _0xedf5=['faxInteraction:','save','remove'];(function(_0x172498,_0x399914){var _0x4f1100=function(_0x4b7122){while(--_0x4b7122){_0x172498['push'](_0x172498['shift']());}};_0x4f1100(++_0x399914);}(_0xedf5,0x157));var _0x5edf=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xedf5[_0x14add3];return _0x4a174f;};'use strict';var FaxInteractionEvents=require('./faxInteraction.events');var events=[_0x5edf('0x0'),_0x5edf('0x1'),'update'];function createListener(_0x482c84,_0x130dfe){return function(_0x30f40e){_0x130dfe['emit'](_0x482c84,_0x30f40e);};}function removeListener(_0x27560e,_0x4cc862){return function(){FaxInteractionEvents['removeListener'](_0x27560e,_0x4cc862);};}exports['register']=function(_0x2978c5){for(var _0x4a256e=0x0,_0x5da536=events['length'];_0x4a256e<_0x5da536;_0x4a256e++){var _0x2c69cc=events[_0x4a256e];var _0x49a0d5=createListener(_0x5edf('0x2')+_0x2c69cc,_0x2978c5);FaxInteractionEvents['on'](_0x2c69cc,_0x49a0d5);}};