475d6cc1a0f8d35b1bf5def98d4c382d63035e38
[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 _0xad30=['lodash','util','../../config/logger','api','request-promise','path','rimraf','exports','define'];(function(_0x21c926,_0x563c30){var _0x2a46ed=function(_0x24aff8){while(--_0x24aff8){_0x21c926['push'](_0x21c926['shift']());}};_0x2a46ed(++_0x563c30);}(_0xad30,0xea));var _0x0ad3=function(_0x84fcd,_0x4b673b){_0x84fcd=_0x84fcd-0x0;var _0x398985=_0xad30[_0x84fcd];return _0x398985;};'use strict';var _=require(_0x0ad3('0x0'));var util=require(_0x0ad3('0x1'));var logger=require(_0x0ad3('0x2'))(_0x0ad3('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x0ad3('0x4'));var fs=require('fs');var path=require(_0x0ad3('0x5'));var rimraf=require(_0x0ad3('0x6'));var config=require('../../config/environment');var attributes=require('./variable.attributes');module[_0x0ad3('0x7')]=function(_0x22d02c,_0x1fa927){return _0x22d02c[_0x0ad3('0x8')]('Variable',attributes,{'tableName':'tools_variables','paranoid':![],'indexes':[],'timestamps':!![]});};