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 _0xe1c4=['mailInteraction:','./mailInteraction.events','save','update','removeListener','register','length'];(function(_0x1f07c8,_0x1aed26){var _0x538d21=function(_0x486663){while(--_0x486663){_0x1f07c8['push'](_0x1f07c8['shift']());}};_0x538d21(++_0x1aed26);}(_0xe1c4,0x15f));var _0x4e1c=function(_0x2645c0,_0x4c3208){_0x2645c0=_0x2645c0-0x0;var _0x40a7a1=_0xe1c4[_0x2645c0];return _0x40a7a1;};'use strict';var MailInteractionEvents=require(_0x4e1c('0x0'));var events=[_0x4e1c('0x1'),'remove',_0x4e1c('0x2')];function createListener(_0x4b46b6,_0x2e73d5){return function(_0x46d1a8){_0x2e73d5['emit'](_0x4b46b6,_0x46d1a8);};}function removeListener(_0x1925cc,_0x4fcc79){return function(){MailInteractionEvents[_0x4e1c('0x3')](_0x1925cc,_0x4fcc79);};}exports[_0x4e1c('0x4')]=function(_0x4e755b){for(var _0x30dc93=0x0,_0x3e9208=events[_0x4e1c('0x5')];_0x30dc93<_0x3e9208;_0x30dc93++){var _0x598577=events[_0x30dc93];var _0x33a4c2=createListener(_0x4e1c('0x6')+_0x598577,_0x4e755b);MailInteractionEvents['on'](_0x598577,_0x33a4c2);}};