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 _0xd763=['register','length','update','emit','removeListener'];(function(_0x24dd09,_0x124407){var _0x191ba8=function(_0x4439c4){while(--_0x4439c4){_0x24dd09['push'](_0x24dd09['shift']());}};_0x191ba8(++_0x124407);}(_0xd763,0x17e));var _0x3d76=function(_0x342baa,_0x4a110f){_0x342baa=_0x342baa-0x0;var _0x1208f3=_0xd763[_0x342baa];return _0x1208f3;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=['save','remove',_0x3d76('0x0')];function createListener(_0x2eb22c,_0x1f7695){return function(_0x4908a4){_0x1f7695[_0x3d76('0x1')](_0x2eb22c,_0x4908a4);};}function removeListener(_0xe0258f,_0x1568cf){return function(){MailQueueEvents[_0x3d76('0x2')](_0xe0258f,_0x1568cf);};}exports[_0x3d76('0x3')]=function(_0x78edc2){for(var _0x1b94dd=0x0,_0x1ed389=events[_0x3d76('0x4')];_0x1b94dd<_0x1ed389;_0x1b94dd++){var _0x2010f4=events[_0x1b94dd];var _0x5df795=createListener('mailQueue:'+_0x2010f4,_0x78edc2);MailQueueEvents['on'](_0x2010f4,_0x5df795);}};