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 _0x653d=['remove','update','removeListener','register','length','mailInteraction:','./mailInteraction.events'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0x653d,0xdf));var _0xd653=function(_0x121336,_0x3370ea){_0x121336=_0x121336-0x0;var _0x53ff9f=_0x653d[_0x121336];return _0x53ff9f;};'use strict';var MailInteractionEvents=require(_0xd653('0x0'));var events=['save',_0xd653('0x1'),_0xd653('0x2')];function createListener(_0xd33897,_0x63efd6){return function(_0x38cce8){_0x63efd6['emit'](_0xd33897,_0x38cce8);};}function removeListener(_0x2954db,_0x3033dc){return function(){MailInteractionEvents[_0xd653('0x3')](_0x2954db,_0x3033dc);};}exports[_0xd653('0x4')]=function(_0x292ec1){for(var _0x11902a=0x0,_0xd73b50=events[_0xd653('0x5')];_0x11902a<_0xd73b50;_0x11902a++){var _0x29198b=events[_0x11902a];var _0xb4e0f7=createListener(_0xd653('0x6')+_0x29198b,_0x292ec1);MailInteractionEvents['on'](_0x29198b,_0xb4e0f7);}};