Built motion from commit (unavailable).|2.5.14
[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 _0x6aba=['register','length','./mailQueue.events','update','removeListener'];(function(_0x24237f,_0x4cf32c){var _0x48298e=function(_0x3f7511){while(--_0x3f7511){_0x24237f['push'](_0x24237f['shift']());}};_0x48298e(++_0x4cf32c);}(_0x6aba,0x75));var _0xa6ab=function(_0x3f03c7,_0x11df23){_0x3f03c7=_0x3f03c7-0x0;var _0x336de8=_0x6aba[_0x3f03c7];return _0x336de8;};'use strict';var MailQueueEvents=require(_0xa6ab('0x0'));var events=['save','remove',_0xa6ab('0x1')];function createListener(_0x3b30b5,_0x3a5e03){return function(_0x256414){_0x3a5e03['emit'](_0x3b30b5,_0x256414);};}function removeListener(_0x55e7b4,_0x1e34e3){return function(){MailQueueEvents[_0xa6ab('0x2')](_0x55e7b4,_0x1e34e3);};}exports[_0xa6ab('0x3')]=function(_0x102a20){for(var _0x4463a6=0x0,_0x3064b5=events[_0xa6ab('0x4')];_0x4463a6<_0x3064b5;_0x4463a6++){var _0x1e895e=events[_0x4463a6];var _0x21b005=createListener('mailQueue:'+_0x1e895e,_0x102a20);MailQueueEvents['on'](_0x1e895e,_0x21b005);}};