Built motion from commit ce97982f.|2.6.29
[motion2.git] / server / api / intFreshdeskField / intFreshdeskField.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 _0xbfc9=['./intFreshdeskField.attributes','define','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField','FieldId','lodash','util','api','bluebird','path','rimraf','../../config/environment'];(function(_0x295f38,_0x227ab8){var _0x4690f1=function(_0x4e85c7){while(--_0x4e85c7){_0x295f38['push'](_0x295f38['shift']());}};_0x4690f1(++_0x227ab8);}(_0xbfc9,0x173));var _0x9bfc=function(_0x582551,_0xd79827){_0x582551=_0x582551-0x0;var _0x2dd835=_0xbfc9[_0x582551];return _0x2dd835;};'use strict';var _=require(_0x9bfc('0x0'));var util=require(_0x9bfc('0x1'));var logger=require('../../config/logger')(_0x9bfc('0x2'));var moment=require('moment');var BPromise=require(_0x9bfc('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x9bfc('0x4'));var rimraf=require(_0x9bfc('0x5'));var config=require(_0x9bfc('0x6'));var attributes=require(_0x9bfc('0x7'));module['exports']=function(_0x34b4ab,_0x277959){return _0x34b4ab[_0x9bfc('0x8')](_0x9bfc('0x9'),attributes,{'tableName':_0x9bfc('0xa'),'paranoid':![],'indexes':[{'name':_0x9bfc('0xb'),'fields':[_0x9bfc('0xc'),_0x9bfc('0xd')],'unique':!![]}],'timestamps':!![]});};