Built motion from commit 9d1906d1.|2.5.40
[motion2.git] / server / api / smsQueue / smsQueue.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 _0x72f8=['register','length','smsQueue:','update','emit','removeListener'];(function(_0x4349fc,_0x2d6783){var _0x148b52=function(_0x17a02b){while(--_0x17a02b){_0x4349fc['push'](_0x4349fc['shift']());}};_0x148b52(++_0x2d6783);}(_0x72f8,0x141));var _0x872f=function(_0x566bdf,_0x1f4861){_0x566bdf=_0x566bdf-0x0;var _0x331215=_0x72f8[_0x566bdf];return _0x331215;};'use strict';var SmsQueueEvents=require('./smsQueue.events');var events=['save','remove',_0x872f('0x0')];function createListener(_0x5d2328,_0x4ede14){return function(_0x1610b1){_0x4ede14[_0x872f('0x1')](_0x5d2328,_0x1610b1);};}function removeListener(_0x11bfa0,_0x5b379a){return function(){SmsQueueEvents[_0x872f('0x2')](_0x11bfa0,_0x5b379a);};}exports[_0x872f('0x3')]=function(_0x34123b){for(var _0x2c1e87=0x0,_0x437c5d=events[_0x872f('0x4')];_0x2c1e87<_0x437c5d;_0x2c1e87++){var _0x56b588=events[_0x2c1e87];var _0x562bdb=createListener(_0x872f('0x5')+_0x56b588,_0x34123b);SmsQueueEvents['on'](_0x56b588,_0x562bdb);}};