Built motion from commit eddce310.|2.6.12
[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 _0xaae8=['remove','update','emit','removeListener','register','length','whatsappQueue:','./whatsappQueue.events','save'];(function(_0x3d4e45,_0x114c65){var _0x28120d=function(_0x3465ae){while(--_0x3465ae){_0x3d4e45['push'](_0x3d4e45['shift']());}};_0x28120d(++_0x114c65);}(_0xaae8,0x139));var _0x8aae=function(_0x342528,_0x2c1c40){_0x342528=_0x342528-0x0;var _0x3dbf26=_0xaae8[_0x342528];return _0x3dbf26;};'use strict';var WhatsappQueueEvents=require(_0x8aae('0x0'));var events=[_0x8aae('0x1'),_0x8aae('0x2'),_0x8aae('0x3')];function createListener(_0x215d0c,_0x2e65aa){return function(_0x36f05c){_0x2e65aa[_0x8aae('0x4')](_0x215d0c,_0x36f05c);};}function removeListener(_0x2d8518,_0x373583){return function(){WhatsappQueueEvents[_0x8aae('0x5')](_0x2d8518,_0x373583);};}exports[_0x8aae('0x6')]=function(_0x2d31f1){for(var _0x2f193b=0x0,_0x2ccacf=events[_0x8aae('0x7')];_0x2f193b<_0x2ccacf;_0x2f193b++){var _0xdaae5f=events[_0x2f193b];var _0x5bda24=createListener(_0x8aae('0x8')+_0xdaae5f,_0x2d31f1);WhatsappQueueEvents['on'](_0xdaae5f,_0x5bda24);}};