32b06135d613e8a35ee5e713ea7212e058dfd7aa
[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 _0x773b=['define','util','api','moment','bluebird','path','rimraf','../../config/environment'];(function(_0x2e85c6,_0x499b83){var _0x1dd485=function(_0x55ae72){while(--_0x55ae72){_0x2e85c6['push'](_0x2e85c6['shift']());}};_0x1dd485(++_0x499b83);}(_0x773b,0x111));var _0xb773=function(_0xc922f0,_0xb6f4fd){_0xc922f0=_0xc922f0-0x0;var _0x1a1237=_0x773b[_0xc922f0];return _0x1a1237;};'use strict';var _=require('lodash');var util=require(_0xb773('0x0'));var logger=require('../../config/logger')(_0xb773('0x1'));var moment=require(_0xb773('0x2'));var BPromise=require(_0xb773('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xb773('0x4'));var rimraf=require(_0xb773('0x5'));var config=require(_0xb773('0x6'));var attributes=require('./license.attributes');module['exports']=function(_0x44c752,_0x3d4ed2){return _0x44c752[_0xb773('0x7')]('License',attributes,{'tableName':'license','paranoid':![],'indexes':[],'timestamps':!![]});};