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 _0xd672=['remove','emit','removeListener','register','length','mailQueue:'];(function(_0x17406a,_0x1e2320){var _0x1501ff=function(_0x4b075a){while(--_0x4b075a){_0x17406a['push'](_0x17406a['shift']());}};_0x1501ff(++_0x1e2320);}(_0xd672,0x96));var _0x2d67=function(_0x3b882e,_0x31f3f3){_0x3b882e=_0x3b882e-0x0;var _0xa786e5=_0xd672[_0x3b882e];return _0xa786e5;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=['save',_0x2d67('0x0'),'update'];function createListener(_0x3791b4,_0x4feef3){return function(_0x14c8d4){_0x4feef3[_0x2d67('0x1')](_0x3791b4,_0x14c8d4);};}function removeListener(_0x50f0c1,_0x15ff87){return function(){MailQueueEvents[_0x2d67('0x2')](_0x50f0c1,_0x15ff87);};}exports[_0x2d67('0x3')]=function(_0x1ec0d3){for(var _0x4e14f8=0x0,_0x47c36d=events[_0x2d67('0x4')];_0x4e14f8<_0x47c36d;_0x4e14f8++){var _0x750f27=events[_0x4e14f8];var _0x2c1963=createListener(_0x2d67('0x5')+_0x750f27,_0x1ec0d3);MailQueueEvents['on'](_0x750f27,_0x2c1963);}};