Built motion from commit (unavailable).|2.5.22
[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 _0xcd1d=['./whatsappInteraction.events','save','remove','update','emit','removeListener','register','length','whatsappInteraction:'];(function(_0x2ac9cf,_0x5824ce){var _0x587aa0=function(_0x18369e){while(--_0x18369e){_0x2ac9cf['push'](_0x2ac9cf['shift']());}};_0x587aa0(++_0x5824ce);}(_0xcd1d,0x132));var _0xdcd1=function(_0xdba8c2,_0x5c9660){_0xdba8c2=_0xdba8c2-0x0;var _0x124afe=_0xcd1d[_0xdba8c2];return _0x124afe;};'use strict';var WhatsappInteractionEvents=require(_0xdcd1('0x0'));var events=[_0xdcd1('0x1'),_0xdcd1('0x2'),_0xdcd1('0x3')];function createListener(_0xcd4b0c,_0x48b074){return function(_0x391a0b){_0x48b074[_0xdcd1('0x4')](_0xcd4b0c,_0x391a0b);};}function removeListener(_0x4689e7,_0x366449){return function(){WhatsappInteractionEvents[_0xdcd1('0x5')](_0x4689e7,_0x366449);};}exports[_0xdcd1('0x6')]=function(_0x101ea8){for(var _0xa803c5=0x0,_0x4785a7=events[_0xdcd1('0x7')];_0xa803c5<_0x4785a7;_0xa803c5++){var _0x1af018=events[_0xa803c5];var _0x6a7515=createListener(_0xdcd1('0x8')+_0x1af018,_0x101ea8);WhatsappInteractionEvents['on'](_0x1af018,_0x6a7515);}};