Built motion from commit 3c2ce842.|2.6.31
[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 _0x9bb9=['update','emit','removeListener','register','length','whatsappInteraction:','./whatsappInteraction.events','save','remove'];(function(_0x5d99ad,_0x15d2b5){var _0x453124=function(_0x57c8cf){while(--_0x57c8cf){_0x5d99ad['push'](_0x5d99ad['shift']());}};_0x453124(++_0x15d2b5);}(_0x9bb9,0xf0));var _0x99bb=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x9bb9[_0x20a584];return _0x4b41a8;};'use strict';var WhatsappInteractionEvents=require(_0x99bb('0x0'));var events=[_0x99bb('0x1'),_0x99bb('0x2'),_0x99bb('0x3')];function createListener(_0x3bc897,_0x563f31){return function(_0x4b1bd8){_0x563f31[_0x99bb('0x4')](_0x3bc897,_0x4b1bd8);};}function removeListener(_0x59a046,_0x1d43bf){return function(){WhatsappInteractionEvents[_0x99bb('0x5')](_0x59a046,_0x1d43bf);};}exports[_0x99bb('0x6')]=function(_0x4eb8b5){for(var _0x496264=0x0,_0x562fe1=events[_0x99bb('0x7')];_0x496264<_0x562fe1;_0x496264++){var _0x791d6f=events[_0x496264];var _0x455c3a=createListener(_0x99bb('0x8')+_0x791d6f,_0x4eb8b5);WhatsappInteractionEvents['on'](_0x791d6f,_0x455c3a);}};