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 _0xf640=['remove','update','emit','removeListener','length','mailQueue:','./mailQueue.events','save'];(function(_0x1f4310,_0x1253bd){var _0x3511fe=function(_0x31e70f){while(--_0x31e70f){_0x1f4310['push'](_0x1f4310['shift']());}};_0x3511fe(++_0x1253bd);}(_0xf640,0x16e));var _0x0f64=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf640[_0x3dd15e];return _0x231fd0;};'use strict';var MailQueueEvents=require(_0x0f64('0x0'));var events=[_0x0f64('0x1'),_0x0f64('0x2'),_0x0f64('0x3')];function createListener(_0x4c8149,_0xa2b00){return function(_0x3031b4){_0xa2b00[_0x0f64('0x4')](_0x4c8149,_0x3031b4);};}function removeListener(_0x12666b,_0x5d9ab6){return function(){MailQueueEvents[_0x0f64('0x5')](_0x12666b,_0x5d9ab6);};}exports['register']=function(_0x6c0f81){for(var _0x20af0d=0x0,_0x56de6b=events[_0x0f64('0x6')];_0x20af0d<_0x56de6b;_0x20af0d++){var _0xbb7460=events[_0x20af0d];var _0x3b1630=createListener(_0x0f64('0x7')+_0xbb7460,_0x6c0f81);MailQueueEvents['on'](_0xbb7460,_0x3b1630);}};