Built motion from commit (unavailable).|2.5.14
[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 _0x49fe=['path','rimraf','../../config/environment','./disposition.attributes','define','Disposition','name_voice','name','ListId','name_chat','MailAccountId','SmsAccountId','name_fax','FaxAccountId','name_openchannel','WhatsappAccountId','lodash','util','../../config/logger','bluebird'];(function(_0x5c2c7c,_0xa7d3b1){var _0xea7ffe=function(_0x471f17){while(--_0x471f17){_0x5c2c7c['push'](_0x5c2c7c['shift']());}};_0xea7ffe(++_0xa7d3b1);}(_0x49fe,0x100));var _0xe49f=function(_0x499dc5,_0x52f05d){_0x499dc5=_0x499dc5-0x0;var _0x1fd5ba=_0x49fe[_0x499dc5];return _0x1fd5ba;};'use strict';var _=require(_0xe49f('0x0'));var util=require(_0xe49f('0x1'));var logger=require(_0xe49f('0x2'))('api');var moment=require('moment');var BPromise=require(_0xe49f('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xe49f('0x4'));var rimraf=require(_0xe49f('0x5'));var config=require(_0xe49f('0x6'));var attributes=require(_0xe49f('0x7'));module['exports']=function(_0x20633a,_0x51fe70){return _0x20633a[_0xe49f('0x8')](_0xe49f('0x9'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0xe49f('0xa'),'fields':[_0xe49f('0xb'),_0xe49f('0xc')]},{'unique':!![],'name':_0xe49f('0xd'),'fields':[_0xe49f('0xb'),'ChatWebsiteId']},{'unique':!![],'name':'name_mail','fields':[_0xe49f('0xb'),_0xe49f('0xe')]},{'unique':!![],'name':'name_sms','fields':['name',_0xe49f('0xf')]},{'unique':!![],'name':_0xe49f('0x10'),'fields':[_0xe49f('0xb'),_0xe49f('0x11')]},{'unique':!![],'name':_0xe49f('0x12'),'fields':[_0xe49f('0xb'),'OpenchannelAccountId']},{'unique':!![],'name':'name_whatsapp','fields':[_0xe49f('0xb'),_0xe49f('0x13')]}],'timestamps':!![]});};