705da097a324e2f66487a1ceafcec4bc000e4535
[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 _0x3d25=['save','remove','emit','removeListener','register','length','whatsappInteraction:','./whatsappInteraction.events'];(function(_0x131947,_0xcd4c15){var _0x5301e6=function(_0x2dd77c){while(--_0x2dd77c){_0x131947['push'](_0x131947['shift']());}};_0x5301e6(++_0xcd4c15);}(_0x3d25,0x1af));var _0x53d2=function(_0x826bbc,_0x396589){_0x826bbc=_0x826bbc-0x0;var _0x2edd14=_0x3d25[_0x826bbc];return _0x2edd14;};'use strict';var WhatsappInteractionEvents=require(_0x53d2('0x0'));var events=[_0x53d2('0x1'),_0x53d2('0x2'),'update'];function createListener(_0x29be21,_0x4f115b){return function(_0x387a46){_0x4f115b[_0x53d2('0x3')](_0x29be21,_0x387a46);};}function removeListener(_0xb354ca,_0x5aa701){return function(){WhatsappInteractionEvents[_0x53d2('0x4')](_0xb354ca,_0x5aa701);};}exports[_0x53d2('0x5')]=function(_0x24b792){for(var _0x25ade3=0x0,_0x158acc=events[_0x53d2('0x6')];_0x25ade3<_0x158acc;_0x25ade3++){var _0x3b5d3a=events[_0x25ade3];var _0x2d0eb3=createListener(_0x53d2('0x7')+_0x3b5d3a,_0x24b792);WhatsappInteractionEvents['on'](_0x3b5d3a,_0x2d0eb3);}};