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 _0x86f7=['removeListener','register','faxInteraction:','remove','update','emit'];(function(_0x21b706,_0x1022f4){var _0x13b94a=function(_0x3116da){while(--_0x3116da){_0x21b706['push'](_0x21b706['shift']());}};_0x13b94a(++_0x1022f4);}(_0x86f7,0x195));var _0x786f=function(_0x122096,_0x60c295){_0x122096=_0x122096-0x0;var _0x3d1966=_0x86f7[_0x122096];return _0x3d1966;};'use strict';var FaxInteractionEvents=require('./faxInteraction.events');var events=['save',_0x786f('0x0'),_0x786f('0x1')];function createListener(_0x18067f,_0x438ad8){return function(_0x5536a3){_0x438ad8[_0x786f('0x2')](_0x18067f,_0x5536a3);};}function removeListener(_0x5eeca4,_0x3786c4){return function(){FaxInteractionEvents[_0x786f('0x3')](_0x5eeca4,_0x3786c4);};}exports[_0x786f('0x4')]=function(_0x30f78e){for(var _0x2af30b=0x0,_0x558a13=events['length'];_0x2af30b<_0x558a13;_0x2af30b++){var _0x301d9c=events[_0x2af30b];var _0x26a506=createListener(_0x786f('0x5')+_0x301d9c,_0x30f78e);FaxInteractionEvents['on'](_0x301d9c,_0x26a506);}};