d9f1c27dc6c1a8e7ce3860e112bba2f231be6942
[motion2.git] / server / api / dashboardItem / dashboardItem.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 _0x5cdd=['emit','length','dashboardItem:','save','remove'];(function(_0x162ec2,_0xd573ef){var _0x3ff0fc=function(_0x45f3cd){while(--_0x45f3cd){_0x162ec2['push'](_0x162ec2['shift']());}};_0x3ff0fc(++_0xd573ef);}(_0x5cdd,0x12a));var _0xd5cd=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0x5cdd[_0xfae23b];return _0x200640;};'use strict';var DashboardItemEvents=require('./dashboardItem.events');var events=[_0xd5cd('0x0'),_0xd5cd('0x1'),'update'];function createListener(_0x17e399,_0x3ce05e){return function(_0x8552cc){_0x3ce05e[_0xd5cd('0x2')](_0x17e399,_0x8552cc);};}function removeListener(_0x2c5981,_0x195231){return function(){DashboardItemEvents['removeListener'](_0x2c5981,_0x195231);};}exports['register']=function(_0x745beb){for(var _0x5ea99c=0x0,_0x47e230=events[_0xd5cd('0x3')];_0x5ea99c<_0x47e230;_0x5ea99c++){var _0x3f5199=events[_0x5ea99c];var _0x529b73=createListener(_0xd5cd('0x4')+_0x3f5199,_0x745beb);DashboardItemEvents['on'](_0x3f5199,_0x529b73);}};