Built motion from commit c116dc8b.|2.6.30
[motion2.git] / server / api / whatsappMessage / whatsappMessage.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 _0x638e=['whatsappMessage:','./whatsappMessage.events','save','remove','update','emit','removeListener','register','length'];(function(_0x86b219,_0x43038f){var _0x1f320c=function(_0x8cd63f){while(--_0x8cd63f){_0x86b219['push'](_0x86b219['shift']());}};_0x1f320c(++_0x43038f);}(_0x638e,0x18d));var _0xe638=function(_0x5e23e3,_0x859a20){_0x5e23e3=_0x5e23e3-0x0;var _0x388dba=_0x638e[_0x5e23e3];return _0x388dba;};'use strict';var WhatsappMessageEvents=require(_0xe638('0x0'));var events=[_0xe638('0x1'),_0xe638('0x2'),_0xe638('0x3')];function createListener(_0x2f9acc,_0x52ce61){return function(_0x2b43fc){_0x52ce61[_0xe638('0x4')](_0x2f9acc,_0x2b43fc);};}function removeListener(_0x308952,_0x5d7623){return function(){WhatsappMessageEvents[_0xe638('0x5')](_0x308952,_0x5d7623);};}exports[_0xe638('0x6')]=function(_0x713c3b){for(var _0x57f287=0x0,_0x11e268=events[_0xe638('0x7')];_0x57f287<_0x11e268;_0x57f287++){var _0xb635d7=events[_0x57f287];var _0x3464d9=createListener(_0xe638('0x8')+_0xb635d7,_0x713c3b);WhatsappMessageEvents['on'](_0xb635d7,_0x3464d9);}};