8d09183f339ff1ed53ac5db759ee55ac3087937f
[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 _0xb2d4=['request-promise','rimraf','../../config/environment','./openchannelApplication.attributes','exports','define','OpenchannelApplication','openchannel_applications','utf8mb4','utf8mb4_unicode_ci','../../config/logger','moment'];(function(_0x23402b,_0x421ac9){var _0x3a21c7=function(_0x3608ec){while(--_0x3608ec){_0x23402b['push'](_0x23402b['shift']());}};_0x3a21c7(++_0x421ac9);}(_0xb2d4,0x15a));var _0x4b2d=function(_0x433a86,_0x175b5c){_0x433a86=_0x433a86-0x0;var _0x23000c=_0xb2d4[_0x433a86];return _0x23000c;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x4b2d('0x0'))('api');var moment=require(_0x4b2d('0x1'));var BPromise=require('bluebird');var rp=require(_0x4b2d('0x2'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4b2d('0x3'));var config=require(_0x4b2d('0x4'));var attributes=require(_0x4b2d('0x5'));module[_0x4b2d('0x6')]=function(_0x3be3cd,_0x4df96f){return _0x3be3cd[_0x4b2d('0x7')](_0x4b2d('0x8'),attributes,{'tableName':_0x4b2d('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x4b2d('0xa'),'collate':_0x4b2d('0xb')});};