Built motion from commit 775e2a94.|2.6.3
[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 _0xea30=['save','remove','update','removeListener','register','length'];(function(_0x11125a,_0x187d8c){var _0x242aa0=function(_0x4d1998){while(--_0x4d1998){_0x11125a['push'](_0x11125a['shift']());}};_0x242aa0(++_0x187d8c);}(_0xea30,0x186));var _0x0ea3=function(_0x3a841f,_0x377450){_0x3a841f=_0x3a841f-0x0;var _0x3c17fe=_0xea30[_0x3a841f];return _0x3c17fe;};'use strict';var WhatsappInteractionEvents=require('./whatsappInteraction.events');var events=[_0x0ea3('0x0'),_0x0ea3('0x1'),_0x0ea3('0x2')];function createListener(_0x39c309,_0x5a0a31){return function(_0x38d5de){_0x5a0a31['emit'](_0x39c309,_0x38d5de);};}function removeListener(_0x304a73,_0x5a41b1){return function(){WhatsappInteractionEvents[_0x0ea3('0x3')](_0x304a73,_0x5a41b1);};}exports[_0x0ea3('0x4')]=function(_0x5e514d){for(var _0x31c039=0x0,_0x2cd228=events[_0x0ea3('0x5')];_0x31c039<_0x2cd228;_0x31c039++){var _0x3c5e72=events[_0x31c039];var _0x3c1d15=createListener('whatsappInteraction:'+_0x3c5e72,_0x5e514d);WhatsappInteractionEvents['on'](_0x3c5e72,_0x3c1d15);}};