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 _0xc236=['remove','update','emit','removeListener','register','mailQueue:','save'];(function(_0x3483ae,_0x15a83c){var _0x463ee5=function(_0x43a177){while(--_0x43a177){_0x3483ae['push'](_0x3483ae['shift']());}};_0x463ee5(++_0x15a83c);}(_0xc236,0x133));var _0x6c23=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xc236[_0x3dd15e];return _0x231fd0;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=[_0x6c23('0x0'),_0x6c23('0x1'),_0x6c23('0x2')];function createListener(_0x14351c,_0x379190){return function(_0xd41fcc){_0x379190[_0x6c23('0x3')](_0x14351c,_0xd41fcc);};}function removeListener(_0x14b825,_0xdf4bee){return function(){MailQueueEvents[_0x6c23('0x4')](_0x14b825,_0xdf4bee);};}exports[_0x6c23('0x5')]=function(_0x28cf15){for(var _0x39be9f=0x0,_0x2411e7=events['length'];_0x39be9f<_0x2411e7;_0x39be9f++){var _0x29813b=events[_0x39be9f];var _0x4199a3=createListener(_0x6c23('0x6')+_0x29813b,_0x28cf15);MailQueueEvents['on'](_0x29813b,_0x4199a3);}};