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 _0x9146=['removeListener','register','length','mailInteraction:','./mailInteraction.events','remove','update','emit'];(function(_0x5e086a,_0x40e5d9){var _0x357a79=function(_0xc860e2){while(--_0xc860e2){_0x5e086a['push'](_0x5e086a['shift']());}};_0x357a79(++_0x40e5d9);}(_0x9146,0x74));var _0x6914=function(_0xd0cd0b,_0x490956){_0xd0cd0b=_0xd0cd0b-0x0;var _0x59cced=_0x9146[_0xd0cd0b];return _0x59cced;};'use strict';var MailInteractionEvents=require(_0x6914('0x0'));var events=['save',_0x6914('0x1'),_0x6914('0x2')];function createListener(_0x1e64b6,_0x7c1f27){return function(_0x1b3ff7){_0x7c1f27[_0x6914('0x3')](_0x1e64b6,_0x1b3ff7);};}function removeListener(_0x50a9c2,_0x413528){return function(){MailInteractionEvents[_0x6914('0x4')](_0x50a9c2,_0x413528);};}exports[_0x6914('0x5')]=function(_0x15dbc0){for(var _0x13fb70=0x0,_0x5042e3=events[_0x6914('0x6')];_0x13fb70<_0x5042e3;_0x13fb70++){var _0x1906ae=events[_0x13fb70];var _0x3e154f=createListener(_0x6914('0x7')+_0x1906ae,_0x15dbc0);MailInteractionEvents['on'](_0x1906ae,_0x3e154f);}};