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 _0x93c5=['./mailInteraction.events','remove','update','emit','register','length','mailInteraction:'];(function(_0x9cd4c3,_0x1c9b2c){var _0x4c9025=function(_0x25b3c6){while(--_0x25b3c6){_0x9cd4c3['push'](_0x9cd4c3['shift']());}};_0x4c9025(++_0x1c9b2c);}(_0x93c5,0x188));var _0x593c=function(_0x122096,_0x60c295){_0x122096=_0x122096-0x0;var _0x3d1966=_0x93c5[_0x122096];return _0x3d1966;};'use strict';var MailInteractionEvents=require(_0x593c('0x0'));var events=['save',_0x593c('0x1'),_0x593c('0x2')];function createListener(_0x24b606,_0x399ebe){return function(_0x5b161d){_0x399ebe[_0x593c('0x3')](_0x24b606,_0x5b161d);};}function removeListener(_0x5cf829,_0x31eb0e){return function(){MailInteractionEvents['removeListener'](_0x5cf829,_0x31eb0e);};}exports[_0x593c('0x4')]=function(_0x54ffb9){for(var _0x12f8b7=0x0,_0x521e60=events[_0x593c('0x5')];_0x12f8b7<_0x521e60;_0x12f8b7++){var _0x5bb631=events[_0x12f8b7];var _0x119bc4=createListener(_0x593c('0x6')+_0x5bb631,_0x54ffb9);MailInteractionEvents['on'](_0x5bb631,_0x119bc4);}};