Built motion from commit (unavailable).|2.6.0
[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 _0xf566=['save','remove','update','register','length','openchannelAccount:'];(function(_0x231a47,_0x46a963){var _0x48d7c9=function(_0x1e69b1){while(--_0x1e69b1){_0x231a47['push'](_0x231a47['shift']());}};_0x48d7c9(++_0x46a963);}(_0xf566,0xc0));var _0x6f56=function(_0x115d1f,_0xc8262){_0x115d1f=_0x115d1f-0x0;var _0x357a9e=_0xf566[_0x115d1f];return _0x357a9e;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=[_0x6f56('0x0'),_0x6f56('0x1'),_0x6f56('0x2')];function createListener(_0x1e1708,_0x304180){return function(_0x3a9762){_0x304180['emit'](_0x1e1708,_0x3a9762);};}function removeListener(_0x4c068c,_0x5d13b2){return function(){OpenchannelAccountEvents['removeListener'](_0x4c068c,_0x5d13b2);};}exports[_0x6f56('0x3')]=function(_0x581bcd){for(var _0x38f1e1=0x0,_0x33cda4=events[_0x6f56('0x4')];_0x38f1e1<_0x33cda4;_0x38f1e1++){var _0xc67867=events[_0x38f1e1];var _0xceec78=createListener(_0x6f56('0x5')+_0xc67867,_0x581bcd);OpenchannelAccountEvents['on'](_0xc67867,_0xceec78);}};