Built motion from commit 5b761a7b.|2.5.36
[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 _0xb008=['util','moment','bluebird','request-promise','rimraf','./openchannelApplication.attributes','exports','define','OpenchannelApplication','utf8mb4','utf8mb4_unicode_ci','lodash'];(function(_0xb3224c,_0x223dad){var _0x477937=function(_0xcc887f){while(--_0xcc887f){_0xb3224c['push'](_0xb3224c['shift']());}};_0x477937(++_0x223dad);}(_0xb008,0xe3));var _0x8b00=function(_0x2afe75,_0x2efa5e){_0x2afe75=_0x2afe75-0x0;var _0x15fbe7=_0xb008[_0x2afe75];return _0x15fbe7;};'use strict';var _=require(_0x8b00('0x0'));var util=require(_0x8b00('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x8b00('0x2'));var BPromise=require(_0x8b00('0x3'));var rp=require(_0x8b00('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x8b00('0x5'));var config=require('../../config/environment');var attributes=require(_0x8b00('0x6'));module[_0x8b00('0x7')]=function(_0xf85d80,_0x106226){return _0xf85d80[_0x8b00('0x8')](_0x8b00('0x9'),attributes,{'tableName':'openchannel_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x8b00('0xa'),'collate':_0x8b00('0xb')});};