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 _0xd125=['removeListener','length','save','remove','update','emit'];(function(_0x1c8c28,_0x3ee093){var _0x1f59b4=function(_0x29bcc0){while(--_0x29bcc0){_0x1c8c28['push'](_0x1c8c28['shift']());}};_0x1f59b4(++_0x3ee093);}(_0xd125,0x92));var _0x5d12=function(_0x52614d,_0x237e94){_0x52614d=_0x52614d-0x0;var _0xbf2ec0=_0xd125[_0x52614d];return _0xbf2ec0;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=[_0x5d12('0x0'),_0x5d12('0x1'),_0x5d12('0x2')];function createListener(_0xd171cb,_0x11b38f){return function(_0x589227){_0x11b38f[_0x5d12('0x3')](_0xd171cb,_0x589227);};}function removeListener(_0x2a1291,_0x549b72){return function(){MailQueueEvents[_0x5d12('0x4')](_0x2a1291,_0x549b72);};}exports['register']=function(_0x41bae4){for(var _0xe9bee9=0x0,_0x22f260=events[_0x5d12('0x5')];_0xe9bee9<_0x22f260;_0xe9bee9++){var _0x17b1d6=events[_0xe9bee9];var _0x2d71f2=createListener('mailQueue:'+_0x17b1d6,_0x41bae4);MailQueueEvents['on'](_0x17b1d6,_0x2d71f2);}};