Built motion from commit 1cfc41f6.|2.5.41
[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 _0x1036=['smsQueue:','./smsQueue.events','remove','update','emit','removeListener','register','length'];(function(_0x35e124,_0x1d85e2){var _0x53c482=function(_0x5afd39){while(--_0x5afd39){_0x35e124['push'](_0x35e124['shift']());}};_0x53c482(++_0x1d85e2);}(_0x1036,0x91));var _0x6103=function(_0x23940d,_0x180221){_0x23940d=_0x23940d-0x0;var _0x1ada85=_0x1036[_0x23940d];return _0x1ada85;};'use strict';var SmsQueueEvents=require(_0x6103('0x0'));var events=['save',_0x6103('0x1'),_0x6103('0x2')];function createListener(_0x234f4d,_0x6109b0){return function(_0x4ae49c){_0x6109b0[_0x6103('0x3')](_0x234f4d,_0x4ae49c);};}function removeListener(_0x3abeb8,_0x32b254){return function(){SmsQueueEvents[_0x6103('0x4')](_0x3abeb8,_0x32b254);};}exports[_0x6103('0x5')]=function(_0x157d92){for(var _0x5f2f8d=0x0,_0x5260a3=events[_0x6103('0x6')];_0x5f2f8d<_0x5260a3;_0x5f2f8d++){var _0x40c357=events[_0x5f2f8d];var _0x287ed9=createListener(_0x6103('0x7')+_0x40c357,_0x157d92);SmsQueueEvents['on'](_0x40c357,_0x287ed9);}};