1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x6dfb=['emit','register','length','openchannelAccount:','remove'];(function(_0x274410,_0x537586){var _0x578e69=function(_0x4167dc){while(--_0x4167dc){_0x274410['push'](_0x274410['shift']());}};_0x578e69(++_0x537586);}(_0x6dfb,0x90));var _0xb6df=function(_0x4b9bb2,_0x492b2d){_0x4b9bb2=_0x4b9bb2-0x0;var _0x29b0b7=_0x6dfb[_0x4b9bb2];return _0x29b0b7;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=['save',_0xb6df('0x0'),'update'];function createListener(_0x18f152,_0x329594){return function(_0x2c28ff){_0x329594[_0xb6df('0x1')](_0x18f152,_0x2c28ff);};}function removeListener(_0x2fe019,_0x50abe3){return function(){OpenchannelAccountEvents['removeListener'](_0x2fe019,_0x50abe3);};}exports[_0xb6df('0x2')]=function(_0x143001){for(var _0x32e0d4=0x0,_0x261181=events[_0xb6df('0x3')];_0x32e0d4<_0x261181;_0x32e0d4++){var _0x417434=events[_0x32e0d4];var _0x503f7c=createListener(_0xb6df('0x4')+_0x417434,_0x143001);OpenchannelAccountEvents['on'](_0x417434,_0x503f7c);}};