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 _0xf479=['emit','register','length','./mailQueue.events','save','update'];(function(_0x38b2de,_0x5cf1fd){var _0x5e5953=function(_0x4d290a){while(--_0x4d290a){_0x38b2de['push'](_0x38b2de['shift']());}};_0x5e5953(++_0x5cf1fd);}(_0xf479,0x129));var _0x9f47=function(_0x5de818,_0x7c4485){_0x5de818=_0x5de818-0x0;var _0x345670=_0xf479[_0x5de818];return _0x345670;};'use strict';var MailQueueEvents=require(_0x9f47('0x0'));var events=[_0x9f47('0x1'),'remove',_0x9f47('0x2')];function createListener(_0x137bf9,_0x1e3101){return function(_0x2fb984){_0x1e3101[_0x9f47('0x3')](_0x137bf9,_0x2fb984);};}function removeListener(_0x53421d,_0x5ad809){return function(){MailQueueEvents['removeListener'](_0x53421d,_0x5ad809);};}exports[_0x9f47('0x4')]=function(_0xc4399d){for(var _0x51002c=0x0,_0x3c6603=events[_0x9f47('0x5')];_0x51002c<_0x3c6603;_0x51002c++){var _0x6f2080=events[_0x51002c];var _0x4cb21c=createListener('mailQueue:'+_0x6f2080,_0xc4399d);MailQueueEvents['on'](_0x6f2080,_0x4cb21c);}};