Built motion from commit a61a4a20.|2.5.46
[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 _0x983a=['removeListener','register','whatsappInteraction:','./whatsappInteraction.events','save','remove','update','emit'];(function(_0x17d9e3,_0x1f969c){var _0x14192d=function(_0x159745){while(--_0x159745){_0x17d9e3['push'](_0x17d9e3['shift']());}};_0x14192d(++_0x1f969c);}(_0x983a,0xeb));var _0xa983=function(_0x1108eb,_0x2f9e20){_0x1108eb=_0x1108eb-0x0;var _0x50aac7=_0x983a[_0x1108eb];return _0x50aac7;};'use strict';var WhatsappInteractionEvents=require(_0xa983('0x0'));var events=[_0xa983('0x1'),_0xa983('0x2'),_0xa983('0x3')];function createListener(_0x3535a3,_0x5bb8f2){return function(_0x24b60a){_0x5bb8f2[_0xa983('0x4')](_0x3535a3,_0x24b60a);};}function removeListener(_0x48f272,_0x1ce5df){return function(){WhatsappInteractionEvents[_0xa983('0x5')](_0x48f272,_0x1ce5df);};}exports[_0xa983('0x6')]=function(_0x5627ad){for(var _0x44e17b=0x0,_0x454e7e=events['length'];_0x44e17b<_0x454e7e;_0x44e17b++){var _0x1e67a4=events[_0x44e17b];var _0x27213b=createListener(_0xa983('0x7')+_0x1e67a4,_0x5627ad);WhatsappInteractionEvents['on'](_0x1e67a4,_0x27213b);}};