03a5702ad15ec572b19fac76fdbfbe258df14bcc
[motion2.git] / server / api / condition / condition.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 _0xd0fe=['exports','define','Condition','tools_conditions','util','api','request-promise','path','rimraf','../../config/environment'];(function(_0x9bff75,_0x3e051f){var _0x121481=function(_0x4c72bc){while(--_0x4c72bc){_0x9bff75['push'](_0x9bff75['shift']());}};_0x121481(++_0x3e051f);}(_0xd0fe,0x1d0));var _0xed0f=function(_0x40d2ed,_0x4c6d1f){_0x40d2ed=_0x40d2ed-0x0;var _0x3a80f1=_0xd0fe[_0x40d2ed];return _0x3a80f1;};'use strict';var _=require('lodash');var util=require(_0xed0f('0x0'));var logger=require('../../config/logger')(_0xed0f('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xed0f('0x2'));var fs=require('fs');var path=require(_0xed0f('0x3'));var rimraf=require(_0xed0f('0x4'));var config=require(_0xed0f('0x5'));var attributes=require('./condition.attributes');module[_0xed0f('0x6')]=function(_0x1981d3,_0x15bc9d){return _0x1981d3[_0xed0f('0x7')](_0xed0f('0x8'),attributes,{'tableName':_0xed0f('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};