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 _0xbb4e=['save','remove','update','removeListener','register','length','mailQueue:','./mailQueue.events'];(function(_0x535450,_0x15c8cc){var _0x3db86c=function(_0x40cf8f){while(--_0x40cf8f){_0x535450['push'](_0x535450['shift']());}};_0x3db86c(++_0x15c8cc);}(_0xbb4e,0x67));var _0xebb4=function(_0x1b1f88,_0x3fe1cb){_0x1b1f88=_0x1b1f88-0x0;var _0x5045b9=_0xbb4e[_0x1b1f88];return _0x5045b9;};'use strict';var MailQueueEvents=require(_0xebb4('0x0'));var events=[_0xebb4('0x1'),_0xebb4('0x2'),_0xebb4('0x3')];function createListener(_0x2963b2,_0xac331f){return function(_0x1f643f){_0xac331f['emit'](_0x2963b2,_0x1f643f);};}function removeListener(_0x353572,_0x436acb){return function(){MailQueueEvents[_0xebb4('0x4')](_0x353572,_0x436acb);};}exports[_0xebb4('0x5')]=function(_0x34302f){for(var _0x18c5b0=0x0,_0x495d6d=events[_0xebb4('0x6')];_0x18c5b0<_0x495d6d;_0x18c5b0++){var _0x59498d=events[_0x18c5b0];var _0x3e8899=createListener(_0xebb4('0x7')+_0x59498d,_0x34302f);MailQueueEvents['on'](_0x59498d,_0x3e8899);}};