Built motion from commit (unavailable).|2.5.26
[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 _0x9207=['emit','removeListener','register','whatsappInteraction:','./whatsappInteraction.events','save','remove','update'];(function(_0x353f08,_0x1510ac){var _0x2b90bd=function(_0x4ac5a8){while(--_0x4ac5a8){_0x353f08['push'](_0x353f08['shift']());}};_0x2b90bd(++_0x1510ac);}(_0x9207,0xf4));var _0x7920=function(_0x439534,_0x4ff786){_0x439534=_0x439534-0x0;var _0x211660=_0x9207[_0x439534];return _0x211660;};'use strict';var WhatsappInteractionEvents=require(_0x7920('0x0'));var events=[_0x7920('0x1'),_0x7920('0x2'),_0x7920('0x3')];function createListener(_0xd81b97,_0x10d5c0){return function(_0x4c851b){_0x10d5c0[_0x7920('0x4')](_0xd81b97,_0x4c851b);};}function removeListener(_0x47667c,_0x5cf1f7){return function(){WhatsappInteractionEvents[_0x7920('0x5')](_0x47667c,_0x5cf1f7);};}exports[_0x7920('0x6')]=function(_0x2d9552){for(var _0x2aa5a3=0x0,_0x49dc41=events['length'];_0x2aa5a3<_0x49dc41;_0x2aa5a3++){var _0x54984e=events[_0x2aa5a3];var _0x37dc28=createListener(_0x7920('0x7')+_0x54984e,_0x2d9552);WhatsappInteractionEvents['on'](_0x54984e,_0x37dc28);}};