Built motion from commit (unavailable).|2.5.6
[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 _0x3b70=['emit','removeListener','smsQueue:','./smsQueue.events','save','update'];(function(_0x33eb5c,_0x4a7d98){var _0x253328=function(_0x3b23a0){while(--_0x3b23a0){_0x33eb5c['push'](_0x33eb5c['shift']());}};_0x253328(++_0x4a7d98);}(_0x3b70,0x1b9));var _0x03b7=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x3b70[_0x2dafbe];return _0x58a45a;};'use strict';var SmsQueueEvents=require(_0x03b7('0x0'));var events=[_0x03b7('0x1'),'remove',_0x03b7('0x2')];function createListener(_0x333032,_0x3e9110){return function(_0x42e083){_0x3e9110[_0x03b7('0x3')](_0x333032,_0x42e083);};}function removeListener(_0x515884,_0x17ab30){return function(){SmsQueueEvents[_0x03b7('0x4')](_0x515884,_0x17ab30);};}exports['register']=function(_0xf94398){for(var _0x481ad4=0x0,_0x20b5b5=events['length'];_0x481ad4<_0x20b5b5;_0x481ad4++){var _0x4a98fa=events[_0x481ad4];var _0x313bd8=createListener(_0x03b7('0x5')+_0x4a98fa,_0xf94398);SmsQueueEvents['on'](_0x4a98fa,_0x313bd8);}};