Built motion from commit (unavailable).|2.5.17
[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 _0x1c82=['removeListener','register','length','openchannelAccount:','./openchannelAccount.events','save','remove','emit'];(function(_0x1e40b5,_0x44564f){var _0x49d434=function(_0x18641e){while(--_0x18641e){_0x1e40b5['push'](_0x1e40b5['shift']());}};_0x49d434(++_0x44564f);}(_0x1c82,0x154));var _0x21c8=function(_0x3840eb,_0x5afa96){_0x3840eb=_0x3840eb-0x0;var _0x1bae6e=_0x1c82[_0x3840eb];return _0x1bae6e;};'use strict';var OpenchannelAccountEvents=require(_0x21c8('0x0'));var events=[_0x21c8('0x1'),_0x21c8('0x2'),'update'];function createListener(_0x2e8108,_0x35d5d0){return function(_0x16d788){_0x35d5d0[_0x21c8('0x3')](_0x2e8108,_0x16d788);};}function removeListener(_0x4aea28,_0x1d8501){return function(){OpenchannelAccountEvents[_0x21c8('0x4')](_0x4aea28,_0x1d8501);};}exports[_0x21c8('0x5')]=function(_0x38345a){for(var _0x27a820=0x0,_0x54e811=events[_0x21c8('0x6')];_0x27a820<_0x54e811;_0x27a820++){var _0x2073a4=events[_0x27a820];var _0x351fa7=createListener(_0x21c8('0x7')+_0x2073a4,_0x38345a);OpenchannelAccountEvents['on'](_0x2073a4,_0x351fa7);}};