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 _0xec63=['emit','removeListener','register','length','mailQueue:','./mailQueue.events','remove','update'];(function(_0x5ec924,_0x1fde7b){var _0xbb930e=function(_0x16cb8f){while(--_0x16cb8f){_0x5ec924['push'](_0x5ec924['shift']());}};_0xbb930e(++_0x1fde7b);}(_0xec63,0x11d));var _0x3ec6=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xec63[_0x20a584];return _0x4b41a8;};'use strict';var MailQueueEvents=require(_0x3ec6('0x0'));var events=['save',_0x3ec6('0x1'),_0x3ec6('0x2')];function createListener(_0x28a3ec,_0x480754){return function(_0x196ae3){_0x480754[_0x3ec6('0x3')](_0x28a3ec,_0x196ae3);};}function removeListener(_0x36b5bc,_0x4f337d){return function(){MailQueueEvents[_0x3ec6('0x4')](_0x36b5bc,_0x4f337d);};}exports[_0x3ec6('0x5')]=function(_0x264edc){for(var _0x7f20e4=0x0,_0x552588=events[_0x3ec6('0x6')];_0x7f20e4<_0x552588;_0x7f20e4++){var _0x200dfb=events[_0x7f20e4];var _0x249fc0=createListener(_0x3ec6('0x7')+_0x200dfb,_0x264edc);MailQueueEvents['on'](_0x200dfb,_0x249fc0);}};