Built motion from commit (unavailable).|2.5.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 _0x9861=['update','emit','removeListener','register','mailQueue:','./mailQueue.events','remove'];(function(_0x4a5f5d,_0x577702){var _0x3344b4=function(_0x4ee75c){while(--_0x4ee75c){_0x4a5f5d['push'](_0x4a5f5d['shift']());}};_0x3344b4(++_0x577702);}(_0x9861,0x91));var _0x1986=function(_0x4ccb19,_0x16e232){_0x4ccb19=_0x4ccb19-0x0;var _0x28b9b6=_0x9861[_0x4ccb19];return _0x28b9b6;};'use strict';var MailQueueEvents=require(_0x1986('0x0'));var events=['save',_0x1986('0x1'),_0x1986('0x2')];function createListener(_0x5678bb,_0x40a324){return function(_0x22c762){_0x40a324[_0x1986('0x3')](_0x5678bb,_0x22c762);};}function removeListener(_0xcfefd2,_0x2d850d){return function(){MailQueueEvents[_0x1986('0x4')](_0xcfefd2,_0x2d850d);};}exports[_0x1986('0x5')]=function(_0x45c9dd){for(var _0x3163f8=0x0,_0x1396b4=events['length'];_0x3163f8<_0x1396b4;_0x3163f8++){var _0x531847=events[_0x3163f8];var _0x39b75d=createListener(_0x1986('0x6')+_0x531847,_0x45c9dd);MailQueueEvents['on'](_0x531847,_0x39b75d);}};