Built motion from commit (unavailable).|2.5.21
[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 _0x6119=['emit','removeListener','register','length','chatInteraction:','./chatInteraction.events','save','update'];(function(_0x2f56c0,_0x140609){var _0x31c1d8=function(_0x599822){while(--_0x599822){_0x2f56c0['push'](_0x2f56c0['shift']());}};_0x31c1d8(++_0x140609);}(_0x6119,0x1ad));var _0x9611=function(_0x285098,_0x3487e6){_0x285098=_0x285098-0x0;var _0x17527d=_0x6119[_0x285098];return _0x17527d;};'use strict';var ChatInteractionEvents=require(_0x9611('0x0'));var events=[_0x9611('0x1'),'remove',_0x9611('0x2')];function createListener(_0x304a79,_0x205f58){return function(_0x421134){_0x205f58[_0x9611('0x3')](_0x304a79,_0x421134);};}function removeListener(_0x182c8c,_0x23653b){return function(){ChatInteractionEvents[_0x9611('0x4')](_0x182c8c,_0x23653b);};}exports[_0x9611('0x5')]=function(_0x4dfdbc){for(var _0x179618=0x0,_0x3f1fc2=events[_0x9611('0x6')];_0x179618<_0x3f1fc2;_0x179618++){var _0x136d6e=events[_0x179618];var _0x54197d=createListener(_0x9611('0x7')+_0x136d6e,_0x4dfdbc);ChatInteractionEvents['on'](_0x136d6e,_0x54197d);}};