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 _0x4674=['emit','removeListener','register','length','./mailInteraction.events','save'];(function(_0x4c2d17,_0x3120f8){var _0x3c075d=function(_0x5d239c){while(--_0x5d239c){_0x4c2d17['push'](_0x4c2d17['shift']());}};_0x3c075d(++_0x3120f8);}(_0x4674,0x1f0));var _0x4467=function(_0x4a5dd3,_0x5a4dd1){_0x4a5dd3=_0x4a5dd3-0x0;var _0x178f21=_0x4674[_0x4a5dd3];return _0x178f21;};'use strict';var MailInteractionEvents=require(_0x4467('0x0'));var events=[_0x4467('0x1'),'remove','update'];function createListener(_0x3f19da,_0x2079e0){return function(_0x222058){_0x2079e0[_0x4467('0x2')](_0x3f19da,_0x222058);};}function removeListener(_0xfbeb7f,_0x41f443){return function(){MailInteractionEvents[_0x4467('0x3')](_0xfbeb7f,_0x41f443);};}exports[_0x4467('0x4')]=function(_0x2e8c08){for(var _0x5b2385=0x0,_0x24949e=events[_0x4467('0x5')];_0x5b2385<_0x24949e;_0x5b2385++){var _0x4d4b9=events[_0x5b2385];var _0x36df0b=createListener('mailInteraction:'+_0x4d4b9,_0x2e8c08);MailInteractionEvents['on'](_0x4d4b9,_0x36df0b);}};