Built motion from commit 44b1f254.|2.6.26
[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 _0x4f15=['./mailQueue.events','remove','update','emit','removeListener','register','length','mailQueue:'];(function(_0x32e74e,_0x32edb8){var _0x1c5a58=function(_0xf04e88){while(--_0xf04e88){_0x32e74e['push'](_0x32e74e['shift']());}};_0x1c5a58(++_0x32edb8);}(_0x4f15,0x130));var _0x54f1=function(_0x50db80,_0x561efb){_0x50db80=_0x50db80-0x0;var _0x369e49=_0x4f15[_0x50db80];return _0x369e49;};'use strict';var MailQueueEvents=require(_0x54f1('0x0'));var events=['save',_0x54f1('0x1'),_0x54f1('0x2')];function createListener(_0x47af1e,_0x35bc29){return function(_0x183daf){_0x35bc29[_0x54f1('0x3')](_0x47af1e,_0x183daf);};}function removeListener(_0x4f596c,_0x2a9794){return function(){MailQueueEvents[_0x54f1('0x4')](_0x4f596c,_0x2a9794);};}exports[_0x54f1('0x5')]=function(_0x1ff1ac){for(var _0x2fd7de=0x0,_0x14709e=events[_0x54f1('0x6')];_0x2fd7de<_0x14709e;_0x2fd7de++){var _0x24180a=events[_0x2fd7de];var _0x4de2ab=createListener(_0x54f1('0x7')+_0x24180a,_0x1ff1ac);MailQueueEvents['on'](_0x24180a,_0x4de2ab);}};