d03b42f137fdc107b61505e59e0818e5e6300c26
[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 _0xdee5=['update','emit','removeListener','length','whatsappInteraction:','./whatsappInteraction.events','save','remove'];(function(_0x3aa6ab,_0x3b5f7c){var _0x5789d7=function(_0xe143d6){while(--_0xe143d6){_0x3aa6ab['push'](_0x3aa6ab['shift']());}};_0x5789d7(++_0x3b5f7c);}(_0xdee5,0xd5));var _0x5dee=function(_0x370529,_0x549301){_0x370529=_0x370529-0x0;var _0x19f89c=_0xdee5[_0x370529];return _0x19f89c;};'use strict';var WhatsappInteractionEvents=require(_0x5dee('0x0'));var events=[_0x5dee('0x1'),_0x5dee('0x2'),_0x5dee('0x3')];function createListener(_0xfd6dd6,_0x3fcf81){return function(_0x5215e0){_0x3fcf81[_0x5dee('0x4')](_0xfd6dd6,_0x5215e0);};}function removeListener(_0x4ff843,_0x4e35ae){return function(){WhatsappInteractionEvents[_0x5dee('0x5')](_0x4ff843,_0x4e35ae);};}exports['register']=function(_0x1979d9){for(var _0x4cd9c5=0x0,_0x2ca6f9=events[_0x5dee('0x6')];_0x4cd9c5<_0x2ca6f9;_0x4cd9c5++){var _0x3318c8=events[_0x4cd9c5];var _0x302b1e=createListener(_0x5dee('0x7')+_0x3318c8,_0x1979d9);WhatsappInteractionEvents['on'](_0x3318c8,_0x302b1e);}};