Built motion from commit b0a9a629.|2.6.33
[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 _0xb02c=['register','length','whatsappInteraction:','./whatsappInteraction.events','save','remove','update','emit','removeListener'];(function(_0x15605c,_0x3cd2cb){var _0x3fd1b0=function(_0x23ee7d){while(--_0x23ee7d){_0x15605c['push'](_0x15605c['shift']());}};_0x3fd1b0(++_0x3cd2cb);}(_0xb02c,0x150));var _0xcb02=function(_0x3ef850,_0x3b1518){_0x3ef850=_0x3ef850-0x0;var _0x4fd306=_0xb02c[_0x3ef850];return _0x4fd306;};'use strict';var WhatsappInteractionEvents=require(_0xcb02('0x0'));var events=[_0xcb02('0x1'),_0xcb02('0x2'),_0xcb02('0x3')];function createListener(_0x237c89,_0x34c6ba){return function(_0x1aa0c6){_0x34c6ba[_0xcb02('0x4')](_0x237c89,_0x1aa0c6);};}function removeListener(_0x41831b,_0x572e8c){return function(){WhatsappInteractionEvents[_0xcb02('0x5')](_0x41831b,_0x572e8c);};}exports[_0xcb02('0x6')]=function(_0x27954a){for(var _0x37fbf2=0x0,_0x234ad3=events[_0xcb02('0x7')];_0x37fbf2<_0x234ad3;_0x37fbf2++){var _0x3e5bf5=events[_0x37fbf2];var _0x3da4a4=createListener(_0xcb02('0x8')+_0x3e5bf5,_0x27954a);WhatsappInteractionEvents['on'](_0x3e5bf5,_0x3da4a4);}};