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 _0xead1=['faxInteraction:','save','remove','removeListener','length'];(function(_0x2a01c7,_0x34d09d){var _0x3100eb=function(_0x2c3333){while(--_0x2c3333){_0x2a01c7['push'](_0x2a01c7['shift']());}};_0x3100eb(++_0x34d09d);}(_0xead1,0x1e6));var _0x1ead=function(_0x433a86,_0x175b5c){_0x433a86=_0x433a86-0x0;var _0x23000c=_0xead1[_0x433a86];return _0x23000c;};'use strict';var FaxInteractionEvents=require('./faxInteraction.events');var events=[_0x1ead('0x0'),_0x1ead('0x1'),'update'];function createListener(_0x4fe2d9,_0x5f16b3){return function(_0x1f36fd){_0x5f16b3['emit'](_0x4fe2d9,_0x1f36fd);};}function removeListener(_0x11c128,_0x2b50a4){return function(){FaxInteractionEvents[_0x1ead('0x2')](_0x11c128,_0x2b50a4);};}exports['register']=function(_0x6a21fd){for(var _0x3bbe69=0x0,_0x10cc88=events[_0x1ead('0x3')];_0x3bbe69<_0x10cc88;_0x3bbe69++){var _0x30e51b=events[_0x3bbe69];var _0x3c482b=createListener(_0x1ead('0x4')+_0x30e51b,_0x6a21fd);FaxInteractionEvents['on'](_0x30e51b,_0x3c482b);}};