Built motion from commit efa66e19.|2.6.22
[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 _0x077f=['removeListener','register','length','mailQueue:','./mailQueue.events','save','update','emit'];(function(_0x1b6801,_0x365fc8){var _0xe84e12=function(_0x1ff27e){while(--_0x1ff27e){_0x1b6801['push'](_0x1b6801['shift']());}};_0xe84e12(++_0x365fc8);}(_0x077f,0x64));var _0xf077=function(_0x1f21da,_0x2fa4a6){_0x1f21da=_0x1f21da-0x0;var _0x335af4=_0x077f[_0x1f21da];return _0x335af4;};'use strict';var MailQueueEvents=require(_0xf077('0x0'));var events=[_0xf077('0x1'),'remove',_0xf077('0x2')];function createListener(_0x12c824,_0x242b59){return function(_0x4c93f4){_0x242b59[_0xf077('0x3')](_0x12c824,_0x4c93f4);};}function removeListener(_0x1e19fe,_0x18d1b6){return function(){MailQueueEvents[_0xf077('0x4')](_0x1e19fe,_0x18d1b6);};}exports[_0xf077('0x5')]=function(_0x18205a){for(var _0x110290=0x0,_0x3263ee=events[_0xf077('0x6')];_0x110290<_0x3263ee;_0x110290++){var _0x5d71e0=events[_0x110290];var _0x5b7f91=createListener(_0xf077('0x7')+_0x5d71e0,_0x18205a);MailQueueEvents['on'](_0x5d71e0,_0x5b7f91);}};