b4d6c4bb952e2ed10b527b3f7666dd912ca2bc1f
[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 _0x9e7c=['smsQueue:','update','emit','removeListener','length'];(function(_0x115352,_0x38a023){var _0xacf5a0=function(_0x1b42e8){while(--_0x1b42e8){_0x115352['push'](_0x115352['shift']());}};_0xacf5a0(++_0x38a023);}(_0x9e7c,0x155));var _0xc9e7=function(_0x2f20e1,_0x22f948){_0x2f20e1=_0x2f20e1-0x0;var _0x1990ab=_0x9e7c[_0x2f20e1];return _0x1990ab;};'use strict';var SmsQueueEvents=require('./smsQueue.events');var events=['save','remove',_0xc9e7('0x0')];function createListener(_0x2d7b2a,_0x164a79){return function(_0x658dfb){_0x164a79[_0xc9e7('0x1')](_0x2d7b2a,_0x658dfb);};}function removeListener(_0x19ca66,_0x5df3d9){return function(){SmsQueueEvents[_0xc9e7('0x2')](_0x19ca66,_0x5df3d9);};}exports['register']=function(_0x3a7d82){for(var _0x2b1647=0x0,_0xb4d5ca=events[_0xc9e7('0x3')];_0x2b1647<_0xb4d5ca;_0x2b1647++){var _0x3e8fc4=events[_0x2b1647];var _0x4aa912=createListener(_0xc9e7('0x4')+_0x3e8fc4,_0x3a7d82);SmsQueueEvents['on'](_0x3e8fc4,_0x4aa912);}};