Built motion from commit (unavailable).|2.5.2
[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 _0xe4bf=['length','smsQueue:','./smsQueue.events','save','update','emit','removeListener'];(function(_0xc4001c,_0x1bf8f0){var _0x49f7bc=function(_0x1059b8){while(--_0x1059b8){_0xc4001c['push'](_0xc4001c['shift']());}};_0x49f7bc(++_0x1bf8f0);}(_0xe4bf,0x198));var _0xfe4b=function(_0x179c4a,_0x10eb06){_0x179c4a=_0x179c4a-0x0;var _0x5d1879=_0xe4bf[_0x179c4a];return _0x5d1879;};'use strict';var SmsQueueEvents=require(_0xfe4b('0x0'));var events=[_0xfe4b('0x1'),'remove',_0xfe4b('0x2')];function createListener(_0x5c74e8,_0x3f77c9){return function(_0x268735){_0x3f77c9[_0xfe4b('0x3')](_0x5c74e8,_0x268735);};}function removeListener(_0x5aaf96,_0x1e3658){return function(){SmsQueueEvents[_0xfe4b('0x4')](_0x5aaf96,_0x1e3658);};}exports['register']=function(_0x52c63f){for(var _0x40c4bc=0x0,_0x1ea7e0=events[_0xfe4b('0x5')];_0x40c4bc<_0x1ea7e0;_0x40c4bc++){var _0xda8044=events[_0x40c4bc];var _0x286d90=createListener(_0xfe4b('0x6')+_0xda8044,_0x52c63f);SmsQueueEvents['on'](_0xda8044,_0x286d90);}};