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 _0xa2bf=['update','emit','removeListener','register','length','mailQueue:','./mailQueue.events','save','remove'];(function(_0x1465c1,_0xa8fd77){var _0x104621=function(_0x2bd254){while(--_0x2bd254){_0x1465c1['push'](_0x1465c1['shift']());}};_0x104621(++_0xa8fd77);}(_0xa2bf,0xa8));var _0xfa2b=function(_0x440317,_0xf16870){_0x440317=_0x440317-0x0;var _0x499264=_0xa2bf[_0x440317];return _0x499264;};'use strict';var MailQueueEvents=require(_0xfa2b('0x0'));var events=[_0xfa2b('0x1'),_0xfa2b('0x2'),_0xfa2b('0x3')];function createListener(_0x4dddd8,_0x687f72){return function(_0x36224b){_0x687f72[_0xfa2b('0x4')](_0x4dddd8,_0x36224b);};}function removeListener(_0x12f91f,_0x1caf86){return function(){MailQueueEvents[_0xfa2b('0x5')](_0x12f91f,_0x1caf86);};}exports[_0xfa2b('0x6')]=function(_0x249860){for(var _0x164a9=0x0,_0x11b198=events[_0xfa2b('0x7')];_0x164a9<_0x11b198;_0x164a9++){var _0x396ef2=events[_0x164a9];var _0xfb9e6e=createListener(_0xfa2b('0x8')+_0x396ef2,_0x249860);MailQueueEvents['on'](_0x396ef2,_0xfb9e6e);}};