5a842de798cb5e9ac6b98841960762c590142870
[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 _0xaacd=['./smsQueue.events','save','remove','update','emit','removeListener','register','smsQueue:'];(function(_0x187067,_0x29ea08){var _0x480c13=function(_0x4f3e52){while(--_0x4f3e52){_0x187067['push'](_0x187067['shift']());}};_0x480c13(++_0x29ea08);}(_0xaacd,0xc0));var _0xdaac=function(_0x235563,_0x260ece){_0x235563=_0x235563-0x0;var _0x219be0=_0xaacd[_0x235563];return _0x219be0;};'use strict';var SmsQueueEvents=require(_0xdaac('0x0'));var events=[_0xdaac('0x1'),_0xdaac('0x2'),_0xdaac('0x3')];function createListener(_0x59d97c,_0x2bb29c){return function(_0x5ad6fb){_0x2bb29c[_0xdaac('0x4')](_0x59d97c,_0x5ad6fb);};}function removeListener(_0x2974c2,_0x3d9bff){return function(){SmsQueueEvents[_0xdaac('0x5')](_0x2974c2,_0x3d9bff);};}exports[_0xdaac('0x6')]=function(_0x332e0d){for(var _0x2f0822=0x0,_0x43996d=events['length'];_0x2f0822<_0x43996d;_0x2f0822++){var _0x340c51=events[_0x2f0822];var _0x1c459e=createListener(_0xdaac('0x7')+_0x340c51,_0x332e0d);SmsQueueEvents['on'](_0x340c51,_0x1c459e);}};