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 _0x47cb=['update','removeListener','register','length','save','remove'];(function(_0x5e6eac,_0x7d6b04){var _0x27afd9=function(_0x4cbdb9){while(--_0x4cbdb9){_0x5e6eac['push'](_0x5e6eac['shift']());}};_0x27afd9(++_0x7d6b04);}(_0x47cb,0x10c));var _0xb47c=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x47cb[_0x3dd15e];return _0x231fd0;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=[_0xb47c('0x0'),_0xb47c('0x1'),_0xb47c('0x2')];function createListener(_0x1382fe,_0x1b1f29){return function(_0x105d81){_0x1b1f29['emit'](_0x1382fe,_0x105d81);};}function removeListener(_0x3817e5,_0x164052){return function(){MailQueueEvents[_0xb47c('0x3')](_0x3817e5,_0x164052);};}exports[_0xb47c('0x4')]=function(_0x25cdca){for(var _0x872cf4=0x0,_0x2bc48a=events[_0xb47c('0x5')];_0x872cf4<_0x2bc48a;_0x872cf4++){var _0x192c9f=events[_0x872cf4];var _0x598684=createListener('mailQueue:'+_0x192c9f,_0x25cdca);MailQueueEvents['on'](_0x192c9f,_0x598684);}};