Built motion from commit (unavailable).|2.5.14
[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 _0x77b0=['removeListener','register','length','chatInteraction:','./chatInteraction.events','save','remove','update'];(function(_0x5f0089,_0x227e2c){var _0x193892=function(_0x24051f){while(--_0x24051f){_0x5f0089['push'](_0x5f0089['shift']());}};_0x193892(++_0x227e2c);}(_0x77b0,0x144));var _0x077b=function(_0x4eb4d9,_0x5d9847){_0x4eb4d9=_0x4eb4d9-0x0;var _0x2a6305=_0x77b0[_0x4eb4d9];return _0x2a6305;};'use strict';var ChatInteractionEvents=require(_0x077b('0x0'));var events=[_0x077b('0x1'),_0x077b('0x2'),_0x077b('0x3')];function createListener(_0x373f0d,_0x2f93a7){return function(_0x5313e7){_0x2f93a7['emit'](_0x373f0d,_0x5313e7);};}function removeListener(_0x11e082,_0x1f156b){return function(){ChatInteractionEvents[_0x077b('0x4')](_0x11e082,_0x1f156b);};}exports[_0x077b('0x5')]=function(_0x526ccd){for(var _0x4fd8e7=0x0,_0x31e7d2=events[_0x077b('0x6')];_0x4fd8e7<_0x31e7d2;_0x4fd8e7++){var _0x216e43=events[_0x4fd8e7];var _0x17a2e5=createListener(_0x077b('0x7')+_0x216e43,_0x526ccd);ChatInteractionEvents['on'](_0x216e43,_0x17a2e5);}};