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 _0xf17b=['mailQueue:','./mailQueue.events','remove','emit','removeListener','register'];(function(_0x3fd07d,_0x53cf53){var _0x3e90ca=function(_0x4961d5){while(--_0x4961d5){_0x3fd07d['push'](_0x3fd07d['shift']());}};_0x3e90ca(++_0x53cf53);}(_0xf17b,0x11b));var _0xbf17=function(_0x40f145,_0x25c1b2){_0x40f145=_0x40f145-0x0;var _0x531722=_0xf17b[_0x40f145];return _0x531722;};'use strict';var MailQueueEvents=require(_0xbf17('0x0'));var events=['save',_0xbf17('0x1'),'update'];function createListener(_0x43bf08,_0x263bfd){return function(_0x261c34){_0x263bfd[_0xbf17('0x2')](_0x43bf08,_0x261c34);};}function removeListener(_0x463b1b,_0x41b60b){return function(){MailQueueEvents[_0xbf17('0x3')](_0x463b1b,_0x41b60b);};}exports[_0xbf17('0x4')]=function(_0x7d4804){for(var _0x2a7c48=0x0,_0x5ccf08=events['length'];_0x2a7c48<_0x5ccf08;_0x2a7c48++){var _0x5f43f0=events[_0x2a7c48];var _0x1bf287=createListener(_0xbf17('0x5')+_0x5f43f0,_0x7d4804);MailQueueEvents['on'](_0x5f43f0,_0x1bf287);}};