Built motion from commit (unavailable).|2.5.13
[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 _0x8784=['remove','removeListener','register','length','whatsappQueue:'];(function(_0x1c056b,_0x33b870){var _0x1fc51d=function(_0x59f1b8){while(--_0x59f1b8){_0x1c056b['push'](_0x1c056b['shift']());}};_0x1fc51d(++_0x33b870);}(_0x8784,0x96));var _0x4878=function(_0x329664,_0x130748){_0x329664=_0x329664-0x0;var _0x4e346e=_0x8784[_0x329664];return _0x4e346e;};'use strict';var WhatsappQueueEvents=require('./whatsappQueue.events');var events=['save',_0x4878('0x0'),'update'];function createListener(_0x980782,_0x53445d){return function(_0x2e4bc4){_0x53445d['emit'](_0x980782,_0x2e4bc4);};}function removeListener(_0x1cb27e,_0x2e8754){return function(){WhatsappQueueEvents[_0x4878('0x1')](_0x1cb27e,_0x2e8754);};}exports[_0x4878('0x2')]=function(_0x5ea527){for(var _0x2c42ac=0x0,_0x5660b7=events[_0x4878('0x3')];_0x2c42ac<_0x5660b7;_0x2c42ac++){var _0x41248a=events[_0x2c42ac];var _0x2afc7a=createListener(_0x4878('0x4')+_0x41248a,_0x5ea527);WhatsappQueueEvents['on'](_0x41248a,_0x2afc7a);}};