5698964888aa656be4f032b12466cc03ce9b0b2f
[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 _0x6e9c=['utf8mb4_unicode_ci','util','api','moment','bluebird','request-promise','path','rimraf','./openchannelApplication.attributes','exports','define','OpenchannelApplication','openchannel_applications'];(function(_0x3358ba,_0x24c5fc){var _0x296e73=function(_0x843ff3){while(--_0x843ff3){_0x3358ba['push'](_0x3358ba['shift']());}};_0x296e73(++_0x24c5fc);}(_0x6e9c,0x139));var _0xc6e9=function(_0x2411cb,_0x15da03){_0x2411cb=_0x2411cb-0x0;var _0x317f74=_0x6e9c[_0x2411cb];return _0x317f74;};'use strict';var _=require('lodash');var util=require(_0xc6e9('0x0'));var logger=require('../../config/logger')(_0xc6e9('0x1'));var moment=require(_0xc6e9('0x2'));var BPromise=require(_0xc6e9('0x3'));var rp=require(_0xc6e9('0x4'));var fs=require('fs');var path=require(_0xc6e9('0x5'));var rimraf=require(_0xc6e9('0x6'));var config=require('../../config/environment');var attributes=require(_0xc6e9('0x7'));module[_0xc6e9('0x8')]=function(_0x4bc558,_0xb03b01){return _0x4bc558[_0xc6e9('0x9')](_0xc6e9('0xa'),attributes,{'tableName':_0xc6e9('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0xc6e9('0xc')});};