Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / api / whatsappQueue / whatsappQueue.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 _0x4d59=['whatsappQueue:','./whatsappQueue.events','save','remove','removeListener','length'];(function(_0x249e6f,_0x2765ea){var _0x32001e=function(_0x3bacdd){while(--_0x3bacdd){_0x249e6f['push'](_0x249e6f['shift']());}};_0x32001e(++_0x2765ea);}(_0x4d59,0x6d));var _0x94d5=function(_0x231200,_0x5b7ee1){_0x231200=_0x231200-0x0;var _0x303779=_0x4d59[_0x231200];return _0x303779;};'use strict';var WhatsappQueueEvents=require(_0x94d5('0x0'));var events=[_0x94d5('0x1'),_0x94d5('0x2'),'update'];function createListener(_0x1d38bd,_0x2e96cf){return function(_0x5bf58a){_0x2e96cf['emit'](_0x1d38bd,_0x5bf58a);};}function removeListener(_0x321915,_0x32096f){return function(){WhatsappQueueEvents[_0x94d5('0x3')](_0x321915,_0x32096f);};}exports['register']=function(_0x161b37){for(var _0x5d2e35=0x0,_0x35c771=events[_0x94d5('0x4')];_0x5d2e35<_0x35c771;_0x5d2e35++){var _0x15eb09=events[_0x5d2e35];var _0x5e5cb5=createListener(_0x94d5('0x5')+_0x15eb09,_0x161b37);WhatsappQueueEvents['on'](_0x15eb09,_0x5e5cb5);}};