Built motion from commit (unavailable).|2.4.20
[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 _0xe885=['emit','removeListener','./smsQueue.events','save','remove'];(function(_0x59ee6f,_0x450239){var _0x4c0979=function(_0x565e92){while(--_0x565e92){_0x59ee6f['push'](_0x59ee6f['shift']());}};_0x4c0979(++_0x450239);}(_0xe885,0x1e7));var _0x5e88=function(_0x4be48d,_0x574e91){_0x4be48d=_0x4be48d-0x0;var _0x44b7c2=_0xe885[_0x4be48d];return _0x44b7c2;};'use strict';var SmsQueueEvents=require(_0x5e88('0x0'));var events=[_0x5e88('0x1'),_0x5e88('0x2'),'update'];function createListener(_0x1ccec8,_0x1c8a4a){return function(_0x2a8e85){_0x1c8a4a[_0x5e88('0x3')](_0x1ccec8,_0x2a8e85);};}function removeListener(_0x3bf6b3,_0x34bb33){return function(){SmsQueueEvents[_0x5e88('0x4')](_0x3bf6b3,_0x34bb33);};}exports['register']=function(_0x2613a3){for(var _0x5296cf=0x0,_0x3389a1=events['length'];_0x5296cf<_0x3389a1;_0x5296cf++){var _0x2b82f2=events[_0x5296cf];var _0x4ae860=createListener('smsQueue:'+_0x2b82f2,_0x2613a3);SmsQueueEvents['on'](_0x2b82f2,_0x4ae860);}};