Built motion from commit 19a84241.|2.5.34
[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 _0x338c=['./openchannelInteraction.events','remove','update','register','length','openchannelInteraction:'];(function(_0x23ace2,_0x158da5){var _0x747170=function(_0x1ccfbe){while(--_0x1ccfbe){_0x23ace2['push'](_0x23ace2['shift']());}};_0x747170(++_0x158da5);}(_0x338c,0x138));var _0xc338=function(_0x471043,_0x428df1){_0x471043=_0x471043-0x0;var _0x4792b9=_0x338c[_0x471043];return _0x4792b9;};'use strict';var OpenchannelInteractionEvents=require(_0xc338('0x0'));var events=['save',_0xc338('0x1'),_0xc338('0x2')];function createListener(_0x192f49,_0x29f8f4){return function(_0x46bd3c){_0x29f8f4['emit'](_0x192f49,_0x46bd3c);};}function removeListener(_0x106eef,_0x1fd941){return function(){OpenchannelInteractionEvents['removeListener'](_0x106eef,_0x1fd941);};}exports[_0xc338('0x3')]=function(_0x58d2b3){for(var _0x58b4d4=0x0,_0x4a991b=events[_0xc338('0x4')];_0x58b4d4<_0x4a991b;_0x58b4d4++){var _0x4e4e74=events[_0x58b4d4];var _0x2da5fd=createListener(_0xc338('0x5')+_0x4e4e74,_0x58d2b3);OpenchannelInteractionEvents['on'](_0x4e4e74,_0x2da5fd);}};