Built motion from commit (unavailable).|2.5.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 _0x4e5f=['remove','emit','register','length','whatsappInteraction:','./whatsappInteraction.events','save'];(function(_0x38fb8b,_0x70dd0a){var _0x1ec681=function(_0x58f130){while(--_0x58f130){_0x38fb8b['push'](_0x38fb8b['shift']());}};_0x1ec681(++_0x70dd0a);}(_0x4e5f,0xad));var _0xf4e5=function(_0x3f675b,_0x1aecad){_0x3f675b=_0x3f675b-0x0;var _0x4146c9=_0x4e5f[_0x3f675b];return _0x4146c9;};'use strict';var WhatsappInteractionEvents=require(_0xf4e5('0x0'));var events=[_0xf4e5('0x1'),_0xf4e5('0x2'),'update'];function createListener(_0x55813a,_0x18d896){return function(_0x38fc2a){_0x18d896[_0xf4e5('0x3')](_0x55813a,_0x38fc2a);};}function removeListener(_0x4f47b3,_0x2186cc){return function(){WhatsappInteractionEvents['removeListener'](_0x4f47b3,_0x2186cc);};}exports[_0xf4e5('0x4')]=function(_0x5217e0){for(var _0x16c886=0x0,_0x563dc9=events[_0xf4e5('0x5')];_0x16c886<_0x563dc9;_0x16c886++){var _0x2fb081=events[_0x16c886];var _0x55ef0a=createListener(_0xf4e5('0x6')+_0x2fb081,_0x5217e0);WhatsappInteractionEvents['on'](_0x2fb081,_0x55ef0a);}};