Built motion from commit 43538d75.|2.5.35
[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 _0x9062=['./license.attributes','exports','define','License','../../config/logger','api','moment','bluebird','rimraf','../../config/environment'];(function(_0xf0ae5f,_0xd22ac7){var _0xf1ba5a=function(_0x3279ba){while(--_0x3279ba){_0xf0ae5f['push'](_0xf0ae5f['shift']());}};_0xf1ba5a(++_0xd22ac7);}(_0x9062,0x13a));var _0x2906=function(_0x1d2401,_0x36c2d8){_0x1d2401=_0x1d2401-0x0;var _0x31450f=_0x9062[_0x1d2401];return _0x31450f;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x2906('0x0'))(_0x2906('0x1'));var moment=require(_0x2906('0x2'));var BPromise=require(_0x2906('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x2906('0x4'));var config=require(_0x2906('0x5'));var attributes=require(_0x2906('0x6'));module[_0x2906('0x7')]=function(_0x5c336b,_0x33cfba){return _0x5c336b[_0x2906('0x8')](_0x2906('0x9'),attributes,{'tableName':'license','paranoid':![],'indexes':[],'timestamps':!![]});};