5860265d411a405683d7fe4df8574f5738d36186
[motion2.git] / server / api / variable / variable.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 _0x8eb3=['exports','define','Variable','tools_variables','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./variable.attributes'];(function(_0x156d4e,_0x1d222f){var _0x57edcc=function(_0x225adc){while(--_0x225adc){_0x156d4e['push'](_0x156d4e['shift']());}};_0x57edcc(++_0x1d222f);}(_0x8eb3,0x1d8));var _0x38eb=function(_0x3770dd,_0x28ec84){_0x3770dd=_0x3770dd-0x0;var _0x36c521=_0x8eb3[_0x3770dd];return _0x36c521;};'use strict';var _=require('lodash');var util=require(_0x38eb('0x0'));var logger=require(_0x38eb('0x1'))(_0x38eb('0x2'));var moment=require(_0x38eb('0x3'));var BPromise=require(_0x38eb('0x4'));var rp=require(_0x38eb('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x38eb('0x6'));var config=require(_0x38eb('0x7'));var attributes=require(_0x38eb('0x8'));module[_0x38eb('0x9')]=function(_0x17d275,_0x4e9f49){return _0x17d275[_0x38eb('0xa')](_0x38eb('0xb'),attributes,{'tableName':_0x38eb('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};