Built motion from commit (unavailable).|2.5.1
[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 _0x9120=['name_chat','name_mail','MailAccountId','name_sms','SmsAccountId','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','api','request-promise','path','rimraf','../../config/environment','./disposition.attributes','exports','define','Disposition','name_voice','name','ListId'];(function(_0x5885a5,_0x2d6453){var _0x588eea=function(_0x2eae13){while(--_0x2eae13){_0x5885a5['push'](_0x5885a5['shift']());}};_0x588eea(++_0x2d6453);}(_0x9120,0x1b3));var _0x0912=function(_0x71d04f,_0x251be0){_0x71d04f=_0x71d04f-0x0;var _0x481507=_0x9120[_0x71d04f];return _0x481507;};'use strict';var _=require(_0x0912('0x0'));var util=require(_0x0912('0x1'));var logger=require(_0x0912('0x2'))(_0x0912('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x0912('0x4'));var fs=require('fs');var path=require(_0x0912('0x5'));var rimraf=require(_0x0912('0x6'));var config=require(_0x0912('0x7'));var attributes=require(_0x0912('0x8'));module[_0x0912('0x9')]=function(_0x4e7ddb,_0x42cb02){return _0x4e7ddb[_0x0912('0xa')](_0x0912('0xb'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0x0912('0xc'),'fields':[_0x0912('0xd'),_0x0912('0xe')]},{'unique':!![],'name':_0x0912('0xf'),'fields':[_0x0912('0xd'),'ChatWebsiteId']},{'unique':!![],'name':_0x0912('0x10'),'fields':[_0x0912('0xd'),_0x0912('0x11')]},{'unique':!![],'name':_0x0912('0x12'),'fields':['name',_0x0912('0x13')]},{'unique':!![],'name':'name_fax','fields':[_0x0912('0xd'),_0x0912('0x14')]},{'unique':!![],'name':_0x0912('0x15'),'fields':[_0x0912('0xd'),_0x0912('0x16')]},{'unique':!![],'name':_0x0912('0x17'),'fields':[_0x0912('0xd'),_0x0912('0x18')]}],'timestamps':!![]});};