51389a60b2c85f215b70b831ca6b84ad0008fe95
[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 _0xddec=['rimraf','../../config/environment','../../components/integrations/configuration','exports','define','DeskAccount','int_desk_accounts','lodash','util','api','moment','bluebird','request-promise','path'];(function(_0x324d02,_0x6d9c0b){var _0x3d4f59=function(_0x279f6b){while(--_0x279f6b){_0x324d02['push'](_0x324d02['shift']());}};_0x3d4f59(++_0x6d9c0b);}(_0xddec,0x18f));var _0xcdde=function(_0x5b644e,_0x2e5e07){_0x5b644e=_0x5b644e-0x0;var _0x49c6bf=_0xddec[_0x5b644e];return _0x49c6bf;};'use strict';var _=require(_0xcdde('0x0'));var util=require(_0xcdde('0x1'));var logger=require('../../config/logger')(_0xcdde('0x2'));var moment=require(_0xcdde('0x3'));var BPromise=require(_0xcdde('0x4'));var rp=require(_0xcdde('0x5'));var fs=require('fs');var path=require(_0xcdde('0x6'));var rimraf=require(_0xcdde('0x7'));var config=require(_0xcdde('0x8'));var attributes=require('./intDeskAccount.attributes');var integrations=require(_0xcdde('0x9'));module[_0xcdde('0xa')]=function(_0x27e572,_0x4ad87d){return _0x27e572[_0xcdde('0xb')](_0xcdde('0xc'),attributes,{'tableName':_0xcdde('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};