Built motion from commit (unavailable).|2.5.14
[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 _0xe676=['save','remove','update','removeListener','register','length','whatsappInteraction:','./whatsappInteraction.events'];(function(_0x53c645,_0x264b02){var _0x42208a=function(_0x2dd8c2){while(--_0x2dd8c2){_0x53c645['push'](_0x53c645['shift']());}};_0x42208a(++_0x264b02);}(_0xe676,0x137));var _0x6e67=function(_0x5e8eae,_0x4f81e0){_0x5e8eae=_0x5e8eae-0x0;var _0xdd09cd=_0xe676[_0x5e8eae];return _0xdd09cd;};'use strict';var WhatsappInteractionEvents=require(_0x6e67('0x0'));var events=[_0x6e67('0x1'),_0x6e67('0x2'),_0x6e67('0x3')];function createListener(_0x3dfb3e,_0x37d79b){return function(_0x8e5f7c){_0x37d79b['emit'](_0x3dfb3e,_0x8e5f7c);};}function removeListener(_0x1f4850,_0x150be3){return function(){WhatsappInteractionEvents[_0x6e67('0x4')](_0x1f4850,_0x150be3);};}exports[_0x6e67('0x5')]=function(_0x81843){for(var _0x4509b6=0x0,_0x128427=events[_0x6e67('0x6')];_0x4509b6<_0x128427;_0x4509b6++){var _0x2d91da=events[_0x4509b6];var _0x3bacd4=createListener(_0x6e67('0x7')+_0x2d91da,_0x81843);WhatsappInteractionEvents['on'](_0x2d91da,_0x3bacd4);}};