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 _0x066e=['mailInteraction:','save','emit','removeListener','register','length'];(function(_0x9dfc10,_0x19c2d5){var _0x4f938a=function(_0x12b1e5){while(--_0x12b1e5){_0x9dfc10['push'](_0x9dfc10['shift']());}};_0x4f938a(++_0x19c2d5);}(_0x066e,0x163));var _0xe066=function(_0x40bffc,_0x3a45d7){_0x40bffc=_0x40bffc-0x0;var _0x3007e9=_0x066e[_0x40bffc];return _0x3007e9;};'use strict';var MailInteractionEvents=require('./mailInteraction.events');var events=[_0xe066('0x0'),'remove','update'];function createListener(_0x28489a,_0x16157b){return function(_0x24e2fe){_0x16157b[_0xe066('0x1')](_0x28489a,_0x24e2fe);};}function removeListener(_0x4359d6,_0x39cf49){return function(){MailInteractionEvents[_0xe066('0x2')](_0x4359d6,_0x39cf49);};}exports[_0xe066('0x3')]=function(_0x4e972c){for(var _0x406f0c=0x0,_0x1a3843=events[_0xe066('0x4')];_0x406f0c<_0x1a3843;_0x406f0c++){var _0x4ecad8=events[_0x406f0c];var _0x573037=createListener(_0xe066('0x5')+_0x4ecad8,_0x4e972c);MailInteractionEvents['on'](_0x4ecad8,_0x573037);}};