Built motion from commit (unavailable).|2.5.15
[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 _0x8412=['./openchannelInteraction.events','removeListener','register','length'];(function(_0x74892f,_0x1e981b){var _0x10ee61=function(_0x3c480a){while(--_0x3c480a){_0x74892f['push'](_0x74892f['shift']());}};_0x10ee61(++_0x1e981b);}(_0x8412,0x1ec));var _0x2841=function(_0x6131cd,_0x4c26a1){_0x6131cd=_0x6131cd-0x0;var _0x47e916=_0x8412[_0x6131cd];return _0x47e916;};'use strict';var OpenchannelInteractionEvents=require(_0x2841('0x0'));var events=['save','remove','update'];function createListener(_0x48aa35,_0x46d4c7){return function(_0x223189){_0x46d4c7['emit'](_0x48aa35,_0x223189);};}function removeListener(_0x37a317,_0x15c07e){return function(){OpenchannelInteractionEvents[_0x2841('0x1')](_0x37a317,_0x15c07e);};}exports[_0x2841('0x2')]=function(_0x12774c){for(var _0xfb3b5f=0x0,_0x57d886=events[_0x2841('0x3')];_0xfb3b5f<_0x57d886;_0xfb3b5f++){var _0x158477=events[_0xfb3b5f];var _0xde43fc=createListener('openchannelInteraction:'+_0x158477,_0x12774c);OpenchannelInteractionEvents['on'](_0x158477,_0xde43fc);}};