Built motion from commit 753c950e.|2.5.42
[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 _0x639f=['emit','removeListener','whatsappMessage:','./whatsappMessage.events','save','update'];(function(_0x4ec42,_0x36177b){var _0x385e11=function(_0x44e535){while(--_0x44e535){_0x4ec42['push'](_0x4ec42['shift']());}};_0x385e11(++_0x36177b);}(_0x639f,0x1e9));var _0xf639=function(_0xf8c56f,_0x58435e){_0xf8c56f=_0xf8c56f-0x0;var _0x29c05c=_0x639f[_0xf8c56f];return _0x29c05c;};'use strict';var WhatsappMessageEvents=require(_0xf639('0x0'));var events=[_0xf639('0x1'),'remove',_0xf639('0x2')];function createListener(_0x113329,_0x3e0081){return function(_0x44c604){_0x3e0081[_0xf639('0x3')](_0x113329,_0x44c604);};}function removeListener(_0x3ffba8,_0x1d1cdc){return function(){WhatsappMessageEvents[_0xf639('0x4')](_0x3ffba8,_0x1d1cdc);};}exports['register']=function(_0x3e7466){for(var _0x11e7d9=0x0,_0x2b5a4b=events['length'];_0x11e7d9<_0x2b5a4b;_0x11e7d9++){var _0x2e8f57=events[_0x11e7d9];var _0x4ed51c=createListener(_0xf639('0x5')+_0x2e8f57,_0x3e7466);WhatsappMessageEvents['on'](_0x2e8f57,_0x4ed51c);}};