Built motion from commit (unavailable).|2.5.2
[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 _0x6814=['rimraf','../../config/environment','./openchannelApplication.attributes','exports','define','OpenchannelApplication','openchannel_applications','utf8mb4','utf8mb4_unicode_ci','../../config/logger','api','bluebird','path'];(function(_0xbba5c3,_0x435ea7){var _0x6943cf=function(_0x5ba2e0){while(--_0x5ba2e0){_0xbba5c3['push'](_0xbba5c3['shift']());}};_0x6943cf(++_0x435ea7);}(_0x6814,0x182));var _0x4681=function(_0x549949,_0x2f6178){_0x549949=_0x549949-0x0;var _0x2d6b1b=_0x6814[_0x549949];return _0x2d6b1b;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x4681('0x0'))(_0x4681('0x1'));var moment=require('moment');var BPromise=require(_0x4681('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4681('0x3'));var rimraf=require(_0x4681('0x4'));var config=require(_0x4681('0x5'));var attributes=require(_0x4681('0x6'));module[_0x4681('0x7')]=function(_0x597111,_0x333e0a){return _0x597111[_0x4681('0x8')](_0x4681('0x9'),attributes,{'tableName':_0x4681('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x4681('0xb'),'collate':_0x4681('0xc')});};