Built motion from commit 3c2ce842.|2.6.31
[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 _0x2a5a=['update','emit','register','length','smsQueue:','./smsQueue.events','save','remove'];(function(_0x263a74,_0xc31414){var _0x2aa86c=function(_0x382896){while(--_0x382896){_0x263a74['push'](_0x263a74['shift']());}};_0x2aa86c(++_0xc31414);}(_0x2a5a,0x8d));var _0xa2a5=function(_0x57f929,_0x2e280b){_0x57f929=_0x57f929-0x0;var _0x484fbe=_0x2a5a[_0x57f929];return _0x484fbe;};'use strict';var SmsQueueEvents=require(_0xa2a5('0x0'));var events=[_0xa2a5('0x1'),_0xa2a5('0x2'),_0xa2a5('0x3')];function createListener(_0x3a3fe5,_0x445293){return function(_0x322d8a){_0x445293[_0xa2a5('0x4')](_0x3a3fe5,_0x322d8a);};}function removeListener(_0x842cd,_0x535b21){return function(){SmsQueueEvents['removeListener'](_0x842cd,_0x535b21);};}exports[_0xa2a5('0x5')]=function(_0x2fe215){for(var _0x16709e=0x0,_0x325265=events[_0xa2a5('0x6')];_0x16709e<_0x325265;_0x16709e++){var _0x3784ec=events[_0x16709e];var _0x1e7bae=createListener(_0xa2a5('0x7')+_0x3784ec,_0x2fe215);SmsQueueEvents['on'](_0x3784ec,_0x1e7bae);}};