Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / openchannelInteraction / openchannelInteraction.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 _0xbbd8=['length','./openchannelInteraction.events','save','remove','update','emit'];(function(_0x168bd5,_0x386e4){var _0x5b7744=function(_0x1948d5){while(--_0x1948d5){_0x168bd5['push'](_0x168bd5['shift']());}};_0x5b7744(++_0x386e4);}(_0xbbd8,0xb5));var _0x8bbd=function(_0x59803f,_0x24b913){_0x59803f=_0x59803f-0x0;var _0x2248fc=_0xbbd8[_0x59803f];return _0x2248fc;};'use strict';var OpenchannelInteractionEvents=require(_0x8bbd('0x0'));var events=[_0x8bbd('0x1'),_0x8bbd('0x2'),_0x8bbd('0x3')];function createListener(_0x4a5144,_0x58cd91){return function(_0x26cb89){_0x58cd91[_0x8bbd('0x4')](_0x4a5144,_0x26cb89);};}function removeListener(_0x22628b,_0x221089){return function(){OpenchannelInteractionEvents['removeListener'](_0x22628b,_0x221089);};}exports['register']=function(_0x4bdb56){for(var _0x45b152=0x0,_0x64c9cc=events[_0x8bbd('0x5')];_0x45b152<_0x64c9cc;_0x45b152++){var _0x966553=events[_0x45b152];var _0x27dbb1=createListener('openchannelInteraction:'+_0x966553,_0x4bdb56);OpenchannelInteractionEvents['on'](_0x966553,_0x27dbb1);}};