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 _0x82b1=['mailQueue:','./mailQueue.events','save','remove','update','emit','length'];(function(_0x433d50,_0x1458d3){var _0x2dea86=function(_0x1e969d){while(--_0x1e969d){_0x433d50['push'](_0x433d50['shift']());}};_0x2dea86(++_0x1458d3);}(_0x82b1,0x197));var _0x182b=function(_0x1fbb7c,_0x330a19){_0x1fbb7c=_0x1fbb7c-0x0;var _0x2dcb7f=_0x82b1[_0x1fbb7c];return _0x2dcb7f;};'use strict';var MailQueueEvents=require(_0x182b('0x0'));var events=[_0x182b('0x1'),_0x182b('0x2'),_0x182b('0x3')];function createListener(_0x3f991f,_0x1893b7){return function(_0x52d240){_0x1893b7[_0x182b('0x4')](_0x3f991f,_0x52d240);};}function removeListener(_0x40c682,_0x1fdd20){return function(){MailQueueEvents['removeListener'](_0x40c682,_0x1fdd20);};}exports['register']=function(_0x445b46){for(var _0x5650a3=0x0,_0x3059a8=events[_0x182b('0x5')];_0x5650a3<_0x3059a8;_0x5650a3++){var _0x87ac04=events[_0x5650a3];var _0xf4ac7e=createListener(_0x182b('0x6')+_0x87ac04,_0x445b46);MailQueueEvents['on'](_0x87ac04,_0xf4ac7e);}};