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 _0xc778=['removeListener','register','length','mailInteraction:','./mailInteraction.events','save','remove','update'];(function(_0x250b06,_0x262b24){var _0x102a5c=function(_0x59fb1f){while(--_0x59fb1f){_0x250b06['push'](_0x250b06['shift']());}};_0x102a5c(++_0x262b24);}(_0xc778,0xb4));var _0x8c77=function(_0x57865e,_0x45a7b1){_0x57865e=_0x57865e-0x0;var _0x16e981=_0xc778[_0x57865e];return _0x16e981;};'use strict';var MailInteractionEvents=require(_0x8c77('0x0'));var events=[_0x8c77('0x1'),_0x8c77('0x2'),_0x8c77('0x3')];function createListener(_0x4afa58,_0x2094d5){return function(_0x4a3349){_0x2094d5['emit'](_0x4afa58,_0x4a3349);};}function removeListener(_0x310602,_0x24c6fc){return function(){MailInteractionEvents[_0x8c77('0x4')](_0x310602,_0x24c6fc);};}exports[_0x8c77('0x5')]=function(_0xe2b07d){for(var _0x2ae3a4=0x0,_0x419701=events[_0x8c77('0x6')];_0x2ae3a4<_0x419701;_0x2ae3a4++){var _0x38d4d4=events[_0x2ae3a4];var _0x9b05b8=createListener(_0x8c77('0x7')+_0x38d4d4,_0xe2b07d);MailInteractionEvents['on'](_0x38d4d4,_0x9b05b8);}};