Built motion from commit (unavailable).|2.4.4
[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 _0x790e=['openchannelInteraction:','./openchannelInteraction.events','save','remove','update','emit','removeListener','register','length'];(function(_0x246223,_0xbc4098){var _0xbf03af=function(_0x17fec5){while(--_0x17fec5){_0x246223['push'](_0x246223['shift']());}};_0xbf03af(++_0xbc4098);}(_0x790e,0x88));var _0xe790=function(_0x3137b8,_0x4f0664){_0x3137b8=_0x3137b8-0x0;var _0x2d9d8f=_0x790e[_0x3137b8];return _0x2d9d8f;};'use strict';var OpenchannelInteractionEvents=require(_0xe790('0x0'));var events=[_0xe790('0x1'),_0xe790('0x2'),_0xe790('0x3')];function createListener(_0x141d0b,_0x2c6f1b){return function(_0x3a1f51){_0x2c6f1b[_0xe790('0x4')](_0x141d0b,_0x3a1f51);};}function removeListener(_0x34e6f3,_0x12c8db){return function(){OpenchannelInteractionEvents[_0xe790('0x5')](_0x34e6f3,_0x12c8db);};}exports[_0xe790('0x6')]=function(_0x272bb5){for(var _0x28fcf3=0x0,_0x414b33=events[_0xe790('0x7')];_0x28fcf3<_0x414b33;_0x28fcf3++){var _0x4d4680=events[_0x28fcf3];var _0x1a43a2=createListener(_0xe790('0x8')+_0x4d4680,_0x272bb5);OpenchannelInteractionEvents['on'](_0x4d4680,_0x1a43a2);}};