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 _0x126c=['emit','register','length','squareProject:','save','remove','update'];(function(_0x2d7440,_0x4a58ff){var _0x128ced=function(_0x182802){while(--_0x182802){_0x2d7440['push'](_0x2d7440['shift']());}};_0x128ced(++_0x4a58ff);}(_0x126c,0x1b6));var _0xc126=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x126c[_0x3dd15e];return _0x231fd0;};'use strict';var SquareProjectEvents=require('./squareProject.events');var events=[_0xc126('0x0'),_0xc126('0x1'),_0xc126('0x2')];function createListener(_0x54e80b,_0x537d6f){return function(_0x4af1d2){_0x537d6f[_0xc126('0x3')](_0x54e80b,_0x4af1d2);};}function removeListener(_0x6666c,_0x585754){return function(){SquareProjectEvents['removeListener'](_0x6666c,_0x585754);};}exports[_0xc126('0x4')]=function(_0x1966d9){for(var _0x182b45=0x0,_0x36c852=events[_0xc126('0x5')];_0x182b45<_0x36c852;_0x182b45++){var _0x4552e4=events[_0x182b45];var _0x127f82=createListener(_0xc126('0x6')+_0x4552e4,_0x1966d9);SquareProjectEvents['on'](_0x4552e4,_0x127f82);}};