Built motion from commit 25580385.|2.6.2
[motion2.git] / server / api / smsInteraction / smsInteraction.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 _0x8e39=['removeListener','register','length','smsInteraction:','./smsInteraction.events','save','remove','update'];(function(_0x1c2e5a,_0x5d53c6){var _0x5177f5=function(_0x2eae4b){while(--_0x2eae4b){_0x1c2e5a['push'](_0x1c2e5a['shift']());}};_0x5177f5(++_0x5d53c6);}(_0x8e39,0x9c));var _0x98e3=function(_0x195a12,_0x558d3c){_0x195a12=_0x195a12-0x0;var _0x5aaf55=_0x8e39[_0x195a12];return _0x5aaf55;};'use strict';var SmsInteractionEvents=require(_0x98e3('0x0'));var events=[_0x98e3('0x1'),_0x98e3('0x2'),_0x98e3('0x3')];function createListener(_0x5d5bfc,_0x1f5215){return function(_0x25920d){_0x1f5215['emit'](_0x5d5bfc,_0x25920d);};}function removeListener(_0x810667,_0xe1fe8){return function(){SmsInteractionEvents[_0x98e3('0x4')](_0x810667,_0xe1fe8);};}exports[_0x98e3('0x5')]=function(_0xe591a8){for(var _0x480d2a=0x0,_0x50544e=events[_0x98e3('0x6')];_0x480d2a<_0x50544e;_0x480d2a++){var _0x47ff17=events[_0x480d2a];var _0x182a75=createListener(_0x98e3('0x7')+_0x47ff17,_0xe591a8);SmsInteractionEvents['on'](_0x47ff17,_0x182a75);}};