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 _0xf181=['update','emit','removeListener','register','mailInteraction:','./mailInteraction.events','save','remove'];(function(_0x2ec461,_0x5f588a){var _0x28603d=function(_0x21114b){while(--_0x21114b){_0x2ec461['push'](_0x2ec461['shift']());}};_0x28603d(++_0x5f588a);}(_0xf181,0x16d));var _0x1f18=function(_0x7a112,_0x2eb4a0){_0x7a112=_0x7a112-0x0;var _0x136dc5=_0xf181[_0x7a112];return _0x136dc5;};'use strict';var MailInteractionEvents=require(_0x1f18('0x0'));var events=[_0x1f18('0x1'),_0x1f18('0x2'),_0x1f18('0x3')];function createListener(_0x24c98e,_0x1a37d4){return function(_0x31d4db){_0x1a37d4[_0x1f18('0x4')](_0x24c98e,_0x31d4db);};}function removeListener(_0x249e15,_0x4ab162){return function(){MailInteractionEvents[_0x1f18('0x5')](_0x249e15,_0x4ab162);};}exports[_0x1f18('0x6')]=function(_0x55f88c){for(var _0x138430=0x0,_0x100f34=events['length'];_0x138430<_0x100f34;_0x138430++){var _0x7acda1=events[_0x138430];var _0x534bfe=createListener(_0x1f18('0x7')+_0x7acda1,_0x55f88c);MailInteractionEvents['on'](_0x7acda1,_0x534bfe);}};