Built motion from commit 1fa89557.|2.6.10
[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 _0x33a1=['emit','removeListener','register','length','openchannelAccount:','./openchannelAccount.events','save'];(function(_0x5b2740,_0x117a5d){var _0x52daa3=function(_0x3dbdf6){while(--_0x3dbdf6){_0x5b2740['push'](_0x5b2740['shift']());}};_0x52daa3(++_0x117a5d);}(_0x33a1,0x7c));var _0x133a=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0x33a1[_0x4565bf];return _0x5610ba;};'use strict';var OpenchannelAccountEvents=require(_0x133a('0x0'));var events=[_0x133a('0x1'),'remove','update'];function createListener(_0x5dc419,_0x4bcb17){return function(_0x2d6f40){_0x4bcb17[_0x133a('0x2')](_0x5dc419,_0x2d6f40);};}function removeListener(_0x35db62,_0x53da00){return function(){OpenchannelAccountEvents[_0x133a('0x3')](_0x35db62,_0x53da00);};}exports[_0x133a('0x4')]=function(_0x23c48d){for(var _0x557b93=0x0,_0x13fe1d=events[_0x133a('0x5')];_0x557b93<_0x13fe1d;_0x557b93++){var _0x31409d=events[_0x557b93];var _0x5f3a8f=createListener(_0x133a('0x6')+_0x31409d,_0x23c48d);OpenchannelAccountEvents['on'](_0x31409d,_0x5f3a8f);}};