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 _0xd96e=['save','remove','update','register','length','./mailQueue.events'];(function(_0x1bd282,_0x3d7112){var _0x3c7463=function(_0x5f4638){while(--_0x5f4638){_0x1bd282['push'](_0x1bd282['shift']());}};_0x3c7463(++_0x3d7112);}(_0xd96e,0x1f1));var _0xed96=function(_0x32961c,_0x4998d7){_0x32961c=_0x32961c-0x0;var _0x21a2ea=_0xd96e[_0x32961c];return _0x21a2ea;};'use strict';var MailQueueEvents=require(_0xed96('0x0'));var events=[_0xed96('0x1'),_0xed96('0x2'),_0xed96('0x3')];function createListener(_0x51fe9b,_0x614080){return function(_0x499deb){_0x614080['emit'](_0x51fe9b,_0x499deb);};}function removeListener(_0x45a040,_0x4f3491){return function(){MailQueueEvents['removeListener'](_0x45a040,_0x4f3491);};}exports[_0xed96('0x4')]=function(_0x355c8b){for(var _0x27d7b0=0x0,_0x296149=events[_0xed96('0x5')];_0x27d7b0<_0x296149;_0x27d7b0++){var _0x3543d5=events[_0x27d7b0];var _0x3af009=createListener('mailQueue:'+_0x3543d5,_0x355c8b);MailQueueEvents['on'](_0x3543d5,_0x3af009);}};