Built motion from commit (unavailable).|2.5.17
[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 _0x036e=['./chatInteraction.events','save','remove','update','emit','removeListener','register','length','chatInteraction:'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0x036e,0x14d));var _0xe036=function(_0x216810,_0x10950b){_0x216810=_0x216810-0x0;var _0x12f908=_0x036e[_0x216810];return _0x12f908;};'use strict';var ChatInteractionEvents=require(_0xe036('0x0'));var events=[_0xe036('0x1'),_0xe036('0x2'),_0xe036('0x3')];function createListener(_0x2fdae7,_0x290f29){return function(_0x5c6376){_0x290f29[_0xe036('0x4')](_0x2fdae7,_0x5c6376);};}function removeListener(_0x1515a9,_0x5ccbfc){return function(){ChatInteractionEvents[_0xe036('0x5')](_0x1515a9,_0x5ccbfc);};}exports[_0xe036('0x6')]=function(_0x4fe8b7){for(var _0x3d2b33=0x0,_0x45b56f=events[_0xe036('0x7')];_0x3d2b33<_0x45b56f;_0x3d2b33++){var _0x22c386=events[_0x3d2b33];var _0x4a0d6d=createListener(_0xe036('0x8')+_0x22c386,_0x4fe8b7);ChatInteractionEvents['on'](_0x22c386,_0x4a0d6d);}};