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 _0xba6c=['save','remove','update','emit','removeListener','register','length','./squareProject.events'];(function(_0x4bbdb6,_0x2e1ac3){var _0x55f828=function(_0x4f58c6){while(--_0x4f58c6){_0x4bbdb6['push'](_0x4bbdb6['shift']());}};_0x55f828(++_0x2e1ac3);}(_0xba6c,0x6f));var _0xcba6=function(_0x23c73d,_0x357b21){_0x23c73d=_0x23c73d-0x0;var _0x36ba47=_0xba6c[_0x23c73d];return _0x36ba47;};'use strict';var SquareProjectEvents=require(_0xcba6('0x0'));var events=[_0xcba6('0x1'),_0xcba6('0x2'),_0xcba6('0x3')];function createListener(_0xeae70,_0x21c26e){return function(_0x2e813f){_0x21c26e[_0xcba6('0x4')](_0xeae70,_0x2e813f);};}function removeListener(_0x1ae003,_0x562616){return function(){SquareProjectEvents[_0xcba6('0x5')](_0x1ae003,_0x562616);};}exports[_0xcba6('0x6')]=function(_0x232b7f){for(var _0x1eb842=0x0,_0x1faf51=events[_0xcba6('0x7')];_0x1eb842<_0x1faf51;_0x1eb842++){var _0x27afc1=events[_0x1eb842];var _0x2c37fc=createListener('squareProject:'+_0x27afc1,_0x232b7f);SquareProjectEvents['on'](_0x27afc1,_0x2c37fc);}};