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 _0x3cbb=['update','removeListener','length','save','remove'];(function(_0x5ad28d,_0x509581){var _0x393215=function(_0x346054){while(--_0x346054){_0x5ad28d['push'](_0x5ad28d['shift']());}};_0x393215(++_0x509581);}(_0x3cbb,0x175));var _0xb3cb=function(_0x92c450,_0x41f1e3){_0x92c450=_0x92c450-0x0;var _0x2a9599=_0x3cbb[_0x92c450];return _0x2a9599;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=[_0xb3cb('0x0'),_0xb3cb('0x1'),_0xb3cb('0x2')];function createListener(_0x210e71,_0x1ff56a){return function(_0x5e1a06){_0x1ff56a['emit'](_0x210e71,_0x5e1a06);};}function removeListener(_0x12bac7,_0x5608f4){return function(){MailQueueEvents[_0xb3cb('0x3')](_0x12bac7,_0x5608f4);};}exports['register']=function(_0x5ac812){for(var _0x569f6a=0x0,_0x58a17c=events[_0xb3cb('0x4')];_0x569f6a<_0x58a17c;_0x569f6a++){var _0x4352fa=events[_0x569f6a];var _0x2e115b=createListener('mailQueue:'+_0x4352fa,_0x5ac812);MailQueueEvents['on'](_0x4352fa,_0x2e115b);}};