Built motion from commit (unavailable).|2.5.17
[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 _0x093f=['./smsQueue.events','remove','emit','length','smsQueue:'];(function(_0x561436,_0x4a40b9){var _0x29a035=function(_0x27b9a6){while(--_0x27b9a6){_0x561436['push'](_0x561436['shift']());}};_0x29a035(++_0x4a40b9);}(_0x093f,0x16d));var _0xf093=function(_0x360042,_0x33da3b){_0x360042=_0x360042-0x0;var _0x3d26f8=_0x093f[_0x360042];return _0x3d26f8;};'use strict';var SmsQueueEvents=require(_0xf093('0x0'));var events=['save',_0xf093('0x1'),'update'];function createListener(_0x48e1a2,_0x31bc0d){return function(_0x5c2739){_0x31bc0d[_0xf093('0x2')](_0x48e1a2,_0x5c2739);};}function removeListener(_0x2b6efc,_0x1011a0){return function(){SmsQueueEvents['removeListener'](_0x2b6efc,_0x1011a0);};}exports['register']=function(_0x490636){for(var _0x16d026=0x0,_0x122e39=events[_0xf093('0x3')];_0x16d026<_0x122e39;_0x16d026++){var _0x506eda=events[_0x16d026];var _0x1d8ba1=createListener(_0xf093('0x4')+_0x506eda,_0x490636);SmsQueueEvents['on'](_0x506eda,_0x1d8ba1);}};