Built motion from commit (unavailable).|2.5.0
[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 _0x8b83=['register','length','whatsappAccount:','save','update','removeListener'];(function(_0x155edc,_0x113d26){var _0x284eb3=function(_0x238cab){while(--_0x238cab){_0x155edc['push'](_0x155edc['shift']());}};_0x284eb3(++_0x113d26);}(_0x8b83,0x111));var _0x38b8=function(_0x51b181,_0x5694e7){_0x51b181=_0x51b181-0x0;var _0x24a638=_0x8b83[_0x51b181];return _0x24a638;};'use strict';var WhatsappAccountEvents=require('./whatsappAccount.events');var events=[_0x38b8('0x0'),'remove',_0x38b8('0x1')];function createListener(_0x86baf4,_0x11e6d3){return function(_0x94c77d){_0x11e6d3['emit'](_0x86baf4,_0x94c77d);};}function removeListener(_0x1862ff,_0x22567a){return function(){WhatsappAccountEvents[_0x38b8('0x2')](_0x1862ff,_0x22567a);};}exports[_0x38b8('0x3')]=function(_0x1cd161){for(var _0x6830ff=0x0,_0x3f434e=events[_0x38b8('0x4')];_0x6830ff<_0x3f434e;_0x6830ff++){var _0x444f31=events[_0x6830ff];var _0x51615d=createListener(_0x38b8('0x5')+_0x444f31,_0x1cd161);WhatsappAccountEvents['on'](_0x444f31,_0x51615d);}};