Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / whatsappInteraction / whatsappInteraction.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 _0xb44d=['emit','removeListener','register','./whatsappInteraction.events','save','remove','update'];(function(_0x133675,_0x2f3b8c){var _0xc19366=function(_0x491264){while(--_0x491264){_0x133675['push'](_0x133675['shift']());}};_0xc19366(++_0x2f3b8c);}(_0xb44d,0x1d1));var _0xdb44=function(_0x2f5ac5,_0x1ee939){_0x2f5ac5=_0x2f5ac5-0x0;var _0x37c9a8=_0xb44d[_0x2f5ac5];return _0x37c9a8;};'use strict';var WhatsappInteractionEvents=require(_0xdb44('0x0'));var events=[_0xdb44('0x1'),_0xdb44('0x2'),_0xdb44('0x3')];function createListener(_0x2e9128,_0x2d929a){return function(_0x5da684){_0x2d929a[_0xdb44('0x4')](_0x2e9128,_0x5da684);};}function removeListener(_0x4a14c7,_0x2d22ea){return function(){WhatsappInteractionEvents[_0xdb44('0x5')](_0x4a14c7,_0x2d22ea);};}exports[_0xdb44('0x6')]=function(_0x27d030){for(var _0x35b6b7=0x0,_0x29cd5e=events['length'];_0x35b6b7<_0x29cd5e;_0x35b6b7++){var _0x5189b9=events[_0x35b6b7];var _0x18ddee=createListener('whatsappInteraction:'+_0x5189b9,_0x27d030);WhatsappInteractionEvents['on'](_0x5189b9,_0x18ddee);}};