Built motion from commit e6806ed6.|2.6.0
[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 _0x0eb9=['request-promise','rimraf','../../config/environment','./openchannelApplication.attributes','exports','define','OpenchannelApplication','openchannel_applications','utf8mb4','lodash','../../config/logger','api','moment','bluebird'];(function(_0x2acec2,_0x12ebf1){var _0x19aa0d=function(_0x312e8e){while(--_0x312e8e){_0x2acec2['push'](_0x2acec2['shift']());}};_0x19aa0d(++_0x12ebf1);}(_0x0eb9,0x1f3));var _0x90eb=function(_0x480fc2,_0x482fba){_0x480fc2=_0x480fc2-0x0;var _0x540a95=_0x0eb9[_0x480fc2];return _0x540a95;};'use strict';var _=require(_0x90eb('0x0'));var util=require('util');var logger=require(_0x90eb('0x1'))(_0x90eb('0x2'));var moment=require(_0x90eb('0x3'));var BPromise=require(_0x90eb('0x4'));var rp=require(_0x90eb('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x90eb('0x6'));var config=require(_0x90eb('0x7'));var attributes=require(_0x90eb('0x8'));module[_0x90eb('0x9')]=function(_0x2ee646,_0x3be210){return _0x2ee646[_0x90eb('0xa')](_0x90eb('0xb'),attributes,{'tableName':_0x90eb('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x90eb('0xd'),'collate':'utf8mb4_unicode_ci'});};