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 _0x4ebf=['remove','emit','removeListener','./mailMessage.events','save'];(function(_0x521929,_0x479be5){var _0x632436=function(_0x288290){while(--_0x288290){_0x521929['push'](_0x521929['shift']());}};_0x632436(++_0x479be5);}(_0x4ebf,0x1f2));var _0xf4eb=function(_0x57cb4f,_0x541f57){_0x57cb4f=_0x57cb4f-0x0;var _0x29bb45=_0x4ebf[_0x57cb4f];return _0x29bb45;};'use strict';var MailMessageEvents=require(_0xf4eb('0x0'));var events=[_0xf4eb('0x1'),_0xf4eb('0x2'),'update'];function createListener(_0x7e51e2,_0x28514a){return function(_0x9bf74){_0x28514a[_0xf4eb('0x3')](_0x7e51e2,_0x9bf74);};}function removeListener(_0x4f85f9,_0x119700){return function(){MailMessageEvents[_0xf4eb('0x4')](_0x4f85f9,_0x119700);};}exports['register']=function(_0x2098ef){for(var _0x497472=0x0,_0x6c085e=events['length'];_0x497472<_0x6c085e;_0x497472++){var _0x2d5753=events[_0x497472];var _0xed4823=createListener('mailMessage:'+_0x2d5753,_0x2098ef);MailMessageEvents['on'](_0x2d5753,_0xed4823);}};