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 _0x2f38=['removeListener','length','mailQueue:','save','update','emit'];(function(_0x1f0398,_0x37a6dd){var _0x3f0ad5=function(_0x415f6c){while(--_0x415f6c){_0x1f0398['push'](_0x1f0398['shift']());}};_0x3f0ad5(++_0x37a6dd);}(_0x2f38,0x1a7));var _0x82f3=function(_0x5b2966,_0x46b811){_0x5b2966=_0x5b2966-0x0;var _0xcc60a0=_0x2f38[_0x5b2966];return _0xcc60a0;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=[_0x82f3('0x0'),'remove',_0x82f3('0x1')];function createListener(_0x5d800f,_0x656185){return function(_0x68d97e){_0x656185[_0x82f3('0x2')](_0x5d800f,_0x68d97e);};}function removeListener(_0x466e73,_0x4c5ab1){return function(){MailQueueEvents[_0x82f3('0x3')](_0x466e73,_0x4c5ab1);};}exports['register']=function(_0x5e4ca6){for(var _0x3a7717=0x0,_0x1c09a0=events[_0x82f3('0x4')];_0x3a7717<_0x1c09a0;_0x3a7717++){var _0x2c69d2=events[_0x3a7717];var _0x659a85=createListener(_0x82f3('0x5')+_0x2c69d2,_0x5e4ca6);MailQueueEvents['on'](_0x2c69d2,_0x659a85);}};