d757dc2a4a1911e1035f34dd3cc04bb50a68f13e
[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 _0xdf32=['lodash','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','exports','define','License','license'];(function(_0x50b3f3,_0x1824d2){var _0x14774a=function(_0x1cf14a){while(--_0x1cf14a){_0x50b3f3['push'](_0x50b3f3['shift']());}};_0x14774a(++_0x1824d2);}(_0xdf32,0x1a4));var _0x2df3=function(_0x2dca4b,_0x39971f){_0x2dca4b=_0x2dca4b-0x0;var _0x6ef9a4=_0xdf32[_0x2dca4b];return _0x6ef9a4;};'use strict';var _=require(_0x2df3('0x0'));var util=require('util');var logger=require(_0x2df3('0x1'))(_0x2df3('0x2'));var moment=require(_0x2df3('0x3'));var BPromise=require(_0x2df3('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2df3('0x5'));var rimraf=require(_0x2df3('0x6'));var config=require(_0x2df3('0x7'));var attributes=require('./license.attributes');module[_0x2df3('0x8')]=function(_0xc56994,_0x35301d){return _0xc56994[_0x2df3('0x9')](_0x2df3('0xa'),attributes,{'tableName':_0x2df3('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};