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 _0x4baf=['save','update'];(function(_0x280421,_0x238fa1){var _0x328d92=function(_0x44308d){while(--_0x44308d){_0x280421['push'](_0x280421['shift']());}};_0x328d92(++_0x238fa1);}(_0x4baf,0x7a));var _0xf4ba=function(_0x14a526,_0x866ed2){_0x14a526=_0x14a526-0x0;var _0x17c048=_0x4baf[_0x14a526];return _0x17c048;};'use strict';var MailInteractionEvents=require('./mailInteraction.events');var events=[_0xf4ba('0x0'),'remove',_0xf4ba('0x1')];function createListener(_0x4edddb,_0x3460d8){return function(_0x1aeeb4){_0x3460d8['emit'](_0x4edddb,_0x1aeeb4);};}function removeListener(_0x132d47,_0x3e6622){return function(){MailInteractionEvents['removeListener'](_0x132d47,_0x3e6622);};}exports['register']=function(_0x58c6f8){for(var _0x94ce71=0x0,_0x4500c3=events['length'];_0x94ce71<_0x4500c3;_0x94ce71++){var _0x4f5fff=events[_0x94ce71];var _0x21ce11=createListener('mailInteraction:'+_0x4f5fff,_0x58c6f8);MailInteractionEvents['on'](_0x4f5fff,_0x21ce11);}};