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 _0x0381=['removeListener','length','mailQueue:','./mailQueue.events','remove','update','emit'];(function(_0x3344da,_0x1e7c74){var _0x1b0a2a=function(_0x229eb9){while(--_0x229eb9){_0x3344da['push'](_0x3344da['shift']());}};_0x1b0a2a(++_0x1e7c74);}(_0x0381,0x13e));var _0x1038=function(_0x460033,_0x23a271){_0x460033=_0x460033-0x0;var _0x2283da=_0x0381[_0x460033];return _0x2283da;};'use strict';var MailQueueEvents=require(_0x1038('0x0'));var events=['save',_0x1038('0x1'),_0x1038('0x2')];function createListener(_0x446505,_0xd452b){return function(_0x24dd40){_0xd452b[_0x1038('0x3')](_0x446505,_0x24dd40);};}function removeListener(_0x4de1e6,_0x211443){return function(){MailQueueEvents[_0x1038('0x4')](_0x4de1e6,_0x211443);};}exports['register']=function(_0x683150){for(var _0x3239f2=0x0,_0x3b1803=events[_0x1038('0x5')];_0x3239f2<_0x3b1803;_0x3239f2++){var _0x41334e=events[_0x3239f2];var _0x6e7e40=createListener(_0x1038('0x6')+_0x41334e,_0x683150);MailQueueEvents['on'](_0x41334e,_0x6e7e40);}};