Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / api / squareProject / squareProject.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xc2c7=['register','squareProject:','save','remove','update','emit'];(function(_0xd2b525,_0x363908){var _0x1ea52d=function(_0x1cdbe4){while(--_0x1cdbe4){_0xd2b525['push'](_0xd2b525['shift']());}};_0x1ea52d(++_0x363908);}(_0xc2c7,0x134));var _0x7c2c=function(_0x36e149,_0x19e5d3){_0x36e149=_0x36e149-0x0;var _0x57c844=_0xc2c7[_0x36e149];return _0x57c844;};'use strict';var SquareProjectEvents=require('./squareProject.events');var events=[_0x7c2c('0x0'),_0x7c2c('0x1'),_0x7c2c('0x2')];function createListener(_0x330870,_0x380d13){return function(_0x237e4d){_0x380d13[_0x7c2c('0x3')](_0x330870,_0x237e4d);};}function removeListener(_0x116f8a,_0x4bbc14){return function(){SquareProjectEvents['removeListener'](_0x116f8a,_0x4bbc14);};}exports[_0x7c2c('0x4')]=function(_0x42ecc9){for(var _0x23c038=0x0,_0x54f027=events['length'];_0x23c038<_0x54f027;_0x23c038++){var _0x5a1027=events[_0x23c038];var _0x2274cd=createListener(_0x7c2c('0x5')+_0x5a1027,_0x42ecc9);SquareProjectEvents['on'](_0x5a1027,_0x2274cd);}};