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 _0x9f01=['update','register','mailInteraction:','save','remove'];(function(_0x193879,_0x268abc){var _0x34a302=function(_0x432608){while(--_0x432608){_0x193879['push'](_0x193879['shift']());}};_0x34a302(++_0x268abc);}(_0x9f01,0x9e));var _0x19f0=function(_0x498580,_0x784ee2){_0x498580=_0x498580-0x0;var _0x4ab3ee=_0x9f01[_0x498580];return _0x4ab3ee;};'use strict';var MailInteractionEvents=require('./mailInteraction.events');var events=[_0x19f0('0x0'),_0x19f0('0x1'),_0x19f0('0x2')];function createListener(_0x3ef415,_0x5f08ed){return function(_0x297eb6){_0x5f08ed['emit'](_0x3ef415,_0x297eb6);};}function removeListener(_0x2e0841,_0x1e6412){return function(){MailInteractionEvents['removeListener'](_0x2e0841,_0x1e6412);};}exports[_0x19f0('0x3')]=function(_0x573610){for(var _0x274dd3=0x0,_0x39d78d=events['length'];_0x274dd3<_0x39d78d;_0x274dd3++){var _0x48559c=events[_0x274dd3];var _0x5047a3=createListener(_0x19f0('0x4')+_0x48559c,_0x573610);MailInteractionEvents['on'](_0x48559c,_0x5047a3);}};