Built motion from commit 3c2ce842.|2.6.31
[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 _0x4bb9=['save','remove','emit','removeListener','register','length','whatsappQueue:','./whatsappQueue.events'];(function(_0x1eb5da,_0x1974ec){var _0x579a2f=function(_0x502c14){while(--_0x502c14){_0x1eb5da['push'](_0x1eb5da['shift']());}};_0x579a2f(++_0x1974ec);}(_0x4bb9,0x1df));var _0x94bb=function(_0x26013a,_0x47e64c){_0x26013a=_0x26013a-0x0;var _0x25c273=_0x4bb9[_0x26013a];return _0x25c273;};'use strict';var WhatsappQueueEvents=require(_0x94bb('0x0'));var events=[_0x94bb('0x1'),_0x94bb('0x2'),'update'];function createListener(_0x421b7a,_0x3efd12){return function(_0x3e9cb1){_0x3efd12[_0x94bb('0x3')](_0x421b7a,_0x3e9cb1);};}function removeListener(_0x10ba50,_0x4e6ee4){return function(){WhatsappQueueEvents[_0x94bb('0x4')](_0x10ba50,_0x4e6ee4);};}exports[_0x94bb('0x5')]=function(_0x5e3cba){for(var _0x2d530e=0x0,_0xf201b5=events[_0x94bb('0x6')];_0x2d530e<_0xf201b5;_0x2d530e++){var _0x4d89bc=events[_0x2d530e];var _0x3d08e2=createListener(_0x94bb('0x7')+_0x4d89bc,_0x5e3cba);WhatsappQueueEvents['on'](_0x4d89bc,_0x3d08e2);}};