Built motion from commit (unavailable).|2.5.13
[motion2.git] / server / api / whatsappAccount / whatsappAccount.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 _0x6299=['update','emit','register','length','whatsappAccount:','./whatsappAccount.events','save','remove'];(function(_0x13998d,_0x10875f){var _0x491bc1=function(_0x213f4f){while(--_0x213f4f){_0x13998d['push'](_0x13998d['shift']());}};_0x491bc1(++_0x10875f);}(_0x6299,0x105));var _0x9629=function(_0x4d8950,_0x1a6648){_0x4d8950=_0x4d8950-0x0;var _0x184947=_0x6299[_0x4d8950];return _0x184947;};'use strict';var WhatsappAccountEvents=require(_0x9629('0x0'));var events=[_0x9629('0x1'),_0x9629('0x2'),_0x9629('0x3')];function createListener(_0x5e0c5b,_0x33e80a){return function(_0x37d2c8){_0x33e80a[_0x9629('0x4')](_0x5e0c5b,_0x37d2c8);};}function removeListener(_0x23f853,_0x2fdf48){return function(){WhatsappAccountEvents['removeListener'](_0x23f853,_0x2fdf48);};}exports[_0x9629('0x5')]=function(_0xa49e37){for(var _0x4df975=0x0,_0x5136c3=events[_0x9629('0x6')];_0x4df975<_0x5136c3;_0x4df975++){var _0x3ff733=events[_0x4df975];var _0x2faaeb=createListener(_0x9629('0x7')+_0x3ff733,_0xa49e37);WhatsappAccountEvents['on'](_0x3ff733,_0x2faaeb);}};