Built motion from commit (unavailable).|2.5.15
[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 _0xc370=['../../config/environment','exports','define','License','util','api','moment','bluebird','path','rimraf'];(function(_0xf61d62,_0x5e1ce1){var _0x1b8b00=function(_0x21dbba){while(--_0x21dbba){_0xf61d62['push'](_0xf61d62['shift']());}};_0x1b8b00(++_0x5e1ce1);}(_0xc370,0x13a));var _0x0c37=function(_0x44ce7f,_0x3d7c00){_0x44ce7f=_0x44ce7f-0x0;var _0x32cf1a=_0xc370[_0x44ce7f];return _0x32cf1a;};'use strict';var _=require('lodash');var util=require(_0x0c37('0x0'));var logger=require('../../config/logger')(_0x0c37('0x1'));var moment=require(_0x0c37('0x2'));var BPromise=require(_0x0c37('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0c37('0x4'));var rimraf=require(_0x0c37('0x5'));var config=require(_0x0c37('0x6'));var attributes=require('./license.attributes');module[_0x0c37('0x7')]=function(_0x2e5b32,_0x49fbeb){return _0x2e5b32[_0x0c37('0x8')](_0x0c37('0x9'),attributes,{'tableName':'license','paranoid':![],'indexes':[],'timestamps':!![]});};