Built motion from commit (unavailable).|2.5.12
[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 _0x5f37=['register','length','whatsappInteraction:','./whatsappInteraction.events','save','remove','emit','removeListener'];(function(_0x1ff0e1,_0x1e7b6a){var _0x1c2c66=function(_0x272e11){while(--_0x272e11){_0x1ff0e1['push'](_0x1ff0e1['shift']());}};_0x1c2c66(++_0x1e7b6a);}(_0x5f37,0x1e3));var _0x75f3=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0x5f37[_0x2641f9];return _0x585741;};'use strict';var WhatsappInteractionEvents=require(_0x75f3('0x0'));var events=[_0x75f3('0x1'),_0x75f3('0x2'),'update'];function createListener(_0x1b9476,_0x4d0edf){return function(_0x3cb695){_0x4d0edf[_0x75f3('0x3')](_0x1b9476,_0x3cb695);};}function removeListener(_0x1609f3,_0x2b948a){return function(){WhatsappInteractionEvents[_0x75f3('0x4')](_0x1609f3,_0x2b948a);};}exports[_0x75f3('0x5')]=function(_0x590350){for(var _0x2e3e68=0x0,_0x6c8cc9=events[_0x75f3('0x6')];_0x2e3e68<_0x6c8cc9;_0x2e3e68++){var _0x2344bc=events[_0x2e3e68];var _0x3e2836=createListener(_0x75f3('0x7')+_0x2344bc,_0x590350);WhatsappInteractionEvents['on'](_0x2344bc,_0x3e2836);}};