Built motion from commit c116dc8b.|2.6.30
[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 _0xc7bb=['length','openchannelInteraction:','save','update','emit','removeListener'];(function(_0x577abd,_0x377e6f){var _0x1c5556=function(_0x946a03){while(--_0x946a03){_0x577abd['push'](_0x577abd['shift']());}};_0x1c5556(++_0x377e6f);}(_0xc7bb,0x140));var _0xbc7b=function(_0x3864e4,_0x21ada0){_0x3864e4=_0x3864e4-0x0;var _0xb8f719=_0xc7bb[_0x3864e4];return _0xb8f719;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0xbc7b('0x0'),'remove',_0xbc7b('0x1')];function createListener(_0xfe1828,_0x3e1057){return function(_0x220793){_0x3e1057[_0xbc7b('0x2')](_0xfe1828,_0x220793);};}function removeListener(_0x58c9e8,_0x49da1d){return function(){OpenchannelInteractionEvents[_0xbc7b('0x3')](_0x58c9e8,_0x49da1d);};}exports['register']=function(_0x5bf25d){for(var _0x24d206=0x0,_0x82a290=events[_0xbc7b('0x4')];_0x24d206<_0x82a290;_0x24d206++){var _0x16370c=events[_0x24d206];var _0x3b6e6e=createListener(_0xbc7b('0x5')+_0x16370c,_0x5bf25d);OpenchannelInteractionEvents['on'](_0x16370c,_0x3b6e6e);}};