76c6767478d66e9faa85f51f13e46fe0112cd51e
[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 _0x6082=['moment','bluebird','rimraf','../../config/environment','./variable.attributes','exports','define','Variable','../../config/logger'];(function(_0x3f5dd0,_0x52e9fb){var _0x597e85=function(_0x23cc26){while(--_0x23cc26){_0x3f5dd0['push'](_0x3f5dd0['shift']());}};_0x597e85(++_0x52e9fb);}(_0x6082,0x179));var _0x2608=function(_0x24cd0d,_0x10c564){_0x24cd0d=_0x24cd0d-0x0;var _0x9848c6=_0x6082[_0x24cd0d];return _0x9848c6;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x2608('0x0'))('api');var moment=require(_0x2608('0x1'));var BPromise=require(_0x2608('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x2608('0x3'));var config=require(_0x2608('0x4'));var attributes=require(_0x2608('0x5'));module[_0x2608('0x6')]=function(_0x31c162,_0x2cfd9c){return _0x31c162[_0x2608('0x7')](_0x2608('0x8'),attributes,{'tableName':'tools_variables','paranoid':![],'indexes':[],'timestamps':!![]});};