543632f442c35a1ae60efcadcfe7947aa01f8140
[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 _0x02ca=['util','api','moment','request-promise','rimraf','../../config/environment','./license.attributes','exports','define','License','license'];(function(_0xec65f4,_0x4bbcfd){var _0x3352a7=function(_0x47e3d0){while(--_0x47e3d0){_0xec65f4['push'](_0xec65f4['shift']());}};_0x3352a7(++_0x4bbcfd);}(_0x02ca,0x197));var _0xa02c=function(_0xe23747,_0x406edd){_0xe23747=_0xe23747-0x0;var _0x4d2517=_0x02ca[_0xe23747];return _0x4d2517;};'use strict';var _=require('lodash');var util=require(_0xa02c('0x0'));var logger=require('../../config/logger')(_0xa02c('0x1'));var moment=require(_0xa02c('0x2'));var BPromise=require('bluebird');var rp=require(_0xa02c('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xa02c('0x4'));var config=require(_0xa02c('0x5'));var attributes=require(_0xa02c('0x6'));module[_0xa02c('0x7')]=function(_0x378ade,_0x3cd4c1){return _0x378ade[_0xa02c('0x8')](_0xa02c('0x9'),attributes,{'tableName':_0xa02c('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};