Built motion from commit 43538d75.|2.5.35
[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 _0x0d22=['utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','exports','OpenchannelApplication'];(function(_0x43d106,_0x96a475){var _0x2160bc=function(_0x1219fb){while(--_0x1219fb){_0x43d106['push'](_0x43d106['shift']());}};_0x2160bc(++_0x96a475);}(_0x0d22,0x16e));var _0x20d2=function(_0x3c2b2e,_0x3e6e53){_0x3c2b2e=_0x3c2b2e-0x0;var _0x27a338=_0x0d22[_0x3c2b2e];return _0x27a338;};'use strict';var _=require(_0x20d2('0x0'));var util=require(_0x20d2('0x1'));var logger=require(_0x20d2('0x2'))(_0x20d2('0x3'));var moment=require(_0x20d2('0x4'));var BPromise=require('bluebird');var rp=require(_0x20d2('0x5'));var fs=require('fs');var path=require(_0x20d2('0x6'));var rimraf=require(_0x20d2('0x7'));var config=require(_0x20d2('0x8'));var attributes=require('./openchannelApplication.attributes');module[_0x20d2('0x9')]=function(_0x16fd3a,_0x4c8be5){return _0x16fd3a['define'](_0x20d2('0xa'),attributes,{'tableName':'openchannel_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x20d2('0xb'),'collate':_0x20d2('0xc')});};