a04dc6997e1a9a93f6e8c3b865cde9ad4de71498
[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 _0x385a=['../../config/environment','define','License','license','util','../../config/logger','api','moment','path','rimraf'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x385a,0xa4));var _0xa385=function(_0x4e880e,_0x25c4f8){_0x4e880e=_0x4e880e-0x0;var _0x3f6005=_0x385a[_0x4e880e];return _0x3f6005;};'use strict';var _=require('lodash');var util=require(_0xa385('0x0'));var logger=require(_0xa385('0x1'))(_0xa385('0x2'));var moment=require(_0xa385('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xa385('0x4'));var rimraf=require(_0xa385('0x5'));var config=require(_0xa385('0x6'));var attributes=require('./license.attributes');module['exports']=function(_0x4da2d5,_0x3e4c26){return _0x4da2d5[_0xa385('0x7')](_0xa385('0x8'),attributes,{'tableName':_0xa385('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};