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 _0xdd2d=['remove','update','emit','length','mailInteraction:','save'];(function(_0x27f8b5,_0x238f96){var _0x3b801d=function(_0x2a21e2){while(--_0x2a21e2){_0x27f8b5['push'](_0x27f8b5['shift']());}};_0x3b801d(++_0x238f96);}(_0xdd2d,0x71));var _0xddd2=function(_0xb23399,_0x4491ec){_0xb23399=_0xb23399-0x0;var _0x25aa61=_0xdd2d[_0xb23399];return _0x25aa61;};'use strict';var MailInteractionEvents=require('./mailInteraction.events');var events=[_0xddd2('0x0'),_0xddd2('0x1'),_0xddd2('0x2')];function createListener(_0x4e4792,_0xdea5e2){return function(_0x60bb3d){_0xdea5e2[_0xddd2('0x3')](_0x4e4792,_0x60bb3d);};}function removeListener(_0x2ad759,_0x26d34f){return function(){MailInteractionEvents['removeListener'](_0x2ad759,_0x26d34f);};}exports['register']=function(_0xa9283c){for(var _0xcd4a1d=0x0,_0x136cb6=events[_0xddd2('0x4')];_0xcd4a1d<_0x136cb6;_0xcd4a1d++){var _0xf3d63a=events[_0xcd4a1d];var _0x1189ec=createListener(_0xddd2('0x5')+_0xf3d63a,_0xa9283c);MailInteractionEvents['on'](_0xf3d63a,_0x1189ec);}};