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 _0xd6ae=['faxInteraction:','save','remove','update','removeListener','register','length'];(function(_0x465a0c,_0x19d4d5){var _0x1e202e=function(_0x27bd8a){while(--_0x27bd8a){_0x465a0c['push'](_0x465a0c['shift']());}};_0x1e202e(++_0x19d4d5);}(_0xd6ae,0xf6));var _0xed6a=function(_0x3481a9,_0x5f4963){_0x3481a9=_0x3481a9-0x0;var _0xe7222f=_0xd6ae[_0x3481a9];return _0xe7222f;};'use strict';var FaxInteractionEvents=require('./faxInteraction.events');var events=[_0xed6a('0x0'),_0xed6a('0x1'),_0xed6a('0x2')];function createListener(_0x12a305,_0x2a44e4){return function(_0x40ab9b){_0x2a44e4['emit'](_0x12a305,_0x40ab9b);};}function removeListener(_0x5583bc,_0x48618a){return function(){FaxInteractionEvents[_0xed6a('0x3')](_0x5583bc,_0x48618a);};}exports[_0xed6a('0x4')]=function(_0x465e65){for(var _0x5a769c=0x0,_0x1bfe2c=events[_0xed6a('0x5')];_0x5a769c<_0x1bfe2c;_0x5a769c++){var _0x1d8f40=events[_0x5a769c];var _0x2861f4=createListener(_0xed6a('0x6')+_0x1d8f40,_0x465e65);FaxInteractionEvents['on'](_0x1d8f40,_0x2861f4);}};