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 _0x5c9d=['remove','update','emit','length','mailInteraction:','./mailInteraction.events'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x5c9d,0x83));var _0xd5c9=function(_0x254c9e,_0xab8a1b){_0x254c9e=_0x254c9e-0x0;var _0x2d4cb6=_0x5c9d[_0x254c9e];return _0x2d4cb6;};'use strict';var MailInteractionEvents=require(_0xd5c9('0x0'));var events=['save',_0xd5c9('0x1'),_0xd5c9('0x2')];function createListener(_0x44179e,_0x351a31){return function(_0x5c4e7f){_0x351a31[_0xd5c9('0x3')](_0x44179e,_0x5c4e7f);};}function removeListener(_0x39f81e,_0x2e19bb){return function(){MailInteractionEvents['removeListener'](_0x39f81e,_0x2e19bb);};}exports['register']=function(_0x25a637){for(var _0x36ba85=0x0,_0x59b930=events[_0xd5c9('0x4')];_0x36ba85<_0x59b930;_0x36ba85++){var _0x5685d2=events[_0x36ba85];var _0x2b5eb8=createListener(_0xd5c9('0x5')+_0x5685d2,_0x25a637);MailInteractionEvents['on'](_0x5685d2,_0x2b5eb8);}};