Built motion from commit (unavailable).|2.5.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 _0xab09=['removeListener','register','length','mailQueue:','./mailQueue.events','save','update','emit'];(function(_0x292fbe,_0x1148ec){var _0x53ddce=function(_0x1890e5){while(--_0x1890e5){_0x292fbe['push'](_0x292fbe['shift']());}};_0x53ddce(++_0x1148ec);}(_0xab09,0x12c));var _0x9ab0=function(_0x56aac6,_0x5bd6f0){_0x56aac6=_0x56aac6-0x0;var _0x448cb3=_0xab09[_0x56aac6];return _0x448cb3;};'use strict';var MailQueueEvents=require(_0x9ab0('0x0'));var events=[_0x9ab0('0x1'),'remove',_0x9ab0('0x2')];function createListener(_0x54e8c2,_0x2c2132){return function(_0x4e27aa){_0x2c2132[_0x9ab0('0x3')](_0x54e8c2,_0x4e27aa);};}function removeListener(_0x17c118,_0x334c9e){return function(){MailQueueEvents[_0x9ab0('0x4')](_0x17c118,_0x334c9e);};}exports[_0x9ab0('0x5')]=function(_0x20e037){for(var _0x23e263=0x0,_0x19f571=events[_0x9ab0('0x6')];_0x23e263<_0x19f571;_0x23e263++){var _0x563a43=events[_0x23e263];var _0x3f5fe3=createListener(_0x9ab0('0x7')+_0x563a43,_0x20e037);MailQueueEvents['on'](_0x563a43,_0x3f5fe3);}};