Built motion from commit (unavailable).|2.5.4
[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 _0x1545=['length','./whatsappQueue.events','save','remove','update','removeListener','register'];(function(_0x2060f8,_0x155202){var _0x533d1c=function(_0x42f71b){while(--_0x42f71b){_0x2060f8['push'](_0x2060f8['shift']());}};_0x533d1c(++_0x155202);}(_0x1545,0x1b3));var _0x5154=function(_0x166953,_0x214d3a){_0x166953=_0x166953-0x0;var _0x4a8baf=_0x1545[_0x166953];return _0x4a8baf;};'use strict';var WhatsappQueueEvents=require(_0x5154('0x0'));var events=[_0x5154('0x1'),_0x5154('0x2'),_0x5154('0x3')];function createListener(_0x2963bb,_0x4b7e9c){return function(_0x1f3362){_0x4b7e9c['emit'](_0x2963bb,_0x1f3362);};}function removeListener(_0x5f0757,_0x23c3c2){return function(){WhatsappQueueEvents[_0x5154('0x4')](_0x5f0757,_0x23c3c2);};}exports[_0x5154('0x5')]=function(_0x329b1e){for(var _0x2d17d8=0x0,_0x2498f9=events[_0x5154('0x6')];_0x2d17d8<_0x2498f9;_0x2d17d8++){var _0x273bd7=events[_0x2d17d8];var _0x13f56f=createListener('whatsappQueue:'+_0x273bd7,_0x329b1e);WhatsappQueueEvents['on'](_0x273bd7,_0x13f56f);}};