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 _0xbc4a=['faxInteraction:','./faxInteraction.events','remove','update','emit','removeListener','length'];(function(_0x5ce86e,_0x2252e7){var _0x23101a=function(_0x4033b2){while(--_0x4033b2){_0x5ce86e['push'](_0x5ce86e['shift']());}};_0x23101a(++_0x2252e7);}(_0xbc4a,0xe1));var _0xabc4=function(_0x21f3a7,_0x5286b9){_0x21f3a7=_0x21f3a7-0x0;var _0x203fdf=_0xbc4a[_0x21f3a7];return _0x203fdf;};'use strict';var FaxInteractionEvents=require(_0xabc4('0x0'));var events=['save',_0xabc4('0x1'),_0xabc4('0x2')];function createListener(_0x5ac9b9,_0x65d9c4){return function(_0x1e1754){_0x65d9c4[_0xabc4('0x3')](_0x5ac9b9,_0x1e1754);};}function removeListener(_0x561923,_0x1089cc){return function(){FaxInteractionEvents[_0xabc4('0x4')](_0x561923,_0x1089cc);};}exports['register']=function(_0x21b1a9){for(var _0x5d4792=0x0,_0x389f64=events[_0xabc4('0x5')];_0x5d4792<_0x389f64;_0x5d4792++){var _0x28081a=events[_0x5d4792];var _0x52ea0e=createListener(_0xabc4('0x6')+_0x28081a,_0x21b1a9);FaxInteractionEvents['on'](_0x28081a,_0x52ea0e);}};