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 _0xd701=['removeListener','mailQueue:','./mailQueue.events','save','remove','update','emit'];(function(_0x8dbf2d,_0x1abfa4){var _0x160088=function(_0x1a1c64){while(--_0x1a1c64){_0x8dbf2d['push'](_0x8dbf2d['shift']());}};_0x160088(++_0x1abfa4);}(_0xd701,0x95));var _0x1d70=function(_0x36eaaa,_0x326732){_0x36eaaa=_0x36eaaa-0x0;var _0x461349=_0xd701[_0x36eaaa];return _0x461349;};'use strict';var MailQueueEvents=require(_0x1d70('0x0'));var events=[_0x1d70('0x1'),_0x1d70('0x2'),_0x1d70('0x3')];function createListener(_0x195b13,_0x4eddb0){return function(_0x3dea8f){_0x4eddb0[_0x1d70('0x4')](_0x195b13,_0x3dea8f);};}function removeListener(_0x18f082,_0x8e0d19){return function(){MailQueueEvents[_0x1d70('0x5')](_0x18f082,_0x8e0d19);};}exports['register']=function(_0x253b3e){for(var _0x75a227=0x0,_0x2d299d=events['length'];_0x75a227<_0x2d299d;_0x75a227++){var _0x3c042a=events[_0x75a227];var _0x4b0ea4=createListener(_0x1d70('0x6')+_0x3c042a,_0x253b3e);MailQueueEvents['on'](_0x3c042a,_0x4b0ea4);}};