Built motion from commit da24aabd.|2.6.20
[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 _0x4743=['save','remove','update','register','mailQueue:','./mailQueue.events'];(function(_0x197185,_0x251145){var _0x2c8af1=function(_0x1dbcfd){while(--_0x1dbcfd){_0x197185['push'](_0x197185['shift']());}};_0x2c8af1(++_0x251145);}(_0x4743,0x173));var _0x3474=function(_0x303064,_0x12f0c2){_0x303064=_0x303064-0x0;var _0x5a1d3d=_0x4743[_0x303064];return _0x5a1d3d;};'use strict';var MailQueueEvents=require(_0x3474('0x0'));var events=[_0x3474('0x1'),_0x3474('0x2'),_0x3474('0x3')];function createListener(_0xd0f726,_0x285db6){return function(_0x248761){_0x285db6['emit'](_0xd0f726,_0x248761);};}function removeListener(_0xa79cc0,_0x3068d5){return function(){MailQueueEvents['removeListener'](_0xa79cc0,_0x3068d5);};}exports[_0x3474('0x4')]=function(_0x4b1f3c){for(var _0x3e6d90=0x0,_0xff985e=events['length'];_0x3e6d90<_0xff985e;_0x3e6d90++){var _0x4da044=events[_0x3e6d90];var _0x16100e=createListener(_0x3474('0x5')+_0x4da044,_0x4b1f3c);MailQueueEvents['on'](_0x4da044,_0x16100e);}};