Built motion from commit 9d1906d1.|2.5.40
[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 _0x180f=['emit','removeListener','openchannelAccount:','./openchannelAccount.events','save','update'];(function(_0x8f64cc,_0x1e942e){var _0x2694c7=function(_0x21e59c){while(--_0x21e59c){_0x8f64cc['push'](_0x8f64cc['shift']());}};_0x2694c7(++_0x1e942e);}(_0x180f,0xf3));var _0xf180=function(_0x343090,_0x433a80){_0x343090=_0x343090-0x0;var _0x3ff3e8=_0x180f[_0x343090];return _0x3ff3e8;};'use strict';var OpenchannelAccountEvents=require(_0xf180('0x0'));var events=[_0xf180('0x1'),'remove',_0xf180('0x2')];function createListener(_0x3cc668,_0x5ca18d){return function(_0x1bd2a7){_0x5ca18d[_0xf180('0x3')](_0x3cc668,_0x1bd2a7);};}function removeListener(_0x472213,_0x39895a){return function(){OpenchannelAccountEvents[_0xf180('0x4')](_0x472213,_0x39895a);};}exports['register']=function(_0x2ef675){for(var _0x3c6552=0x0,_0x513113=events['length'];_0x3c6552<_0x513113;_0x3c6552++){var _0x1d6ca7=events[_0x3c6552];var _0x303412=createListener(_0xf180('0x5')+_0x1d6ca7,_0x2ef675);OpenchannelAccountEvents['on'](_0x1d6ca7,_0x303412);}};