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 _0xa93e=['mailQueue:','./mailQueue.events','save','remove','update','emit','removeListener','register','length'];(function(_0x2c7618,_0x26be9c){var _0x5ce3f0=function(_0x1837b3){while(--_0x1837b3){_0x2c7618['push'](_0x2c7618['shift']());}};_0x5ce3f0(++_0x26be9c);}(_0xa93e,0xb5));var _0xea93=function(_0x3072db,_0x33560b){_0x3072db=_0x3072db-0x0;var _0x4ab2f2=_0xa93e[_0x3072db];return _0x4ab2f2;};'use strict';var MailQueueEvents=require(_0xea93('0x0'));var events=[_0xea93('0x1'),_0xea93('0x2'),_0xea93('0x3')];function createListener(_0x512962,_0x254d41){return function(_0x37745d){_0x254d41[_0xea93('0x4')](_0x512962,_0x37745d);};}function removeListener(_0x34b8a6,_0x24638e){return function(){MailQueueEvents[_0xea93('0x5')](_0x34b8a6,_0x24638e);};}exports[_0xea93('0x6')]=function(_0x50c1f3){for(var _0x18a09a=0x0,_0x3f71f9=events[_0xea93('0x7')];_0x18a09a<_0x3f71f9;_0x18a09a++){var _0x12ed26=events[_0x18a09a];var _0x4a18fa=createListener(_0xea93('0x8')+_0x12ed26,_0x50c1f3);MailQueueEvents['on'](_0x12ed26,_0x4a18fa);}};