e817306771b4db6f156d74f711bc61539090ff84
[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 _0x2e57=['api','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','License','lodash','util'];(function(_0xaf0fe9,_0x3aaca0){var _0x598cb2=function(_0x4fb298){while(--_0x4fb298){_0xaf0fe9['push'](_0xaf0fe9['shift']());}};_0x598cb2(++_0x3aaca0);}(_0x2e57,0xc4));var _0x72e5=function(_0x31dbc6,_0x4d32de){_0x31dbc6=_0x31dbc6-0x0;var _0x3b27b6=_0x2e57[_0x31dbc6];return _0x3b27b6;};'use strict';var _=require(_0x72e5('0x0'));var util=require(_0x72e5('0x1'));var logger=require('../../config/logger')(_0x72e5('0x2'));var moment=require('moment');var BPromise=require(_0x72e5('0x3'));var rp=require(_0x72e5('0x4'));var fs=require('fs');var path=require(_0x72e5('0x5'));var rimraf=require(_0x72e5('0x6'));var config=require(_0x72e5('0x7'));var attributes=require('./license.attributes');module[_0x72e5('0x8')]=function(_0x3fd181,_0x19e2ae){return _0x3fd181[_0x72e5('0x9')](_0x72e5('0xa'),attributes,{'tableName':'license','paranoid':![],'indexes':[],'timestamps':!![]});};