Built motion from commit 14588770.|2.5.38
[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 _0xff31=['openchannelInteraction:','./openchannelInteraction.events','save','remove','update','register','length'];(function(_0x133cd0,_0x5b448e){var _0x46738c=function(_0x1ac793){while(--_0x1ac793){_0x133cd0['push'](_0x133cd0['shift']());}};_0x46738c(++_0x5b448e);}(_0xff31,0x135));var _0x1ff3=function(_0x5447fd,_0x52a6b5){_0x5447fd=_0x5447fd-0x0;var _0x15b28a=_0xff31[_0x5447fd];return _0x15b28a;};'use strict';var OpenchannelInteractionEvents=require(_0x1ff3('0x0'));var events=[_0x1ff3('0x1'),_0x1ff3('0x2'),_0x1ff3('0x3')];function createListener(_0x39cc48,_0x36ce82){return function(_0x550099){_0x36ce82['emit'](_0x39cc48,_0x550099);};}function removeListener(_0x3c2311,_0x4fd5a6){return function(){OpenchannelInteractionEvents['removeListener'](_0x3c2311,_0x4fd5a6);};}exports[_0x1ff3('0x4')]=function(_0x568f52){for(var _0x4b9d4b=0x0,_0x53d7b5=events[_0x1ff3('0x5')];_0x4b9d4b<_0x53d7b5;_0x4b9d4b++){var _0x47f0e3=events[_0x4b9d4b];var _0x144d60=createListener(_0x1ff3('0x6')+_0x47f0e3,_0x568f52);OpenchannelInteractionEvents['on'](_0x47f0e3,_0x144d60);}};