Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / api / smsMessage / smsMessage.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 _0xcbaf=['emit','removeListener','length','smsMessage:','save','remove','update'];(function(_0x630ed,_0x46276c){var _0x48701f=function(_0x53a282){while(--_0x53a282){_0x630ed['push'](_0x630ed['shift']());}};_0x48701f(++_0x46276c);}(_0xcbaf,0xba));var _0xfcba=function(_0x4187de,_0x670ba){_0x4187de=_0x4187de-0x0;var _0xfc9af8=_0xcbaf[_0x4187de];return _0xfc9af8;};'use strict';var SmsMessageEvents=require('./smsMessage.events');var events=[_0xfcba('0x0'),_0xfcba('0x1'),_0xfcba('0x2')];function createListener(_0x1657de,_0x1529f1){return function(_0x282539){_0x1529f1[_0xfcba('0x3')](_0x1657de,_0x282539);};}function removeListener(_0x5b708d,_0x3c6005){return function(){SmsMessageEvents[_0xfcba('0x4')](_0x5b708d,_0x3c6005);};}exports['register']=function(_0xebb41b){for(var _0x5ebec2=0x0,_0x556c71=events[_0xfcba('0x5')];_0x5ebec2<_0x556c71;_0x5ebec2++){var _0xde9b16=events[_0x5ebec2];var _0x13d187=createListener(_0xfcba('0x6')+_0xde9b16,_0xebb41b);SmsMessageEvents['on'](_0xde9b16,_0x13d187);}};