Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / openchannelMessage / openchannelMessage.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 _0xd217=['remove','emit','removeListener','register','length','openchannelMessage:','save'];(function(_0x5f09c5,_0x2bfca0){var _0x426ad9=function(_0x18fe5f){while(--_0x18fe5f){_0x5f09c5['push'](_0x5f09c5['shift']());}};_0x426ad9(++_0x2bfca0);}(_0xd217,0x141));var _0x7d21=function(_0x1a2d8d,_0x326bd3){_0x1a2d8d=_0x1a2d8d-0x0;var _0x2d7e38=_0xd217[_0x1a2d8d];return _0x2d7e38;};'use strict';var OpenchannelMessageEvents=require('./openchannelMessage.events');var events=[_0x7d21('0x0'),_0x7d21('0x1'),'update'];function createListener(_0x23e727,_0x25a71a){return function(_0x1b31a3){_0x25a71a[_0x7d21('0x2')](_0x23e727,_0x1b31a3);};}function removeListener(_0x17825a,_0x42d0c3){return function(){OpenchannelMessageEvents[_0x7d21('0x3')](_0x17825a,_0x42d0c3);};}exports[_0x7d21('0x4')]=function(_0x57cb65){for(var _0x4da4fd=0x0,_0x7e122f=events[_0x7d21('0x5')];_0x4da4fd<_0x7e122f;_0x4da4fd++){var _0x199f6d=events[_0x4da4fd];var _0x4406e9=createListener(_0x7d21('0x6')+_0x199f6d,_0x57cb65);OpenchannelMessageEvents['on'](_0x199f6d,_0x4406e9);}};