5586ef3a9dbc62635d0ad557b9a4ec7fb77b3b91
[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 _0xcfec=['moment','request-promise','path','rimraf','../../config/environment','exports','define','License','license','util','api'];(function(_0x39998f,_0x4b1a9e){var _0x296d5a=function(_0x374196){while(--_0x374196){_0x39998f['push'](_0x39998f['shift']());}};_0x296d5a(++_0x4b1a9e);}(_0xcfec,0x1ed));var _0xccfe=function(_0x33e55a,_0x3d5690){_0x33e55a=_0x33e55a-0x0;var _0x542283=_0xcfec[_0x33e55a];return _0x542283;};'use strict';var _=require('lodash');var util=require(_0xccfe('0x0'));var logger=require('../../config/logger')(_0xccfe('0x1'));var moment=require(_0xccfe('0x2'));var BPromise=require('bluebird');var rp=require(_0xccfe('0x3'));var fs=require('fs');var path=require(_0xccfe('0x4'));var rimraf=require(_0xccfe('0x5'));var config=require(_0xccfe('0x6'));var attributes=require('./license.attributes');module[_0xccfe('0x7')]=function(_0x1fa600,_0x363755){return _0x1fa600[_0xccfe('0x8')](_0xccfe('0x9'),attributes,{'tableName':_0xccfe('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};