Built motion from commit (unavailable).|2.4.17
[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 _0x48a5=['./mailQueue.events','save','remove','emit','register','length'];(function(_0x104954,_0x4bee51){var _0x2a1d83=function(_0x38ce2e){while(--_0x38ce2e){_0x104954['push'](_0x104954['shift']());}};_0x2a1d83(++_0x4bee51);}(_0x48a5,0x174));var _0x548a=function(_0x5c7c8c,_0x1988dd){_0x5c7c8c=_0x5c7c8c-0x0;var _0x3ea6a1=_0x48a5[_0x5c7c8c];return _0x3ea6a1;};'use strict';var MailQueueEvents=require(_0x548a('0x0'));var events=[_0x548a('0x1'),_0x548a('0x2'),'update'];function createListener(_0x34b0e5,_0x5142f8){return function(_0x59cdf0){_0x5142f8[_0x548a('0x3')](_0x34b0e5,_0x59cdf0);};}function removeListener(_0xaea6a1,_0xa03451){return function(){MailQueueEvents['removeListener'](_0xaea6a1,_0xa03451);};}exports[_0x548a('0x4')]=function(_0x567d6e){for(var _0x497809=0x0,_0x1de2fe=events[_0x548a('0x5')];_0x497809<_0x1de2fe;_0x497809++){var _0x2115cb=events[_0x497809];var _0x31972c=createListener('mailQueue:'+_0x2115cb,_0x567d6e);MailQueueEvents['on'](_0x2115cb,_0x31972c);}};