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 _0xd3c2=['removeListener','register','squareProject:','save','remove','emit'];(function(_0x4a002e,_0x14a5f6){var _0xb86ae3=function(_0x10a189){while(--_0x10a189){_0x4a002e['push'](_0x4a002e['shift']());}};_0xb86ae3(++_0x14a5f6);}(_0xd3c2,0x183));var _0x2d3c=function(_0x36c712,_0x4cc6a0){_0x36c712=_0x36c712-0x0;var _0x59c77a=_0xd3c2[_0x36c712];return _0x59c77a;};'use strict';var SquareProjectEvents=require('./squareProject.events');var events=[_0x2d3c('0x0'),_0x2d3c('0x1'),'update'];function createListener(_0x49939d,_0x3f6002){return function(_0x408ad9){_0x3f6002[_0x2d3c('0x2')](_0x49939d,_0x408ad9);};}function removeListener(_0x3a55e2,_0x3451d0){return function(){SquareProjectEvents[_0x2d3c('0x3')](_0x3a55e2,_0x3451d0);};}exports[_0x2d3c('0x4')]=function(_0x4e6cc6){for(var _0x4cef3a=0x0,_0x21a926=events['length'];_0x4cef3a<_0x21a926;_0x4cef3a++){var _0x4a8649=events[_0x4cef3a];var _0x2ef41e=createListener(_0x2d3c('0x5')+_0x4a8649,_0x4e6cc6);SquareProjectEvents['on'](_0x4a8649,_0x2ef41e);}};