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 _0xc267=['update','emit','removeListener','register','length','save','remove'];(function(_0x2bcafe,_0x47b554){var _0x3d5e56=function(_0x15b056){while(--_0x15b056){_0x2bcafe['push'](_0x2bcafe['shift']());}};_0x3d5e56(++_0x47b554);}(_0xc267,0x67));var _0x7c26=function(_0x1dd997,_0x578bf5){_0x1dd997=_0x1dd997-0x0;var _0x440e4b=_0xc267[_0x1dd997];return _0x440e4b;};'use strict';var MailInteractionEvents=require('./mailInteraction.events');var events=[_0x7c26('0x0'),_0x7c26('0x1'),_0x7c26('0x2')];function createListener(_0x5def0e,_0x551639){return function(_0x5d9ad0){_0x551639[_0x7c26('0x3')](_0x5def0e,_0x5d9ad0);};}function removeListener(_0x40d31f,_0x197f99){return function(){MailInteractionEvents[_0x7c26('0x4')](_0x40d31f,_0x197f99);};}exports[_0x7c26('0x5')]=function(_0x1fcf29){for(var _0x7e8adb=0x0,_0x15bffd=events[_0x7c26('0x6')];_0x7e8adb<_0x15bffd;_0x7e8adb++){var _0xff6e8e=events[_0x7e8adb];var _0xc3d735=createListener('mailInteraction:'+_0xff6e8e,_0x1fcf29);MailInteractionEvents['on'](_0xff6e8e,_0xc3d735);}};