Built motion from commit (unavailable).|2.6.0
[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 _0xa25b=['emit','removeListener','register','length','./whatsappQueue.events','save','update'];(function(_0x33a21a,_0x22d1a8){var _0x4c628e=function(_0x59edab){while(--_0x59edab){_0x33a21a['push'](_0x33a21a['shift']());}};_0x4c628e(++_0x22d1a8);}(_0xa25b,0x170));var _0xba25=function(_0xfb3862,_0x2aa9fb){_0xfb3862=_0xfb3862-0x0;var _0x1e0d98=_0xa25b[_0xfb3862];return _0x1e0d98;};'use strict';var WhatsappQueueEvents=require(_0xba25('0x0'));var events=[_0xba25('0x1'),'remove',_0xba25('0x2')];function createListener(_0x5be2b5,_0xed0ef6){return function(_0x1be9e7){_0xed0ef6[_0xba25('0x3')](_0x5be2b5,_0x1be9e7);};}function removeListener(_0x191138,_0x5738a9){return function(){WhatsappQueueEvents[_0xba25('0x4')](_0x191138,_0x5738a9);};}exports[_0xba25('0x5')]=function(_0x55b5a7){for(var _0xa2c83b=0x0,_0x23bfb9=events[_0xba25('0x6')];_0xa2c83b<_0x23bfb9;_0xa2c83b++){var _0x2a1ff5=events[_0xa2c83b];var _0x5b6d01=createListener('whatsappQueue:'+_0x2a1ff5,_0x55b5a7);WhatsappQueueEvents['on'](_0x2a1ff5,_0x5b6d01);}};