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 _0x994a=['save','remove','update','emit','length','mailInteraction:'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x994a,0x126));var _0xa994=function(_0x38c7c4,_0x1f2860){_0x38c7c4=_0x38c7c4-0x0;var _0x30d84a=_0x994a[_0x38c7c4];return _0x30d84a;};'use strict';var MailInteractionEvents=require('./mailInteraction.events');var events=[_0xa994('0x0'),_0xa994('0x1'),_0xa994('0x2')];function createListener(_0x4474d3,_0x1f5fe4){return function(_0x39f284){_0x1f5fe4[_0xa994('0x3')](_0x4474d3,_0x39f284);};}function removeListener(_0x15dbd5,_0x2a210f){return function(){MailInteractionEvents['removeListener'](_0x15dbd5,_0x2a210f);};}exports['register']=function(_0x424910){for(var _0x37024b=0x0,_0x328f85=events[_0xa994('0x4')];_0x37024b<_0x328f85;_0x37024b++){var _0xa7bddf=events[_0x37024b];var _0x1481e1=createListener(_0xa994('0x5')+_0xa7bddf,_0x424910);MailInteractionEvents['on'](_0xa7bddf,_0x1481e1);}};