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 _0x7cc4=['remove','update','emit','length','save'];(function(_0x4a7631,_0x2c85b9){var _0x1a5a6f=function(_0x1ee3fd){while(--_0x1ee3fd){_0x4a7631['push'](_0x4a7631['shift']());}};_0x1a5a6f(++_0x2c85b9);}(_0x7cc4,0x1a8));var _0x47cc=function(_0x28b0a4,_0x2ea758){_0x28b0a4=_0x28b0a4-0x0;var _0x105ce6=_0x7cc4[_0x28b0a4];return _0x105ce6;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=[_0x47cc('0x0'),_0x47cc('0x1'),_0x47cc('0x2')];function createListener(_0x1e7bbf,_0x2682c7){return function(_0x138e40){_0x2682c7[_0x47cc('0x3')](_0x1e7bbf,_0x138e40);};}function removeListener(_0x515da9,_0x364ac6){return function(){MailQueueEvents['removeListener'](_0x515da9,_0x364ac6);};}exports['register']=function(_0x347672){for(var _0x4aab27=0x0,_0x2a9b7f=events[_0x47cc('0x4')];_0x4aab27<_0x2a9b7f;_0x4aab27++){var _0x21f13e=events[_0x4aab27];var _0x6718f7=createListener('mailQueue:'+_0x21f13e,_0x347672);MailQueueEvents['on'](_0x21f13e,_0x6718f7);}};