Built motion from commit (unavailable).|2.5.30
[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 _0xf0bb=['path','exports','define','openchannel_applications','utf8mb4','utf8mb4_unicode_ci','util','api','bluebird'];(function(_0x240178,_0xc9c26f){var _0x23942b=function(_0x475789){while(--_0x475789){_0x240178['push'](_0x240178['shift']());}};_0x23942b(++_0xc9c26f);}(_0xf0bb,0x1e3));var _0xbf0b=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0xf0bb[_0x167cc1];return _0x10bc4b;};'use strict';var _=require('lodash');var util=require(_0xbf0b('0x0'));var logger=require('../../config/logger')(_0xbf0b('0x1'));var moment=require('moment');var BPromise=require(_0xbf0b('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbf0b('0x3'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./openchannelApplication.attributes');module[_0xbf0b('0x4')]=function(_0x47cb7d,_0x3a6492){return _0x47cb7d[_0xbf0b('0x5')]('OpenchannelApplication',attributes,{'tableName':_0xbf0b('0x6'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xbf0b('0x7'),'collate':_0xbf0b('0x8')});};