e7becdc786f1ded7e36ca3738e72d204de2f19e1
[motion2.git] / server / api / mailQueue / mailQueue.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x7cc4=['remove','update','emit','length','save'];(function(_0x4a7631,_0x2c85b9){var _0x1a5a6f=function(_0x1ee3fd){while(--_0x1ee3fd){_0x4a7631['push'](_0x4a7631['shift']());}};_0x1a5a6f(++_0x2c85b9);}(_0x7cc4,0x1a8));var _0x47cc=function(_0x28b0a4,_0x2ea758){_0x28b0a4=_0x28b0a4-0x0;var _0x105ce6=_0x7cc4[_0x28b0a4];return _0x105ce6;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=[_0x47cc('0x0'),_0x47cc('0x1'),_0x47cc('0x2')];function createListener(_0x1e7bbf,_0x2682c7){return function(_0x138e40){_0x2682c7[_0x47cc('0x3')](_0x1e7bbf,_0x138e40);};}function removeListener(_0x515da9,_0x364ac6){return function(){MailQueueEvents['removeListener'](_0x515da9,_0x364ac6);};}exports['register']=function(_0x347672){for(var _0x4aab27=0x0,_0x2a9b7f=events[_0x47cc('0x4')];_0x4aab27<_0x2a9b7f;_0x4aab27++){var _0x21f13e=events[_0x4aab27];var _0x6718f7=createListener('mailQueue:'+_0x21f13e,_0x347672);MailQueueEvents['on'](_0x21f13e,_0x6718f7);}};