Built motion from commit (unavailable).|2.5.15
[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 _0xef33=['emit','removeListener','register','whatsappInteraction:','./whatsappInteraction.events','remove'];(function(_0x2235bf,_0x3a06a7){var _0x4c3a64=function(_0x3b3bb6){while(--_0x3b3bb6){_0x2235bf['push'](_0x2235bf['shift']());}};_0x4c3a64(++_0x3a06a7);}(_0xef33,0x1c6));var _0x3ef3=function(_0x523a39,_0x1d8739){_0x523a39=_0x523a39-0x0;var _0x36da72=_0xef33[_0x523a39];return _0x36da72;};'use strict';var WhatsappInteractionEvents=require(_0x3ef3('0x0'));var events=['save',_0x3ef3('0x1'),'update'];function createListener(_0x3d9de5,_0x3ed8d7){return function(_0x54bb6c){_0x3ed8d7[_0x3ef3('0x2')](_0x3d9de5,_0x54bb6c);};}function removeListener(_0xbcb42d,_0xb5d35d){return function(){WhatsappInteractionEvents[_0x3ef3('0x3')](_0xbcb42d,_0xb5d35d);};}exports[_0x3ef3('0x4')]=function(_0x334314){for(var _0x266a26=0x0,_0x140da5=events['length'];_0x266a26<_0x140da5;_0x266a26++){var _0x230122=events[_0x266a26];var _0x4d7108=createListener(_0x3ef3('0x5')+_0x230122,_0x334314);WhatsappInteractionEvents['on'](_0x230122,_0x4d7108);}};