a4af0408ff2a3ae34e14a936a2615a7b105b6eb1
[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 _0x24cf=['openchannelAccount:','remove','update','removeListener','register','length'];(function(_0x393b35,_0x100c91){var _0x193566=function(_0x488114){while(--_0x488114){_0x393b35['push'](_0x393b35['shift']());}};_0x193566(++_0x100c91);}(_0x24cf,0x1d5));var _0xf24c=function(_0x35ff55,_0xae92c3){_0x35ff55=_0x35ff55-0x0;var _0x42904c=_0x24cf[_0x35ff55];return _0x42904c;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=['save',_0xf24c('0x0'),_0xf24c('0x1')];function createListener(_0x227c22,_0x40675a){return function(_0x45f945){_0x40675a['emit'](_0x227c22,_0x45f945);};}function removeListener(_0x3cfc01,_0x417bb2){return function(){OpenchannelAccountEvents[_0xf24c('0x2')](_0x3cfc01,_0x417bb2);};}exports[_0xf24c('0x3')]=function(_0x5c4ebc){for(var _0x4983e2=0x0,_0x5104bd=events[_0xf24c('0x4')];_0x4983e2<_0x5104bd;_0x4983e2++){var _0x596e81=events[_0x4983e2];var _0x3b7cf1=createListener(_0xf24c('0x5')+_0x596e81,_0x5c4ebc);OpenchannelAccountEvents['on'](_0x596e81,_0x3b7cf1);}};