Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / api / disposition / disposition.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 _0x7f99=['define','tools_dispositions','name_voice','name','ListId','ChatWebsiteId','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./disposition.attributes','exports'];(function(_0x1fb213,_0x42cc15){var _0x1323c5=function(_0x1248cb){while(--_0x1248cb){_0x1fb213['push'](_0x1fb213['shift']());}};_0x1323c5(++_0x42cc15);}(_0x7f99,0x161));var _0x97f9=function(_0x1fe11b,_0x141289){_0x1fe11b=_0x1fe11b-0x0;var _0x2070c4=_0x7f99[_0x1fe11b];return _0x2070c4;};'use strict';var _=require(_0x97f9('0x0'));var util=require(_0x97f9('0x1'));var logger=require(_0x97f9('0x2'))(_0x97f9('0x3'));var moment=require('moment');var BPromise=require(_0x97f9('0x4'));var rp=require(_0x97f9('0x5'));var fs=require('fs');var path=require(_0x97f9('0x6'));var rimraf=require(_0x97f9('0x7'));var config=require(_0x97f9('0x8'));var attributes=require(_0x97f9('0x9'));module[_0x97f9('0xa')]=function(_0x2db634,_0x3d35af){return _0x2db634[_0x97f9('0xb')]('Disposition',attributes,{'tableName':_0x97f9('0xc'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x97f9('0xd'),'fields':[_0x97f9('0xe'),_0x97f9('0xf')]},{'unique':!![],'name':'name_chat','fields':[_0x97f9('0xe'),_0x97f9('0x10')]},{'unique':!![],'name':'name_mail','fields':[_0x97f9('0xe'),_0x97f9('0x11')]},{'unique':!![],'name':_0x97f9('0x12'),'fields':['name',_0x97f9('0x13')]},{'unique':!![],'name':_0x97f9('0x14'),'fields':[_0x97f9('0xe'),_0x97f9('0x15')]},{'unique':!![],'name':_0x97f9('0x16'),'fields':[_0x97f9('0xe'),_0x97f9('0x17')]},{'unique':!![],'name':_0x97f9('0x18'),'fields':[_0x97f9('0xe'),_0x97f9('0x19')]}],'timestamps':!![]});};