18a528c4363a4132a3bf014e6317246bd1cab66d
[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 _0x988a=['exports','define','License','util','../../config/logger','moment','bluebird','request-promise','path','../../config/environment'];(function(_0x5ef37c,_0x2df5ff){var _0x308937=function(_0x378d91){while(--_0x378d91){_0x5ef37c['push'](_0x5ef37c['shift']());}};_0x308937(++_0x2df5ff);}(_0x988a,0xe9));var _0xa988=function(_0x18cc77,_0x32892e){_0x18cc77=_0x18cc77-0x0;var _0x1e48ee=_0x988a[_0x18cc77];return _0x1e48ee;};'use strict';var _=require('lodash');var util=require(_0xa988('0x0'));var logger=require(_0xa988('0x1'))('api');var moment=require(_0xa988('0x2'));var BPromise=require(_0xa988('0x3'));var rp=require(_0xa988('0x4'));var fs=require('fs');var path=require(_0xa988('0x5'));var rimraf=require('rimraf');var config=require(_0xa988('0x6'));var attributes=require('./license.attributes');module[_0xa988('0x7')]=function(_0x15be9f,_0x1bcd26){return _0x15be9f[_0xa988('0x8')](_0xa988('0x9'),attributes,{'tableName':'license','paranoid':![],'indexes':[],'timestamps':!![]});};