Built motion from commit 3061e47c.|2.6.31
[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 _0xa846=['register','mailQueue:','save','remove','update'];(function(_0x3ec1df,_0x3ec8a8){var _0x5a619f=function(_0x575e57){while(--_0x575e57){_0x3ec1df['push'](_0x3ec1df['shift']());}};_0x5a619f(++_0x3ec8a8);}(_0xa846,0x70));var _0x6a84=function(_0x5f37b1,_0x26fb91){_0x5f37b1=_0x5f37b1-0x0;var _0x31ab85=_0xa846[_0x5f37b1];return _0x31ab85;};'use strict';var MailQueueEvents=require('./mailQueue.events');var events=[_0x6a84('0x0'),_0x6a84('0x1'),_0x6a84('0x2')];function createListener(_0x413d17,_0x429fb2){return function(_0x2001e7){_0x429fb2['emit'](_0x413d17,_0x2001e7);};}function removeListener(_0x445a62,_0x433b7d){return function(){MailQueueEvents['removeListener'](_0x445a62,_0x433b7d);};}exports[_0x6a84('0x3')]=function(_0x1d803f){for(var _0x42c692=0x0,_0x388470=events['length'];_0x42c692<_0x388470;_0x42c692++){var _0x3ecb3d=events[_0x42c692];var _0x515aa9=createListener(_0x6a84('0x4')+_0x3ecb3d,_0x1d803f);MailQueueEvents['on'](_0x3ecb3d,_0x515aa9);}};