64a986f9b651deffbb8fbef5e7bc2c6e8f77d7ef
[motion2.git] / server / api / license / license.model.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 _0x1eb1=['define','License','lodash','util','bluebird','path','rimraf','exports'];(function(_0x88e0b2,_0x3d6531){var _0x259951=function(_0x265172){while(--_0x265172){_0x88e0b2['push'](_0x88e0b2['shift']());}};_0x259951(++_0x3d6531);}(_0x1eb1,0xa2));var _0x11eb=function(_0x4cfd62,_0x128ffc){_0x4cfd62=_0x4cfd62-0x0;var _0x33662b=_0x1eb1[_0x4cfd62];return _0x33662b;};'use strict';var _=require(_0x11eb('0x0'));var util=require(_0x11eb('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x11eb('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x11eb('0x3'));var rimraf=require(_0x11eb('0x4'));var config=require('../../config/environment');var attributes=require('./license.attributes');module[_0x11eb('0x5')]=function(_0x5e7d3b,_0x5c7c62){return _0x5e7d3b[_0x11eb('0x6')](_0x11eb('0x7'),attributes,{'tableName':'license','paranoid':![],'indexes':[],'timestamps':!![]});};