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 _0xffda=['emit','register','length','./mailQueue.events','save','remove','update'];(function(_0x1d9daf,_0x2650b0){var _0x3660b2=function(_0x50b3d0){while(--_0x50b3d0){_0x1d9daf['push'](_0x1d9daf['shift']());}};_0x3660b2(++_0x2650b0);}(_0xffda,0x73));var _0xaffd=function(_0x5b844b,_0x3f4134){_0x5b844b=_0x5b844b-0x0;var _0x543cad=_0xffda[_0x5b844b];return _0x543cad;};'use strict';var MailQueueEvents=require(_0xaffd('0x0'));var events=[_0xaffd('0x1'),_0xaffd('0x2'),_0xaffd('0x3')];function createListener(_0x594ab8,_0x18e6bf){return function(_0x197651){_0x18e6bf[_0xaffd('0x4')](_0x594ab8,_0x197651);};}function removeListener(_0x4b6295,_0x242061){return function(){MailQueueEvents['removeListener'](_0x4b6295,_0x242061);};}exports[_0xaffd('0x5')]=function(_0x400bb8){for(var _0x5747e0=0x0,_0x4ca99e=events[_0xaffd('0x6')];_0x5747e0<_0x4ca99e;_0x5747e0++){var _0x12865c=events[_0x5747e0];var _0x3647e1=createListener('mailQueue:'+_0x12865c,_0x400bb8);MailQueueEvents['on'](_0x12865c,_0x3647e1);}};