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 _0x64fd=['removeListener','length','faxInteraction:','./faxInteraction.events','save','update','emit'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x64fd,0x81));var _0xd64f=function(_0x122096,_0x60c295){_0x122096=_0x122096-0x0;var _0x3d1966=_0x64fd[_0x122096];return _0x3d1966;};'use strict';var FaxInteractionEvents=require(_0xd64f('0x0'));var events=[_0xd64f('0x1'),'remove',_0xd64f('0x2')];function createListener(_0xd53571,_0x4e95fc){return function(_0x572244){_0x4e95fc[_0xd64f('0x3')](_0xd53571,_0x572244);};}function removeListener(_0x5e9b32,_0x26e6b3){return function(){FaxInteractionEvents[_0xd64f('0x4')](_0x5e9b32,_0x26e6b3);};}exports['register']=function(_0x26fba1){for(var _0x3fbaed=0x0,_0x188ef6=events[_0xd64f('0x5')];_0x3fbaed<_0x188ef6;_0x3fbaed++){var _0x14a83f=events[_0x3fbaed];var _0x22f6ae=createListener(_0xd64f('0x6')+_0x14a83f,_0x26fba1);FaxInteractionEvents['on'](_0x14a83f,_0x22f6ae);}};