Built motion from commit (unavailable).|2.5.19
[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 _0x3701=['register','whatsappInteraction:','./whatsappInteraction.events','save','remove','update','emit','removeListener'];(function(_0x256d6a,_0x2f002f){var _0x460058=function(_0x195be7){while(--_0x195be7){_0x256d6a['push'](_0x256d6a['shift']());}};_0x460058(++_0x2f002f);}(_0x3701,0x182));var _0x1370=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x3701[_0x3dd15e];return _0x231fd0;};'use strict';var WhatsappInteractionEvents=require(_0x1370('0x0'));var events=[_0x1370('0x1'),_0x1370('0x2'),_0x1370('0x3')];function createListener(_0x5c9267,_0x53a7f3){return function(_0x2f2d6b){_0x53a7f3[_0x1370('0x4')](_0x5c9267,_0x2f2d6b);};}function removeListener(_0x1194bb,_0x42ecd7){return function(){WhatsappInteractionEvents[_0x1370('0x5')](_0x1194bb,_0x42ecd7);};}exports[_0x1370('0x6')]=function(_0x4a07b6){for(var _0x4c4a86=0x0,_0x1241c5=events['length'];_0x4c4a86<_0x1241c5;_0x4c4a86++){var _0x318d76=events[_0x4c4a86];var _0x4505af=createListener(_0x1370('0x7')+_0x318d76,_0x4a07b6);WhatsappInteractionEvents['on'](_0x318d76,_0x4505af);}};