Built motion from commit (unavailable).|2.5.4
[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 _0x5f82=['utf8mb4','utf8mb4_unicode_ci','util','api','moment','request-promise','path','rimraf','../../config/environment','exports','openchannel_applications'];(function(_0x223b58,_0x29f8c3){var _0x5cf144=function(_0x5cdbf1){while(--_0x5cdbf1){_0x223b58['push'](_0x223b58['shift']());}};_0x5cf144(++_0x29f8c3);}(_0x5f82,0xde));var _0x25f8=function(_0x2c7618,_0x26be9c){_0x2c7618=_0x2c7618-0x0;var _0x5ce3f0=_0x5f82[_0x2c7618];return _0x5ce3f0;};'use strict';var _=require('lodash');var util=require(_0x25f8('0x0'));var logger=require('../../config/logger')(_0x25f8('0x1'));var moment=require(_0x25f8('0x2'));var BPromise=require('bluebird');var rp=require(_0x25f8('0x3'));var fs=require('fs');var path=require(_0x25f8('0x4'));var rimraf=require(_0x25f8('0x5'));var config=require(_0x25f8('0x6'));var attributes=require('./openchannelApplication.attributes');module[_0x25f8('0x7')]=function(_0x1511e3,_0x52cc28){return _0x1511e3['define']('OpenchannelApplication',attributes,{'tableName':_0x25f8('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x25f8('0x9'),'collate':_0x25f8('0xa')});};