Built motion from commit 10af8726.|2.6.34
[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 _0x222d=['length','smsQueue:','./smsQueue.events','update','emit','removeListener','register'];(function(_0x3cb30b,_0x504b3e){var _0x2ca717=function(_0x32a3d9){while(--_0x32a3d9){_0x3cb30b['push'](_0x3cb30b['shift']());}};_0x2ca717(++_0x504b3e);}(_0x222d,0x18a));var _0xd222=function(_0x33f240,_0x38a652){_0x33f240=_0x33f240-0x0;var _0x12edc3=_0x222d[_0x33f240];return _0x12edc3;};'use strict';var SmsQueueEvents=require(_0xd222('0x0'));var events=['save','remove',_0xd222('0x1')];function createListener(_0x3abaa6,_0x3b549a){return function(_0xe1ed6e){_0x3b549a[_0xd222('0x2')](_0x3abaa6,_0xe1ed6e);};}function removeListener(_0x5da9b2,_0x12ed53){return function(){SmsQueueEvents[_0xd222('0x3')](_0x5da9b2,_0x12ed53);};}exports[_0xd222('0x4')]=function(_0xb18780){for(var _0x940e37=0x0,_0x4753f4=events[_0xd222('0x5')];_0x940e37<_0x4753f4;_0x940e37++){var _0x14962f=events[_0x940e37];var _0x2815ef=createListener(_0xd222('0x6')+_0x14962f,_0xb18780);SmsQueueEvents['on'](_0x14962f,_0x2815ef);}};