Built motion from commit 4d4d9a88.|2.6.26
[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 _0xb5d9=['define','OpenchannelApplication','openchannel_applications','utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','path','rimraf','../../config/environment','exports'];(function(_0x3a2e49,_0x21ebea){var _0x257140=function(_0x5a2362){while(--_0x5a2362){_0x3a2e49['push'](_0x3a2e49['shift']());}};_0x257140(++_0x21ebea);}(_0xb5d9,0x101));var _0x9b5d=function(_0x348077,_0xe82a34){_0x348077=_0x348077-0x0;var _0x5de059=_0xb5d9[_0x348077];return _0x5de059;};'use strict';var _=require(_0x9b5d('0x0'));var util=require(_0x9b5d('0x1'));var logger=require(_0x9b5d('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x9b5d('0x3'));var rimraf=require(_0x9b5d('0x4'));var config=require(_0x9b5d('0x5'));var attributes=require('./openchannelApplication.attributes');module[_0x9b5d('0x6')]=function(_0x25a10a,_0x44c1a3){return _0x25a10a[_0x9b5d('0x7')](_0x9b5d('0x8'),attributes,{'tableName':_0x9b5d('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x9b5d('0xa'),'collate':_0x9b5d('0xb')});};