a709e613840fc0892632b7acfb678eb625ef5917
[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 _0x40c9=['save','emit','length','mailQueue:','./mailQueue.events'];(function(_0x490be3,_0xf0fca3){var _0x3f5140=function(_0x15fa80){while(--_0x15fa80){_0x490be3['push'](_0x490be3['shift']());}};_0x3f5140(++_0xf0fca3);}(_0x40c9,0xdb));var _0x940c=function(_0x17d095,_0x281068){_0x17d095=_0x17d095-0x0;var _0x3a51e2=_0x40c9[_0x17d095];return _0x3a51e2;};'use strict';var MailQueueEvents=require(_0x940c('0x0'));var events=[_0x940c('0x1'),'remove','update'];function createListener(_0x4ecc07,_0x529947){return function(_0x319ee2){_0x529947[_0x940c('0x2')](_0x4ecc07,_0x319ee2);};}function removeListener(_0x3de135,_0x1b23f8){return function(){MailQueueEvents['removeListener'](_0x3de135,_0x1b23f8);};}exports['register']=function(_0x249f45){for(var _0x3d4ddb=0x0,_0x3b5537=events[_0x940c('0x3')];_0x3d4ddb<_0x3b5537;_0x3d4ddb++){var _0x1c79ae=events[_0x3d4ddb];var _0x1a9f12=createListener(_0x940c('0x4')+_0x1c79ae,_0x249f45);MailQueueEvents['on'](_0x1c79ae,_0x1a9f12);}};