Built motion from commit e1760111.|2.6.18
[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 _0xe603=['remove','update','removeListener','register','whatsappInteraction:','./whatsappInteraction.events','save'];(function(_0x40125c,_0x3ff562){var _0x3bfbb3=function(_0x497685){while(--_0x497685){_0x40125c['push'](_0x40125c['shift']());}};_0x3bfbb3(++_0x3ff562);}(_0xe603,0x186));var _0x3e60=function(_0x277c4f,_0x9d3c5e){_0x277c4f=_0x277c4f-0x0;var _0x470333=_0xe603[_0x277c4f];return _0x470333;};'use strict';var WhatsappInteractionEvents=require(_0x3e60('0x0'));var events=[_0x3e60('0x1'),_0x3e60('0x2'),_0x3e60('0x3')];function createListener(_0x388483,_0x4c62d4){return function(_0x4ccf81){_0x4c62d4['emit'](_0x388483,_0x4ccf81);};}function removeListener(_0x40b9bb,_0x51af12){return function(){WhatsappInteractionEvents[_0x3e60('0x4')](_0x40b9bb,_0x51af12);};}exports[_0x3e60('0x5')]=function(_0x2a8524){for(var _0x2ecc4b=0x0,_0x59458f=events['length'];_0x2ecc4b<_0x59458f;_0x2ecc4b++){var _0x44e0f3=events[_0x2ecc4b];var _0x29d24a=createListener(_0x3e60('0x6')+_0x44e0f3,_0x2a8524);WhatsappInteractionEvents['on'](_0x44e0f3,_0x29d24a);}};