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 _0xf895=['removeListener','length','mailInteraction:','./mailInteraction.events','remove','update'];(function(_0x46e363,_0x45d7e2){var _0x3fb059=function(_0x5e6274){while(--_0x5e6274){_0x46e363['push'](_0x46e363['shift']());}};_0x3fb059(++_0x45d7e2);}(_0xf895,0x16b));var _0x5f89=function(_0x3c302a,_0x4e3573){_0x3c302a=_0x3c302a-0x0;var _0x21db99=_0xf895[_0x3c302a];return _0x21db99;};'use strict';var MailInteractionEvents=require(_0x5f89('0x0'));var events=['save',_0x5f89('0x1'),_0x5f89('0x2')];function createListener(_0x502406,_0x3fa1fe){return function(_0x1ba020){_0x3fa1fe['emit'](_0x502406,_0x1ba020);};}function removeListener(_0x5cea64,_0xfa85aa){return function(){MailInteractionEvents[_0x5f89('0x3')](_0x5cea64,_0xfa85aa);};}exports['register']=function(_0x5584c3){for(var _0x1199b3=0x0,_0x59383f=events[_0x5f89('0x4')];_0x1199b3<_0x59383f;_0x1199b3++){var _0x112beb=events[_0x1199b3];var _0x555e30=createListener(_0x5f89('0x5')+_0x112beb,_0x5584c3);MailInteractionEvents['on'](_0x112beb,_0x555e30);}};