Built motion from commit f0b1811d.|2.6.6
[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 _0x0c85=['save','remove','update','emit','register','length','whatsappInteraction:','./whatsappInteraction.events'];(function(_0x1a22ef,_0x1ef6df){var _0x4a8226=function(_0x47508a){while(--_0x47508a){_0x1a22ef['push'](_0x1a22ef['shift']());}};_0x4a8226(++_0x1ef6df);}(_0x0c85,0x7f));var _0x50c8=function(_0x5ccda9,_0x4386de){_0x5ccda9=_0x5ccda9-0x0;var _0x14723d=_0x0c85[_0x5ccda9];return _0x14723d;};'use strict';var WhatsappInteractionEvents=require(_0x50c8('0x0'));var events=[_0x50c8('0x1'),_0x50c8('0x2'),_0x50c8('0x3')];function createListener(_0x5c2afb,_0x167b52){return function(_0x46b505){_0x167b52[_0x50c8('0x4')](_0x5c2afb,_0x46b505);};}function removeListener(_0x16a5c9,_0x4ec4f4){return function(){WhatsappInteractionEvents['removeListener'](_0x16a5c9,_0x4ec4f4);};}exports[_0x50c8('0x5')]=function(_0x18c426){for(var _0x56f271=0x0,_0x44ae99=events[_0x50c8('0x6')];_0x56f271<_0x44ae99;_0x56f271++){var _0x30a8c9=events[_0x56f271];var _0x3d4361=createListener(_0x50c8('0x7')+_0x30a8c9,_0x18c426);WhatsappInteractionEvents['on'](_0x30a8c9,_0x3d4361);}};