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 _0x643b=['removeListener','register','length','mailQueue:','./mailQueue.events','save','update','emit'];(function(_0x12ec3b,_0x52ef3c){var _0x2e3797=function(_0x264ad9){while(--_0x264ad9){_0x12ec3b['push'](_0x12ec3b['shift']());}};_0x2e3797(++_0x52ef3c);}(_0x643b,0x1dc));var _0xb643=function(_0x3ab51d,_0x2fa01d){_0x3ab51d=_0x3ab51d-0x0;var _0x29a04e=_0x643b[_0x3ab51d];return _0x29a04e;};'use strict';var MailQueueEvents=require(_0xb643('0x0'));var events=[_0xb643('0x1'),'remove',_0xb643('0x2')];function createListener(_0x246dda,_0x1664d1){return function(_0x34b0db){_0x1664d1[_0xb643('0x3')](_0x246dda,_0x34b0db);};}function removeListener(_0x116bba,_0x5776d0){return function(){MailQueueEvents[_0xb643('0x4')](_0x116bba,_0x5776d0);};}exports[_0xb643('0x5')]=function(_0x201000){for(var _0x26c611=0x0,_0x2695f3=events[_0xb643('0x6')];_0x26c611<_0x2695f3;_0x26c611++){var _0x4d774f=events[_0x26c611];var _0x5a7ac4=createListener(_0xb643('0x7')+_0x4d774f,_0x201000);MailQueueEvents['on'](_0x4d774f,_0x5a7ac4);}};