Built motion from commit (unavailable).|2.5.29
[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 _0x578b=['./openchannelInteraction.events','save','remove','register','openchannelInteraction:'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x578b,0x1db));var _0xb578=function(_0x518e12,_0x3491ad){_0x518e12=_0x518e12-0x0;var _0x1da7ff=_0x578b[_0x518e12];return _0x1da7ff;};'use strict';var OpenchannelInteractionEvents=require(_0xb578('0x0'));var events=[_0xb578('0x1'),_0xb578('0x2'),'update'];function createListener(_0x150d21,_0xebe4e1){return function(_0x178d73){_0xebe4e1['emit'](_0x150d21,_0x178d73);};}function removeListener(_0x267138,_0x377e73){return function(){OpenchannelInteractionEvents['removeListener'](_0x267138,_0x377e73);};}exports[_0xb578('0x3')]=function(_0x42bab1){for(var _0x126b29=0x0,_0x3bf68d=events['length'];_0x126b29<_0x3bf68d;_0x126b29++){var _0x2f0927=events[_0x126b29];var _0x20f4af=createListener(_0xb578('0x4')+_0x2f0927,_0x42bab1);OpenchannelInteractionEvents['on'](_0x2f0927,_0x20f4af);}};