9ebb8c9cbcd7e0103f54641c285d88464e227f9d
[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 _0xf0a5=['License','license','util','../../config/logger','api','bluebird','path','rimraf','./license.attributes','exports'];(function(_0x59ee6f,_0x450239){var _0x4c0979=function(_0x565e92){while(--_0x565e92){_0x59ee6f['push'](_0x59ee6f['shift']());}};_0x4c0979(++_0x450239);}(_0xf0a5,0x174));var _0x5f0a=function(_0x59840e,_0x5b13d2){_0x59840e=_0x59840e-0x0;var _0xe1899d=_0xf0a5[_0x59840e];return _0xe1899d;};'use strict';var _=require('lodash');var util=require(_0x5f0a('0x0'));var logger=require(_0x5f0a('0x1'))(_0x5f0a('0x2'));var moment=require('moment');var BPromise=require(_0x5f0a('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x5f0a('0x4'));var rimraf=require(_0x5f0a('0x5'));var config=require('../../config/environment');var attributes=require(_0x5f0a('0x6'));module[_0x5f0a('0x7')]=function(_0x114eab,_0x23f016){return _0x114eab['define'](_0x5f0a('0x8'),attributes,{'tableName':_0x5f0a('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};