Built motion from commit (unavailable).|2.5.9
[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 _0xbaee=['length','./whatsappQueue.events','save','remove','emit','removeListener'];(function(_0x2b3b1d,_0x51e0f9){var _0x5156a0=function(_0x59aa85){while(--_0x59aa85){_0x2b3b1d['push'](_0x2b3b1d['shift']());}};_0x5156a0(++_0x51e0f9);}(_0xbaee,0xeb));var _0xebae=function(_0x449b85,_0xe54d2d){_0x449b85=_0x449b85-0x0;var _0x459774=_0xbaee[_0x449b85];return _0x459774;};'use strict';var WhatsappQueueEvents=require(_0xebae('0x0'));var events=[_0xebae('0x1'),_0xebae('0x2'),'update'];function createListener(_0x306f42,_0x325aec){return function(_0x3c29b2){_0x325aec[_0xebae('0x3')](_0x306f42,_0x3c29b2);};}function removeListener(_0xde5d63,_0x4b8de0){return function(){WhatsappQueueEvents[_0xebae('0x4')](_0xde5d63,_0x4b8de0);};}exports['register']=function(_0x4ca29f){for(var _0x4bc75e=0x0,_0x451196=events[_0xebae('0x5')];_0x4bc75e<_0x451196;_0x4bc75e++){var _0xa7fd68=events[_0x4bc75e];var _0x57c789=createListener('whatsappQueue:'+_0xa7fd68,_0x4ca29f);WhatsappQueueEvents['on'](_0xa7fd68,_0x57c789);}};