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 _0x5c89=['./mailQueue.events','save','update','register','length'];(function(_0x271a23,_0x1e1906){var _0x3ce2db=function(_0xa05bee){while(--_0xa05bee){_0x271a23['push'](_0x271a23['shift']());}};_0x3ce2db(++_0x1e1906);}(_0x5c89,0x69));var _0x95c8=function(_0xe55ed1,_0x19ed60){_0xe55ed1=_0xe55ed1-0x0;var _0x19a635=_0x5c89[_0xe55ed1];return _0x19a635;};'use strict';var MailQueueEvents=require(_0x95c8('0x0'));var events=[_0x95c8('0x1'),'remove',_0x95c8('0x2')];function createListener(_0x469713,_0x20c510){return function(_0x51012a){_0x20c510['emit'](_0x469713,_0x51012a);};}function removeListener(_0x3e2a0b,_0x40a32c){return function(){MailQueueEvents['removeListener'](_0x3e2a0b,_0x40a32c);};}exports[_0x95c8('0x3')]=function(_0x5bdd8b){for(var _0x42529c=0x0,_0x156a74=events[_0x95c8('0x4')];_0x42529c<_0x156a74;_0x42529c++){var _0x11c6de=events[_0x42529c];var _0x47d3dc=createListener('mailQueue:'+_0x11c6de,_0x5bdd8b);MailQueueEvents['on'](_0x11c6de,_0x47d3dc);}};