3a99fe64a0b0e55529fada5fd8afd07c3a8f573b
[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 _0x9a09=['license','util','../../config/logger','bluebird','request-promise','path','rimraf','./license.attributes','exports','define','License'];(function(_0x2d2c16,_0x4e88b6){var _0x53f2fb=function(_0x6b6dac){while(--_0x6b6dac){_0x2d2c16['push'](_0x2d2c16['shift']());}};_0x53f2fb(++_0x4e88b6);}(_0x9a09,0x1e5));var _0x99a0=function(_0x67d6b1,_0x3f8795){_0x67d6b1=_0x67d6b1-0x0;var _0x5aceae=_0x9a09[_0x67d6b1];return _0x5aceae;};'use strict';var _=require('lodash');var util=require(_0x99a0('0x0'));var logger=require(_0x99a0('0x1'))('api');var moment=require('moment');var BPromise=require(_0x99a0('0x2'));var rp=require(_0x99a0('0x3'));var fs=require('fs');var path=require(_0x99a0('0x4'));var rimraf=require(_0x99a0('0x5'));var config=require('../../config/environment');var attributes=require(_0x99a0('0x6'));module[_0x99a0('0x7')]=function(_0x4c531a,_0x2361ef){return _0x4c531a[_0x99a0('0x8')](_0x99a0('0x9'),attributes,{'tableName':_0x99a0('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};