94dd40f71d60da7e72ca9c9687fb427af2f431e4
[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 _0x6484=['../../config/logger','api','moment','request-promise','path','../../config/environment','./license.attributes','exports','define','License','license','util'];(function(_0x977a39,_0x1c612d){var _0xbcc480=function(_0x4e9d4d){while(--_0x4e9d4d){_0x977a39['push'](_0x977a39['shift']());}};_0xbcc480(++_0x1c612d);}(_0x6484,0x1bb));var _0x4648=function(_0x18983f,_0xfb6bf3){_0x18983f=_0x18983f-0x0;var _0x2c3777=_0x6484[_0x18983f];return _0x2c3777;};'use strict';var _=require('lodash');var util=require(_0x4648('0x0'));var logger=require(_0x4648('0x1'))(_0x4648('0x2'));var moment=require(_0x4648('0x3'));var BPromise=require('bluebird');var rp=require(_0x4648('0x4'));var fs=require('fs');var path=require(_0x4648('0x5'));var rimraf=require('rimraf');var config=require(_0x4648('0x6'));var attributes=require(_0x4648('0x7'));module[_0x4648('0x8')]=function(_0x59a611,_0x85581e){return _0x59a611[_0x4648('0x9')](_0x4648('0xa'),attributes,{'tableName':_0x4648('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};