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 _0x0acd=['register','mailInteraction:','./mailInteraction.events','save','emit'];(function(_0x2344ac,_0x1362f6){var _0x59b3ec=function(_0x5407d1){while(--_0x5407d1){_0x2344ac['push'](_0x2344ac['shift']());}};_0x59b3ec(++_0x1362f6);}(_0x0acd,0x106));var _0xd0ac=function(_0x5c119b,_0x319e4e){_0x5c119b=_0x5c119b-0x0;var _0x208264=_0x0acd[_0x5c119b];return _0x208264;};'use strict';var MailInteractionEvents=require(_0xd0ac('0x0'));var events=[_0xd0ac('0x1'),'remove','update'];function createListener(_0xe0b895,_0x174c85){return function(_0x1c5bdc){_0x174c85[_0xd0ac('0x2')](_0xe0b895,_0x1c5bdc);};}function removeListener(_0x5c11d8,_0x51d21f){return function(){MailInteractionEvents['removeListener'](_0x5c11d8,_0x51d21f);};}exports[_0xd0ac('0x3')]=function(_0x4a326c){for(var _0x5d6d1c=0x0,_0x9e8afd=events['length'];_0x5d6d1c<_0x9e8afd;_0x5d6d1c++){var _0x5dc405=events[_0x5d6d1c];var _0x1c8f9=createListener(_0xd0ac('0x4')+_0x5dc405,_0x4a326c);MailInteractionEvents['on'](_0x5dc405,_0x1c8f9);}};