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 _0x4603=['save','emit','removeListener','register','length','mailQueue:','./mailQueue.events'];(function(_0x391ea9,_0x143522){var _0x24c791=function(_0xbfc708){while(--_0xbfc708){_0x391ea9['push'](_0x391ea9['shift']());}};_0x24c791(++_0x143522);}(_0x4603,0x156));var _0x3460=function(_0x137909,_0x37ce59){_0x137909=_0x137909-0x0;var _0x596106=_0x4603[_0x137909];return _0x596106;};'use strict';var MailQueueEvents=require(_0x3460('0x0'));var events=[_0x3460('0x1'),'remove','update'];function createListener(_0x53e8b5,_0xda5251){return function(_0x368ed0){_0xda5251[_0x3460('0x2')](_0x53e8b5,_0x368ed0);};}function removeListener(_0x29fc07,_0x237352){return function(){MailQueueEvents[_0x3460('0x3')](_0x29fc07,_0x237352);};}exports[_0x3460('0x4')]=function(_0x2f7b87){for(var _0x2fb502=0x0,_0xd20bab=events[_0x3460('0x5')];_0x2fb502<_0xd20bab;_0x2fb502++){var _0x5e2eae=events[_0x2fb502];var _0x5944e3=createListener(_0x3460('0x6')+_0x5e2eae,_0x2f7b87);MailQueueEvents['on'](_0x5e2eae,_0x5944e3);}};