Built motion from commit (unavailable).|2.5.10
[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 _0x00f3=['removeListener','register','length','./mailQueue.events','save','remove','emit'];(function(_0x3765e2,_0x4e1fba){var _0x144efb=function(_0x1b1ad0){while(--_0x1b1ad0){_0x3765e2['push'](_0x3765e2['shift']());}};_0x144efb(++_0x4e1fba);}(_0x00f3,0xdc));var _0x300f=function(_0x150b5c,_0xa98965){_0x150b5c=_0x150b5c-0x0;var _0x1d3fd1=_0x00f3[_0x150b5c];return _0x1d3fd1;};'use strict';var MailQueueEvents=require(_0x300f('0x0'));var events=[_0x300f('0x1'),_0x300f('0x2'),'update'];function createListener(_0x45ce19,_0x346f5e){return function(_0x162395){_0x346f5e[_0x300f('0x3')](_0x45ce19,_0x162395);};}function removeListener(_0x554cec,_0x1c2e69){return function(){MailQueueEvents[_0x300f('0x4')](_0x554cec,_0x1c2e69);};}exports[_0x300f('0x5')]=function(_0x124c12){for(var _0x43fac0=0x0,_0xd78d9f=events[_0x300f('0x6')];_0x43fac0<_0xd78d9f;_0x43fac0++){var _0x79f5de=events[_0x43fac0];var _0x328567=createListener('mailQueue:'+_0x79f5de,_0x124c12);MailQueueEvents['on'](_0x79f5de,_0x328567);}};