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 _0x32d1=['emit','removeListener','./mailInteraction.events','save','remove','update'];(function(_0x3237f6,_0x52e6dd){var _0x26a719=function(_0x308f17){while(--_0x308f17){_0x3237f6['push'](_0x3237f6['shift']());}};_0x26a719(++_0x52e6dd);}(_0x32d1,0x110));var _0x132d=function(_0x4d3ca6,_0xc33ee5){_0x4d3ca6=_0x4d3ca6-0x0;var _0x46c604=_0x32d1[_0x4d3ca6];return _0x46c604;};'use strict';var MailInteractionEvents=require(_0x132d('0x0'));var events=[_0x132d('0x1'),_0x132d('0x2'),_0x132d('0x3')];function createListener(_0x5e134c,_0x2f2b97){return function(_0x541f6b){_0x2f2b97[_0x132d('0x4')](_0x5e134c,_0x541f6b);};}function removeListener(_0x10e13a,_0x3d5880){return function(){MailInteractionEvents[_0x132d('0x5')](_0x10e13a,_0x3d5880);};}exports['register']=function(_0x1560c3){for(var _0x7762e0=0x0,_0x3a4699=events['length'];_0x7762e0<_0x3a4699;_0x7762e0++){var _0x475200=events[_0x7762e0];var _0x387042=createListener('mailInteraction:'+_0x475200,_0x1560c3);MailInteractionEvents['on'](_0x475200,_0x387042);}};