Built motion from commit (unavailable).|2.5.23
[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 _0x1100=['mailQueue:','save','remove','update','emit','register','length'];(function(_0x32d926,_0x1e3ba6){var _0x22d3d1=function(_0x3f2ed5){while(--_0x3f2ed5){_0x32d926['push'](_0x32d926['shift']());}};_0x22d3d1(++_0x1e3ba6);}(_0x1100,0x1dd));var _0x0110=function(_0x1df21e,_0x283838){_0x1df21e=_0x1df21e-0x0;var _0x198062=_0x1100[_0x1df21e];return _0x198062;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=[_0x0110('0x0'),_0x0110('0x1'),_0x0110('0x2')];function createListener(_0x11003b,_0x40abb7){return function(_0x52f717){_0x40abb7[_0x0110('0x3')](_0x11003b,_0x52f717);};}function removeListener(_0x11a963,_0x14197b){return function(){MailQueueEvents['removeListener'](_0x11a963,_0x14197b);};}exports[_0x0110('0x4')]=function(_0x37652d){for(var _0xaff39a=0x0,_0x5572f0=events[_0x0110('0x5')];_0xaff39a<_0x5572f0;_0xaff39a++){var _0x2b8d2f=events[_0xaff39a];var _0x3c0b89=createListener(_0x0110('0x6')+_0x2b8d2f,_0x37652d);MailQueueEvents['on'](_0x2b8d2f,_0x3c0b89);}};