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 _0x67c2=['removeListener','register','length','mailQueue:','./mailQueue.events','save','remove','update'];(function(_0x3eaf33,_0x18027d){var _0x3efda1=function(_0x380288){while(--_0x380288){_0x3eaf33['push'](_0x3eaf33['shift']());}};_0x3efda1(++_0x18027d);}(_0x67c2,0xc4));var _0x267c=function(_0x4ef9b3,_0x5240a7){_0x4ef9b3=_0x4ef9b3-0x0;var _0x3fda28=_0x67c2[_0x4ef9b3];return _0x3fda28;};'use strict';var MailQueueEvents=require(_0x267c('0x0'));var events=[_0x267c('0x1'),_0x267c('0x2'),_0x267c('0x3')];function createListener(_0x28ebce,_0x1d93d0){return function(_0x31831b){_0x1d93d0['emit'](_0x28ebce,_0x31831b);};}function removeListener(_0x442062,_0x907614){return function(){MailQueueEvents[_0x267c('0x4')](_0x442062,_0x907614);};}exports[_0x267c('0x5')]=function(_0x2c96fd){for(var _0x4924fa=0x0,_0x23d65b=events[_0x267c('0x6')];_0x4924fa<_0x23d65b;_0x4924fa++){var _0x43b607=events[_0x4924fa];var _0x36b8fa=createListener(_0x267c('0x7')+_0x43b607,_0x2c96fd);MailQueueEvents['on'](_0x43b607,_0x36b8fa);}};