8d031e19cd3ebf063b5d5d2ce811de1092252423
[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 _0xe495=['save','remove','update','emit','removeListener','length','./whatsappQueue.events'];(function(_0x4d1a22,_0x26d848){var _0x341065=function(_0x1e994c){while(--_0x1e994c){_0x4d1a22['push'](_0x4d1a22['shift']());}};_0x341065(++_0x26d848);}(_0xe495,0x1f0));var _0x5e49=function(_0x46698a,_0x8de1e4){_0x46698a=_0x46698a-0x0;var _0x356db0=_0xe495[_0x46698a];return _0x356db0;};'use strict';var WhatsappQueueEvents=require(_0x5e49('0x0'));var events=[_0x5e49('0x1'),_0x5e49('0x2'),_0x5e49('0x3')];function createListener(_0x4fd504,_0x4eeedd){return function(_0x467e11){_0x4eeedd[_0x5e49('0x4')](_0x4fd504,_0x467e11);};}function removeListener(_0x29c38a,_0x12eead){return function(){WhatsappQueueEvents[_0x5e49('0x5')](_0x29c38a,_0x12eead);};}exports['register']=function(_0x508eeb){for(var _0x1e652e=0x0,_0x45c207=events[_0x5e49('0x6')];_0x1e652e<_0x45c207;_0x1e652e++){var _0x4fc09e=events[_0x1e652e];var _0x417be9=createListener('whatsappQueue:'+_0x4fc09e,_0x508eeb);WhatsappQueueEvents['on'](_0x4fc09e,_0x417be9);}};