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 _0xfd5e=['emit','length','mailQueue:','./mailQueue.events','save','remove','update'];(function(_0x5ced91,_0x26bc7d){var _0x3b84a0=function(_0x96f725){while(--_0x96f725){_0x5ced91['push'](_0x5ced91['shift']());}};_0x3b84a0(++_0x26bc7d);}(_0xfd5e,0x1d8));var _0xefd5=function(_0x30ae81,_0x1e8be1){_0x30ae81=_0x30ae81-0x0;var _0x34b4f1=_0xfd5e[_0x30ae81];return _0x34b4f1;};'use strict';var MailQueueEvents=require(_0xefd5('0x0'));var events=[_0xefd5('0x1'),_0xefd5('0x2'),_0xefd5('0x3')];function createListener(_0xf0af4b,_0x15b1e1){return function(_0x4162c9){_0x15b1e1[_0xefd5('0x4')](_0xf0af4b,_0x4162c9);};}function removeListener(_0x243707,_0xaa3cea){return function(){MailQueueEvents['removeListener'](_0x243707,_0xaa3cea);};}exports['register']=function(_0x375408){for(var _0x57fc12=0x0,_0x4c740d=events[_0xefd5('0x5')];_0x57fc12<_0x4c740d;_0x57fc12++){var _0x1be299=events[_0x57fc12];var _0x769a5f=createListener(_0xefd5('0x6')+_0x1be299,_0x375408);MailQueueEvents['on'](_0x1be299,_0x769a5f);}};