Built motion from commit (unavailable).|2.5.27
[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 _0x43a8=['./whatsappInteraction.events','save','remove','update','removeListener','register','whatsappInteraction:'];(function(_0x1e6db3,_0x5643ac){var _0x1de886=function(_0x351318){while(--_0x351318){_0x1e6db3['push'](_0x1e6db3['shift']());}};_0x1de886(++_0x5643ac);}(_0x43a8,0x1c7));var _0x843a=function(_0x507b58,_0x2c0301){_0x507b58=_0x507b58-0x0;var _0x47599c=_0x43a8[_0x507b58];return _0x47599c;};'use strict';var WhatsappInteractionEvents=require(_0x843a('0x0'));var events=[_0x843a('0x1'),_0x843a('0x2'),_0x843a('0x3')];function createListener(_0xc92a1c,_0x41ca30){return function(_0x26f807){_0x41ca30['emit'](_0xc92a1c,_0x26f807);};}function removeListener(_0x347781,_0x7e5d2e){return function(){WhatsappInteractionEvents[_0x843a('0x4')](_0x347781,_0x7e5d2e);};}exports[_0x843a('0x5')]=function(_0x2dfda5){for(var _0x4a18ee=0x0,_0x4712b4=events['length'];_0x4a18ee<_0x4712b4;_0x4a18ee++){var _0x13e729=events[_0x4a18ee];var _0x10788a=createListener(_0x843a('0x6')+_0x13e729,_0x2dfda5);WhatsappInteractionEvents['on'](_0x13e729,_0x10788a);}};