Built motion from commit 980b26c3.|2.6.29
[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 _0xe371=['update','emit','removeListener','register','length','whatsappInteraction:','./whatsappInteraction.events','save','remove'];(function(_0x10350c,_0x292070){var _0x3a5fce=function(_0x393c2f){while(--_0x393c2f){_0x10350c['push'](_0x10350c['shift']());}};_0x3a5fce(++_0x292070);}(_0xe371,0xf0));var _0x1e37=function(_0x26f69d,_0xbe0547){_0x26f69d=_0x26f69d-0x0;var _0x37132c=_0xe371[_0x26f69d];return _0x37132c;};'use strict';var WhatsappInteractionEvents=require(_0x1e37('0x0'));var events=[_0x1e37('0x1'),_0x1e37('0x2'),_0x1e37('0x3')];function createListener(_0x34bd4a,_0x10a6ba){return function(_0x35dd84){_0x10a6ba[_0x1e37('0x4')](_0x34bd4a,_0x35dd84);};}function removeListener(_0x1e58fb,_0x3cc92c){return function(){WhatsappInteractionEvents[_0x1e37('0x5')](_0x1e58fb,_0x3cc92c);};}exports[_0x1e37('0x6')]=function(_0x4693f3){for(var _0x3e02d0=0x0,_0x427579=events[_0x1e37('0x7')];_0x3e02d0<_0x427579;_0x3e02d0++){var _0x581a66=events[_0x3e02d0];var _0xac9052=createListener(_0x1e37('0x8')+_0x581a66,_0x4693f3);WhatsappInteractionEvents['on'](_0x581a66,_0xac9052);}};