Built motion from commit (unavailable).|2.5.27
[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 _0xb6f5=['./openchannelInteraction.events','remove','update','emit','removeListener','length','openchannelInteraction:'];(function(_0xbeb8b6,_0xbbaf79){var _0x566c93=function(_0xd4e3ee){while(--_0xd4e3ee){_0xbeb8b6['push'](_0xbeb8b6['shift']());}};_0x566c93(++_0xbbaf79);}(_0xb6f5,0x13b));var _0x5b6f=function(_0x3474ac,_0x22d0f7){_0x3474ac=_0x3474ac-0x0;var _0x5345ec=_0xb6f5[_0x3474ac];return _0x5345ec;};'use strict';var OpenchannelInteractionEvents=require(_0x5b6f('0x0'));var events=['save',_0x5b6f('0x1'),_0x5b6f('0x2')];function createListener(_0x455530,_0x197c46){return function(_0x4dd106){_0x197c46[_0x5b6f('0x3')](_0x455530,_0x4dd106);};}function removeListener(_0x17d9d3,_0xd3f22e){return function(){OpenchannelInteractionEvents[_0x5b6f('0x4')](_0x17d9d3,_0xd3f22e);};}exports['register']=function(_0x19aa4d){for(var _0x38cfd3=0x0,_0x76be3e=events[_0x5b6f('0x5')];_0x38cfd3<_0x76be3e;_0x38cfd3++){var _0x23ded7=events[_0x38cfd3];var _0x3a1e57=createListener(_0x5b6f('0x6')+_0x23ded7,_0x19aa4d);OpenchannelInteractionEvents['on'](_0x23ded7,_0x3a1e57);}};