3301be0e5b0339e945527622f69caa72c80e423b
[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 _0x6de7=['path','rimraf','../../config/environment','./openchannelApplication.attributes','exports','define','OpenchannelApplication','openchannel_applications','utf8mb4','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x242e85,_0x4d8ef8){var _0x427a1e=function(_0x1cc1b6){while(--_0x1cc1b6){_0x242e85['push'](_0x242e85['shift']());}};_0x427a1e(++_0x4d8ef8);}(_0x6de7,0xcc));var _0x76de=function(_0x3f0674,_0x4e8dce){_0x3f0674=_0x3f0674-0x0;var _0x216fd0=_0x6de7[_0x3f0674];return _0x216fd0;};'use strict';var _=require(_0x76de('0x0'));var util=require(_0x76de('0x1'));var logger=require(_0x76de('0x2'))(_0x76de('0x3'));var moment=require(_0x76de('0x4'));var BPromise=require(_0x76de('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x76de('0x6'));var rimraf=require(_0x76de('0x7'));var config=require(_0x76de('0x8'));var attributes=require(_0x76de('0x9'));module[_0x76de('0xa')]=function(_0x202c44,_0x50c196){return _0x202c44[_0x76de('0xb')](_0x76de('0xc'),attributes,{'tableName':_0x76de('0xd'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x76de('0xe'),'collate':'utf8mb4_unicode_ci'});};