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 _0x9a43=['update','removeListener','register','mailQueue:','save','remove'];(function(_0x2b37b5,_0x4f677b){var _0x36df6d=function(_0x501dc7){while(--_0x501dc7){_0x2b37b5['push'](_0x2b37b5['shift']());}};_0x36df6d(++_0x4f677b);}(_0x9a43,0x15a));var _0x39a4=function(_0x25c044,_0xbd05f8){_0x25c044=_0x25c044-0x0;var _0x558ee5=_0x9a43[_0x25c044];return _0x558ee5;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=[_0x39a4('0x0'),_0x39a4('0x1'),_0x39a4('0x2')];function createListener(_0x3466fd,_0x201df5){return function(_0x5124f7){_0x201df5['emit'](_0x3466fd,_0x5124f7);};}function removeListener(_0x4c9d4a,_0x1c3c4c){return function(){MailQueueEvents[_0x39a4('0x3')](_0x4c9d4a,_0x1c3c4c);};}exports[_0x39a4('0x4')]=function(_0x52b622){for(var _0x3b728f=0x0,_0x42e557=events['length'];_0x3b728f<_0x42e557;_0x3b728f++){var _0x13572a=events[_0x3b728f];var _0x29373b=createListener(_0x39a4('0x5')+_0x13572a,_0x52b622);MailQueueEvents['on'](_0x13572a,_0x29373b);}};