Built motion from commit bbec7235.|2.6.20
[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 _0x219c=['length','smsQueue:','./smsQueue.events','save','removeListener'];(function(_0x5d6e30,_0xc21d51){var _0x3d3f3b=function(_0x33597b){while(--_0x33597b){_0x5d6e30['push'](_0x5d6e30['shift']());}};_0x3d3f3b(++_0xc21d51);}(_0x219c,0xca));var _0xc219=function(_0x1693da,_0xade59c){_0x1693da=_0x1693da-0x0;var _0x44187f=_0x219c[_0x1693da];return _0x44187f;};'use strict';var SmsQueueEvents=require(_0xc219('0x0'));var events=[_0xc219('0x1'),'remove','update'];function createListener(_0x51630a,_0x4ae01a){return function(_0x54ddee){_0x4ae01a['emit'](_0x51630a,_0x54ddee);};}function removeListener(_0x962872,_0x429cd7){return function(){SmsQueueEvents[_0xc219('0x2')](_0x962872,_0x429cd7);};}exports['register']=function(_0x5421c3){for(var _0x50ef90=0x0,_0x160eac=events[_0xc219('0x3')];_0x50ef90<_0x160eac;_0x50ef90++){var _0x90220b=events[_0x50ef90];var _0x484bf4=createListener(_0xc219('0x4')+_0x90220b,_0x5421c3);SmsQueueEvents['on'](_0x90220b,_0x484bf4);}};