Built motion from commit 3e059bc2.|2.5.32
[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 _0xbc8c=['save','remove','emit','removeListener','register','length','smsQueue:','./smsQueue.events'];(function(_0x55783f,_0x554d0f){var _0x1c3aa3=function(_0x15e3b6){while(--_0x15e3b6){_0x55783f['push'](_0x55783f['shift']());}};_0x1c3aa3(++_0x554d0f);}(_0xbc8c,0x197));var _0xcbc8=function(_0x3a0c4f,_0x5dd1a3){_0x3a0c4f=_0x3a0c4f-0x0;var _0x247049=_0xbc8c[_0x3a0c4f];return _0x247049;};'use strict';var SmsQueueEvents=require(_0xcbc8('0x0'));var events=[_0xcbc8('0x1'),_0xcbc8('0x2'),'update'];function createListener(_0x41e246,_0x5440f3){return function(_0x28bf87){_0x5440f3[_0xcbc8('0x3')](_0x41e246,_0x28bf87);};}function removeListener(_0x26c3d8,_0x3e6892){return function(){SmsQueueEvents[_0xcbc8('0x4')](_0x26c3d8,_0x3e6892);};}exports[_0xcbc8('0x5')]=function(_0x3d8175){for(var _0x3caeea=0x0,_0x4ffa52=events[_0xcbc8('0x6')];_0x3caeea<_0x4ffa52;_0x3caeea++){var _0x3d793d=events[_0x3caeea];var _0x590f44=createListener(_0xcbc8('0x7')+_0x3d793d,_0x3d8175);SmsQueueEvents['on'](_0x3d793d,_0x590f44);}};