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 _0x051f=['removeListener','register','length','mailQueue:','save','remove','update'];(function(_0x2a5585,_0x41e3c1){var _0x1c5f9b=function(_0x354c11){while(--_0x354c11){_0x2a5585['push'](_0x2a5585['shift']());}};_0x1c5f9b(++_0x41e3c1);}(_0x051f,0x177));var _0xf051=function(_0x5221a0,_0x6a9b30){_0x5221a0=_0x5221a0-0x0;var _0xb7f453=_0x051f[_0x5221a0];return _0xb7f453;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=[_0xf051('0x0'),_0xf051('0x1'),_0xf051('0x2')];function createListener(_0x349894,_0x105ae8){return function(_0x3133ab){_0x105ae8['emit'](_0x349894,_0x3133ab);};}function removeListener(_0x6caa73,_0x1dca27){return function(){MailQueueEvents[_0xf051('0x3')](_0x6caa73,_0x1dca27);};}exports[_0xf051('0x4')]=function(_0x4cc8a1){for(var _0x166be3=0x0,_0x3da4cd=events[_0xf051('0x5')];_0x166be3<_0x3da4cd;_0x166be3++){var _0x5ae688=events[_0x166be3];var _0x31942c=createListener(_0xf051('0x6')+_0x5ae688,_0x4cc8a1);MailQueueEvents['on'](_0x5ae688,_0x31942c);}};