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 _0xf494=['save','remove','emit','removeListener','register','squareProject:','./squareProject.events'];(function(_0x5930dd,_0x23c6ee){var _0x3bcdc2=function(_0x457e40){while(--_0x457e40){_0x5930dd['push'](_0x5930dd['shift']());}};_0x3bcdc2(++_0x23c6ee);}(_0xf494,0x1c6));var _0x4f49=function(_0x3e663b,_0x175baf){_0x3e663b=_0x3e663b-0x0;var _0x2a3ee6=_0xf494[_0x3e663b];return _0x2a3ee6;};'use strict';var SquareProjectEvents=require(_0x4f49('0x0'));var events=[_0x4f49('0x1'),_0x4f49('0x2'),'update'];function createListener(_0x3aeeb8,_0x1d54cc){return function(_0x423b25){_0x1d54cc[_0x4f49('0x3')](_0x3aeeb8,_0x423b25);};}function removeListener(_0x20c0d7,_0x2a15fb){return function(){SquareProjectEvents[_0x4f49('0x4')](_0x20c0d7,_0x2a15fb);};}exports[_0x4f49('0x5')]=function(_0xc5e778){for(var _0x413530=0x0,_0x42b0e8=events['length'];_0x413530<_0x42b0e8;_0x413530++){var _0x58e9a0=events[_0x413530];var _0x169c95=createListener(_0x4f49('0x6')+_0x58e9a0,_0xc5e778);SquareProjectEvents['on'](_0x58e9a0,_0x169c95);}};