Built motion from commit 994c64e1.|2.6.1
[motion2.git] / server / api / chatInteraction / chatInteraction.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 _0xadec=['./chatInteraction.events','save','remove','update','removeListener','length'];(function(_0x59e48d,_0x56426d){var _0x3ab381=function(_0x5e1c55){while(--_0x5e1c55){_0x59e48d['push'](_0x59e48d['shift']());}};_0x3ab381(++_0x56426d);}(_0xadec,0x156));var _0xcade=function(_0x5afd82,_0x4c58f1){_0x5afd82=_0x5afd82-0x0;var _0x5de22e=_0xadec[_0x5afd82];return _0x5de22e;};'use strict';var ChatInteractionEvents=require(_0xcade('0x0'));var events=[_0xcade('0x1'),_0xcade('0x2'),_0xcade('0x3')];function createListener(_0x35756e,_0x5b1f75){return function(_0x55ad3c){_0x5b1f75['emit'](_0x35756e,_0x55ad3c);};}function removeListener(_0x475533,_0x875b81){return function(){ChatInteractionEvents[_0xcade('0x4')](_0x475533,_0x875b81);};}exports['register']=function(_0x4da887){for(var _0x5c8b77=0x0,_0x51d665=events[_0xcade('0x5')];_0x5c8b77<_0x51d665;_0x5c8b77++){var _0x4c36e8=events[_0x5c8b77];var _0x625da7=createListener('chatInteraction:'+_0x4c36e8,_0x4da887);ChatInteractionEvents['on'](_0x4c36e8,_0x625da7);}};