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 _0x3e74=['update','emit','removeListener','register','remove'];(function(_0x21f28f,_0x3be6b8){var _0x180f21=function(_0x4be8ac){while(--_0x4be8ac){_0x21f28f['push'](_0x21f28f['shift']());}};_0x180f21(++_0x3be6b8);}(_0x3e74,0x1e4));var _0x43e7=function(_0x969bf8,_0x4f0529){_0x969bf8=_0x969bf8-0x0;var _0x1eac62=_0x3e74[_0x969bf8];return _0x1eac62;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=['save',_0x43e7('0x0'),_0x43e7('0x1')];function createListener(_0x58d1e6,_0x1aa252){return function(_0x227995){_0x1aa252[_0x43e7('0x2')](_0x58d1e6,_0x227995);};}function removeListener(_0x145004,_0x1b9f5d){return function(){MailQueueEvents[_0x43e7('0x3')](_0x145004,_0x1b9f5d);};}exports[_0x43e7('0x4')]=function(_0x322cc9){for(var _0x43bf32=0x0,_0x50fe45=events['length'];_0x43bf32<_0x50fe45;_0x43bf32++){var _0x4abe5e=events[_0x43bf32];var _0x2917a3=createListener('mailQueue:'+_0x4abe5e,_0x322cc9);MailQueueEvents['on'](_0x4abe5e,_0x2917a3);}};