391dd274309809e60cb0c7045d2921febda5385c
[motion2.git] / server / api / openchannelApplication / openchannelApplication.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 _0xc996=['utf8mb4','utf8mb4_unicode_ci','lodash','../../config/logger','api','bluebird','request-promise','path','./openchannelApplication.attributes','exports','OpenchannelApplication','openchannel_applications'];(function(_0x565910,_0x2c2747){var _0x388b44=function(_0x4f5636){while(--_0x4f5636){_0x565910['push'](_0x565910['shift']());}};_0x388b44(++_0x2c2747);}(_0xc996,0x19a));var _0x6c99=function(_0x266de3,_0x54e026){_0x266de3=_0x266de3-0x0;var _0x51bedf=_0xc996[_0x266de3];return _0x51bedf;};'use strict';var _=require(_0x6c99('0x0'));var util=require('util');var logger=require(_0x6c99('0x1'))(_0x6c99('0x2'));var moment=require('moment');var BPromise=require(_0x6c99('0x3'));var rp=require(_0x6c99('0x4'));var fs=require('fs');var path=require(_0x6c99('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x6c99('0x6'));module[_0x6c99('0x7')]=function(_0x3e4583,_0x5bdff7){return _0x3e4583['define'](_0x6c99('0x8'),attributes,{'tableName':_0x6c99('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x6c99('0xa'),'collate':_0x6c99('0xb')});};