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 _0x5f10=['emit','removeListener','mailMessage:','./mailMessage.events','save'];(function(_0x2601b4,_0x315e78){var _0x3e3661=function(_0x13b45b){while(--_0x13b45b){_0x2601b4['push'](_0x2601b4['shift']());}};_0x3e3661(++_0x315e78);}(_0x5f10,0xd5));var _0x05f1=function(_0xec034,_0x16c358){_0xec034=_0xec034-0x0;var _0x2c5a19=_0x5f10[_0xec034];return _0x2c5a19;};'use strict';var MailMessageEvents=require(_0x05f1('0x0'));var events=[_0x05f1('0x1'),'remove','update'];function createListener(_0x5ae721,_0x2f700c){return function(_0x333766){_0x2f700c[_0x05f1('0x2')](_0x5ae721,_0x333766);};}function removeListener(_0xcb88e1,_0xa8d3b9){return function(){MailMessageEvents[_0x05f1('0x3')](_0xcb88e1,_0xa8d3b9);};}exports['register']=function(_0x126662){for(var _0x462faa=0x0,_0xf2902c=events['length'];_0x462faa<_0xf2902c;_0x462faa++){var _0x268584=events[_0x462faa];var _0x39e4b3=createListener(_0x05f1('0x4')+_0x268584,_0x126662);MailMessageEvents['on'](_0x268584,_0x39e4b3);}};