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 _0x7c3d=['removeListener','register','length','mailInteraction:','./mailInteraction.events','update'];(function(_0x4f4c2a,_0x5f5a28){var _0xd15be6=function(_0x1bc725){while(--_0x1bc725){_0x4f4c2a['push'](_0x4f4c2a['shift']());}};_0xd15be6(++_0x5f5a28);}(_0x7c3d,0x166));var _0xd7c3=function(_0x1416ff,_0x49f1e1){_0x1416ff=_0x1416ff-0x0;var _0x4e28e0=_0x7c3d[_0x1416ff];return _0x4e28e0;};'use strict';var MailInteractionEvents=require(_0xd7c3('0x0'));var events=['save','remove',_0xd7c3('0x1')];function createListener(_0x3d3641,_0x49ade9){return function(_0x1ebf2b){_0x49ade9['emit'](_0x3d3641,_0x1ebf2b);};}function removeListener(_0x1d9347,_0x195573){return function(){MailInteractionEvents[_0xd7c3('0x2')](_0x1d9347,_0x195573);};}exports[_0xd7c3('0x3')]=function(_0x5ecb7d){for(var _0x2b426e=0x0,_0x4e5f54=events[_0xd7c3('0x4')];_0x2b426e<_0x4e5f54;_0x2b426e++){var _0x31db52=events[_0x2b426e];var _0x498030=createListener(_0xd7c3('0x5')+_0x31db52,_0x5ecb7d);MailInteractionEvents['on'](_0x31db52,_0x498030);}};