Built motion from commit (unavailable).|2.5.0
[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 _0x2970=['emit','removeListener','register','length','whatsappInteraction:','./whatsappInteraction.events','save','remove'];(function(_0x4c9939,_0x551483){var _0x1323bc=function(_0x948d6d){while(--_0x948d6d){_0x4c9939['push'](_0x4c9939['shift']());}};_0x1323bc(++_0x551483);}(_0x2970,0xfd));var _0x0297=function(_0x13651c,_0x1b81c5){_0x13651c=_0x13651c-0x0;var _0xc6ea66=_0x2970[_0x13651c];return _0xc6ea66;};'use strict';var WhatsappInteractionEvents=require(_0x0297('0x0'));var events=[_0x0297('0x1'),_0x0297('0x2'),'update'];function createListener(_0xcb625d,_0x226a3a){return function(_0x2e6726){_0x226a3a[_0x0297('0x3')](_0xcb625d,_0x2e6726);};}function removeListener(_0x2d2cfb,_0x203c49){return function(){WhatsappInteractionEvents[_0x0297('0x4')](_0x2d2cfb,_0x203c49);};}exports[_0x0297('0x5')]=function(_0x42fe47){for(var _0x5dcb6d=0x0,_0x163284=events[_0x0297('0x6')];_0x5dcb6d<_0x163284;_0x5dcb6d++){var _0x359ac1=events[_0x5dcb6d];var _0x601e73=createListener(_0x0297('0x7')+_0x359ac1,_0x42fe47);WhatsappInteractionEvents['on'](_0x359ac1,_0x601e73);}};