Built motion from commit 21186556.|2.6.19
[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 _0x1b06=['remove','update','removeListener','length','whatsappInteraction:','./whatsappInteraction.events'];(function(_0x40ac5e,_0x2de228){var _0x2839d6=function(_0x123d47){while(--_0x123d47){_0x40ac5e['push'](_0x40ac5e['shift']());}};_0x2839d6(++_0x2de228);}(_0x1b06,0x18b));var _0x61b0=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x1b06[_0x14add3];return _0x4a174f;};'use strict';var WhatsappInteractionEvents=require(_0x61b0('0x0'));var events=['save',_0x61b0('0x1'),_0x61b0('0x2')];function createListener(_0x26eb70,_0x2c7c85){return function(_0x246082){_0x2c7c85['emit'](_0x26eb70,_0x246082);};}function removeListener(_0x403155,_0x8ad716){return function(){WhatsappInteractionEvents[_0x61b0('0x3')](_0x403155,_0x8ad716);};}exports['register']=function(_0xd6438a){for(var _0xb06c8f=0x0,_0xe65893=events[_0x61b0('0x4')];_0xb06c8f<_0xe65893;_0xb06c8f++){var _0x31742c=events[_0xb06c8f];var _0x2c8cd0=createListener(_0x61b0('0x5')+_0x31742c,_0xd6438a);WhatsappInteractionEvents['on'](_0x31742c,_0x2c8cd0);}};