Built motion from commit (unavailable).|2.0.79
[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 _0xff96=['./smsInteraction.events','remove','update','emit','register','length'];(function(_0x1c688b,_0x4df102){var _0x4d4577=function(_0x29a41b){while(--_0x29a41b){_0x1c688b['push'](_0x1c688b['shift']());}};_0x4d4577(++_0x4df102);}(_0xff96,0x6c));var _0x6ff9=function(_0x4571ae,_0x5309bf){_0x4571ae=_0x4571ae-0x0;var _0x52b48b=_0xff96[_0x4571ae];return _0x52b48b;};'use strict';var SmsInteractionEvents=require(_0x6ff9('0x0'));var events=['save',_0x6ff9('0x1'),_0x6ff9('0x2')];function createListener(_0xe28dce,_0xcb8236){return function(_0x239b8f){_0xcb8236[_0x6ff9('0x3')](_0xe28dce,_0x239b8f);};}function removeListener(_0x2a4856,_0x4f535f){return function(){SmsInteractionEvents['removeListener'](_0x2a4856,_0x4f535f);};}exports[_0x6ff9('0x4')]=function(_0x2139a3){for(var _0x29a889=0x0,_0x5e8f43=events[_0x6ff9('0x5')];_0x29a889<_0x5e8f43;_0x29a889++){var _0x400bc0=events[_0x29a889];var _0x584aca=createListener('smsInteraction:'+_0x400bc0,_0x2139a3);SmsInteractionEvents['on'](_0x400bc0,_0x584aca);}};