0094bb144da1b5555faa49cc254d0385816fad32
[motion2.git] / server / api / intDeskAccount / intDeskAccount.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 _0x9b34=['path','rimraf','./intDeskAccount.attributes','../../components/integrations/configuration','exports','define','DeskAccount','int_desk_accounts','util','moment','bluebird','request-promise'];(function(_0x3e451f,_0x10500d){var _0x57978f=function(_0x52f960){while(--_0x52f960){_0x3e451f['push'](_0x3e451f['shift']());}};_0x57978f(++_0x10500d);}(_0x9b34,0xd4));var _0x49b3=function(_0x6d6332,_0x36425f){_0x6d6332=_0x6d6332-0x0;var _0x2d354e=_0x9b34[_0x6d6332];return _0x2d354e;};'use strict';var _=require('lodash');var util=require(_0x49b3('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x49b3('0x1'));var BPromise=require(_0x49b3('0x2'));var rp=require(_0x49b3('0x3'));var fs=require('fs');var path=require(_0x49b3('0x4'));var rimraf=require(_0x49b3('0x5'));var config=require('../../config/environment');var attributes=require(_0x49b3('0x6'));var integrations=require(_0x49b3('0x7'));module[_0x49b3('0x8')]=function(_0x4a6716,_0x3ea3ed){return _0x4a6716[_0x49b3('0x9')](_0x49b3('0xa'),attributes,{'tableName':_0x49b3('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};