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 _0x865d=['removeListener','register','length','./mailQueue.events','save','remove','update','emit'];(function(_0x528511,_0x815fd3){var _0xd1b2b7=function(_0x3bf131){while(--_0x3bf131){_0x528511['push'](_0x528511['shift']());}};_0xd1b2b7(++_0x815fd3);}(_0x865d,0xbb));var _0xd865=function(_0x2235bf,_0x3a06a7){_0x2235bf=_0x2235bf-0x0;var _0x4c3a64=_0x865d[_0x2235bf];return _0x4c3a64;};'use strict';var MailQueueEvents=require(_0xd865('0x0'));var events=[_0xd865('0x1'),_0xd865('0x2'),_0xd865('0x3')];function createListener(_0x2d51a2,_0x4ebf96){return function(_0x1f4081){_0x4ebf96[_0xd865('0x4')](_0x2d51a2,_0x1f4081);};}function removeListener(_0x323024,_0x45502b){return function(){MailQueueEvents[_0xd865('0x5')](_0x323024,_0x45502b);};}exports[_0xd865('0x6')]=function(_0x24305b){for(var _0x286b4a=0x0,_0x2194b7=events[_0xd865('0x7')];_0x286b4a<_0x2194b7;_0x286b4a++){var _0x4f2e44=events[_0x286b4a];var _0x4891df=createListener('mailQueue:'+_0x4f2e44,_0x24305b);MailQueueEvents['on'](_0x4f2e44,_0x4891df);}};