d8e31d75f72415e65f4669054289aa6c70850d76
[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 _0x2c11=['register','length','whatsappInteraction:','./whatsappInteraction.events','save','update','emit','removeListener'];(function(_0x1eff83,_0x598a1c){var _0x20f2fa=function(_0x25a530){while(--_0x25a530){_0x1eff83['push'](_0x1eff83['shift']());}};_0x20f2fa(++_0x598a1c);}(_0x2c11,0x17b));var _0x12c1=function(_0x584b3f,_0x3b21a5){_0x584b3f=_0x584b3f-0x0;var _0x359088=_0x2c11[_0x584b3f];return _0x359088;};'use strict';var WhatsappInteractionEvents=require(_0x12c1('0x0'));var events=[_0x12c1('0x1'),'remove',_0x12c1('0x2')];function createListener(_0x23803b,_0x1b4e47){return function(_0x43a6a1){_0x1b4e47[_0x12c1('0x3')](_0x23803b,_0x43a6a1);};}function removeListener(_0x51146a,_0x5c4058){return function(){WhatsappInteractionEvents[_0x12c1('0x4')](_0x51146a,_0x5c4058);};}exports[_0x12c1('0x5')]=function(_0x514bd7){for(var _0x7a32f2=0x0,_0x31a406=events[_0x12c1('0x6')];_0x7a32f2<_0x31a406;_0x7a32f2++){var _0x169cc6=events[_0x7a32f2];var _0x45fb1a=createListener(_0x12c1('0x7')+_0x169cc6,_0x514bd7);WhatsappInteractionEvents['on'](_0x169cc6,_0x45fb1a);}};