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 _0x78f9=['remove','update','register','length','./mailMessage.events','save'];(function(_0x54d4a8,_0x585a59){var _0x3b321b=function(_0x245c6a){while(--_0x245c6a){_0x54d4a8['push'](_0x54d4a8['shift']());}};_0x3b321b(++_0x585a59);}(_0x78f9,0x1d8));var _0x978f=function(_0x5783f4,_0x4a9e0a){_0x5783f4=_0x5783f4-0x0;var _0x28e380=_0x78f9[_0x5783f4];return _0x28e380;};'use strict';var MailMessageEvents=require(_0x978f('0x0'));var events=[_0x978f('0x1'),_0x978f('0x2'),_0x978f('0x3')];function createListener(_0x23d060,_0x37eab7){return function(_0x2f627c){_0x37eab7['emit'](_0x23d060,_0x2f627c);};}function removeListener(_0x46a21b,_0x47f1d4){return function(){MailMessageEvents['removeListener'](_0x46a21b,_0x47f1d4);};}exports[_0x978f('0x4')]=function(_0x22a3d7){for(var _0x4244d0=0x0,_0x487398=events[_0x978f('0x5')];_0x4244d0<_0x487398;_0x4244d0++){var _0x1ece85=events[_0x4244d0];var _0x22a9bc=createListener('mailMessage:'+_0x1ece85,_0x22a3d7);MailMessageEvents['on'](_0x1ece85,_0x22a9bc);}};