Built motion from commit ddca4d0d.|2.5.47
[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 _0xb65d=['openchannel_applications','utf8mb4','utf8mb4_unicode_ci','util','api','bluebird','request-promise','path','rimraf','../../config/environment','exports','OpenchannelApplication'];(function(_0x39d544,_0x35c14f){var _0x5a5ff2=function(_0x2271fb){while(--_0x2271fb){_0x39d544['push'](_0x39d544['shift']());}};_0x5a5ff2(++_0x35c14f);}(_0xb65d,0x117));var _0xdb65=function(_0x3ef138,_0x302e2f){_0x3ef138=_0x3ef138-0x0;var _0x37ff86=_0xb65d[_0x3ef138];return _0x37ff86;};'use strict';var _=require('lodash');var util=require(_0xdb65('0x0'));var logger=require('../../config/logger')(_0xdb65('0x1'));var moment=require('moment');var BPromise=require(_0xdb65('0x2'));var rp=require(_0xdb65('0x3'));var fs=require('fs');var path=require(_0xdb65('0x4'));var rimraf=require(_0xdb65('0x5'));var config=require(_0xdb65('0x6'));var attributes=require('./openchannelApplication.attributes');module[_0xdb65('0x7')]=function(_0x37d00e,_0x168001){return _0x37d00e['define'](_0xdb65('0x8'),attributes,{'tableName':_0xdb65('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xdb65('0xa'),'collate':_0xdb65('0xb')});};