Built motion from commit 25580385.|2.6.2
[motion2.git] / server / api / openchannelAccount / openchannelAccount.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 _0xbf82=['remove','removeListener','register','openchannelAccount:','./openchannelAccount.events'];(function(_0x38841c,_0x1af0bf){var _0x500610=function(_0x225955){while(--_0x225955){_0x38841c['push'](_0x38841c['shift']());}};_0x500610(++_0x1af0bf);}(_0xbf82,0x1cb));var _0x2bf8=function(_0x261cd1,_0x390dac){_0x261cd1=_0x261cd1-0x0;var _0x3ef8d8=_0xbf82[_0x261cd1];return _0x3ef8d8;};'use strict';var OpenchannelAccountEvents=require(_0x2bf8('0x0'));var events=['save',_0x2bf8('0x1'),'update'];function createListener(_0x3d3645,_0x4289fc){return function(_0x436197){_0x4289fc['emit'](_0x3d3645,_0x436197);};}function removeListener(_0x5e2adc,_0x3e581e){return function(){OpenchannelAccountEvents[_0x2bf8('0x2')](_0x5e2adc,_0x3e581e);};}exports[_0x2bf8('0x3')]=function(_0x20dc19){for(var _0x19d402=0x0,_0x5a3818=events['length'];_0x19d402<_0x5a3818;_0x19d402++){var _0x1c57e9=events[_0x19d402];var _0x5c1944=createListener(_0x2bf8('0x4')+_0x1c57e9,_0x20dc19);OpenchannelAccountEvents['on'](_0x1c57e9,_0x5c1944);}};