Built motion from commit (unavailable).|2.5.26
[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 _0x4228=['whatsappQueue:','./whatsappQueue.events','save','remove','update','removeListener'];(function(_0x2905a3,_0x306563){var _0x51301d=function(_0x3b29a2){while(--_0x3b29a2){_0x2905a3['push'](_0x2905a3['shift']());}};_0x51301d(++_0x306563);}(_0x4228,0x1ab));var _0x8422=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x4228[_0x3dd15e];return _0x231fd0;};'use strict';var WhatsappQueueEvents=require(_0x8422('0x0'));var events=[_0x8422('0x1'),_0x8422('0x2'),_0x8422('0x3')];function createListener(_0x458092,_0x1c570b){return function(_0x3be6c2){_0x1c570b['emit'](_0x458092,_0x3be6c2);};}function removeListener(_0x4928b5,_0x404175){return function(){WhatsappQueueEvents[_0x8422('0x4')](_0x4928b5,_0x404175);};}exports['register']=function(_0x191b2e){for(var _0x474173=0x0,_0x398252=events['length'];_0x474173<_0x398252;_0x474173++){var _0x5c8edb=events[_0x474173];var _0x24675f=createListener(_0x8422('0x5')+_0x5c8edb,_0x191b2e);WhatsappQueueEvents['on'](_0x5c8edb,_0x24675f);}};