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 _0xf828=['emit','removeListener','length','update'];(function(_0x403fa2,_0x414488){var _0x4b6f83=function(_0x4dbf89){while(--_0x4dbf89){_0x403fa2['push'](_0x403fa2['shift']());}};_0x4b6f83(++_0x414488);}(_0xf828,0x16f));var _0x8f82=function(_0xe480f0,_0x4c0dc1){_0xe480f0=_0xe480f0-0x0;var _0x57b198=_0xf828[_0xe480f0];return _0x57b198;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=['save','remove',_0x8f82('0x0')];function createListener(_0x269bfe,_0x442deb){return function(_0x32543c){_0x442deb[_0x8f82('0x1')](_0x269bfe,_0x32543c);};}function removeListener(_0xff6f67,_0x50d910){return function(){MailQueueEvents[_0x8f82('0x2')](_0xff6f67,_0x50d910);};}exports['register']=function(_0x5220e3){for(var _0x5ebacb=0x0,_0x132145=events[_0x8f82('0x3')];_0x5ebacb<_0x132145;_0x5ebacb++){var _0x3ae2f8=events[_0x5ebacb];var _0x2af13b=createListener('mailQueue:'+_0x3ae2f8,_0x5220e3);MailQueueEvents['on'](_0x3ae2f8,_0x2af13b);}};