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 _0xd443=['emit','removeListener','register','length','./mailInteraction.events','save','remove','update'];(function(_0x48def,_0x4840e6){var _0x3af853=function(_0x3e6aa0){while(--_0x3e6aa0){_0x48def['push'](_0x48def['shift']());}};_0x3af853(++_0x4840e6);}(_0xd443,0x15c));var _0x3d44=function(_0x25700c,_0x543afc){_0x25700c=_0x25700c-0x0;var _0x2fb64a=_0xd443[_0x25700c];return _0x2fb64a;};'use strict';var MailInteractionEvents=require(_0x3d44('0x0'));var events=[_0x3d44('0x1'),_0x3d44('0x2'),_0x3d44('0x3')];function createListener(_0x13cf62,_0x25ed65){return function(_0x224431){_0x25ed65[_0x3d44('0x4')](_0x13cf62,_0x224431);};}function removeListener(_0x1b3a42,_0xdde386){return function(){MailInteractionEvents[_0x3d44('0x5')](_0x1b3a42,_0xdde386);};}exports[_0x3d44('0x6')]=function(_0x4e642d){for(var _0x51b529=0x0,_0x2f6e99=events[_0x3d44('0x7')];_0x51b529<_0x2f6e99;_0x51b529++){var _0xb482e2=events[_0x51b529];var _0x53b489=createListener('mailInteraction:'+_0xb482e2,_0x4e642d);MailInteractionEvents['on'](_0xb482e2,_0x53b489);}};