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 _0x747c=['./mailInteraction.events','save','remove','update','emit','removeListener','length','mailInteraction:'];(function(_0x49c0fc,_0x449ede){var _0x4b7de9=function(_0x6dde6b){while(--_0x6dde6b){_0x49c0fc['push'](_0x49c0fc['shift']());}};_0x4b7de9(++_0x449ede);}(_0x747c,0x180));var _0xc747=function(_0x5d9e2b,_0x5a760e){_0x5d9e2b=_0x5d9e2b-0x0;var _0x46145d=_0x747c[_0x5d9e2b];return _0x46145d;};'use strict';var MailInteractionEvents=require(_0xc747('0x0'));var events=[_0xc747('0x1'),_0xc747('0x2'),_0xc747('0x3')];function createListener(_0x3813e4,_0x5c6918){return function(_0x2aea49){_0x5c6918[_0xc747('0x4')](_0x3813e4,_0x2aea49);};}function removeListener(_0xf39e66,_0x20424a){return function(){MailInteractionEvents[_0xc747('0x5')](_0xf39e66,_0x20424a);};}exports['register']=function(_0x20d007){for(var _0x30605e=0x0,_0x420b21=events[_0xc747('0x6')];_0x30605e<_0x420b21;_0x30605e++){var _0x5ec6a2=events[_0x30605e];var _0x4bd5e1=createListener(_0xc747('0x7')+_0x5ec6a2,_0x20d007);MailInteractionEvents['on'](_0x5ec6a2,_0x4bd5e1);}};