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 _0x26f5=['save','emit','removeListener','length','mailMessage:','./mailMessage.events'];(function(_0x186a24,_0x81072a){var _0x5b487f=function(_0x2f62c5){while(--_0x2f62c5){_0x186a24['push'](_0x186a24['shift']());}};_0x5b487f(++_0x81072a);}(_0x26f5,0x16d));var _0x526f=function(_0x1b9a0d,_0x2d1054){_0x1b9a0d=_0x1b9a0d-0x0;var _0x48515f=_0x26f5[_0x1b9a0d];return _0x48515f;};'use strict';var MailMessageEvents=require(_0x526f('0x0'));var events=[_0x526f('0x1'),'remove','update'];function createListener(_0x53fa2c,_0x30891e){return function(_0x56e978){_0x30891e[_0x526f('0x2')](_0x53fa2c,_0x56e978);};}function removeListener(_0x9ede6c,_0x51ad8e){return function(){MailMessageEvents[_0x526f('0x3')](_0x9ede6c,_0x51ad8e);};}exports['register']=function(_0x4046f4){for(var _0x488413=0x0,_0x2565b6=events[_0x526f('0x4')];_0x488413<_0x2565b6;_0x488413++){var _0x5cbd27=events[_0x488413];var _0x14b108=createListener(_0x526f('0x5')+_0x5cbd27,_0x4046f4);MailMessageEvents['on'](_0x5cbd27,_0x14b108);}};