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 _0x5d0f=['./mailInteraction.events','save','remove','emit','removeListener','register','mailInteraction:'];(function(_0x1abc9f,_0x29db67){var _0x479049=function(_0x278afc){while(--_0x278afc){_0x1abc9f['push'](_0x1abc9f['shift']());}};_0x479049(++_0x29db67);}(_0x5d0f,0x15e));var _0xf5d0=function(_0x228641,_0x25d636){_0x228641=_0x228641-0x0;var _0x5d5d78=_0x5d0f[_0x228641];return _0x5d5d78;};'use strict';var MailInteractionEvents=require(_0xf5d0('0x0'));var events=[_0xf5d0('0x1'),_0xf5d0('0x2'),'update'];function createListener(_0x1851f0,_0x5190f5){return function(_0x3b26cf){_0x5190f5[_0xf5d0('0x3')](_0x1851f0,_0x3b26cf);};}function removeListener(_0x5ee54f,_0x45022f){return function(){MailInteractionEvents[_0xf5d0('0x4')](_0x5ee54f,_0x45022f);};}exports[_0xf5d0('0x5')]=function(_0x87990d){for(var _0x3310f0=0x0,_0x553c5d=events['length'];_0x3310f0<_0x553c5d;_0x3310f0++){var _0x4bfa2a=events[_0x3310f0];var _0x59474b=createListener(_0xf5d0('0x6')+_0x4bfa2a,_0x87990d);MailInteractionEvents['on'](_0x4bfa2a,_0x59474b);}};