Built motion from commit (unavailable).|2.6.0
[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 _0xccc7=['length','mailQueue:','remove','update','emit','removeListener','register'];(function(_0x3c599d,_0x1395a2){var _0x1d6325=function(_0x540b37){while(--_0x540b37){_0x3c599d['push'](_0x3c599d['shift']());}};_0x1d6325(++_0x1395a2);}(_0xccc7,0x1a6));var _0x7ccc=function(_0x4dc7b9,_0x319d5a){_0x4dc7b9=_0x4dc7b9-0x0;var _0x3ab114=_0xccc7[_0x4dc7b9];return _0x3ab114;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=['save',_0x7ccc('0x0'),_0x7ccc('0x1')];function createListener(_0x484e8c,_0x45da88){return function(_0x46d353){_0x45da88[_0x7ccc('0x2')](_0x484e8c,_0x46d353);};}function removeListener(_0x2aaed0,_0x159310){return function(){MailQueueEvents[_0x7ccc('0x3')](_0x2aaed0,_0x159310);};}exports[_0x7ccc('0x4')]=function(_0x41fdfa){for(var _0x4c925b=0x0,_0x32b5ff=events[_0x7ccc('0x5')];_0x4c925b<_0x32b5ff;_0x4c925b++){var _0x106725=events[_0x4c925b];var _0x2c31ec=createListener(_0x7ccc('0x6')+_0x106725,_0x41fdfa);MailQueueEvents['on'](_0x106725,_0x2c31ec);}};