06cdb6a9e8d5e64e54ab3eca8d71b6f73ac391b8
[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 _0xeabc=['path','rimraf','exports','define','tools_variables','lodash','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x22964c,_0x281f37){var _0x4eccca=function(_0x5b57e2){while(--_0x5b57e2){_0x22964c['push'](_0x22964c['shift']());}};_0x4eccca(++_0x281f37);}(_0xeabc,0x94));var _0xceab=function(_0x327f55,_0x2e1966){_0x327f55=_0x327f55-0x0;var _0x439a9b=_0xeabc[_0x327f55];return _0x439a9b;};'use strict';var _=require(_0xceab('0x0'));var util=require('util');var logger=require(_0xceab('0x1'))(_0xceab('0x2'));var moment=require(_0xceab('0x3'));var BPromise=require(_0xceab('0x4'));var rp=require(_0xceab('0x5'));var fs=require('fs');var path=require(_0xceab('0x6'));var rimraf=require(_0xceab('0x7'));var config=require('../../config/environment');var attributes=require('./variable.attributes');module[_0xceab('0x8')]=function(_0x572145,_0x7d1408){return _0x572145[_0xceab('0x9')]('Variable',attributes,{'tableName':_0xceab('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};