81cf8cff4f8b14e2ae8c8645c4d63fa0438ac8b8
[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 _0x0323=['rimraf','./license.attributes','exports','License','license','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0xd3e0b9,_0xd80d4d){var _0x470133=function(_0x1aede8){while(--_0x1aede8){_0xd3e0b9['push'](_0xd3e0b9['shift']());}};_0x470133(++_0xd80d4d);}(_0x0323,0x102));var _0x3032=function(_0x2aa143,_0x291b67){_0x2aa143=_0x2aa143-0x0;var _0x33deb7=_0x0323[_0x2aa143];return _0x33deb7;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x3032('0x0'))(_0x3032('0x1'));var moment=require(_0x3032('0x2'));var BPromise=require(_0x3032('0x3'));var rp=require(_0x3032('0x4'));var fs=require('fs');var path=require(_0x3032('0x5'));var rimraf=require(_0x3032('0x6'));var config=require('../../config/environment');var attributes=require(_0x3032('0x7'));module[_0x3032('0x8')]=function(_0x24f8d7,_0xa52641){return _0x24f8d7['define'](_0x3032('0x9'),attributes,{'tableName':_0x3032('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};