Built motion from commit 53172ac8.|2.6.30
[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 _0x41ee=['save','update','removeListener','./mailQueue.events'];(function(_0x31d608,_0x395747){var _0x259b9c=function(_0x1a7797){while(--_0x1a7797){_0x31d608['push'](_0x31d608['shift']());}};_0x259b9c(++_0x395747);}(_0x41ee,0x9b));var _0xe41e=function(_0x10499e,_0x56fd86){_0x10499e=_0x10499e-0x0;var _0x3fef98=_0x41ee[_0x10499e];return _0x3fef98;};'use strict';var MailQueueEvents=require(_0xe41e('0x0'));var events=[_0xe41e('0x1'),'remove',_0xe41e('0x2')];function createListener(_0x509ab8,_0x39eb7e){return function(_0x2b5998){_0x39eb7e['emit'](_0x509ab8,_0x2b5998);};}function removeListener(_0x39e853,_0x335835){return function(){MailQueueEvents[_0xe41e('0x3')](_0x39e853,_0x335835);};}exports['register']=function(_0x2a8e08){for(var _0x29e885=0x0,_0x20854d=events['length'];_0x29e885<_0x20854d;_0x29e885++){var _0x24185f=events[_0x29e885];var _0x351964=createListener('mailQueue:'+_0x24185f,_0x2a8e08);MailQueueEvents['on'](_0x24185f,_0x351964);}};