Built motion from commit (unavailable).|2.3.9
[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 _0x1409=['./mailQueue.events','save','remove','update','emit','removeListener','register','length'];(function(_0x54f996,_0x2464f8){var _0x3a7f6b=function(_0x381c50){while(--_0x381c50){_0x54f996['push'](_0x54f996['shift']());}};_0x3a7f6b(++_0x2464f8);}(_0x1409,0xb8));var _0x9140=function(_0x491f14,_0x51dd91){_0x491f14=_0x491f14-0x0;var _0x2c215a=_0x1409[_0x491f14];return _0x2c215a;};'use strict';var MailQueueEvents=require(_0x9140('0x0'));var events=[_0x9140('0x1'),_0x9140('0x2'),_0x9140('0x3')];function createListener(_0x3afd6e,_0x27586e){return function(_0x22221a){_0x27586e[_0x9140('0x4')](_0x3afd6e,_0x22221a);};}function removeListener(_0x28f488,_0x286aff){return function(){MailQueueEvents[_0x9140('0x5')](_0x28f488,_0x286aff);};}exports[_0x9140('0x6')]=function(_0x1a37ac){for(var _0x48a1b1=0x0,_0x13e26e=events[_0x9140('0x7')];_0x48a1b1<_0x13e26e;_0x48a1b1++){var _0x40a674=events[_0x48a1b1];var _0x158e79=createListener('mailQueue:'+_0x40a674,_0x1a37ac);MailQueueEvents['on'](_0x40a674,_0x158e79);}};