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 _0xfb5d=['length','mailQueue:','./mailQueue.events','save','remove','update','register'];(function(_0x465028,_0x4570ac){var _0xb783d4=function(_0x5458c5){while(--_0x5458c5){_0x465028['push'](_0x465028['shift']());}};_0xb783d4(++_0x4570ac);}(_0xfb5d,0x11a));var _0xdfb5=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0xfb5d[_0xa464c9];return _0x3d73c4;};'use strict';var MailQueueEvents=require(_0xdfb5('0x0'));var events=[_0xdfb5('0x1'),_0xdfb5('0x2'),_0xdfb5('0x3')];function createListener(_0x4e784f,_0x174f23){return function(_0x51442a){_0x174f23['emit'](_0x4e784f,_0x51442a);};}function removeListener(_0x5e1c81,_0x507c17){return function(){MailQueueEvents['removeListener'](_0x5e1c81,_0x507c17);};}exports[_0xdfb5('0x4')]=function(_0x4b0a35){for(var _0x4892a7=0x0,_0x2d6086=events[_0xdfb5('0x5')];_0x4892a7<_0x2d6086;_0x4892a7++){var _0x164eb2=events[_0x4892a7];var _0x5c410c=createListener(_0xdfb5('0x6')+_0x164eb2,_0x4b0a35);MailQueueEvents['on'](_0x164eb2,_0x5c410c);}};