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 _0x869d=['update','emit','register','length','mailQueue:','./mailQueue.events','save','remove'];(function(_0x35aeda,_0x264a31){var _0x40498c=function(_0x25f8fc){while(--_0x25f8fc){_0x35aeda['push'](_0x35aeda['shift']());}};_0x40498c(++_0x264a31);}(_0x869d,0x11d));var _0xd869=function(_0x42e84c,_0x43e767){_0x42e84c=_0x42e84c-0x0;var _0x2a149a=_0x869d[_0x42e84c];return _0x2a149a;};'use strict';var MailQueueEvents=require(_0xd869('0x0'));var events=[_0xd869('0x1'),_0xd869('0x2'),_0xd869('0x3')];function createListener(_0x4e80ce,_0x3ff5f1){return function(_0x3babb9){_0x3ff5f1[_0xd869('0x4')](_0x4e80ce,_0x3babb9);};}function removeListener(_0x3e8c2d,_0x197165){return function(){MailQueueEvents['removeListener'](_0x3e8c2d,_0x197165);};}exports[_0xd869('0x5')]=function(_0x1685c3){for(var _0x5ec44f=0x0,_0x4e23f2=events[_0xd869('0x6')];_0x5ec44f<_0x4e23f2;_0x5ec44f++){var _0x395923=events[_0x5ec44f];var _0x51b3d=createListener(_0xd869('0x7')+_0x395923,_0x1685c3);MailQueueEvents['on'](_0x395923,_0x51b3d);}};