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 _0xe5fc=['emit','removeListener','squareProject:','save','remove'];(function(_0x22eb96,_0x3c2d8d){var _0x5e1adf=function(_0x22e392){while(--_0x22e392){_0x22eb96['push'](_0x22eb96['shift']());}};_0x5e1adf(++_0x3c2d8d);}(_0xe5fc,0x125));var _0xce5f=function(_0x2cf579,_0x410fac){_0x2cf579=_0x2cf579-0x0;var _0x5195cf=_0xe5fc[_0x2cf579];return _0x5195cf;};'use strict';var SquareProjectEvents=require('./squareProject.events');var events=[_0xce5f('0x0'),_0xce5f('0x1'),'update'];function createListener(_0xdc1488,_0x5463c8){return function(_0x30e528){_0x5463c8[_0xce5f('0x2')](_0xdc1488,_0x30e528);};}function removeListener(_0x57a310,_0x53f3c0){return function(){SquareProjectEvents[_0xce5f('0x3')](_0x57a310,_0x53f3c0);};}exports['register']=function(_0x26a384){for(var _0x3b504b=0x0,_0x25c0dd=events['length'];_0x3b504b<_0x25c0dd;_0x3b504b++){var _0x15a50c=events[_0x3b504b];var _0x1df871=createListener(_0xce5f('0x4')+_0x15a50c,_0x26a384);SquareProjectEvents['on'](_0x15a50c,_0x1df871);}};