Built motion from commit (unavailable).|2.5.20
[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 _0xfa10=['length','./whatsappInteraction.events','save','remove','update','removeListener','register'];(function(_0x19a1da,_0x293d5b){var _0xe22c4d=function(_0x36c616){while(--_0x36c616){_0x19a1da['push'](_0x19a1da['shift']());}};_0xe22c4d(++_0x293d5b);}(_0xfa10,0x1d6));var _0x0fa1=function(_0x1da6a4,_0x47aa37){_0x1da6a4=_0x1da6a4-0x0;var _0x52da41=_0xfa10[_0x1da6a4];return _0x52da41;};'use strict';var WhatsappInteractionEvents=require(_0x0fa1('0x0'));var events=[_0x0fa1('0x1'),_0x0fa1('0x2'),_0x0fa1('0x3')];function createListener(_0x11dd3c,_0x32d2bf){return function(_0x399da8){_0x32d2bf['emit'](_0x11dd3c,_0x399da8);};}function removeListener(_0x4f8880,_0x4f6b28){return function(){WhatsappInteractionEvents[_0x0fa1('0x4')](_0x4f8880,_0x4f6b28);};}exports[_0x0fa1('0x5')]=function(_0x3bd318){for(var _0x59a71b=0x0,_0x188e6d=events[_0x0fa1('0x6')];_0x59a71b<_0x188e6d;_0x59a71b++){var _0x2dba64=events[_0x59a71b];var _0x5dc056=createListener('whatsappInteraction:'+_0x2dba64,_0x3bd318);WhatsappInteractionEvents['on'](_0x2dba64,_0x5dc056);}};