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 _0x438a=['removeListener','register','mailQueue:','./mailQueue.events','save','update','emit'];(function(_0x164eca,_0x555e28){var _0x2ce562=function(_0x148ca6){while(--_0x148ca6){_0x164eca['push'](_0x164eca['shift']());}};_0x2ce562(++_0x555e28);}(_0x438a,0xf1));var _0xa438=function(_0x521b4c,_0x31b98d){_0x521b4c=_0x521b4c-0x0;var _0x18c2b0=_0x438a[_0x521b4c];return _0x18c2b0;};'use strict';var MailQueueEvents=require(_0xa438('0x0'));var events=[_0xa438('0x1'),'remove',_0xa438('0x2')];function createListener(_0x43c1f8,_0x363939){return function(_0x534a7a){_0x363939[_0xa438('0x3')](_0x43c1f8,_0x534a7a);};}function removeListener(_0x2e5b67,_0x29e080){return function(){MailQueueEvents[_0xa438('0x4')](_0x2e5b67,_0x29e080);};}exports[_0xa438('0x5')]=function(_0x1ba2fe){for(var _0xfd93e6=0x0,_0x56e046=events['length'];_0xfd93e6<_0x56e046;_0xfd93e6++){var _0x150253=events[_0xfd93e6];var _0x5f5b4d=createListener(_0xa438('0x6')+_0x150253,_0x1ba2fe);MailQueueEvents['on'](_0x150253,_0x5f5b4d);}};