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 _0x43a2=['register','length','faxInteraction:','update','emit','removeListener'];(function(_0x4235e3,_0x3b63dc){var _0x2907c1=function(_0x6aadfa){while(--_0x6aadfa){_0x4235e3['push'](_0x4235e3['shift']());}};_0x2907c1(++_0x3b63dc);}(_0x43a2,0x69));var _0x243a=function(_0x5c299f,_0x59ea94){_0x5c299f=_0x5c299f-0x0;var _0x5f1aa4=_0x43a2[_0x5c299f];return _0x5f1aa4;};'use strict';var FaxInteractionEvents=require('./faxInteraction.events');var events=['save','remove',_0x243a('0x0')];function createListener(_0x32cad0,_0x30a072){return function(_0x45a48e){_0x30a072[_0x243a('0x1')](_0x32cad0,_0x45a48e);};}function removeListener(_0x12be63,_0x33acc1){return function(){FaxInteractionEvents[_0x243a('0x2')](_0x12be63,_0x33acc1);};}exports[_0x243a('0x3')]=function(_0x4192f3){for(var _0x32fdc4=0x0,_0x19c01f=events[_0x243a('0x4')];_0x32fdc4<_0x19c01f;_0x32fdc4++){var _0x33b955=events[_0x32fdc4];var _0x15d21f=createListener(_0x243a('0x5')+_0x33b955,_0x4192f3);FaxInteractionEvents['on'](_0x33b955,_0x15d21f);}};