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 _0xb603=['register','faxInteraction:','save','remove','update','emit','removeListener'];(function(_0x333954,_0x55052c){var _0x2c574e=function(_0x40f099){while(--_0x40f099){_0x333954['push'](_0x333954['shift']());}};_0x2c574e(++_0x55052c);}(_0xb603,0x12f));var _0x3b60=function(_0x29d94e,_0xf386d6){_0x29d94e=_0x29d94e-0x0;var _0x106237=_0xb603[_0x29d94e];return _0x106237;};'use strict';var FaxInteractionEvents=require('./faxInteraction.events');var events=[_0x3b60('0x0'),_0x3b60('0x1'),_0x3b60('0x2')];function createListener(_0x39219b,_0x18ca55){return function(_0x5127ab){_0x18ca55[_0x3b60('0x3')](_0x39219b,_0x5127ab);};}function removeListener(_0x37c268,_0x1905c2){return function(){FaxInteractionEvents[_0x3b60('0x4')](_0x37c268,_0x1905c2);};}exports[_0x3b60('0x5')]=function(_0x16fcdc){for(var _0xbbc5fe=0x0,_0x5ab92c=events['length'];_0xbbc5fe<_0x5ab92c;_0xbbc5fe++){var _0x383447=events[_0xbbc5fe];var _0x1a5316=createListener(_0x3b60('0x6')+_0x383447,_0x16fcdc);FaxInteractionEvents['on'](_0x383447,_0x1a5316);}};