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 _0x1cf9=['register','squareProject:','./squareProject.events','remove','update','emit','removeListener'];(function(_0x46cf17,_0x3926f9){var _0x4edb7c=function(_0x320889){while(--_0x320889){_0x46cf17['push'](_0x46cf17['shift']());}};_0x4edb7c(++_0x3926f9);}(_0x1cf9,0x1c2));var _0x91cf=function(_0x2eb1af,_0x2cfe61){_0x2eb1af=_0x2eb1af-0x0;var _0x439ec5=_0x1cf9[_0x2eb1af];return _0x439ec5;};'use strict';var SquareProjectEvents=require(_0x91cf('0x0'));var events=['save',_0x91cf('0x1'),_0x91cf('0x2')];function createListener(_0x72fe55,_0x5ed7db){return function(_0x8a7dca){_0x5ed7db[_0x91cf('0x3')](_0x72fe55,_0x8a7dca);};}function removeListener(_0x3ad510,_0x51a269){return function(){SquareProjectEvents[_0x91cf('0x4')](_0x3ad510,_0x51a269);};}exports[_0x91cf('0x5')]=function(_0x54107e){for(var _0x3a4e87=0x0,_0x8d18c2=events['length'];_0x3a4e87<_0x8d18c2;_0x3a4e87++){var _0x5d78c0=events[_0x3a4e87];var _0xd8456c=createListener(_0x91cf('0x6')+_0x5d78c0,_0x54107e);SquareProjectEvents['on'](_0x5d78c0,_0xd8456c);}};