Built motion from commit 3e059bc2.|2.5.32
[motion2.git] / server / api / whatsappQueue / whatsappQueue.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 _0xa326=['./whatsappQueue.events','save','remove','update','emit','removeListener','register','length'];(function(_0x334841,_0x2bbc4c){var _0x5beb4b=function(_0x4bea72){while(--_0x4bea72){_0x334841['push'](_0x334841['shift']());}};_0x5beb4b(++_0x2bbc4c);}(_0xa326,0x110));var _0x6a32=function(_0x53ccf4,_0x304a90){_0x53ccf4=_0x53ccf4-0x0;var _0x50ef36=_0xa326[_0x53ccf4];return _0x50ef36;};'use strict';var WhatsappQueueEvents=require(_0x6a32('0x0'));var events=[_0x6a32('0x1'),_0x6a32('0x2'),_0x6a32('0x3')];function createListener(_0x2f1a98,_0x355ed5){return function(_0x534af0){_0x355ed5[_0x6a32('0x4')](_0x2f1a98,_0x534af0);};}function removeListener(_0x528d16,_0x3da010){return function(){WhatsappQueueEvents[_0x6a32('0x5')](_0x528d16,_0x3da010);};}exports[_0x6a32('0x6')]=function(_0x4aee86){for(var _0x5056a5=0x0,_0x1c0231=events[_0x6a32('0x7')];_0x5056a5<_0x1c0231;_0x5056a5++){var _0x56d464=events[_0x5056a5];var _0xc45ab3=createListener('whatsappQueue:'+_0x56d464,_0x4aee86);WhatsappQueueEvents['on'](_0x56d464,_0xc45ab3);}};