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 _0xcc81=['update','removeListener','register','length','mailInteraction:','./mailInteraction.events','save'];(function(_0x13b02f,_0x462a53){var _0x12e9a6=function(_0x187d57){while(--_0x187d57){_0x13b02f['push'](_0x13b02f['shift']());}};_0x12e9a6(++_0x462a53);}(_0xcc81,0x11d));var _0x1cc8=function(_0x365c0a,_0x26dcb7){_0x365c0a=_0x365c0a-0x0;var _0x19e3e7=_0xcc81[_0x365c0a];return _0x19e3e7;};'use strict';var MailInteractionEvents=require(_0x1cc8('0x0'));var events=[_0x1cc8('0x1'),'remove',_0x1cc8('0x2')];function createListener(_0x53f942,_0x2e4e6f){return function(_0x457c7b){_0x2e4e6f['emit'](_0x53f942,_0x457c7b);};}function removeListener(_0x175f15,_0x45b86d){return function(){MailInteractionEvents[_0x1cc8('0x3')](_0x175f15,_0x45b86d);};}exports[_0x1cc8('0x4')]=function(_0x4e28fa){for(var _0x4f849e=0x0,_0x16b3a6=events[_0x1cc8('0x5')];_0x4f849e<_0x16b3a6;_0x4f849e++){var _0x2dd386=events[_0x4f849e];var _0x3faf0d=createListener(_0x1cc8('0x6')+_0x2dd386,_0x4e28fa);MailInteractionEvents['on'](_0x2dd386,_0x3faf0d);}};