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 _0x8080=['register','mailInteraction:','./mailInteraction.events','save','remove','update','emit'];(function(_0x4e9c18,_0x5f42eb){var _0x4e060=function(_0x287ecd){while(--_0x287ecd){_0x4e9c18['push'](_0x4e9c18['shift']());}};_0x4e060(++_0x5f42eb);}(_0x8080,0x152));var _0x0808=function(_0xe6ce5f,_0x24a05a){_0xe6ce5f=_0xe6ce5f-0x0;var _0x2af5a9=_0x8080[_0xe6ce5f];return _0x2af5a9;};'use strict';var MailInteractionEvents=require(_0x0808('0x0'));var events=[_0x0808('0x1'),_0x0808('0x2'),_0x0808('0x3')];function createListener(_0x537d79,_0x172d56){return function(_0x134518){_0x172d56[_0x0808('0x4')](_0x537d79,_0x134518);};}function removeListener(_0x1a3338,_0x4c96f2){return function(){MailInteractionEvents['removeListener'](_0x1a3338,_0x4c96f2);};}exports[_0x0808('0x5')]=function(_0x12fbbc){for(var _0x1b9d99=0x0,_0x4e9bef=events['length'];_0x1b9d99<_0x4e9bef;_0x1b9d99++){var _0x32a931=events[_0x1b9d99];var _0x1fb485=createListener(_0x0808('0x6')+_0x32a931,_0x12fbbc);MailInteractionEvents['on'](_0x32a931,_0x1fb485);}};