581482ea2a74c66931d5031d2e241aac5ab33ecc
[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 _0x0f66=['request-promise','../../config/environment','./license.attributes','exports','License','lodash','util','../../config/logger','api'];(function(_0x287568,_0x30cf59){var _0x1a7a5d=function(_0x4a2ea8){while(--_0x4a2ea8){_0x287568['push'](_0x287568['shift']());}};_0x1a7a5d(++_0x30cf59);}(_0x0f66,0x12e));var _0x60f6=function(_0x31ced5,_0x5d5415){_0x31ced5=_0x31ced5-0x0;var _0x10d9e5=_0x0f66[_0x31ced5];return _0x10d9e5;};'use strict';var _=require(_0x60f6('0x0'));var util=require(_0x60f6('0x1'));var logger=require(_0x60f6('0x2'))(_0x60f6('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x60f6('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x60f6('0x5'));var attributes=require(_0x60f6('0x6'));module[_0x60f6('0x7')]=function(_0x1ec31c,_0x16efff){return _0x1ec31c['define'](_0x60f6('0x8'),attributes,{'tableName':'license','paranoid':![],'indexes':[],'timestamps':!![]});};