Built motion from commit 87cd5f02.|2.5.48
[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 _0x238f=['emit','register','length','openchannelAccount:','./openchannelAccount.events','save','remove'];(function(_0x43f659,_0x5603ae){var _0x30edc3=function(_0xb1819d){while(--_0xb1819d){_0x43f659['push'](_0x43f659['shift']());}};_0x30edc3(++_0x5603ae);}(_0x238f,0xa5));var _0xf238=function(_0x2a0b47,_0x1c7f6c){_0x2a0b47=_0x2a0b47-0x0;var _0x3056b6=_0x238f[_0x2a0b47];return _0x3056b6;};'use strict';var OpenchannelAccountEvents=require(_0xf238('0x0'));var events=[_0xf238('0x1'),_0xf238('0x2'),'update'];function createListener(_0x39ae5c,_0x1cfe0e){return function(_0xae5dfd){_0x1cfe0e[_0xf238('0x3')](_0x39ae5c,_0xae5dfd);};}function removeListener(_0x1bd4aa,_0xfcef92){return function(){OpenchannelAccountEvents['removeListener'](_0x1bd4aa,_0xfcef92);};}exports[_0xf238('0x4')]=function(_0x2b9e9f){for(var _0x4e4685=0x0,_0x549a61=events[_0xf238('0x5')];_0x4e4685<_0x549a61;_0x4e4685++){var _0x5432d0=events[_0x4e4685];var _0x430297=createListener(_0xf238('0x6')+_0x5432d0,_0x2b9e9f);OpenchannelAccountEvents['on'](_0x5432d0,_0x430297);}};