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 _0x8a85=['length','mailQueue:','save','update','emit','removeListener','register'];(function(_0x45f111,_0x3a1a4a){var _0x483508=function(_0x3131ab){while(--_0x3131ab){_0x45f111['push'](_0x45f111['shift']());}};_0x483508(++_0x3a1a4a);}(_0x8a85,0x64));var _0x58a8=function(_0x45198b,_0x25924a){_0x45198b=_0x45198b-0x0;var _0x255f32=_0x8a85[_0x45198b];return _0x255f32;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=[_0x58a8('0x0'),'remove',_0x58a8('0x1')];function createListener(_0x38f40f,_0x4f0e05){return function(_0x4963ee){_0x4f0e05[_0x58a8('0x2')](_0x38f40f,_0x4963ee);};}function removeListener(_0xbd3e90,_0x255762){return function(){MailQueueEvents[_0x58a8('0x3')](_0xbd3e90,_0x255762);};}exports[_0x58a8('0x4')]=function(_0x4fedae){for(var _0x5f37a6=0x0,_0x2b35d4=events[_0x58a8('0x5')];_0x5f37a6<_0x2b35d4;_0x5f37a6++){var _0x32f0d3=events[_0x5f37a6];var _0x474aac=createListener(_0x58a8('0x6')+_0x32f0d3,_0x4fedae);MailQueueEvents['on'](_0x32f0d3,_0x474aac);}};