6571d40b9f8a7c72b2aa6fa7b8c59adcaef08116
[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 _0x7077=['remove','update','emit','removeListener','length','whatsappInteraction:','./whatsappInteraction.events','save'];(function(_0x962d72,_0x4c31a5){var _0x779d06=function(_0xf4f070){while(--_0xf4f070){_0x962d72['push'](_0x962d72['shift']());}};_0x779d06(++_0x4c31a5);}(_0x7077,0x1c6));var _0x7707=function(_0x55533f,_0x35cd09){_0x55533f=_0x55533f-0x0;var _0x380079=_0x7077[_0x55533f];return _0x380079;};'use strict';var WhatsappInteractionEvents=require(_0x7707('0x0'));var events=[_0x7707('0x1'),_0x7707('0x2'),_0x7707('0x3')];function createListener(_0x1beb26,_0x51b5fd){return function(_0x130f66){_0x51b5fd[_0x7707('0x4')](_0x1beb26,_0x130f66);};}function removeListener(_0x3ebf60,_0x7503a2){return function(){WhatsappInteractionEvents[_0x7707('0x5')](_0x3ebf60,_0x7503a2);};}exports['register']=function(_0x155d1f){for(var _0x2bbef0=0x0,_0x5b172c=events[_0x7707('0x6')];_0x2bbef0<_0x5b172c;_0x2bbef0++){var _0x25238b=events[_0x2bbef0];var _0x4c5cda=createListener(_0x7707('0x7')+_0x25238b,_0x155d1f);WhatsappInteractionEvents['on'](_0x25238b,_0x4c5cda);}};