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 _0xfbc8=['removeListener','register','mailInteraction:','./mailInteraction.events','save','remove','update','emit'];(function(_0xc7301f,_0x5cb8ef){var _0x5f1b18=function(_0x460409){while(--_0x460409){_0xc7301f['push'](_0xc7301f['shift']());}};_0x5f1b18(++_0x5cb8ef);}(_0xfbc8,0x143));var _0x8fbc=function(_0x55c3d9,_0x3bf75c){_0x55c3d9=_0x55c3d9-0x0;var _0x19fd97=_0xfbc8[_0x55c3d9];return _0x19fd97;};'use strict';var MailInteractionEvents=require(_0x8fbc('0x0'));var events=[_0x8fbc('0x1'),_0x8fbc('0x2'),_0x8fbc('0x3')];function createListener(_0x5d0678,_0x5663b8){return function(_0x30b12d){_0x5663b8[_0x8fbc('0x4')](_0x5d0678,_0x30b12d);};}function removeListener(_0x5802a7,_0x3f20b9){return function(){MailInteractionEvents[_0x8fbc('0x5')](_0x5802a7,_0x3f20b9);};}exports[_0x8fbc('0x6')]=function(_0x229096){for(var _0x4cde38=0x0,_0x3b36aa=events['length'];_0x4cde38<_0x3b36aa;_0x4cde38++){var _0xe3a469=events[_0x4cde38];var _0x12252b=createListener(_0x8fbc('0x7')+_0xe3a469,_0x229096);MailInteractionEvents['on'](_0xe3a469,_0x12252b);}};