Built motion from commit (unavailable).|2.5.25
[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 _0xb1b8=['mailQueue:','./mailQueue.events','save','update','removeListener','register'];(function(_0x255987,_0xc64c4e){var _0x5c7d86=function(_0x40c4ea){while(--_0x40c4ea){_0x255987['push'](_0x255987['shift']());}};_0x5c7d86(++_0xc64c4e);}(_0xb1b8,0x1bd));var _0x8b1b=function(_0x4529b3,_0x390ebb){_0x4529b3=_0x4529b3-0x0;var _0x21e907=_0xb1b8[_0x4529b3];return _0x21e907;};'use strict';var MailQueueEvents=require(_0x8b1b('0x0'));var events=[_0x8b1b('0x1'),'remove',_0x8b1b('0x2')];function createListener(_0x2a5e86,_0x4d5e30){return function(_0x4ab9fd){_0x4d5e30['emit'](_0x2a5e86,_0x4ab9fd);};}function removeListener(_0xa5b95,_0x53f594){return function(){MailQueueEvents[_0x8b1b('0x3')](_0xa5b95,_0x53f594);};}exports[_0x8b1b('0x4')]=function(_0xa4e147){for(var _0x13013a=0x0,_0x647d24=events['length'];_0x13013a<_0x647d24;_0x13013a++){var _0x4f0e10=events[_0x13013a];var _0x108f27=createListener(_0x8b1b('0x5')+_0x4f0e10,_0xa4e147);MailQueueEvents['on'](_0x4f0e10,_0x108f27);}};