a7eaf62f60383f6ee08162fd025359a62269f2a2
[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 _0x22df=['exports','define','OpenchannelApplication','utf8mb4','utf8mb4_unicode_ci','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf'];(function(_0x9b383e,_0x1e89f2){var _0x213cfc=function(_0x3fc450){while(--_0x3fc450){_0x9b383e['push'](_0x9b383e['shift']());}};_0x213cfc(++_0x1e89f2);}(_0x22df,0xbb));var _0xf22d=function(_0x20af9b,_0x83bd64){_0x20af9b=_0x20af9b-0x0;var _0x325c9d=_0x22df[_0x20af9b];return _0x325c9d;};'use strict';var _=require('lodash');var util=require(_0xf22d('0x0'));var logger=require(_0xf22d('0x1'))(_0xf22d('0x2'));var moment=require(_0xf22d('0x3'));var BPromise=require(_0xf22d('0x4'));var rp=require(_0xf22d('0x5'));var fs=require('fs');var path=require(_0xf22d('0x6'));var rimraf=require(_0xf22d('0x7'));var config=require('../../config/environment');var attributes=require('./openchannelApplication.attributes');module[_0xf22d('0x8')]=function(_0x4b3d2c,_0x55a496){return _0x4b3d2c[_0xf22d('0x9')](_0xf22d('0xa'),attributes,{'tableName':'openchannel_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xf22d('0xb'),'collate':_0xf22d('0xc')});};